[MacPorts] #63232: gcc7 @7.5.0_2: ld: unknown option: -no_pie

MacPorts noreply at macports.org
Thu Jul 8 06:17:37 UTC 2021


#63232: gcc7 @7.5.0_2: ld: unknown option: -no_pie
---------------------+--------------------
 Reporter:  kencu    |      Owner:  (none)
     Type:  defect   |     Status:  new
 Priority:  Normal   |  Milestone:
Component:  ports    |    Version:
 Keywords:  leopard  |       Port:  gcc7
---------------------+--------------------
 After the application of i386 fixes when bootstrapping gcc using clang,
 that worked so nicely on 10.6, I am disappointed to see this on 10.5 Tiger
 Intel:
 {{{
 :info:build /usr/bin/g++-4.2 -arch i386 -std=gnu++98   -g -DIN_GCC
 -fno-strict-aliasing -fno-exceptions -fno-rtti -fasynchronous-unwind-
 tables -W -Wall -Wwrite-strings -Wcast-qual -Wno-format -Wmissing-format-
 attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-
 macros -Wno-overlength-strings -fno-common  -DHAVE_CONFIG_H
 -DGENERATOR_FILE -fno-PIE -fPIC -L/opt/local/lib
 -Wl,-headerpad_max_install_names -Wl,-no_pie -o build/genenums \
 :info:build         build/genenums.o build/read-md.o build/errors.o
 ../build-i386-apple-darwin9/libiberty/libiberty.a
 :info:build ld: unknown option: -no_pie
 }}}

 Obviously, we have a bit more work to do. Exactly why this is happening on
 10.5 but not on 10.6 with what appears to be the same linker version
 remains to be discovered.

-- 
Ticket URL: <https://trac.macports.org/ticket/63232>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list