Comments (17)
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.
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.
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.
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.
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.
Do you mind testing that branch and let me know if it works for you?
from meta-riscv.
@alistair23 Oh test your branch ?
https://github.com/alistair23/meta-riscv/tree/alistair/libgpg
sure why not
from meta-riscv.
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.
I builded your branch alistair/libgpg
and report it.
build_error_20181201.log
from meta-riscv.
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?
from meta-riscv.
Hi good news.
get correct header on riscv32
1.build riscv32 compiler
https://github.com/riscv/riscv-gnu-toolchain
-
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 -
set riscv32 emulate system.
set tinyemu riscv32 : https://bellard.org/tinyemu/buildroot.html -
run gpgeror gen-posix-lock-obj
from meta-riscv.
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.
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
- hmm? what is Sob line?
- like this ?
Signed-off-by: pino-kim [email protected]
- Tinyemu use 4.15 kernel riscv
from meta-riscv.
hey hey hey qemuriscv32 bootup right now?
may I see bootup scrren?
from meta-riscv.
Just bitbake core-image-minimal and then runqemu
from meta-riscv.
This issue is fixed now
from meta-riscv.
@kraj , @alistair23
yepp I check bootup core-image-minimal.
let close it.
from meta-riscv.
Related Issues (20)
- go_1.19.4.bb not install standard lib code HOT 1
- Qemu RISCV64 build fails due to nfs-utils HOT 11
- Kernel modules will not work on MangoPi pro HOT 2
- Where is recipes-bsp/boot0/boot0.bb? HOT 3
- BrokenPipeError: [Errno 32] Broken pipe HOT 4
- opensbi: do_install() fails for visionfive2 HOT 2
- visionfive2 missing ChipsMedia_VisionFive2 license file
- weston does not start on Visionfive2 HOT 3
- glibc build failed on ARCH riscv32 HOT 3
- build failing on start with 'ERROR: Nothing RPROVIDES 'systemd'' HOT 2
- Milk-V Duo: Kernel compilation fails HOT 1
- mangopi-mq-pro u-boot-allwinnerd1-1_1.0-r0 do_fetch HOT 1
- visionfive 2 cpu0: cpufreq_init: failed to get clk and cpufreq-dt: failed register driver: -19 HOT 4
- Error while compiling perf HOT 1
- No hdmi on mangopi HOT 3
- [master: visionfive2] mesa-pvr HOT 4
- How can I increase my RAM memory for milk-v duo 64MB? HOT 1
- star64 - u-boot compilation fails
- visionfive2-pvr-graphics: failing installation with SysV init
- Stuck at "NOTE: Starting bitbake server..." HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from meta-riscv.