Opened 14 years ago

Closed 14 years ago

#23554 closed defect (worksforme)

boost 1.42.0 fails to build "file is not of required architecture"

Reported by: lifesabeachcl@… Owned by: nox@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: boost

Description (last modified by mf2k (Frank Schima))

warning: Building Boost.Regex with the optional Unicode/ICU support disabled.
note: Please refer to the Boost.Regex documentation for more information
note: this is a strictly optional feature.
warning: Graph library does not contain MPI-based parallel components.
note: to enable them, add "using mpi ;" to your user-config.jam
...patience...
...patience...
...patience...
...found 7525 targets...
...updating 8 targets...
darwin.link.dll bin.v2/libs/iostreams/build/darwin-4.2.1/debug/address-model-32_64/architecture-x86/pch-off/libboost_iostreams-d.dylib

    "/usr/bin/g++-4.2" -dynamiclib -Wl,-single_module -install_name "/opt/local/lib/libboost_iostreams-d.dylib" -L"/opt/local/lib" -o "bin.v2/libs/iostreams/build/darwin-4.2.1/debug/address-model-32_64/architecture-x86/pch-off/libboost_iostreams-d.dylib" "bin.v2/libs/iostreams/build/darwin-4.2.1/debug/address-model-32_64/architecture-x86/pch-off/file_descriptor.o" "bin.v2/libs/iostreams/build/darwin-4.2.1/debug/address-model-32_64/architecture-x86/pch-off/mapped_file.o" "bin.v2/libs/iostreams/build/darwin-4.2.1/debug/address-model-32_64/architecture-x86/pch-off/zlib.o" "bin.v2/libs/iostreams/build/darwin-4.2.1/debug/address-model-32_64/architecture-x86/pch-off/gzip.o" "bin.v2/libs/iostreams/build/darwin-4.2.1/debug/address-model-32_64/architecture-x86/pch-off/bzip2.o"  -lbz2 -lz    -headerpad_max_install_names -g -arch i386 -arch x86_64 

ld: warning: in /opt/local/lib/libbz2.dylib, file is not of required architecture
ld: warning: in /opt/local/lib/libz.dylib, file is not of required architecture
Undefined symbols:
  "_BZ2_bzCompressInit", referenced from:
      boost::iostreams::detail::bzip2_base::do_init(bool, void* (*)(void*, int, int), void (*)(void*, void*), void*)in bzip2.o
  "_deflate", referenced from:
      boost::iostreams::detail::zlib_base::xdeflate(int)in zlib.o
  "_inflateEnd", referenced from:
      boost::iostreams::detail::zlib_base::reset(bool, bool)in zlib.o
  "_inflateInit2_", referenced from:
      boost::iostreams::detail::zlib_base::do_init(boost::iostreams::zlib_params const&, bool, void* (*)(void*, unsigned int, unsigned int), void (*)(void*, void*), void*)in zlib.o
  "_inflate", referenced from:
      boost::iostreams::detail::zlib_base::xinflate(int)in zlib.o
  "_BZ2_bzDecompressEnd", referenced from:
      boost::iostreams::detail::bzip2_base::end(bool)in bzip2.o
  "_deflateEnd", referenced from:
      boost::iostreams::detail::zlib_base::reset(bool, bool)in zlib.o
  "_BZ2_bzDecompressInit", referenced from:
      boost::iostreams::detail::bzip2_base::do_init(bool, void* (*)(void*, int, int), void (*)(void*, void*), void*)in bzip2.o
  "_deflateInit2_", referenced from:
      boost::iostreams::detail::zlib_base::do_init(boost::iostreams::zlib_params const&, bool, void* (*)(void*, unsigned int, unsigned int), void (*)(void*, void*), void*)in zlib.o
  "_deflateReset", referenced from:
      boost::iostreams::detail::zlib_base::reset(bool, bool)in zlib.o
  "_BZ2_bzCompressEnd", referenced from:
      boost::iostreams::detail::bzip2_base::end(bool)in bzip2.o
  "_inflateReset", referenced from:
      boost::iostreams::detail::zlib_base::reset(bool, bool)in zlib.o
  "_crc32", referenced from:
      boost::iostreams::detail::zlib_base::after(char const*&, char*&, bool)in zlib.o
  "_BZ2_bzCompress", referenced from:
      boost::iostreams::detail::bzip2_base::compress(int)in bzip2.o
  "_BZ2_bzDecompress", referenced from:
      boost::iostreams::detail::bzip2_base::decompress()    in bzip2.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
lipo: can't open input file: /var/tmp//cc2M4YCL.out (No such file or directory)
...failed darwin.link.dll bin.v2/libs/iostreams/build/darwin-4.2.1/debug/address-model-32_64/architecture-x86/pch-off/libboost_iostreams-d.dylib...
...skipped <pstage/lib>libboost_iostreams-d.dylib for lack of <pbin.v2/libs/iostreams/build/darwin-4.2.1/debug/address-model-32_64/architecture-x86/pch-off>libboost_iostreams-d.dylib...
darwin.link.dll bin.v2/libs/iostreams/build/darwin-4.2.1/release/address-model-32_64/architecture-x86/pch-off/libboost_iostreams.dylib

    "/usr/bin/g++-4.2" -dynamiclib -Wl,-single_module -install_name "/opt/local/lib/libboost_iostreams.dylib" -L"/opt/local/lib" -o "bin.v2/libs/iostreams/build/darwin-4.2.1/release/address-model-32_64/architecture-x86/pch-off/libboost_iostreams.dylib" "bin.v2/libs/iostreams/build/darwin-4.2.1/release/address-model-32_64/architecture-x86/pch-off/file_descriptor.o" "bin.v2/libs/iostreams/build/darwin-4.2.1/release/address-model-32_64/architecture-x86/pch-off/mapped_file.o" "bin.v2/libs/iostreams/build/darwin-4.2.1/release/address-model-32_64/architecture-x86/pch-off/zlib.o" "bin.v2/libs/iostreams/build/darwin-4.2.1/release/address-model-32_64/architecture-x86/pch-off/gzip.o" "bin.v2/libs/iostreams/build/darwin-4.2.1/release/address-model-32_64/architecture-x86/pch-off/bzip2.o"  -lbz2 -lz    -headerpad_max_install_names -Wl,-dead_strip -no_dead_strip_inits_and_terms -arch i386 -arch x86_64 

ld: warning: in /opt/local/lib/libbz2.dylib, file is not of required architecture
ld: warning: in /opt/local/lib/libz.dylib, file is not of required architecture
Undefined symbols:
  "_BZ2_bzCompressInit", referenced from:
      boost::iostreams::detail::bzip2_base::do_init(bool, void* (*)(void*, int, int), void (*)(void*, void*), void*)in bzip2.o
  "_deflate", referenced from:
      boost::iostreams::detail::zlib_base::xdeflate(int)in zlib.o
  "_inflateEnd", referenced from:
      boost::iostreams::detail::zlib_base::reset(bool, bool)in zlib.o
  "_inflateInit2_", referenced from:
      boost::iostreams::detail::zlib_base::do_init(boost::iostreams::zlib_params const&, bool, void* (*)(void*, unsigned int, unsigned int), void (*)(void*, void*), void*)in zlib.o
  "_inflate", referenced from:
      boost::iostreams::detail::zlib_base::xinflate(int)in zlib.o
  "_BZ2_bzDecompressEnd", referenced from:
      boost::iostreams::detail::bzip2_base::end(bool)in bzip2.o
  "_deflateEnd", referenced from:
      boost::iostreams::detail::zlib_base::reset(bool, bool)in zlib.o
  "_BZ2_bzDecompressInit", referenced from:
      boost::iostreams::detail::bzip2_base::do_init(bool, void* (*)(void*, int, int), void (*)(void*, void*), void*)in bzip2.o
  "_deflateInit2_", referenced from:
      boost::iostreams::detail::zlib_base::do_init(boost::iostreams::zlib_params const&, bool, void* (*)(void*, unsigned int, unsigned int), void (*)(void*, void*), void*)in zlib.o
  "_deflateReset", referenced from:
      boost::iostreams::detail::zlib_base::reset(bool, bool)in zlib.o
  "_BZ2_bzCompressEnd", referenced from:
      boost::iostreams::detail::bzip2_base::end(bool)in bzip2.o
  "_inflateReset", referenced from:
      boost::iostreams::detail::zlib_base::reset(bool, bool)in zlib.o
  "_crc32", referenced from:
      boost::iostreams::detail::zlib_base::after(char const*&, char*&, bool)in zlib.o
  "_BZ2_bzCompress", referenced from:
      boost::iostreams::detail::bzip2_base::compress(int)in bzip2.o
  "_BZ2_bzDecompress", referenced from:
      boost::iostreams::detail::bzip2_base::decompress()    in bzip2.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
lipo: can't open input file: /var/tmp//cc1AjYcJ.out (No such file or directory)
...failed darwin.link.dll bin.v2/libs/iostreams/build/darwin-4.2.1/release/address-model-32_64/architecture-x86/pch-off/libboost_iostreams.dylib...
...skipped <pstage/lib>libboost_iostreams.dylib for lack of <pbin.v2/libs/iostreams/build/darwin-4.2.1/release/address-model-32_64/architecture-x86/pch-off>libboost_iostreams.dylib...
darwin.link.dll bin.v2/libs/iostreams/build/darwin-4.2.1/release/address-model-32_64/architecture-x86/pch-off/threading-multi/libboost_iostreams-mt.dylib

    "/usr/bin/g++-4.2" -dynamiclib -Wl,-single_module -install_name "/opt/local/lib/libboost_iostreams-mt.dylib" -L"/opt/local/lib" -o "bin.v2/libs/iostreams/build/darwin-4.2.1/release/address-model-32_64/architecture-x86/pch-off/threading-multi/libboost_iostreams-mt.dylib" "bin.v2/libs/iostreams/build/darwin-4.2.1/release/address-model-32_64/architecture-x86/pch-off/threading-multi/file_descriptor.o" "bin.v2/libs/iostreams/build/darwin-4.2.1/release/address-model-32_64/architecture-x86/pch-off/threading-multi/mapped_file.o" "bin.v2/libs/iostreams/build/darwin-4.2.1/release/address-model-32_64/architecture-x86/pch-off/threading-multi/zlib.o" "bin.v2/libs/iostreams/build/darwin-4.2.1/release/address-model-32_64/architecture-x86/pch-off/threading-multi/gzip.o" "bin.v2/libs/iostreams/build/darwin-4.2.1/release/address-model-32_64/architecture-x86/pch-off/threading-multi/bzip2.o"  -lbz2 -lz    -headerpad_max_install_names -Wl,-dead_strip -no_dead_strip_inits_and_terms -arch i386 -arch x86_64 

ld: warning: in /opt/local/lib/libbz2.dylib, file is not of required architecture
ld: warning: in /opt/local/lib/libz.dylib, file is not of required architecture
Undefined symbols:
  "_BZ2_bzCompressInit", referenced from:
      boost::iostreams::detail::bzip2_base::do_init(bool, void* (*)(void*, int, int), void (*)(void*, void*), void*)in bzip2.o
  "_deflate", referenced from:
      boost::iostreams::detail::zlib_base::xdeflate(int)in zlib.o
  "_inflateEnd", referenced from:
      boost::iostreams::detail::zlib_base::reset(bool, bool)in zlib.o
  "_inflateInit2_", referenced from:
      boost::iostreams::detail::zlib_base::do_init(boost::iostreams::zlib_params const&, bool, void* (*)(void*, unsigned int, unsigned int), void (*)(void*, void*), void*)in zlib.o
  "_inflate", referenced from:
      boost::iostreams::detail::zlib_base::xinflate(int)in zlib.o
  "_BZ2_bzDecompressEnd", referenced from:
      boost::iostreams::detail::bzip2_base::end(bool)in bzip2.o
  "_deflateEnd", referenced from:
      boost::iostreams::detail::zlib_base::reset(bool, bool)in zlib.o
  "_BZ2_bzDecompressInit", referenced from:
      boost::iostreams::detail::bzip2_base::do_init(bool, void* (*)(void*, int, int), void (*)(void*, void*), void*)in bzip2.o
  "_deflateInit2_", referenced from:
      boost::iostreams::detail::zlib_base::do_init(boost::iostreams::zlib_params const&, bool, void* (*)(void*, unsigned int, unsigned int), void (*)(void*, void*), void*)in zlib.o
  "_deflateReset", referenced from:
      boost::iostreams::detail::zlib_base::reset(bool, bool)in zlib.o
  "_BZ2_bzCompressEnd", referenced from:
      boost::iostreams::detail::bzip2_base::end(bool)in bzip2.o
  "_inflateReset", referenced from:
      boost::iostreams::detail::zlib_base::reset(bool, bool)in zlib.o
  "_crc32", referenced from:
      boost::iostreams::detail::zlib_base::after(char const*&, char*&, bool)in zlib.o
  "_BZ2_bzCompress", referenced from:
      boost::iostreams::detail::bzip2_base::compress(int)in bzip2.o
  "_BZ2_bzDecompress", referenced from:
      boost::iostreams::detail::bzip2_base::decompress()    in bzip2.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
lipo: can't open input file: /var/tmp//cc5DbyeI.out (No such file or directory)
...failed darwin.link.dll bin.v2/libs/iostreams/build/darwin-4.2.1/release/address-model-32_64/architecture-x86/pch-off/threading-multi/libboost_iostreams-mt.dylib...
...skipped <pstage/lib>libboost_iostreams-mt.dylib for lack of <pbin.v2/libs/iostreams/build/darwin-4.2.1/release/address-model-32_64/architecture-x86/pch-off/threading-multi>libboost_iostreams-mt.dylib...
darwin.link.dll bin.v2/libs/iostreams/build/darwin-4.2.1/debug/address-model-32_64/architecture-x86/pch-off/threading-multi/libboost_iostreams-mt-d.dylib

    "/usr/bin/g++-4.2" -dynamiclib -Wl,-single_module -install_name "/opt/local/lib/libboost_iostreams-mt-d.dylib" -L"/opt/local/lib" -o "bin.v2/libs/iostreams/build/darwin-4.2.1/debug/address-model-32_64/architecture-x86/pch-off/threading-multi/libboost_iostreams-mt-d.dylib" "bin.v2/libs/iostreams/build/darwin-4.2.1/debug/address-model-32_64/architecture-x86/pch-off/threading-multi/file_descriptor.o" "bin.v2/libs/iostreams/build/darwin-4.2.1/debug/address-model-32_64/architecture-x86/pch-off/threading-multi/mapped_file.o" "bin.v2/libs/iostreams/build/darwin-4.2.1/debug/address-model-32_64/architecture-x86/pch-off/threading-multi/zlib.o" "bin.v2/libs/iostreams/build/darwin-4.2.1/debug/address-model-32_64/architecture-x86/pch-off/threading-multi/gzip.o" "bin.v2/libs/iostreams/build/darwin-4.2.1/debug/address-model-32_64/architecture-x86/pch-off/threading-multi/bzip2.o"  -lbz2 -lz    -headerpad_max_install_names -g -arch i386 -arch x86_64 

ld: warning: in /opt/local/lib/libbz2.dylib, file is not of required architecture
ld: warning: in /opt/local/lib/libz.dylib, file is not of required architecture
Undefined symbols:
  "_BZ2_bzCompressInit", referenced from:
      boost::iostreams::detail::bzip2_base::do_init(bool, void* (*)(void*, int, int), void (*)(void*, void*), void*)in bzip2.o
  "_deflate", referenced from:
      boost::iostreams::detail::zlib_base::xdeflate(int)in zlib.o
  "_inflateEnd", referenced from:
      boost::iostreams::detail::zlib_base::reset(bool, bool)in zlib.o
  "_inflateInit2_", referenced from:
      boost::iostreams::detail::zlib_base::do_init(boost::iostreams::zlib_params const&, bool, void* (*)(void*, unsigned int, unsigned int), void (*)(void*, void*), void*)in zlib.o
  "_inflate", referenced from:
      boost::iostreams::detail::zlib_base::xinflate(int)in zlib.o
  "_BZ2_bzDecompressEnd", referenced from:
      boost::iostreams::detail::bzip2_base::end(bool)in bzip2.o
  "_deflateEnd", referenced from:
      boost::iostreams::detail::zlib_base::reset(bool, bool)in zlib.o
  "_BZ2_bzDecompressInit", referenced from:
      boost::iostreams::detail::bzip2_base::do_init(bool, void* (*)(void*, int, int), void (*)(void*, void*), void*)in bzip2.o
  "_deflateInit2_", referenced from:
      boost::iostreams::detail::zlib_base::do_init(boost::iostreams::zlib_params const&, bool, void* (*)(void*, unsigned int, unsigned int), void (*)(void*, void*), void*)in zlib.o
  "_deflateReset", referenced from:
      boost::iostreams::detail::zlib_base::reset(bool, bool)in zlib.o
  "_BZ2_bzCompressEnd", referenced from:
      boost::iostreams::detail::bzip2_base::end(bool)in bzip2.o
  "_inflateReset", referenced from:
      boost::iostreams::detail::zlib_base::reset(bool, bool)in zlib.o
  "_crc32", referenced from:
      boost::iostreams::detail::zlib_base::after(char const*&, char*&, bool)in zlib.o
  "_BZ2_bzCompress", referenced from:
      boost::iostreams::detail::bzip2_base::compress(int)in bzip2.o
  "_BZ2_bzDecompress", referenced from:
      boost::iostreams::detail::bzip2_base::decompress()    in bzip2.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
lipo: can't open input file: /var/tmp//ccqfx5aU.out (No such file or directory)
...failed darwin.link.dll bin.v2/libs/iostreams/build/darwin-4.2.1/debug/address-model-32_64/architecture-x86/pch-off/threading-multi/libboost_iostreams-mt-d.dylib...
...skipped <pstage/lib>libboost_iostreams-mt-d.dylib for lack of <pbin.v2/libs/iostreams/build/darwin-4.2.1/debug/address-model-32_64/architecture-x86/pch-off/threading-multi>libboost_iostreams-mt-d.dylib...
...failed updating 4 targets...
...skipped 4 targets...
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_boost/work/boost_1_42_0" && bjam -j2 -d2 --layout=tagged --debug-configuration --ignore-site-config --user-config=user-config.jam --without-python --without-mpi -sBZIP2_INCLUDE=/opt/local/include -sBZIP2_LIBPATH=/opt/local/lib -sEXPAT_INCLUDE=/opt/local/include -sEXPAT_LIBPATH=/opt/local/lib -sZLIB_INCLUDE=/opt/local/include -sZLIB_LIBPATH=/opt/local/lib threading=single,multi variant=debug,release pch=off architecture=x86 address-model=32_64 " returned error 1
DEBUG: Backtrace: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_boost/work/boost_1_42_0" && bjam -j2 -d2 --layout=tagged --debug-configuration --ignore-site-config --user-config=user-config.jam --without-python --without-mpi -sBZIP2_INCLUDE=/opt/local/include -sBZIP2_LIBPATH=/opt/local/lib -sEXPAT_INCLUDE=/opt/local/include -sEXPAT_LIBPATH=/opt/local/lib -sZLIB_INCLUDE=/opt/local/include -sZLIB_LIBPATH=/opt/local/lib threading=single,multi variant=debug,release pch=off architecture=x86 address-model=32_64 " returned error 1
    while executing
"command_exec build"
    (procedure "portbuild::build_main" line 9)
    invoked from within
"$procedure $targetname"
Warning: the following items did not execute (for boost): 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>
shawn-l-johnsons-macbook-pro-138:~ slj$ 

Change History (4)

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

Description: modified (diff)
Owner: changed from macports-tickets@… to nox@…
Port: boost added

comment:2 Changed 14 years ago by nox@…

Version: 1.8.2

ld: warning: in /opt/local/lib/libbz2.dylib, file is not of required architecture ld: warning: in /opt/local/lib/libz.dylib, file is not of required architecture

Please paste the output of lipo -info /opt/local/lib/libbz2.dylib /opt/local/lib/libz.dylib.

comment:3 in reply to:  2 Changed 14 years ago by lifesabeachcl@…

Replying to nox@…:

ld: warning: in /opt/local/lib/libbz2.dylib, file is not of required architecture ld: warning: in /opt/local/lib/libz.dylib, file is not of required architecture

Please paste the output of lipo -info /opt/local/lib/libbz2.dylib /opt/local/lib/libz.dylib.

I get this when I run lipo Non-fat file: /opt/local/lib/libbz2.dylib is architecture: i386

comment:4 Changed 14 years ago by nox@…

Resolution: worksforme
Status: newclosed
Summary: boost 1.4.2 does not installboost 1.42.0 fails to build "file is not of required architecture"

Please follow the migration guide du Snow Leopard or rebuild bzip2 and zlib for x86_64:

sudo port -f uninstall bzip2 zlib
sudo port install bzip2 zlib
Note: See TracTickets for help on using tickets.