[MacPorts] #32994: build of valgrind 3.7.0 on Leopard fails; gcc version not detected properly
MacPorts
noreply at macports.org
Mon Jan 23 04:48:08 PST 2012
#32994: build of valgrind 3.7.0 on Leopard fails; gcc version not detected properly
------------------------------------+---------------------------------------
Reporter: mrosenstihl@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.0.3
Keywords: gcc-4.0 | Port: valgrind
------------------------------------+---------------------------------------
valgrind fails to compile on Leopard with gcc-4.0. The configure script
does not detect the gcc version correctly.
This is the relevant part the attached main.log.
{{{
:info:configure checking dependency style of /usr/bin/gcc-4.0... gcc3
:info:configure checking for diff -u... yes
:info:configure checking for a supported version of gcc... no (686)
:info:configure configure: error: please use gcc >= 3.0 or clang >= 2.9
:info:configure shell command " cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_valgrind/valgrind/work/valgrind-3.7.0"
&& ./configure --prefix=/opt/local --mandir=/opt/local/share/man
--without-mpicc --enable-only32bit " returned error 1
:error:configure Target org.macports.configure returned: configure
failure: shell command failed (see log for details)
:debug:configure Backtrace: configure failure: shell command failed (see
log for details)
while executing
"$procedure $targetname"
:info:configure Warning: the following items did not execute (for
valgrind): org.macports.install org.macports.configure org.macports.build
org.macports.destroot
:notice:configure Log for valgrind is at:
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_valgrind/valgrind/main.log
}}}
If one changes in "configure":
{{{
5132 gcc_version=`${CC} --version \
5133 | head -n 1 \
5134 | $SED 's/i686-apple-darwin10//' \
5135 | $SED 's/i686-apple-darwin11//' \
5136 | $SED 's/^[^0-9]*\([0-9.]*\).*$/\1/'`
}}}
to:
{{{
5132 gcc_version=`${CC} --version \
5133 | head -n 1 \
5134 | $SED 's/i686-apple-darwin9//' \
5135 | $SED 's/i686-apple-darwin10//' \
5136 | $SED 's/i686-apple-darwin11//' \
5137 | $SED 's/^[^0-9]*\([0-9.]*\).*$/\1/'`
}}}
it works.
--
Ticket URL: <https://trac.macports.org/ticket/32994>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list