Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rockchip-rk3566-radxa-cm3-io build fails #6

Open
daverathbone opened this issue Aug 15, 2023 · 1 comment
Open

rockchip-rk3566-radxa-cm3-io build fails #6

daverathbone opened this issue Aug 15, 2023 · 1 comment

Comments

@daverathbone
Copy link

Hi Stephen and Jeffy

Tried to build the Yocto img file for machine=rockchip-rk3566-radxa-cm3-io
I'm using VirtualBox with Linux Ubuntu ver 18.00 with 150GB drive and 4CPU's 4GB RAM :
Following your Github directions fully:-

Yocto builds up to task 185 then fails.

The log snippet indicates that the build process for the libiberty library within the binutils-cross-aarch64 recipe has failed. The error messages point to issues with running the ar command and indicate that a script ../native-intercept/ar is not found.

Could you please give any reason for the failing compile and what the fix should be?

Here is the console-latest.log -(last successful line then the failed line.)
NOTE: Running task 183 of 3507 (/home/pi/yocto/poky/meta/recipes-devtools/binutils/binutils-cross_2.38.bb:do_prepare_recipe_sysroot) NOTE: recipe binutils-cross-aarch64-2.38-r0: task do_prepare_recipe_sysroot: Started NOTE: recipe binutils-cross-aarch64-2.38-r0: task do_prepare_recipe_sysroot: Succeeded NOTE: Running task 184 of 3507 (/home/pi/yocto/poky/meta/recipes-devtools/binutils/binutils-cross_2.38.bb:do_configure) NOTE: recipe binutils-cross-aarch64-2.38-r0: task do_configure: Started NOTE: recipe binutils-cross-aarch64-2.38-r0: task do_configure: Succeeded NOTE: Running task 185 of 3507 (/home/pi/yocto/poky/meta/recipes-devtools/binutils/binutils-cross_2.38.bb:do_compile) NOTE: recipe binutils-cross-aarch64-2.38-r0: task do_compile: Started ERROR: binutils-cross-aarch64-2.38-r0 do_compile: oe_runmake failed ERROR: binutils-cross-aarch64-2.38-r0 do_compile: ExecutionError('/home/pi/yocto/build/tmp/work/i686-linux/binutils-cross-aarch64/2.38-r0/temp/run.do_compile.16297', 1, None, None) ERROR: Logfile of failure stored in: /home/pi/yocto/build/tmp/work/i686-linux/binutils-cross-aarch64/2.38-r0/temp/log.do_compile.16297 NOTE: recipe binutils-cross-aarch64-2.38-r0: task do_compile: Failed ERROR: Task (/home/pi/yocto/poky/meta/recipes-devtools/binutils/binutils-cross_2.38.bb:do_compile) failed with exit code '1' NOTE: Running task 186 of 3507 (virtual:native:/home/pi/yocto/poky/meta/recipes-support/popt/popt_1.18.bb:do_unpack) NOTE: recipe popt-native-1.18-r0: task do_unpack: Started NOTE: recipe popt-native-1.18-r0: task do_unpack: Succeeded NOTE: Tasks Summary: Attempted 186 tasks of which 0 didn't need to be rerun and 1 failed.


And here is log.do_compile
gcc -c -DHAVE_CONFIG_H -isystem/home/pi/yocto/build/tmp/work/i686-linux/binutils-cross-aarch64/2.38-r0/recipe-sysroot-native/usr/include -O2 -pipe -isystem/home/pi/yocto/build/tmp/work/i686-linux/binutils-cross-aarch64/2.38-r0/recipe-sysroot-native/usr/include -I. -I../../libiberty/../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -Wshadow=local -pedantic -D_GNU_SOURCE ../../libiberty/setproctitle.c -o setproctitle.o rm -f ./libiberty.a pic/./libiberty.a noasan/./libiberty.a ar rc ./libiberty.a \ ./regex.o ./cplus-dem.o ./cp-demangle.o ./md5.o ./sha1.o ./alloca.o ./argv.o ./bsearch_r.o ./choose-temp.o ./concat.o ./cp-demint.o ./crc32.o ./d-demangle.o ./dwarfnames.o ./dyn-string.o ./fdmatch.o ./fibheap.o ./filedescriptor.o ./filename_cmp.o ./floatformat.o ./fnmatch.o ./fopen_unlocked.o ./getopt.o ./getopt1.o ./getpwd.o ./getruntime.o ./hashtab.o ./hex.o ./lbasename.o ./lrealpath.o ./make-relative-prefix.o ./make-temp-file.o ./objalloc.o ./obstack.o ./partition.o ./pexecute.o ./physmem.o ./pex-common.o ./pex-one.o ./pex-unix.o ./vprintf-support.o ./rust-demangle.o ./safe-ctype.o ./simple-object.o ./simple-object-coff.o ./simple-object-elf.o ./simple-object-mach-o.o ./simple-object-xcoff.o ./sort.o ./spaces.o ./splay-tree.o ./stack-limit.o ./strerror.o ./strsignal.o ./timeval-utils.o ./unlink-if-ordinary.o ./xasprintf.o ./xatexit.o ./xexit.o ./xmalloc.o ./xmemdup.o ./xstrdup.o ./xstrerror.o ./xstrndup.o ./xvasprintf.o ./setproctitle.o /home/pi/yocto/poky/scripts/cross-intercept/ar: line 1: ../native-intercept/ar: No such file or directory make[2]: Leaving directory '/home/pi/yocto/build/tmp/work/i686-linux/binutils-cross-aarch64/2.38-r0/git/build.i686-linux.aarch64-poky-linux/libiberty' make[2]: *** [Makefile:254: libiberty.a] Error 127 ERROR: oe_runmake failed make[1]: Leaving directory '/home/pi/yocto/build/tmp/work/i686-linux/binutils-cross-aarch64/2.38-r0/git/build.i686-linux.aarch64-poky-linux' WARNING: exit code 1 from a shell command. make[1]: *** [Makefile:9902: all-libiberty] Error 2 make: *** [Makefile:1000: all] Error 2

@RadxaStephen
Copy link
Member

I didn't build yocto with VirtualBox with Linux Ubuntu before. No sure about the reason.

Can you use a Ubuntu 20/22 PC or VirtualBox with Linux Ubuntu 22?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants