Created attachment 44420 [details]
I try to build gcc 8.1.0 from source on a Mac with OS 10.9.5.
Build fails with following error (see end of attached gcc-make-output.txt):
A linker snapshot was created at:
ld: Assertion failed: (cfiStartsArray[i] != cfiStartsArray[i-1]), function parse, file /SourceCache/ld64/ld64-241.9/src/ld/parsers/macho_relocatable_file.cpp, line 1745.
collect2: error: ld returned 1 exit status
make: *** [libgcc_s.dylib] Error 1
make: *** [all-stage1-target-libgcc] Error 2
make: *** [stage1-bubble] Error 2
make: *** [all] Error 2
I tried on two different Mac with OS 10.9.5, I even did a clean install of OS 10.9.5 and the developer tools, I run always in the same error.
I can build gcc 7.3.0 with OS 10.9.5, or gcc 8.1.0 with OS 10.13 without any error.
I attached the output of:
$ ../configure --prefix=/usr/local/gcc-8.1 \
> --with-gmp=/usr/local/gcc-8.1 \
> --with-mpfr=/usr/local/gcc-8.1 \
> --with-mpc=/usr/local/gcc-8.1 \
> --enable-languages=c,c++,fortran \
> --with-isl=/usr/local/gcc-8.1 \
> --program-suffix=-8.1 &> gcc-conf-output.txt
If needed I can also send the complete output of make (large!)
and the mentioned /tmp/libgcc_s.dylib-2018-06-23-105655.ld-snapshot.
dup of bug 82092
*** This bug has been marked as a duplicate of bug 82092 ***