musl-cross-make icon indicating copy to clipboard operation
musl-cross-make copied to clipboard

Build Failure: Debian sid gcc 11.2.0

Open beaglesnuf opened this issue 2 years ago • 4 comments

not sure what the issue is here with the unknown option.

cc1: note: self-tests are not enabled in this build cc1plus: note: self-tests are not enabled in this build echo timestamp > s-selftest-c echo timestamp > s-selftest-c++ rm gcc.pod make[3]: Leaving directory '/tmp/build/musl-cross-make/build/local/x86_64-linux-musl/obj_gcc/gcc' make[2]: Leaving directory '/tmp/build/musl-cross-make/build/local/x86_64-linux-musl/obj_gcc' touch obj_gcc/gcc/.lc_built cd obj_musl && ../src_musl/configure --enable-optimize=yes --prefix= --host=x86_64-linux-musl CC="../obj_gcc/gcc/xgcc -B ../obj_gcc/gcc" LIBCC="../obj_gcc/x86_64-linux-musl/libgcc/libgcc.a" checking for C compiler... ../obj_gcc/gcc/xgcc -B ../obj_gcc/gcc checking whether C compiler works... no; compiler output follows: E: ../obj_gcc/gcc/as[108]: exec: --: unknown option make[1]: *** [Makefile:227: obj_musl/.lc_configured] Error 1 make[1]: Leaving directory '/tmp/build/musl-cross-make/build/local/x86_64-linux-musl' make: *** [Makefile:182: all] Error 2

beaglesnuf avatar Apr 18 '22 17:04 beaglesnuf

musl's configure check whether the compiler works fails due to the built assembler having some problem with the passed command line. it would be useful if you could run the compile command musl's configure does using the same xgcc with strace -f. you may also want to join #musl irc on libera.chat so we can help you debug this in realtime. in case you can't, it could be useful to provide the used binutils version, and please don't strip newlines from future pastes, this makes it really difficult to read your log.

rofl0r avatar Apr 18 '22 21:04 rofl0r

Something appears to be wrong with the as wrapper script gcc generated which is in obj_gcc/gcc/as under the build dir for your mcm run.

richfelker avatar Apr 19 '22 01:04 richfelker

...provide the used binutils version, and please don't strip newlines from future pastes, this makes it really difficult to read your log.

2.38 and not sure why the newlines were stripped from a primary paste (but will correct in the future).

Something appears to be wrong with the as wrapper script gcc generated which is in obj_gcc/gcc/as under the build dir for your mcm run.

i'll try removing options one by one and see if that can narrow down the issue.

beaglesnuf avatar Apr 26 '22 13:04 beaglesnuf

2.38

i'm not certain whether that version is actually supported. i think you should stick to one of the versions listed in patches/ directory.

rofl0r avatar Apr 26 '22 16:04 rofl0r