bugManeage - Bugs: bug #56243, Building GCC on Mac OS: libiberty...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #56243: Building GCC on Mac OS: libiberty is using clang

Submitter:  Mohammad Akhlaghi <makhlaghi>
Submitted:  Tue 30 Apr 2019 09:37:33 AM UTC
   
 
Category:  Software Severity:  4 - Important
Item Group:  Crash Status:  Postponed
Privacy:  Public Assigned to:  None
Open/Closed:  Open

Fri 08 Nov 2019 12:24:47 PM UTC, comment #1: 

There is a nice wiki-page describing GCC that also has a section for macOS users:
https://wiki.osdev.org/Building_GCC#macOS_Users

It may have some good hints to fix this problem.

Mohammad Akhlaghi <makhlaghi>
Group administrator
Tue 30 Apr 2019 09:37:33 AM UTC, original submission:  

When trying to build GCC from source on a Mac OS system, we get the following error.


libtool: compile:  /myid/reproducible-paper/build/dependencies/gcc-build/./gcc/xgcc -B/myid/reproducible-paper/build/dependencies/gcc-build/./gcc/ -B/myid/reproducible-paper/build/dependencies/installed/x86_64-apple-darwin17.7.0/bin/ -B/myid/reproducible-paper/build/dependencies/installed/x86_64-apple-darwin17.7.0/lib/ -isystem /myid/reproducible-paper/build/dependencies/installed/x86_64-apple-darwin17.7.0/include -isystem /myid/reproducible-paper/build/dependencies/installed/x86_64-apple-darwin17.7.0/sys-include /myid/reproducible-paper/build/dependencies/gcc-8.3.0/libobjc/thr.c -c -I. -I/myid/reproducible-paper/build/dependencies/gcc-8.3.0/libobjc -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -DIN_GCC -DIN_TARGET_LIBS -fno-strict-aliasing -fexceptions -I/myid/reproducible-paper/build/dependencies/gcc-8.3.0/libobjc/../gcc -I/myid/reproducible-paper/build/dependencies/gcc-8.3.0/libobjc/../gcc/config -I../.././gcc -I/myid/reproducible-paper/build/dependencies/gcc-8.3.0/libobjc/../libgcc -I../libgcc -I/myid/reproducible-paper/build/dependencies/gcc-8.3.0/libobjc/../include -o thr.o >/dev/null 2>&1
g++ -std=gnu++98   -g -O2 -DIN_GCC     -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings   -DHAVE_CONFIG_H -DGENERATOR_FILE -fno-PIE -static-libstdc++ -static-libgcc   -o build/genchecksum \
    build/genchecksum.o .././libiberty/libiberty.a
clang: error: unsupported option '-static-libgcc'
make[3]: *** [Makefile;2869: build/genchecksum] Error 1
make[3]: Leaving directory '/myid/reproducible-paper/build/dependencies/gcc-build/gcc'
make[2]: *** [Makefile;4624: all-gcc] Error 2
make[2]: *** Waiting for unfinished jobs....


It is apparently because the final call to `g++' is using the host's compiler (clang which doesn't support `-static-libgcc'). This is strange, because during the configuration step, checks if the compiler is GNU and it says yes! But probably that is because its checking the temporary `/myid/reproducible-paper/build/dependencies/gcc-build/./gcc/xgcc'.

Mohammad Akhlaghi <makhlaghi>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by makhlaghi (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code