[MacPorts] #62044: codec2: error: unknown argument: '-no-pie'

MacPorts noreply at macports.org
Tue Jan 12 10:22:25 UTC 2021


#62044: codec2: error: unknown argument: '-no-pie'
--------------------------+----------------------
 Reporter:  chrstphrchvz  |      Owner:  ra1nb0w
     Type:  defect        |     Status:  assigned
 Priority:  Normal        |  Milestone:
Component:  ports         |    Version:  2.6.4
 Keywords:                |       Port:  codec2
--------------------------+----------------------
 `codec2` [https://ports.macports.org/port/codec2/builds currently fails to
 build on macOS 10.8-10.12] because Xcode clang previously did not
 recognize the `-no-pie` option (although those versions likely support
 using `-nopie` instead):

 {{{
 [ 38%] Building C object unittest/CMakeFiles/ofdm_stack.dir/ofdm_stack.c.o
 cd
 /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_audio_codec2/codec2/work/build/unittest
 && /usr/bin/clang -DFLOATING_POINT -DGIT_HASH=\"None\" -DMODEMPROBE_ENABLE
 -DVAR_ARRAYS -DXXXXX -D__UNITTEST__
 -I/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_audio_codec2/codec2/work/build
 -I/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_audio_codec2/codec2/work/codec2-c3c49614467dbab9f155394015f7f30e7ffdfc2f/unittest/../src
 -pipe -Os -DNDEBUG -I/opt/local/include -Wall -Wno-strict-overflow
 -std=gnu11 -fPIC -arch x86_64 -mmacosx-version-min=10.12 -finstrument-
 functions -no-pie -o CMakeFiles/ofdm_stack.dir/ofdm_stack.c.o -c
 /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_audio_codec2/codec2/work/codec2-c3c49614467dbab9f155394015f7f30e7ffdfc2f/unittest/ofdm_stack.c
 clang: error: unknown argument: '-no-pie'
 }}}


 `-no-pie` is hardcoded in
 [https://github.com/drowe67/codec2/blob/c3c49614467dbab9f155394015f7f30e7ffdfc2f/unittest/CMakeLists.txt#L44
 unittest/CMakeLists.txt].

 One workaround would be to use MacPorts' clang (as done on 10.7 and
 earlier). But is there a way (which upstream might incorporate) to use
 `-nopie` instead of `-no-pie` when appropriate?

 (I personally do not use this port.)

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


More information about the macports-tickets mailing list