bitthief / openwrt

Linux distribution for embedded devices
https://openwrt.org
Other
44 stars 5 forks source link

package/libs/elfutils failed to build #6

Closed tm4dev closed 1 year ago

tm4dev commented 2 years ago

Hi, I compiled with your config, plus mwan3 support, but it failed here. Removing mwan3 makes it continue to compile (I tried multiple times)

configure: loading site script /home/ubuntu/owrt/include/site/aarch64 checking for a BSD-compatible install... /home/ubuntu/owrt/staging_dir/host/bin/install -c checking whether build environment is sane... yes checking for aarch64-openwrt-linux-strip... aarch64-openwrt-linux-musl-strip checking for a thread-safe mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether to enable maintainer-specific portions of Makefiles... no checking whether make supports nested variables... (cached) yes checking build system type... aarch64-unknown-linux-gnu checking host system type... aarch64-openwrt-linux-gnu checking for style of include used by make... GNU checking for aarch64-openwrt-linux-gcc... aarch64-openwrt-linux-musl-gcc checking whether the C compiler works... no configure: error: in /home/ubuntu/owrt/build_dir/target-aarch64_cortex-a53_musl/elfutils-0.186': configure: error: C compiler cannot create executables Seeconfig.log' for more details make[3]: [Makefile:118: /home/ubuntu/owrt/build_dir/target-aarch64_cortex-a53_musl/elfutils-0.186/.configured_a17fb5ef857664f03cd0ce37cc5ea591] Error 77 make[3]: Leaving directory '/home/ubuntu/owrt/package/libs/elfutils' time: package/libs/elfutils/compile#4.62#0.44#5.94 ERROR: package/libs/elfutils failed to build. make[2]: [package/Makefile:116: package/libs/elfutils/compile] Error 1 make[2]: Leaving directory '/home/ubuntu/owrt' make[1]: [package/Makefile:110: /home/ubuntu/owrt/staging_dir/target-aarch64_cortex-a53_musl/stamp/.package_compile] Error 2 make[1]: Leaving directory '/home/ubuntu/owrt' make: [/home/ubuntu/owrt/include/toplevel.mk:230: world] Error 2

xsm1997 commented 2 years ago

Delete -Wuse-after-free=1 in package/libs/elfutils/Makefile at line 84.

This gcc flag is not recognized by the gcc being built.

xsm1997 commented 2 years ago

@bitthief Maybe you can change this in the repo?

tm4dev commented 2 years ago

Delete -Wuse-after-free=1 in package/libs/elfutils/Makefile at line 84.

This gcc flag is not recognized by the gcc being built.

thanks!!