Opened 11 years ago

Last modified 5 years ago

#40528 assigned defect

zeroc-ice35: ld: warning: ignoring file /opt/local/lib/libmcpp.dylib, file was built for unsupported file format which is not the architecture being linked

Reported by: glennra (Glenn Ramsey) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.2.0
Keywords: Cc:
Port: zeroc-ice35

Description

$ more /opt/local/etc/macports/variants.conf
+i386
more /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_zeroc-ice35/zeroc-ice35/main.log
...
$ tail -n30 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_zeroc-ice35/zeroc-ice35/main.log
:info:build /usr/bin/clang++ -c -I.. -I../../include -DSLICE_API_EXPORTS   -g -O2 -DNDEBUG -Wall -Werror -D_REENTRANT MD5.cpp
:info:build /usr/bin/clang++ -c -I.. -I../../include -DSLICE_API_EXPORTS   -g -O2 -DNDEBUG -Wall -Werror -D_REENTRANT MD5I.cpp
:info:build rm -f ../../lib/libSlice.3.5.0.dylib
:info:build /usr/bin/clang++  -dynamiclib  -g -O2 -DNDEBUG -Wall -Werror -D_REENTRANT -L../../lib -o ../../lib/libSlice.3.5.0.dylib -install_name @rpath/libSlice.35.dylib   Scanner.o ../Slice/Grammar.o Parser.o CPlusPlusUtil.o CsUtil.o JavaUtil.o Preprocessor.o Checksum.o PythonUtil.o DotNetNames.o RubyUtil.o PHPUtil.o Util.o FileTracker.o MD5.o MD5I.o -lZerocIceUtil -lpthread  -L/opt/local/lib -lmcpp
:info:build ld: warning: ignoring file /opt/local/lib/libmcpp.dylib, file was built for unsupported file format ( 0xce 0xfa 0xed 0xfe 0x 7 0x 0 0x 0 0x 0 0x 3 0x 0 0x 0 0x 0 0x 6 0x 0 0x 0 0x 0 ) which is not the architecture being linked (x86_64): /opt/local/lib/libmcpp.dylib
:info:build Undefined symbols for architecture x86_64:
:info:build   "_mcpp_get_mem_buffer", referenced from:
:info:build       Slice::Preprocessor::preprocess(bool) in Preprocessor.o
:info:build       Slice::Preprocessor::printMakefileDependencies(Slice::Preprocessor::Language, std::vector<std::string, std::allocator<std::string> > const&, std::string const&, std::string const&) in Preprocessor.o
:info:build   "_mcpp_lib_main", referenced from:
:info:build       Slice::Preprocessor::preprocess(bool) in Preprocessor.o
:info:build       Slice::Preprocessor::printMakefileDependencies(Slice::Preprocessor::Language, std::vector<std::string, std::allocator<std::string> > const&, std::string const&, std::string const&) in Preprocessor.o
:info:build   "_mcpp_use_mem_buffers", referenced from:
:info:build       Slice::Preprocessor::preprocess(bool) in Preprocessor.o
:info:build       Slice::Preprocessor::printMakefileDependencies(Slice::Preprocessor::Language, std::vector<std::string, std::allocator<std::string> > const&, std::string const&, std::string const&) in Preprocessor.o
:info:build ld: symbol(s) not found for architecture x86_64
:info:build clang: error: linker command failed with exit code 1 (use -v to see invocation)
:info:build make[2]: *** [../../lib/libSlice.3.5.0.dylib] Error 1
:info:build make[1]: *** [Slice] Error 2
:info:build make: *** [all] Error 1
:info:build Command failed: cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_zeroc-ice35/zeroc-ice35/work/Ice-3.5.0/cpp && make -j8 prefix='/opt/local' embedded_runpath_prefix='/opt/local' CC='/usr/bin/clang' CXX='/usr/bin/clang++' OPTIMIZE='yes' BZIP2_HOME='/opt/local' DB_HOME='/opt/local' EXPAT_HOME='/opt/local' OPENSSL_HOME='/opt/local' READLINE_HOME='/opt/local' USE_READLINE=yes MCPP_HOME='/opt/local' all && cd doc && make -j8
:info:build Exit code: 2
:error:build org.macports.build for port zeroc-ice35 returned: command execution failed
:debug:build Error code: NONE
:debug:build Backtrace: command execution failed
    while executing
"$procedure $targetname"
:info:build Warning: targets not executed for zeroc-ice35: org.macports.activate org.macports.build org.macports.destroot org.macports.install
:notice:build Please see the log file for port zeroc-ice35 for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_zeroc-ice35/zeroc-ice35/main.log

Change History (5)

comment:1 Changed 11 years ago by larryv (Lawrence Velázquez)

Owner: changed from macports-tickets@… to blair@…
Port: zero-ice35 added
Summary: zeroc-ice35 doesn't build as 32 bitzeroc-ice35: build failure

Thanks. In the future, please Cc relevant port maintainers (port info --maintainers).

The zero-ice35 port does not have an i386 variant, so your variants.conf setting does nothing; the port is simply not building for you. As per the Guide, please clean, try again, and attach the main.log file if it fails again.

comment:2 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)

Summary: zeroc-ice35: build failurezeroc-ice35: ld: warning: ignoring file /opt/local/lib/libmcpp.dylib, file was built for unsupported file format which is not the architecture being linked

Based on the portion of the log you pasted above, the problem seems to be that /opt/local/lib/libmcpp.dylib (part of the mcpp port) was built for a different architecture than the one for which you are now trying to build zeroc-ice35 (x86_64). That should not be possible; MacPorts should check for that situation in advance. This suggests MacPorts might think mcpp is installed for a different architecture than it actually is. Can you please tell us for which architecture MacPorts thinks mcpp is installed by running:

port -v installed mcpp

and show us the architecture for which it is actually installed by running:

lipo -info /opt/local/lib/libmcpp.dylib

If they differ, that's the problem; rebuild the mcpp port to fix the problem by running:

sudo port -n upgrade --force mcpp

Then clean zeroc-ice35 and try again:

sudo port clean zeroc-ice35

If it fails again, attach the new main.log file.

comment:3 Changed 5 years ago by mf2k (Frank Schima)

Resolution: wontfix
Status: newclosed

Closing since the port no longer exists.

comment:4 Changed 5 years ago by mf2k (Frank Schima)

Port: zeroc-ice35 added; zero-ice35 removed
Resolution: wontfix
Status: closedreopened

comment:5 Changed 5 years ago by mf2k (Frank Schima)

Owner: blair deleted
Status: reopenedassigned
Note: See TracTickets for help on using tickets.