[MacPorts] #50198: xkbcomp - Compilation failure on OSX 10.11
MacPorts
noreply at macports.org
Sun Jan 31 04:46:03 PST 2016
#50198: xkbcomp - Compilation failure on OSX 10.11
-----------------------+------------------------
Reporter: jonesc@… | Owner: jeremyhu@…
Type: defect | Status: reopened
Priority: Normal | Milestone:
Component: ports | Version: 2.3.4
Resolution: | Keywords:
Port: xkbcomp |
-----------------------+------------------------
Changes (by land.apfel@…):
* status: closed => reopened
* resolution: fixed =>
Comment:
With r144808 xkbcomp does not compile on Mac OS X 10.5 anymore (probably
also 10.4, maybe also later versions of OS X).
{{{
$ sudo port -v upgrade xkbcomp
---> Computing dependencies for xkbcomp.
---> Configuring xkbcomp
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /opt/local/bin/gmkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for style of include used by make... GNU
checking for gcc... ccache /usr/bin/gcc-4.2
checking whether the C compiler works... no
configure: error: in
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_x11_xkbcomp/xkbcomp/work/xkbcomp-1.3.1':
configure: error: C compiler cannot create executables
See `config.log' for more details
Command failed: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_x11_xkbcomp/xkbcomp/work/xkbcomp-1.3.1"
&& ./configure --prefix=/opt/local --disable-silent-rules
Exit code: 77
Error: Failed to configure xkbcomp, consult
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_x11_xkbcomp/xkbcomp/work/xkbcomp-1.3.1/config.log
Error: org.macports.configure for port xkbcomp returned: configure
failure: command execution failed
Warning: targets not executed for xkbcomp: org.macports.install
org.macports.configure org.macports.build org.macports.destroot
[...]
}}}
In the config.log (attachment:config-leopard-ppc7450.log) it says:
{{{
configure:3212: checking whether the C compiler works
configure:3234: ccache /usr/bin/gcc-4.2 -pipe -Os -Wno-string-compare
-arch ppc -I/opt/local/include -L/opt/local/lib
-Wl,-headerpad_max_install_names -arch ppc conftest.c >&5
cc1: error: unrecognized command line option "-Wno-string-compare"
configure:3238: $? = 1
configure:3276: result: no
}}}
If I remove the lines added by r144808 from my Portfile I can upgrade
successfully.
Would it be possible to only add -Wno-string-compare if needed by the
compiler?
--
Ticket URL: <https://trac.macports.org/ticket/50198#comment:7>
MacPorts <https://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list