Opened 16 months ago

Closed 8 weeks ago

#72204 closed defect (fixed)

luametatex @2.11.07 fails to build: error: /opt/local/bin/strip: unrecognized option: -g

Reported by: barracuda156 Owned by: drkp (Dan Ports)
Priority: Normal Milestone:
Component: ports Version: 2.10.5
Keywords: Cc:
Port: luametatex

Description

[100%] Linking C executable luametatex
/opt/local/bin/cmake -E cmake_link_script CMakeFiles/luametatex.dir/link.txt --verbose=ON
/opt/local/bin/gcc-mp-14 -pipe -Os -DNDEBUG -arch ppc -mmacosx-version-min=10.6 -Wl,-search_paths_first -Wl,-headerpad_max_install_names -L/opt/local/lib -Wl,-headerpad_max_install_names CMakeFiles/luametatex.dir/source/luametatex.c.o -o luametatex  -Wl,-rpath,/opt/local/lib libtex.a liblua.a libmp.a libluarest.a libluasocket.a libluaoptional.a libpplib.a libminiz.a libsoftposit.a libpotrace.a -lm
/opt/local/bin/strip -g -S -d -x luametatex
error: /opt/local/bin/strip: unrecognized option: -g
Usage: /opt/local/bin/strip [-AnuSXx] [-] [-d filename] [-s filename] [-R filename] [-o output] file [...] 
make[2]: *** [luametatex] Error 1
make[2]: *** Deleting file `luametatex'
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_tex_luametatex/luametatex/work/luametatex-2.11.07'
make[1]: *** [CMakeFiles/luametatex.dir/all] Error 2

Change History (2)

comment:1 Changed 16 months ago by barracuda156

comment:2 Changed 8 weeks ago by drkp (Dan Ports)

Resolution: fixed
Status: assignedclosed

In c2877951a7d73803acc9988dcef4fb77fe9641dc/macports-ports (master):

luametatex: fix build with gcc (e.g. on PPC/10.5/10.6):

  • Replace GNU ld flag -Wl,-z,stack-size with Apple ld equivalent -Wl,-stack_size,0x280000
  • Replace GNU strip flags (-g -S -d -x) in upstream's post-build strip command with Apple strip compatible flags (-x -S)

Fixes: #74037
Fixes: #72204

Note: See TracTickets for help on using tickets.