[Bug build/33848] Build fails at openat2.h, redefinition of 'struct open_how'

adhemerval.zanella at linaro dot org sourceware-bugzilla@sourceware.org
Tue Jan 27 16:32:28 GMT 2026


https://sourceware.org/bugzilla/show_bug.cgi?id=33848

--- Comment #6 from Adhemerval Zanella <adhemerval.zanella at linaro dot org> ---
(In reply to Florian Faber from comment #4)
> Adhemerval,
> 
> it is weird, isn't it.
> 
> ```
> configure --host=arm-linux-gnueabihf --prefix=/
> --with-headers=/path/to/sysroot/usr/include CFLAGS="-D__ARM_ARCH_7A__
> -D__LINUX_ARM_ARCH__=7 -mcpu=cortex-a8 -mfpu=neon -mfloat-abi=hard
> -std=gnu11 -Wno-error=unterminated-string-initialization
> -Wno-error=old-style-definition -Wno-error=shift-count-overflow
> -Wno-error=return-type -Wno-error=implicit-function-declaration
> -fno-if-conversion -fno-late-combine-instructions -funwind-tables -nostdinc
> --sysroot=/path/to/sysroot -isystem /path/to/include -isystem
> /usr/lib/gcc/arm-linux-gnueabihf/15/include-fixed -isystem
> /usr/lib/gcc/arm-linux-gnueabihf/15/include -nostdinc

These extra included seems fishy, you should not require them with a proper
configured cross-toolchain.

> -fstack-clash-protection -fstack-protector-all -fPIE -pie -Wl,-z,relro
> -Wl,-z,now -Wl,-rpath,/lib -ffunction-sections -fdata-sections
> -Wl,--gc-sections -Wno-error=maybe-uninitialized -fno-plt
> -D_GLIBCXX_ASSERTIONS -Wformat -Werror=format-security -fno-exceptions
> -fno-builtin -Wno-error=maybe-uninitialized -fno-plt -D_GLIBCXX_ASSERTIONS
> -Wformat -Werror=format-security -fno-exceptions  -Os -fno-builtin"
> LDFLAGS="--sysroot=/path/to/sysroot -z relro -z now -z relro -z now
> -Wl,-Os,--sort-common,--as-needed,-z,relro,-z,now
> -Wl,-Os,--sort-common,--as-needed,-z,relro,-z,now" --without-selinux
> --disable-man --disable-multi-arch --disable-werror --disable-timezone-tools
> --disable-pt_chown --disable-profile --enable-tunables=no
> --disable-experimental-malloc
> ```

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Glibc-bugs mailing list