[MacPorts] #69297: luametatex @2.10.08 does not build on PPC Tiger, Mac OS X 10.4.11, because of "cc1: error: unrecognized command line option "-Wno-unused-result""
MacPorts
noreply at macports.org
Sun Mar 31 23:20:51 UTC 2024
#69297: luametatex @2.10.08 does not build on PPC Tiger, Mac OS X 10.4.11, because
of "cc1: error: unrecognized command line option "-Wno-unused-result""
-------------------------+-----------------------
Reporter: ballapete | Owner: drkp
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.9.1
Resolution: | Keywords: ppc tiger
Port: luametatex |
-------------------------+-----------------------
Comment (by ballapete):
Using `GCC7` to build ´luametatex @2.11.02` the compilation goes a bit
further:
{{{
make[2]: Entering directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_tex_luametatex/luametatex/work/luametatex-2.11.02'
[100%] Building C object CMakeFiles/luametatex.dir/source/luametatex.c.o
/opt/local/bin/gcc-mp-7 -DDECNUMDIGITS=1000 -DDECUSE64=1
-DLMT_COMPILER_USED=\"gcc\" -DLMT_HB_TOO=1 -DLMT_KPSE_TOO=1 -DLPEG_DEBUG
-DLUAI_MAXCSTACK=6000 -DLUA_NOBUILTIN -DLUA_UCID -DLUA_USE_DLOPEN
-DLUA_USE_POSIX -DMINIZ_NO_ARCHIVE_APIS=1 -DMINIZ_NO_MALLOC=1
-DMINIZ_NO_STDIO=1 -DNDEBUG=0 -DVERSION=\"1.16\" -DZLIB_CONST=1
-I/opt/local/share/cmake-3.24/source
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_tex_luametatex/luametatex/work/luametatex-2.11.02/source
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_tex_luametatex/luametatex/work/luametatex-2.11.02/.
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_tex_luametatex/luametatex/work/luametatex-2.11.02/source/.
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_tex_luametatex/luametatex/work/luametatex-2.11.02/source/luacore/lua55/src
-pipe -Os -DNDEBUG -arch ppc -mmacosx-version-min=10.4 -O3 -Wall -Wcast-
align -Wcast-qual -Wno-unknown-pragmas -Wno-unused-result -fno-strict-
aliasing -DLUA_CORE -std=gnu11 -MD -MT
CMakeFiles/luametatex.dir/source/luametatex.c.o -MF
CMakeFiles/luametatex.dir/source/luametatex.c.o.d -o
CMakeFiles/luametatex.dir/source/luametatex.c.o -c
/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_tex_luametatex/luametatex/work/luametatex-2.11.02/source/luametatex.c
<command-line>:0:0: warning: "NDEBUG" redefined
<command-line>:0:0: note: this is the location of the previous definition
[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-7 -pipe -Os -DNDEBUG -arch ppc -mmacosx-version-
min=10.4 -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 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_nue.de.rsync.macports.org_macports_release_tarballs_ports_tex_luametatex/luametatex/work/luametatex-2.11.02'
make[1]: *** [CMakeFiles/luametatex.dir/all] Error 2
}}}
The faulty `strip option` is introduced here:
{{{
luametatex-2.11.02/CMakeFiles/luametatex.dir/build.make:111:
/opt/local/bin/strip -g -S -d -x luametatex
}}}
`-x` is another faulty `strip option`. After correcting the switches and
rebuilding the `luametatex` executable it built and installed:
{{{
port installed -v luametatex
The following ports are currently installed:
luametatex @2.11.02_0 (active) requested_variants='' platform='darwin 8'
archs='ppc' date='2024-04-01T01:09:18+0200'
}}}
--
Ticket URL: <https://trac.macports.org/ticket/69297#comment:5>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list