[MacPorts] #54124: guile @2.2.2 won't build on PPC Leopard, Mac OS X 10.5.8, because is uses non-existing /lib/cpp as C preprocessor
MacPorts
noreply at macports.org
Sun May 7 07:28:29 UTC 2017
#54124: guile @2.2.2 won't build on PPC Leopard, Mac OS X 10.5.8, because is uses
non-existing /lib/cpp as C preprocessor
-----------------------+-------------------
Reporter: ballapete | Owner:
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.4.1
Keywords: Leopard | Port: guile
-----------------------+-------------------
{{{
checking dependency style of /usr/bin/gcc-4.2... gcc3
checking how to enable C11 support... -std=gnu11
checking how to run the C preprocessor... /lib/cpp
configure: error: in
`/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_guile/guile/work/guile-2.2.2':
configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details
Command failed: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_guile/guile/work/guile-2.2.2"
&& ./configure --prefix=/opt/local CPPFLAGS="-I/opt/local/include"
LDFLAGS="-L/opt/local/lib" --infodir="/opt/local/share/info"
--mandir="/opt/local/share/man" --enable-regex --disable-error-on-warning
--disable-silent-rules --host=powerpc-apple-darwin9 --build=powerpc-apple-
darwin9
Exit code: 1
Error: Failed to configure guile, consult
/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_guile/guile/work/guile-2.2.2/config.log
Error: Failed to configure guile: configure failure: command execution
failed
DEBUG: Error code: NONE
DEBUG: Backtrace: configure failure: command execution failed
}}}
In `config.log` one can find:
{{{
configure:6228: /lib/cpp -I/opt/local/include conftest.c
./configure: line 3037: /lib/cpp: No such file or directory
}}}
`configure` knows this `influential environment variable`:
{{{
CPP C preprocessor
}}}
This can be fixed in Portfile, see attached patch file.
--
Ticket URL: <https://trac.macports.org/ticket/54124>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list