i using macports set universal build of gcc 4.7.2. 1 of dependencies subport called libstdcxx
, builds , deletes.
i have edited libstdcxx
entry in gcc47
portfile keep deleting static libstdc++.a
library, after rebuilding.
however, static library 64-bit (x86_64
) file:
$ sudo port -n upgrade --force libstdcxx +universal ---> computing dependencies libstdcxx ... $ lipo -info /opt/local/lib/libstdc++.a input file /opt/local/lib/libstdc++.a not fat file non-fat file: /opt/local/lib/libstdc++.a architecture: x86_64
i add support file i386
architecture.
what additional steps should follow build fat, static libstdc++
library? or not possible macports? other option redistribute , compile entirety of gcc 4.7.2 twice (to both i386
, x86_64
architecture support), along source application, link in 1 static library?
addition - 27 mar 2013
brett hale's suggestion did not appear work. build process failed. here snippet of error log:
:notice:configure ---> configuring libstdcxx :debug:configure using compiler 'mac os x clang' :debug:configure executing proc-pre-org.macports.configure-configure-0 :debug:configure executing org.macports.configure (libstdcxx) :debug:configure environment: cpath='/opt/local/include' cxxflags='-pipe -o2' cppflags='-i/opt/local/include' cflags='-pipe -o2' as_for_target='/opt/local/bin/as' library_path='/opt/local/lib' macosx_deployment_target='10.8' cxx='g++ -arch x86_64 i386' cpp='gcc -arch x86_64 i386 -e\ ' cc_print_options_file='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc47/libstdcxx/work/.cc_print_options' f90flags='-pipe -o2' ld_for_target='/opt/local/bin/ld' ranlib_for_target='/opt/local/bin/ranlib' ldflags='-l\ /opt/local/lib' objdump_for_target='/opt/local/bin/objdump' otool='/opt/local/bin/otool' fcflags='-pipe -o2' objc='/usr/bin/clang' install='/usr/bin/install -c' ar_for_target='/opt/local/bin/ar' nm_for_target='/opt/local/bin/nm' fflags='-pipe -o2' objcflags='-pipe -o2' cc_print_opt\ ions='yes' strip_for_target='/opt/local/bin/strip' cc='gcc -arch x86_64 i386' otool64='/opt/local/bin/otool' :debug:configure assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc47/libstdcxx/work/build" && ../gcc-4.7.2/configure --prefix=/opt/local --build=x86_64-apple-darwin12 --includedir=/opt/local/incl\ ude/gcc47 --infodir=/opt/local/share/info --mandir=/opt/local/share/man --datarootdir=/opt/local/share/gcc-4.7 --with-libiconv-prefix=/opt/local --with-local-prefix=/opt/local --with-system-zlib --disable-nls --program-suffix=-mp-4.7 --with-gxx-include-dir=/opt/local/include/gcc47/\ c++/ --with-gmp=/opt/local --with-mpfr=/opt/local --with-mpc=/opt/local --with-ppl=/opt/local --with-cloog=/opt/local --enable-cloog-backend=isl --disable-cloog-version-check --enable-stage1-checking --enable-lto --enable-libstdcxx-time --with-as=/opt/local/bin/as --with-ld=/opt/lo\ cal/bin/ld --with-ar=/opt/local/bin/ar --with-bugurl=https://trac.macports.org/newticket --disable-ppl-version-check --enable-languages=c++ --disable-bootstrap --with-pkgversion="macports gcc47 4.7.2_2+universal"' :debug:configure executing command line: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc47/libstdcxx/work/build" && ../gcc-4.7.2/configure --prefix=/opt/local --build=x86_64-apple-darwin12 --includedir=/opt/local\ /include/gcc47 --infodir=/opt/local/share/info --mandir=/opt/local/share/man --datarootdir=/opt/local/share/gcc-4.7 --with-libiconv-prefix=/opt/local --with-local-prefix=/opt/local --with-system-zlib --disable-nls --program-suffix=-mp-4.7 --with-gxx-include-dir=/opt/local/include/g\ cc47/c++/ --with-gmp=/opt/local --with-mpfr=/opt/local --with-mpc=/opt/local --with-ppl=/opt/local --with-cloog=/opt/local --enable-cloog-backend=isl --disable-cloog-version-check --enable-stage1-checking --enable-lto --enable-libstdcxx-time --with-as=/opt/local/bin/as --with-ld=/o\ pt/local/bin/ld --with-ar=/opt/local/bin/ar --with-bugurl=https://trac.macports.org/newticket --disable-ppl-version-check --enable-languages=c++ --disable-bootstrap --with-pkgversion="macports gcc47 4.7.2_2+universal" :info:configure checking build system type... x86_64-apple-darwin12 :info:configure checking host system type... x86_64-apple-darwin12 :info:configure checking target system type... x86_64-apple-darwin12 :info:configure checking bsd-compatible install... /usr/bin/install -c :info:configure checking whether ln works... yes :info:configure checking whether ln -s works... yes :info:configure checking sed not truncate output... /usr/bin/sed :info:configure checking gawk... no :info:configure checking mawk... no :info:configure checking nawk... no :info:configure checking awk... awk :info:configure checking libitm support... yes :info:configure checking gcc... gcc -arch x86_64 i386 :info:configure checking c compiler default output file name... :info:configure configure: error: in `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc47/libstdcxx/work/build': :info:configure configure: error: c compiler cannot create executables :info:configure see `config.log' more details. :info:configure command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc47/libstdcxx/work/build" && ../gcc-4.7.2/configure --prefix=/opt/local --build=x86_64-apple-darwin12 --includedir=/opt/local/include/\ gcc47 --infodir=/opt/local/share/info --mandir=/opt/local/share/man --datarootdir=/opt/local/share/gcc-4.7 --with-libiconv-prefix=/opt/local --with-local-prefix=/opt/local --with-system-zlib --disable-nls --program-suffix=-mp-4.7 --with-gxx-include-dir=/opt/local/include/gcc47/c++/\ --with-gmp=/opt/local --with-mpfr=/opt/local --with-mpc=/opt/local --with-ppl=/opt/local --with-cloog=/opt/local --enable-cloog-backend=isl --disable-cloog-version-check --enable-stage1-checking --enable-lto --enable-libstdcxx-time --with-as=/opt/local/bin/as --with-ld=/opt/local/\ bin/ld --with-ar=/opt/local/bin/ar --with-bugurl=https://trac.macports.org/newticket --disable-ppl-version-check --enable-languages=c++ --disable-bootstrap --with-pkgversion="macports gcc47 4.7.2_2+universal" :info:configure exit code: 77 :error:configure org.macports.configure port libstdcxx returned: configure failure: command execution failed :debug:configure error code: none :debug:configure backtrace: configure failure: command execution failed while executing "$procedure $targetname" :info:configure warning: targets not executed libstdcxx: org.macports.activate org.macports.configure org.macports.build org.macports.destroot org.macports.install :notice:configure please see log file port libstdcxx details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc47/libstdcxx/main.log
if you're building gcc gcc compiler, try produce universal objects / libraries -arch
option:
sudo port -n upgrade --force libstdcxx +universal \ configure.cc="gcc -arch x86_64 i386" configure.cxx="g++ -arch x86_64 i386"
Comments
Post a Comment