Opened 9 years ago

Closed 8 years ago

#30777 closed defect (fixed)

p5-sgml-parser-opensp @0.994_2 build fails if selected gcc is mp-gcc45

Reported by: mndavidoff (Monte Davidoff) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.0.1
Keywords: Cc:
Port: p5-sgml-parser-opensp

Description

The p5-sgml-parser-opensp build fails if the selected gcc is mp-gcc45.

$ port installed name:gcc45
The following ports are currently installed:
  gcc45 @4.5.3_0 (active)
$ sudo port select --set gcc mp-gcc45
Selecting 'mp-gcc45' for 'gcc' succeeded. 'mp-gcc45' is now active.'
$ hash -r
$ port select --show gcc
The currently selected version for 'gcc' is 'mp-gcc45'.
$ g++ --version
g++ (GCC) 4.5.3
...
$ sudo port -vs install p5-sgml-parser-opensp
--->  Computing dependencies for p5-sgml-parser-opensp.
--->  Fetching p5-sgml-parser-opensp
--->  Verifying checksum(s) for p5-sgml-parser-opensp
--->  Checksumming SGML-Parser-OpenSP-0.994.tar.gz
--->  Extracting p5-sgml-parser-opensp
--->  Extracting SGML-Parser-OpenSP-0.994.tar.gz
--->  Configuring p5-sgml-parser-opensp
Checking if your kit is complete...
Looks good
Note (probably harmless): No library found for -lstdc++
Writing Makefile for SGML::Parser::OpenSP
Writing MYMETA.yml
--->  Building p5-sgml-parser-opensp
make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_perl_p5-sgml-parser-opensp/p5-sgml-parser-opensp/work/SGML-Parser-OpenSP-0.994'
/opt/local/bin/perl /opt/local/lib/perl5/vendor_perl/5.14.1/ExtUtils/xsubpp  -C++ -typemap /opt/local/lib/perl5/5.14.1/ExtUtils/typemap -typemap typemap  OpenSP.xs > OpenSP.xsc && mv OpenSP.xsc OpenSP.c
cp lib/SGML/Parser/OpenSP.pm blib/lib/SGML/Parser/OpenSP.pm
cp lib/SGML/Parser/OpenSP/Tools.pm blib/lib/SGML/Parser/OpenSP/Tools.pm
Running Mkbootstrap for SGML::Parser::OpenSP ()
chmod 644 OpenSP.bs
cp OpenSP.bs blib/arch/auto/SGML/Parser/OpenSP/OpenSP.bs
g++ -c   -pipe -O2 -arch x86_64 -fno-common -DPERL_DARWIN -I/opt/local/include -no-cpp-precomp -fno-strict-aliasing -fstack-protector -I/opt/local/include -O3   -DVERSION=\"0.994\" -DXS_VERSION=\"0.994\"  "-I/opt/local/lib/perl5/5.14.1/darwin-multi-2level/CORE"  -DSP_MULTI_BYTE=1 OpenSP.c
chmod 644 blib/arch/auto/SGML/Parser/OpenSP/OpenSP.bs
g++: unrecognized option '-no-cpp-precomp'
cc1plus: error: unrecognized command line option "-arch"
make: *** [OpenSP.o] Error 1
make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_perl_p5-sgml-parser-opensp/p5-sgml-parser-opensp/work/SGML-Parser-OpenSP-0.994'
shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_perl_p5-sgml-parser-opensp/p5-sgml-parser-opensp/work/SGML-Parser-OpenSP-0.994" && /usr/bin/make -j2 -w all " returned error 2
Error: Target org.macports.build returned: shell command failed (see log for details)
Warning: the following items did not execute (for p5-sgml-parser-opensp): org.macports.activate org.macports.build org.macports.destroot org.macports.install
Log for p5-sgml-parser-opensp is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_perl_p5-sgml-parser-opensp/p5-sgml-parser-opensp/main.log
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>

If no MacPorts gcc is selected, the build of p5-sgml-parser-opensp succeeds.

$ sudo port select --set gcc none
Selecting 'none' for 'gcc' succeeded. 'none' is now active.
$ hash -r
$ port select --show gcc
The currently selected version for 'gcc' is 'none'.
$ g++ --version
i686-apple-darwin10-g++-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3)
...
$ sudo port -vs install p5-sgml-parser-opensp

I suggest the correct build of p5-sgml-parser-opensp should not depend on which gcc I have selected as my default.

Mac OS X 10.6.8, Xcode 3.2.6.

Change History (2)

comment:1 Changed 9 years ago by ryandesign (Ryan Schmidt)

The port needs to be updated to ensure it is UsingTheRightCompiler.

comment:2 Changed 8 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.