Langdale branch is not compatible with ubuntu-24.04.
https://github.com/yoctoproject/poky/blob/langdale/meta-poky/conf/distro/poky.conf#L41
An old, unsupported branch full of vulnerabilities is probably not the best one 
to start with.
So ideally update to something newer (e.g. scarthgap which is the newest LTS 
branch).

Peter

From: yocto@lists.yoctoproject.org <yocto@lists.yoctoproject.org> On Behalf Of 
jesse_borders via lists.yoctoproject.org
Sent: Friday, November 1, 2024 17:57
To: yocto@lists.yoctoproject.org
Subject: [yocto] Yocto Xilinx Failing GCC with _GNU_SOURCE

This is my first post so please let me know if I am giving enough information 
to answer my question.  This is also my first yocto build so I am a NOOB here 
and any help would be greatly apricated.

I am running ` bitbake gcc-runtime` to build gcc which keep failing with the 
redefinition error below.  I do not have any local modifications so I would 
expect to it work.  I am working on building a clean base image for a ZedMicro 
board as a development platform.

Thank you for all of your help!

Build Configuration:
BB_VERSION           = "2.2.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "ubuntu-24.04"
TARGET_SYS           = "arm-poky-linux-gnueabi"
MACHINE              = "microzed-zynq7"
DISTRO               = "poky"
DISTRO_VERSION       = "4.1.4"
TUNE_FEATURES        = "arm vfp cortexa9 neon thumb callconvention-hard"
TARGET_FPU           = "hard"
XILINX_XSCT_VERSION  = "2024.1"
SOC_VARIANT          = "7z"
XILINX_RELEASE_VERSION = "v2024.1"
meta
meta-poky
meta-yocto-bsp       = "langdale:3e95f268ce04b49ba6731fd4bbc53b1693c21963"
meta-xilinx-tools    = "langdale:1b5a45eb94ebed00eea3e5915b9171a2c1ed9d0e"
meta-xilinx-core
meta-xilinx-bsp
meta-xilinx-vendor
meta-xilinx-standalone = "langdale:de3eefaa7037dadbf566c1542da27a79eaae648d"
meta-oe
meta-filesystems     = "langdale:cbbaa82238cd60f08c9b9cb58dde59d5f9318c7b"
meta-clang           = "langdale:5a7a3335c92fb1b9375ee1b470264bd24a428c83"

2.0-r0/gcc-12.2.0/libgomp/config/linux/ptrlock.c  -fPIC -DPIC -o .libs/ptrlock.o
| In file included from 
~/Code/poky/build/tmp/work-shared/gcc-12.2.0-r0/gcc-12.2.0/libgomp/config/linux/wait.h:46,
|                  from 
~/Code/poky/build/tmp/work-shared/gcc-12.2.0-r0/gcc-12.2.0/libgomp/config/linux/bar.c:31:
| 
~/Code/poky/build/tmp/work-shared/gcc-12.2.0-r0/gcc-12.2.0/libgomp/config/linux/futex.h:36:
 error: "_GNU_SOURCE" redefined [-Werror]
|    36 | #define _GNU_SOURCE
|       |
| <command-line>: note: this is the location of the previous definition
| In file included from 
~/Code/poky/build/tmp/work-shared/gcc-12.2.0-r0/gcc-12.2.0/libgomp/config/linux/wait.h:46,
|                  from 
~/Code/poky/build/tmp/work-shared/gcc-12.2.0-r0/gcc-12.2.0/libgomp/config/linux/mutex.c:30:
| 
~/Code/poky/build/tmp/work-shared/gcc-12.2.0-r0/gcc-12.2.0/libgomp/config/linux/futex.h:36:
 error: "_GNU_SOURCE" redefined [-Werror]
|    36 | #define _GNU_SOURCE
|       |
| <command-line>: note: this is the location of the previous definition
| In file included from 
~/Code/poky/build/tmp/work-shared/gcc-12.2.0-r0/gcc-12.2.0/libgomp/config/linux/wait.h:46,
|                  from 
~/Code/poky/build/tmp/work-shared/gcc-12.2.0-r0/gcc-12.2.0/libgomp/config/linux/sem.c:30:
| 
~/Code/poky/build/tmp/work-shared/gcc-12.2.0-r0/gcc-12.2.0/libgomp/config/linux/futex.h:36:
 error: "_GNU_SOURCE" redefined [-Werror]
|    36 | #define _GNU_SOURCE
|       |
| <command-line>: note: this is the location of the previous definition


12.2.0-r0/gcc-12.2.0/libgomp/task.c -o task.o >/dev/null 2>&1
| make[2]: Leaving directory 
'~/Code/poky/build/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/gcc-runtime/12.2.0-r0/gcc-12.2.0/build.arm-poky-linux-gnueabi.arm-poky-linux-gnueabi/arm-poky-linux-gnueabi/libgomp'
| make[1]: *** [Makefile:1022: all-recursive] Error 1
| make[1]: Leaving directory 
'~/Code/poky/build/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/gcc-runtime/12.2.0-r0/gcc-12.2.0/build.arm-poky-linux-gnueabi.arm-poky-linux-gnueabi/arm-poky-linux-gnueabi/libgomp'
| make: *** [Makefile:622: all] Error 2
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
ERROR: Task 
(~/Code/poky/meta/recipes-devtools/gcc/gcc-runtime_12.2.bb:do_compile) failed 
with exit code '1'
NOTE: Tasks Summary: Attempted 620 tasks of which 614 didn't need to be rerun 
and 1 failed.
Summary: 1 task failed:
  ~/Code/poky/meta/recipes-devtools/gcc/gcc-runtime_12.2.bb:do_compile
Summary: There was 1 WARNING message.
Summary: There were 2 ERROR messages, returning a non-zero exit code.
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#64208): https://lists.yoctoproject.org/g/yocto/message/64208
Mute This Topic: https://lists.yoctoproject.org/mt/109382699/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to