Hi Kanak,

It seems the linker is running out of memory on you build host. So I
wonder if you have enough RAM on the build host.
or perhaps reduce the build parallelism that matches your build
machine's resources.

On Mon, Nov 25, 2024 at 7:10 AM Kanak Shilledar via
lists.yoctoproject.org
<kanakshilledar111=protonmail....@lists.yoctoproject.org> wrote:
>
> Hi,
> I am trying to build the `core-image-minimal` recipe for beaglev-ahead 
> machine which is in the [meta-riscv](https://github.com/riscv/meta-riscv) 
> layer. I am using the master branch of poky as well as master branch of 
> meta-riscv.
> The build configuration looks like the following
>
> ```
> Build Configuration:
> BB_VERSION           = "2.9.1"
> BUILD_SYS            = "x86_64-linux"
> NATIVELSBSTRING      = "universal"
> TARGET_SYS           = "riscv64-poky-linux"
> MACHINE              = "beaglev-ahead"
> DISTRO               = "poky"
> DISTRO_VERSION       = "5.1"
> TUNE_FEATURES        = "riscv64"
> meta
> meta-poky
> meta-yocto-bsp       = "master:88489115ae83f80f8f00f296f7f775ba24884744"
> meta-riscv           = "master:4b779658548197083a17269e25554ce6bddc8563"
> ```
>
> The build fails for the recipe `gcc_14.2.bb:do_compile`.
>
> ```
> ... // SNIP ...
> | 
> /home/kanak/yocto/buildthead/tmp/work/riscv64-poky-linux/gcc/14.2.0/recipe-sysroot-native/usr/bin/riscv64-poky-linux/../../libexec/riscv64-poky-linux/gcc/riscv64-poky-linux/14.2.0/ld:
>  c-family/c-warn.o: in function `diagnose_mismatched_attributes(tree_node*, 
> tree_node*)':
> | /usr/src/debug/gcc/14.2.0/gcc/c-family/c-warn.cc:2685:(.text+0x5180): 
> undefined reference to `cxx_dialect'
> | 
> /home/kanak/yocto/buildthead/tmp/work/riscv64-poky-linux/gcc/14.2.0/recipe-sysroot-native/usr/bin/riscv64-poky-linux/../../libexec/riscv64-poky-linux/gcc/riscv64-poky-linux/14.2.0/ld:
>  /usr/src/debug/gcc/14.2.0/gcc/c-family/c-warn.cc:2691:(.text+0x5184): 
> undefined reference to `cxx_dialect'
> | 
> /home/kanak/yocto/buildthead/tmp/work/riscv64-poky-linux/gcc/14.2.0/recipe-sysroot-native/usr/bin/riscv64-poky-linux/../../libexec/riscv64-poky-linux/gcc/riscv64-poky-linux/14.2.0/ld:
>  c-family/c-warn.o: in function `maybe_warn_shift_overflow(unsigned int, 
> tree_node*, tree_node*)':
> | /usr/src/debug/gcc/14.2.0/gcc/c-family/c-warn.cc:2708:(.text+0x522e): 
> undefined reference to `cxx_dialect'
> | 
> /home/kanak/yocto/buildthead/tmp/work/riscv64-poky-linux/gcc/14.2.0/recipe-sysroot-native/usr/bin/riscv64-poky-linux/../../libexec/riscv64-poky-linux/gcc/riscv64-poky-linux/14.2.0/ld:
>  /usr/src/debug/gcc/14.2.0/gcc/c-family/c-warn.cc:2709:(.text+0x5242): 
> undefined reference to `c_inhibit_evaluation_warnings'
> | 
> /home/kanak/yocto/buildthead/tmp/work/riscv64-poky-linux/gcc/14.2.0/recipe-sysroot-native/usr/bin/riscv64-poky-linux/../../libexec/riscv64-poky-linux/gcc/riscv64-poky-linux/14.2.0/ld:
>  /usr/src/debug/gcc/14.2.0/gcc/c-family/c-warn.cc:2709:(.text+0x5246): 
> undefined reference to `c_inhibit_evaluation_warnings'
> | 
> /home/kanak/yocto/buildthead/tmp/work/riscv64-poky-linux/gcc/14.2.0/recipe-sysroot-native/usr/bin/riscv64-poky-linux/../../libexec/riscv64-poky-linux/gcc/riscv64-poky-linux/14.2.0/ld:
>  /usr/src/debug/gcc/14.2.0/gcc/c-family/c-warn.cc:2745:(.text+0x53f2): 
> undefined reference to `bool_promoted_to_int_p(tree_node*)'
> | 
> /home/kanak/yocto/buildthead/tmp/work/riscv64-poky-linux/gcc/14.2.0/recipe-sysroot-native/usr/bin/riscv64-poky-linux/../../libexec/riscv64-poky-linux/gcc/riscv64-poky-linux/14.2.0/ld:
>  c-family/c-warn.o: in function `maybe_warn_sizeof_array_div(unsigned int, 
> tree_node*, tree_node*, tree_node*, tree_node*)':
> | /usr/src/debug/gcc/14.2.0/gcc/c-family/c-warn.cc:3801:(.text+0x5d00): 
> undefined reference to `cxx_dialect'
> | 
> /home/kanak/yocto/buildthead/tmp/work/riscv64-poky-linux/gcc/14.2.0/recipe-sysroot-native/usr/bin/riscv64-poky-linux/../../libexec/riscv64-poky-linux/gcc/riscv64-poky-linux/14.2.0/ld:
>  /usr/src/debug/gcc/14.2.0/gcc/c-family/c-warn.cc:3801:(.text+0x5d04): 
> undefined reference to `cxx_dialect'
> | collect2: fatal error: ld terminated with signal 9 [Killed]
> | compilation terminated.
> | make[1]: *** 
> [../../../../../../../work-shared/gcc-14.2.0-r0/gcc-14.2.0/gcc/c/Make-lang.in:87:
>  cc1] Error 1
> | make[1]: Leaving directory 
> '/home/kanak/yocto/buildthead/tmp/work/riscv64-poky-linux/gcc/14.2.0/gcc-14.2.0/build.riscv64-poky-linux.riscv64-poky-linux/gcc'
> | make: *** [Makefile:4699: all-gcc] Error 2
> | ERROR: oe_runmake failed
> | WARNING: exit code 1 from a shell command.
> ERROR: Task 
> (/home/kanak/yocto/sources/poky/meta/recipes-devtools/gcc/gcc_14.2.bb:do_compile)
>  failed with exit code '1'
> NOTE: Tasks Summary: Attempted 3635 tasks of which 3634 didn't need to be 
> rerun and 1 failed.
>
> Summary: 1 task failed:
>   
> /home/kanak/yocto/sources/poky/meta/recipes-devtools/gcc/gcc_14.2.bb:do_compile
>     log: 
> /home/kanak/yocto/buildthead/tmp/work/riscv64-poky-linux/gcc/14.2.0/temp/log.do_compile.1516845
> Summary: There were 2 ERROR messages, returning a non-zero exit code.
> ```
>
> I have attached the full log below.
> How can I resolve this issue?
> I am using WSL running Ubuntu 22.04 and 5.15.153.1-microsoft-standard-WSL2 
> kernel as the host.
>
> Thanks and Regards,
> Kanak Shilledar
>
> 
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#64340): https://lists.yoctoproject.org/g/yocto/message/64340
Mute This Topic: https://lists.yoctoproject.org/mt/109772609/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to