[MacPorts] #63469: gcc @7.5.0_2: Fails to link projects compiled with -fstack-protector-strong
MacPorts
noreply at macports.org
Fri Sep 10 21:48:05 UTC 2021
#63469: gcc @7.5.0_2: Fails to link projects compiled with -fstack-protector-strong
--------------------------+--------------------
Reporter: evanmiller | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.7.1
Resolution: | Keywords:
Port: gcc7 cmocka |
--------------------------+--------------------
Comment (by evanmiller):
Following your instructions, before the undefined symbol error I see
{{{
/opt/local/bin/gcc-mp-7 -pipe -Os -DNDEBUG -I/opt/local/include -arch ppc
-mmacosx-version-min=10.4 -dynamiclib -Wl,-v
-Wl,-headerpad_max_install_names -L/opt/local/lib
-Wl,-headerpad_max_install_names -current_version 0.7.0 -o
libcmocka.0.7.0.dylib -install_name /opt/local/lib/libcmocka.0.dylib
CMakeFiles/cmocka.dir/cmocka.c.o
collect2 version 7.5.0
/opt/local/bin/ld -dynamic -dylib -dylib_current_version 0.7.0 -arch ppc
-dylib_install_name /opt/local/lib/libcmocka.0.dylib -macosx_version_min
10.4 -weak_reference_mismatches non-weak -o libcmocka.0.7.0.dylib
-ldylib1.o -L/opt/local/lib -L/opt/local/lib/gcc7/gcc/ppc-apple-
darwin8/7.5.0 -L/opt/local/lib/gcc7/gcc/ppc-apple-darwin8/7.5.0/../../..
-v -headerpad_max_install_names -headerpad_max_install_names
CMakeFiles/cmocka.dir/cmocka.c.o -lgcc_s.10.4 -lgcc_ext.10.4 -lgcc
-lSystemStubs -lSystem -lef_ppc
@(#)PROGRAM:ld PROJECT:ld64-97.17
configured to support archs: i386 x86_64 ppc ppc64 armv6 armv7
Library search paths:
/opt/local/lib
/opt/local/lib/gcc7/gcc/ppc-apple-darwin8/7.5.0
/opt/local/lib/gcc7
/usr/lib
/usr/local/lib
Framework search paths:
/Library/Frameworks/
/System/Library/Frameworks/
}}}
So it looks like the search paths are correct but {{{-lssp}}} is not being
passed in for whatever reason.
--
Ticket URL: <https://trac.macports.org/ticket/63469#comment:18>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list