https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93523

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |build
             Target|aarch64-alpine-linux-musl   |
             Status|WAITING                     |RESOLVED
          Component|c                           |bootstrap
               Host|x86_64                      |
         Resolution|---                         |INVALID

--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Actually wait, something is definitely wrong here:

configure:3529:
/home/buildozer/aports/main/gcc/src/build-cross-pass2/./gcc/xgcc
-B/home/buildozer/aports/main/gcc/src/build-cross-pass2/./gcc/
-B/usr/aarch64-alpine-linux-musl/bin/ -B/usr/aarch64-alpine-linux-musl/lib/
-isystem /usr/aarch64-alpine-linux-musl/include -isystem
/usr/aarch64-alpine-linux-musl/sys-include    -o conftest    conftest.c  >&5
/usr/aarch64-alpine-linux-musl/bin/as: line 1: ELFTш@ре@8: not found
/usr/aarch64-alpine-linux-musl/bin/as: line 1: syntax error: unterminated
quoted string

It is picking up the assembler that which seems like is an aarch64 binary
rather than the x86_64 binary.

This must be a bug in your build script.



configure:14793: checking where to find the target ld
configure:14821: result: pre-installed in /usr/aarch64-alpine-linux-musl/bin
configure:14835: checking where to find the target lipo
configure:14861: result: pre-installed
configure:14866: checking where to find the target nm
configure:14894: result: pre-installed in /usr/aarch64-alpine-linux-musl/bin
configure:14908: checking where to find the target objcopy
configure:14936: result: pre-installed in /usr/aarch64-alpine-linux-musl/bin
configure:14950: checking where to find the target objdump
configure:14978: result: pre-installed in /usr/aarch64-alpine-linux-musl/bin
configure:14992: checking where to find the target otool
configure:15018: result: pre-installed
configure:15023: checking where to find the target ranlib
configure:15051: result: pre-installed in /usr/aarch64-alpine-linux-musl/bin
configure:15065: checking where to find the target readelf
configure:15093: result: pre-installed in /usr/aarch64-alpine-linux-musl/bin
configure:15107: checking where to find the target strip
configure:15135: result: pre-installed in /usr/aarch64-alpine-linux-musl/bin
configure:15149: checking where to find the target windres

That is the normal place to put the x86_64 binaries that target that target. 
NOT the target binaries.

THIS IS NOT A GCC BUG but rather you have done something really really bad with
your file system and/or the build scripts.

Reply via email to