GithubHelp home page GithubHelp logo

Comments (17)

alistair23 avatar alistair23 commented on July 17, 2024 1

Hmm... This looks like a separate problem. So hopefully that branch does fix the libgpg-error problem. Either way it looks like 32-bit support needs more work

from meta-riscv.

alistair23 avatar alistair23 commented on July 17, 2024 1

Yeah, that's it. I used:
Signed-off-by: pino-kim [email protected]

I figured out I was just doing something stupid, all booting now :)

from meta-riscv.

alistair23 avatar alistair23 commented on July 17, 2024

Yeah, I can reproduce this error. It looks like libgpg isn't building:

DEBUG: SITE files ['endian-little', 'bit-32', 'riscv-common', 'common-linux', 'common-glibc', 'riscv32-linux', 'riscv32-linux', 'common']
DEBUG: Executing shell function do_compile
cp: cannot stat '/scratch/alistair/yocto/oe-master/build/tmp-glibc/work/riscv32-oe-linux/libgpg-error/1.32-r0/libgpg-error-1.32/src/syscfg/lock-obj-pub.riscv32-unknown-linux-gnu.h': No such file or directory
WARNING: /scratch/alistair/yocto/oe-master/build/tmp-glibc/work/riscv32-oe-linux/libgpg-error/1.32-r0/temp/run.do_compile.22455:1 exit 1 from 'cp /scratch/alistair/yocto/oe-master/build/tmp-glibc/work/riscv32-oe-linux/libgpg-error/1.32-r0/libgpg-error-1.32/src/syscfg/lock-obj-pub.$TUPLE.h /scratch/alistair/yocto/oe-master/build/tmp-glibc/work/riscv32-oe-linux/libgpg-error/1.32-r0/libgpg-error-1.32/src/syscfg/lock-obj-pub.$TARGET_FILE.h'
ERROR: Function failed: do_compile (log file is located at /scratch/alistair/yocto/oe-master/build/tmp-glibc/work/riscv32-oe-linux/libgpg-error/1.32-r0/temp/log.do_compile.22455)

from meta-riscv.

pino-kim avatar pino-kim commented on July 17, 2024

Oh good day?
I eagg to build libgpg.
I eager to get lock-obj-pub.riscv32-unknown-linux-gnu.h file in the qemu risv32 env.
Maybe ... We can get lock-obj-pub.riscv32-unknown-linux-gnu.h run gen-posix-lock-obj
in the qemuriscv32 env.

I follow this page to get riscv32 env : https://www.cnx-software.com/2018/03/16/how-to-run-linux-on-risc-v-with-qemu-emulator/

from meta-riscv.

alistair23 avatar alistair23 commented on July 17, 2024

I haven't been able to get to a login prompt on 32-bit RISC-V yet, so I can't run it on the guest.

Manually editing the file gave me this, which at least compiles: https://github.com/alistair23/meta-riscv/tree/alistair/libgpg

from meta-riscv.

alistair23 avatar alistair23 commented on July 17, 2024

Do you mind testing that branch and let me know if it works for you?

from meta-riscv.

pino-kim avatar pino-kim commented on July 17, 2024

@alistair23 Oh test your branch ?
https://github.com/alistair23/meta-riscv/tree/alistair/libgpg
sure why not

from meta-riscv.

pino-kim avatar pino-kim commented on July 17, 2024
BB_VERSION           = "1.40.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "ubuntu-16.04"
TARGET_SYS           = "riscv32-oe-linux"
MACHINE              = "qemuriscv32"
DISTRO               = "nodistro"
DISTRO_VERSION       = "nodistro.0"
TUNE_FEATURES        = "riscv32 littleendian"
meta                 = "work:21387613fec1a8c142ed48d7a74d587e205b0c98"
meta-oe              
meta-multimedia      
meta-python          
meta-networking      = "work:ebc7b9e20ac22f6f2ad373621917f53e8a9af81c"
meta-riscv           = "alistair/libgpg:19c8c3531b69f07c32ea540b84441b2088f81857"

Initialising tasks: 100% |######################################################################################################################################################################################################################################################################################| Time: 0:00:03
Sstate summary: Wanted 1096 Found 1093 Missed 3 Current 0 (99% match, 0% complete)
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: core-image-full-cmdline-1.0-r0 do_rootfs: The postinstall intercept hook 'update_udev_hwdb' failed, details in /home/pino/workspace/opensource_work/riscv-yocto/build/tmp-glibc/work/qemuriscv32-oe-linux/core-image-full-cmdline/1.0-r0/temp/log.do_rootfs
ERROR: core-image-full-cmdline-1.0-r0 do_rootfs: Function failed: do_rootfs
ERROR: Logfile of failure stored in: /home/pino/workspace/opensource_work/riscv-yocto/build/tmp-glibc/work/qemuriscv32-oe-linux/core-image-full-cmdline/1.0-r0/temp/log.do_rootfs.117583
ERROR: Task (/home/pino/workspace/opensource_work/riscv-yocto/openembedded-core/meta/recipes-extended/images/core-image-full-cmdline.bb:do_rootfs) failed with exit code '1'
NOTE: Tasks Summary: Attempted 3218 tasks of which 2953 didn't need to be rerun and 1 failed.
NOTE: Writing buildhistory
NOTE: Build completion summary:
NOTE:   do_populate_sysroot: 100.0% sstate reuse(249 setscene, 0 scratch)
NOTE:   do_package_qa: 100.0% sstate reuse(145 setscene, 0 scratch)
NOTE:   do_packagedata: 100.0% sstate reuse(145 setscene, 0 scratch)
NOTE:   do_package_write_ipk: 100.0% sstate reuse(145 setscene, 0 scratch)
NOTE:   do_populate_lic: 100.0% sstate reuse(256 setscene, 0 scratch)

Summary: 1 task failed:
  /home/pino/workspace/opensource_work/riscv-yocto/openembedded-core/meta/recipes-extended/images/core-image-full-cmdline.bb:do_rootfs
Summary: There was 1 WARNING message shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.

from meta-riscv.

pino-kim avatar pino-kim commented on July 17, 2024

I builded your branch alistair/libgpg and report it.
build_error_20181201.log

from meta-riscv.

pino-kim avatar pino-kim commented on July 17, 2024

I cross compile gen-posix-lock-obj file to get header.
yepp.... I run it riscv32 tinyemu(https://bellard.org/tinyemu/) but stuck.
Because system dosent have glibc 2.27
Glibc 2.27 suport riscv-32?
image

from meta-riscv.

pino-kim avatar pino-kim commented on July 17, 2024

Hi good news.
get correct header on riscv32

1.build riscv32 compiler
https://github.com/riscv/riscv-gnu-toolchain

  1. build gen-opsix-lock-obj for riscv32
    $ cd libgpg-error
    $ export CC=riscv32-unknown-linux-gnu-gcc
    $ ./configure --host=riscv32-unknown-linux-gnu --build=build=x86_64-linux-gnu --enable-static=yes --enable-shared=no --sys=/opt/riscv/lib
    $ cd src
    $ make gen-posix-lock-obj

  2. set riscv32 emulate system.
    set tinyemu riscv32 : https://bellard.org/tinyemu/buildroot.html

  3. run gpgeror gen-posix-lock-obj

image

from meta-riscv.

alistair23 avatar alistair23 commented on July 17, 2024

Awesome! Thanks for doing that.

I have updated my branch to reflect what you have there. I will send a pull request later today.

If you have a SoB line I can add it to the libgpg-error patch if you want?

from meta-riscv.

pino-kim avatar pino-kim commented on July 17, 2024

you can see kernel 4.15 above pic. I prepare

Awesome! Thanks for doing that.

I have updated my branch to reflect what you have there. I will send a pull request later today.

If you have a SoB line I can add it to the libgpg-error patch if you want?

Q/A time plz

  1. hmm? what is Sob line?
  1. Tinyemu use 4.15 kernel riscv

from meta-riscv.

pino-kim avatar pino-kim commented on July 17, 2024

hey hey hey qemuriscv32 bootup right now?
may I see bootup scrren?

from meta-riscv.

alistair23 avatar alistair23 commented on July 17, 2024

Just bitbake core-image-minimal and then runqemu

from meta-riscv.

alistair23 avatar alistair23 commented on July 17, 2024

This issue is fixed now

from meta-riscv.

pino-kim avatar pino-kim commented on July 17, 2024

@kraj , @alistair23
yepp I check bootup core-image-minimal.
let close it.

from meta-riscv.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.