Opened 15 years ago

Closed 14 years ago

#23377 closed defect (fixed)

muparser fails to build on 10.6.2 on Mac Pro when +universal is used

Reported by: celemourn@… Owned by: mww@…
Priority: Normal Milestone:
Component: ports Version: 1.8.2
Keywords: Cc:
Port: muparser

Description (last modified by mf2k (Frank Schima))

System is a late 2009 Mac Pro 8 core. I can provide more details if needed. By extension, the package qtiplot also will fail to build, due to dependancy. The package WILL build without the +universal tag. Output from build as follows:

Port command started with PID 89855
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/math/muparser
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/math/muparser
DEBUG: OS Platform: darwin
DEBUG: OS Version: 10.2.0
DEBUG: Mac OS X Version: 10.6
DEBUG: System Arch: i386
DEBUG: setting option os.universal_supported to yes
DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided
DEBUG: adding the default universal variant
DEBUG: Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/variant_descriptions.conf
DEBUG: Requested variant darwin is not provided by port muparser.
DEBUG: Requested variant i386 is not provided by port muparser.
DEBUG: Requested variant macosx is not provided by port muparser.
DEBUG: Executing variant universal provides universal
DEBUG: Attempting ln -sf /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_math_muparser/work /opt/local/var/macports/sources/rsync.macports.org/release/ports/math/muparser/work
Computing dependencies for muparser
DEBUG: Executing org.macports.main (muparser)
Fetching muparser
DEBUG: Executing org.macports.fetch (muparser)
Verifying checksum(s) for muparser
DEBUG: Executing org.macports.checksum (muparser)
Checksumming muparser_v130.tar.gz
DEBUG: Correct (sha1) checksum for muparser_v130.tar.gz
Extracting muparser
DEBUG: Executing org.macports.extract (muparser)
Extracting muparser_v130.tar.gz
DEBUG: setting option extract.args to /opt/local/var/macports/distfiles/muparser/muparser_v130.tar.gz
DEBUG: Environment: MACOSX_DEPLOYMENT_TARGET='10.6'
DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_math_muparser/work" && /usr/bin/gzip -dc /opt/local/var/macports/distfiles/muparser/muparser_v130.tar.gz | /usr/bin/gnutar --no-same-owner -xf -'
DEBUG: Executing org.macports.patch (muparser)
Applying patches to muparser
Applying /opt/local/var/macports/sources/rsync.macports.org/release/ports/math/muparser/files/patch-Makefile.in.diff
DEBUG: Environment: MACOSX_DEPLOYMENT_TARGET='10.6'
DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_math_muparser/work/muparser" && /usr/bin/patch -p0'
patching file Makefile.in
Configuring muparser
DEBUG: Using compiler 'Mac OS X gcc 4.2'
DEBUG: Executing org.macports.configure (muparser)
DEBUG: Environment: CFLAGS='-O2 -arch ppc -arch i386' CPPFLAGS='-I/opt/local/include' CXXFLAGS='-O2 -arch ppc -arch i386' MACOSX_DEPLOYMENT_TARGET='10.6' CXX='/usr/bin/g++-4.2' F90FLAGS='-O2' LDFLAGS='-L/opt/local/lib -arch ppc -arch i386' OBJC='/usr/bin/gcc-4.2' FCFLAGS='-O2' INSTALL='/usr/bin/install -c' OBJCFLAGS='-O2 -arch ppc -arch i386' FFLAGS='-O2' CC='/usr/bin/gcc-4.2'
DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_math_muparser/work/muparser" && ./configure --prefix=/opt/local --disable-dependency-tracking'
checking build system type... i386-apple-darwin10.2.0
checking host system type... i386-apple-darwin10.2.0
checking target system type... i386-apple-darwin10.2.0
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for ranlib... ranlib
checking for gcc... /usr/bin/gcc-4.2
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /usr/bin/gcc-4.2 accepts -g... yes
checking for /usr/bin/gcc-4.2 option to accept ISO C89... none needed
checking whether we are using the GNU C++ compiler... yes
checking whether /usr/bin/g++-4.2 accepts -g... yes
checking how to run the C++ preprocessor... /usr/bin/g++-4.2 -E
checking for the --enable-debug option... no
checking for the --enable-shared option... yes
checking for the --enable-samples option... yes
checking for ranlib... (cached) ranlib
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking whether make sets $(MAKE)... yes
checking for ar... ar
checking for strip... strip
checking for nm... nm
checking if make is GNU make... yes
checking for gcc 3.1 or later... yes
checking for dependency tracking method... disabled
checking for Rez... Rez
checking for SetFile... SetFile
configure: creating ./config.status
config.status: creating Makefile
config.status: creating build/autoconf/muparser.pc
 ----------------------------------------------------------------
  Configuration for muParser 1.27 successfully completed.
  Summary of main configuration settings for muParser:
  - SHARED mode
  - RELEASE build
  - SAMPLES enabled
  Now, just run make.
 ----------------------------------------------------------------
Building muparser
DEBUG: Executing org.macports.build (muparser)
DEBUG: port disallows a parallel build
DEBUG: Environment: MACOSX_DEPLOYMENT_TARGET='10.6'
DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_math_muparser/work/muparser" && /usr/bin/make all'
/usr/bin/g++-4.2 -c -o muParser_dll_muParserBytecode.o -DNDEBUG -DMUPARSER_DLL -DMUPARSERLIB_EXPORTS -I./include -dynamic -fPIC -DPIC  -O2 -fno-common ./src/muParserBytecode.cpp
/usr/bin/g++-4.2 -c -o muParser_dll_muParserTest.o -DNDEBUG -DMUPARSER_DLL -DMUPARSERLIB_EXPORTS -I./include -dynamic -fPIC -DPIC  -O2 -fno-common ./src/muParserTest.cpp
/usr/bin/g++-4.2 -c -o muParser_dll_muParser.o -DNDEBUG -DMUPARSER_DLL -DMUPARSERLIB_EXPORTS -I./include -dynamic -fPIC -DPIC  -O2 -fno-common ./src/muParser.cpp
/usr/bin/g++-4.2 -c -o muParser_dll_muParserDLL.o -DNDEBUG -DMUPARSER_DLL -DMUPARSERLIB_EXPORTS -I./include -dynamic -fPIC -DPIC  -O2 -fno-common ./src/muParserDLL.cpp
/usr/bin/g++-4.2 -c -o muParser_dll_muParserInt.o -DNDEBUG -DMUPARSER_DLL -DMUPARSERLIB_EXPORTS -I./include -dynamic -fPIC -DPIC  -O2 -fno-common ./src/muParserInt.cpp
/usr/bin/g++-4.2 -c -o muParser_dll_muParserTokenReader.o -DNDEBUG -DMUPARSER_DLL -DMUPARSERLIB_EXPORTS -I./include -dynamic -fPIC -DPIC  -O2 -fno-common ./src/muParserTokenReader.cpp
/usr/bin/g++-4.2 -c -o muParser_dll_muParserError.o -DNDEBUG -DMUPARSER_DLL -DMUPARSERLIB_EXPORTS -I./include -dynamic -fPIC -DPIC  -O2 -fno-common ./src/muParserError.cpp
/usr/bin/g++-4.2 -c -o muParser_dll_muParserCallback.o -DNDEBUG -DMUPARSER_DLL -DMUPARSERLIB_EXPORTS -I./include -dynamic -fPIC -DPIC  -O2 -fno-common ./src/muParserCallback.cpp
/usr/bin/g++-4.2 -c -o muParser_dll_muParserBase.o -DNDEBUG -DMUPARSER_DLL -DMUPARSERLIB_EXPORTS -I./include -dynamic -fPIC -DPIC  -O2 -fno-common ./src/muParserBase.cpp
./src/muParserBase.cpp:59: warning: deprecated conversion from string constant to 'mu::char_type*'
./src/muParserBase.cpp:59: warning: deprecated conversion from string constant to 'mu::char_type*'
./src/muParserBase.cpp:59: warning: deprecated conversion from string constant to 'mu::char_type*'
./src/muParserBase.cpp:59: warning: deprecated conversion from string constant to 'mu::char_type*'
./src/muParserBase.cpp:59: warning: deprecated conversion from string constant to 'mu::char_type*'
./src/muParserBase.cpp:59: warning: deprecated conversion from string constant to 'mu::char_type*'
./src/muParserBase.cpp:59: warning: deprecated conversion from string constant to 'mu::char_type*'
./src/muParserBase.cpp:59: warning: deprecated conversion from string constant to 'mu::char_type*'
./src/muParserBase.cpp:59: warning: deprecated conversion from string constant to 'mu::char_type*'
./src/muParserBase.cpp:59: warning: deprecated conversion from string constant to 'mu::char_type*'
./src/muParserBase.cpp:59: warning: deprecated conversion from string constant to 'mu::char_type*'
./src/muParserBase.cpp:59: warning: deprecated conversion from string constant to 'mu::char_type*'
./src/muParserBase.cpp:59: warning: deprecated conversion from string constant to 'mu::char_type*'
./src/muParserBase.cpp:59: warning: deprecated conversion from string constant to 'mu::char_type*'
./src/muParserBase.cpp:59: warning: deprecated conversion from string constant to 'mu::char_type*'
./src/muParserBase.cpp:59: warning: deprecated conversion from string constant to 'mu::char_type*'
./src/muParserBase.cpp:59: warning: deprecated conversion from string constant to 'mu::char_type*'
/usr/bin/g++-4.2 -dynamiclib -single_module -headerpad_max_install_names -o lib/libmuparser.0.0.0.dylib muParser_dll_muParserBytecode.o muParser_dll_muParserTest.o muParser_dll_muParser.o muParser_dll_muParserDLL.o muParser_dll_muParserInt.o muParser_dll_muParserTokenReader.o muParser_dll_muParserError.o muParser_dll_muParserCallback.o muParser_dll_muParserBase.o -L/opt/local/lib -arch ppc -arch i386  -install_name /opt/local/lib/libmuparser.0.dylib   -compatibility_version 1 -current_version 1  
ld: warning: in muParser_dll_muParserBytecode.o, file is not of required architecture
ld: warning: in muParser_dll_muParserTest.o, file is not of required architecture
ld: warning: in muParser_dll_muParser.o, file is not of required architecture
ld: warning: in muParser_dll_muParserDLL.o, file is not of required architecture
ld: warning: in muParser_dll_muParserInt.o, file is not of required architecture
ld: warning: in muParser_dll_muParserTokenReader.o, file is not of required architecture
ld: warning: in muParser_dll_muParserError.o, file is not of required architecture
ld: warning: in muParser_dll_muParserCallback.o, file is not of required architecture
ld: warning: in muParser_dll_muParserBase.o, file is not of required architecture
ld: warning: in muParser_dll_muParserBytecode.o, file is not of required architecture
ld: warning: in muParser_dll_muParserTest.o, file is not of required architecture
ld: warning: in muParser_dll_muParser.o, file is not of required architecture
ld: warning: in muParser_dll_muParserDLL.o, file is not of required architecture
ld: warning: in muParser_dll_muParserInt.o, file is not of required architecture
ld: warning: in muParser_dll_muParserTokenReader.o, file is not of required architecture
ld: warning: in muParser_dll_muParserError.o, file is not of required architecture
ld: warning: in muParser_dll_muParserCallback.o, file is not of required architecture
ld: warning: in muParser_dll_muParserBase.o, file is not of required architecture
(cd ./lib/; rm -f libmuparser.dylib libmuparser.0.dylib; ln -s libmuparser.0.0.0.dylib libmuparser.0.dylib; ln -s libmuparser.0.dylib libmuparser.dylib)
/usr/bin/g++-4.2 -c -o example1_Example1.o -DNDEBUG -I./include  -O2 -fno-common ./samples/example1/Example1.cpp
/usr/bin/g++-4.2 -o samples/example1/example1 example1_Example1.o -L./lib -L/opt/local/lib -arch ppc -arch i386  -L./lib   -lmuparser
ld: warning: in example1_Example1.o, file is not of required architecture
Undefined symbols for architecture ppc:
  "_main", referenced from:
      start in crt1.10.5.o
ld: symbol(s) not found for architecture ppc
collect2: ld returned 1 exit status
ld: warning: in example1_Example1.o, file is not of required architecture
Undefined symbols for architecture i386:
  "_main", referenced from:
      start in crt1.10.6.o
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status
lipo: can't open input file: /var/folders/Dz/Dz4fPD56E4W+7pu1hyaEP++++TI/-Tmp-//ccEqwzre.out (No such file or directory)
make: *** [samples/example1/example1] Error 1
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_math_muparser/work/muparser" && /usr/bin/make all " returned error 2
DEBUG: Backtrace: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_math_muparser/work/muparser" && /usr/bin/make all " returned error 2
    while executing
"command_exec build"
    (procedure "portbuild::build_main" line 9)
    invoked from within
"$procedure $targetname"
Warning: the following items did not execute (for muparser): org.macports.activate org.macports.build org.macports.destroot org.macports.install
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>
Executing: /opt/local/bin/port -d install muparser +universal

Change History (2)

comment:1 Changed 15 years ago by mf2k (Frank Schima)

Description: modified (diff)
Owner: changed from macports-tickets@… to mww@…
Port: 1.3.0 removed

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

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