{"id":2833,"date":"2014-08-28T10:10:38","date_gmt":"2014-08-28T10:10:38","guid":{"rendered":"http:\/\/blog.bachi.net\/?p=2833"},"modified":"2014-08-31T19:45:52","modified_gmt":"2014-08-31T19:45:52","slug":"cross-compiler","status":"publish","type":"post","link":"https:\/\/blog.bachi.net\/?p=2833","title":{"rendered":"Cross-Compiler"},"content":{"rendered":"<h3>FreeBSD Toolchain<\/h3>\n<p><a href=\"https:\/\/wiki.freebsd.org\/BSDToolchain\">BSD Toolchain Project<\/a><br \/>\n<a href=\"http:\/\/www.llvm.org\/\">The LLVM Compiler Infrastructure<\/a><br \/>\n<a href=\"http:\/\/lldb.llvm.org\/\">The LLDB Debugger<\/a><\/p>\n<h3>build &#8211; host &#8211; target<\/h3>\n<p>Traditional cross-compilation terminology defines three platforms:<\/p>\n<ul>\n<li>build &#8211; the platform we&#8217;re building on<\/li>\n<li>host &#8211; the platform the compiler will run on<\/li>\n<li>target &#8211; the platform the compiler we&#8217;re building will generate code for<\/li>\n<\/ul>\n<p><a href=\"https:\/\/ghc.haskell.org\/trac\/ghc\/wiki\/Building\/CrossCompiling\">Cross-compiling GHC<\/a><\/p>\n<h3>arch-vendor-os<\/h3>\n<p><a href=\"http:\/\/stackoverflow.com\/questions\/5731495\/can-anyone-explain-the-gcc-cross-compiler-naming-convention\">Can anyone explain the gcc cross-compiler naming convention?<\/a><\/p>\n<h3>Building a Cross-Compiler<\/h3>\n<p><a href=\"http:\/\/marcelog.github.io\/articles\/cross_freebsd_compiler_in_linux.html\">How to make a cross compiler (gcc) for freebsd under linux. A small tutorial<\/a><\/p>\n<h4>GNU development tools (binutils)<\/h4>\n<p>This directory contains various GNU compilers, assemblers, linkers,<br \/>\ndebuggers, etc., plus their support routines, definitions, and documentation.t<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n$ mkdir \/usr\/x86_64-freebsd\r\n$ mkdir \/usr\/x86_64-freebsd\/src\r\n\r\n$ mv ~\/Downloads\/binutils-2.24.tar.gz \/usr\/x86_64-freebsd\/src\r\n$ cd \/usr\/x86_64-freebsd\/src\r\n$ tar -xzf binutils-2.24.tar.gz\r\n$ cd binutils-2.24\r\n$ .\/configure --enable-libssp --enable-gold --enable-ld \\\r\n--target=x86_64-pc-freebsd10.0 --prefix=\/usr\/x86_64-freebsd\r\n$ make -j 4\r\n$ make install\r\n<\/pre>\n<h4>GNU MP (gmp)<\/h4>\n<p>GNU MP is a library for arbitrary precision arithmetic, operating on signed<br \/>\nintegers, rational numbers, and floating point numbers. <\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n$ mv ~\/Downloads\/gmp-5.1.3.tar.gz \/usr\/x86_64-freebsd\/src\r\n$ cd \/usr\/x86_64-freebsd\/src\r\n$ tar -xzf gmp-5.1.3.tar.gz\r\n$ cd gmp-5.1.3\r\n$ .\/configure --prefix=\/usr\/x86_64-freebsd --enable-shared \\\r\n--enable-static --enable-mpbsd --enable-fft --enable-cxx \\\r\n--host=x86_64-pc-freebsd10.0\r\nconfigure: summary of build options:\r\n\r\n  Version:           GNU MP 5.1.3\r\n  Host type:         x86_64-pc-freebsd10.0\r\n  ABI:               64\r\n  Install prefix:    \/usr\/x86_64-freebsd\r\n  Compiler:          gcc -std=gnu99\r\n  Static libraries:  yes\r\n  Shared libraries:  yes\r\n$ make -j 4\r\n$ make install\r\n+-------------------------------------------------------------+\r\n| CAUTION:                                                    |\r\n|                                                             |\r\n| If you have not already run &quot;make check&quot;, then we strongly  |\r\n| recommend you do so.                                        |\r\n|                                                             |\r\n| GMP has been carefully tested by its authors, but compilers |\r\n| are all too often released with serious bugs.  GMP tends to |\r\n| explore interesting corners in compilers and has hit bugs   |\r\n| on quite a few occasions.                                   |\r\n|                                                             |\r\n+-------------------------------------------------------------+\r\n$ make check\r\n<\/pre>\n<h4>GNU MPFR (mpfr)<\/h4>\n<p>The MPFR library is a C library for multiple-precision floating-point computations with correct rounding.<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n$ mv ~\/Downloads\/mpfr-3.1.2.tar.gz \/usr\/x86_64-freebsd\/src\r\n$ cd \/usr\/x86_64-freebsd\/src\r\n$ tar -xzf mpfr-3.1.2.tar.gz\r\n$ cd mpfr-3.1.2\r\n$ .\/configure --prefix=\/usr\/x86_64-freebsd --with-gnu-ld \\\r\n--with-gmp=\/usr\/x86_64-freebsd --enable-static \\\r\n--enable-shared --host=x86_64-pc-freebsd10.0\r\n$ make -j 4\r\n$ make install\r\n<\/pre>\n<h4>GNU MPC (mpc)<\/h4>\n<p>GNU MPC is a C library for the arithmetic of complex numbers with arbitrarily high precision and correct rounding of the result. <\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n$ mv ~\/Downloads\/mpc-1.0.2.tar.gz \/usr\/x86_64-freebsd\/src\r\n$ cd \/usr\/x86_64-freebsd\/src\r\n$ tar -xzf mpc-1.0.2.tar.gz\r\n$ cd mpc-1.0.2\r\n$  .\/configure --prefix=\/usr\/x86_64-freebsd --with-gnu-ld \\\r\n--with-gmp=\/usr\/x86_64-freebsd --with-mpfr=\/usr\/x86_64-freebsd \\\r\n--enable-static --enable-shared --host=x86_64-pc-freebsd10.0\r\n$ make -j 4\r\n$ make install\r\n<\/pre>\n<h4>GNU libgomp<\/h4>\n<p>The GOMP project has developed an implementation of OpenMP for the C, C++, and Fortran compilers in the GNU Compiler Collection and is further improving it. As part of the GNU Project, GOMP simplifies parallel programming for all GNU system variants. This effort operates in an open environment to attract developers and ensure applicability across multiple architectures and applications.<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nNot used!\r\n<\/pre>\n<h4>GCC<\/h4>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n$ mv ~\/Downloads\/gcc-4.8.3.tar.gz \/usr\/x86_64-freebsd\/src\r\n$ cd \/usr\/x86_64-freebsd\/src\r\n$ tar -xzf gcc-4.8.3.tar.gz\r\n$ cd gcc-4.8.3\r\n$ mkdir obj\r\n$ cd obj\r\n$ ..\/configure --without-headers --with-gnu-as --with-gnu-ld \\\r\n--enable-languages=c,c++ --disable-nls --enable-libssp \\\r\n--enable-gold --enable-ld --target=x86_64-pc-freebsd10.0 \\\r\n--prefix=\/usr\/x86_64-freebsd \\\r\n--with-gmp=\/usr\/x86_64-freebsd \\\r\n--with-mpc=\/usr\/x86_64-freebsd \\\r\n--with-mpfr=\/usr\/x86_64-freebsd \\\r\n--disable-libgomp\r\n$ LD_LIBRARY_PATH=\/usr\/x86_64-freebsd\/lib make -j 4\r\n\r\n..\/configure --without-headers --with-gnu-as --with-gnu-ld --enable-languages=c,c++ --disable-nls --enable-libssp --enable-gold --enable-ld --target=x86_64-pc-freebsd10.0 --prefix=\/usr\/x86_64-freebsd --with-gmp=\/usr\/x86_64-freebsd --with-mpc=\/usr\/x86_64-freebsd --with-mpfr=\/usr\/x86_64-freebsd --disable-libgomp --with-build-sysroot=\/usr\/x86_64-freebsd\r\n<\/pre>\n<h4>\n<h3>FAQ<\/h3>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n$ mv ~\/Downloads\/gcc-4.8.3.tar.gz \/usr\/x86_64-freebsd\/src\r\n$ cd \/usr\/x86_64-freebsd\/src\r\n$ tar -xzf gcc-4.8.3.tar.gz\r\n$ cd gcc-4.8.3\r\n$ mkdir obj\r\n$ cd obj\r\n$ ..\/configure &#x5B;...]\r\n$ LD_LIBRARY_PATH=\/usr\/x86_64-freebsd\/lib make -j 4\r\n&#x5B;...]\r\n\/usr\/x86_64-freebsd\/src\/gcc-4.8.3\/obj\/.\/gcc\/xgcc -B\/usr\/x86_64-freebsd\/src\/gcc-4.8.3\/obj\/.\/gcc\/ -B\/usr\/x86_64-freebsd\/x86_64-pc-freebsd10.0\/bin\/ -B\/usr\/x86_64-freebsd\/x86_64-pc-freebsd10.0\/lib\/ -isystem \/usr\/x86_64-freebsd\/x86_64-pc-freebsd10.0\/include -isystem \/usr\/x86_64-freebsd\/x86_64-pc-freebsd10.0\/sys-include    -O2  -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE  -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem .\/include   -fpic -pthread -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector -Dinhibit_libc -shared -nodefaultlibs -Wl,--soname=libgcc_s.so.1 -Wl,--version-script=libgcc.map -o .\/libgcc_s.so.1.tmp -g -O2 -B.\/ _muldi3_s.o _negdi2_s.o _lshrdi3_s.o _ashldi3_s.o _ashrdi3_s.o _cmpdi2_s.o _ucmpdi2_s.o _clear_cache_s.o _trampoline_s.o __main_s.o _absvsi2_s.o _absvdi2_s.o _addvsi3_s.o _addvdi3_s.o _subvsi3_s.o _subvdi3_s.o _mulvsi3_s.o _mulvdi3_s.o _negvsi2_s.o _negvdi2_s.o _ctors_s.o _ffssi2_s.o _ffsdi2_s.o _clz_s.o _clzsi2_s.o _clzdi2_s.o _ctzsi2_s.o _ctzdi2_s.o _popcount_tab_s.o _popcountsi2_s.o _popcountdi2_s.o _paritysi2_s.o _paritydi2_s.o _powisf2_s.o _powidf2_s.o _powixf2_s.o _powitf2_s.o _mulsc3_s.o _muldc3_s.o _mulxc3_s.o _multc3_s.o _divsc3_s.o _divdc3_s.o _divxc3_s.o _divtc3_s.o _bswapsi2_s.o _bswapdi2_s.o _clrsbsi2_s.o _clrsbdi2_s.o _fixunssfsi_s.o _fixunsdfsi_s.o _fixunsxfsi_s.o _fixsfdi_s.o _fixdfdi_s.o _fixxfdi_s.o _fixunssfdi_s.o _fixunsdfdi_s.o _fixunsxfdi_s.o _floatdisf_s.o _floatdidf_s.o _floatdixf_s.o _floatundisf_s.o _floatundidf_s.o _floatundixf_s.o _divdi3_s.o _moddi3_s.o _udivdi3_s.o _umoddi3_s.o _udiv_w_sdiv_s.o _udivmoddi4_s.o cpuinfo_s.o sfp-exceptions_s.o addtf3_s.o divtf3_s.o eqtf2_s.o getf2_s.o letf2_s.o multf3_s.o negtf2_s.o subtf3_s.o unordtf2_s.o fixtfsi_s.o fixunstfsi_s.o floatsitf_s.o floatunsitf_s.o fixtfdi_s.o fixunstfdi_s.o floatditf_s.o floatunditf_s.o fixtfti_s.o fixunstfti_s.o floattitf_s.o floatuntitf_s.o extendsftf2_s.o extenddftf2_s.o extendxftf2_s.o trunctfsf2_s.o trunctfdf2_s.o trunctfxf2_s.o enable-execute-stack_s.o unwind-dw2_s.o unwind-dw2-fde-dip_s.o unwind-sjlj_s.o unwind-c_s.o emutls_s.o libgcc.a -lc &amp;&amp; rm -f .\/libgcc_s.so &amp;&amp; if &#x5B; -f .\/libgcc_s.so.1 ]; then mv -f .\/libgcc_s.so.1 .\/libgcc_s.so.1.backup; else true; fi &amp;&amp; mv .\/libgcc_s.so.1.tmp .\/libgcc_s.so.1 &amp;&amp; ln -s libgcc_s.so.1 .\/libgcc_s.so\r\n\/usr\/x86_64-freebsd\/x86_64-pc-freebsd10.0\/bin\/ld: cannot find \/lib\/libc.so.7\r\n\/usr\/x86_64-freebsd\/x86_64-pc-freebsd10.0\/bin\/ld: cannot find \/usr\/lib\/libc_nonshared.a\r\n\/usr\/x86_64-freebsd\/x86_64-pc-freebsd10.0\/bin\/ld: cannot find \/usr\/lib\/libssp_nonshared.a\r\ncollect2: error: ld returned 1 exit status\r\nmake&#x5B;2]: *** &#x5B;libgcc_s.so] Error 1\r\nmake&#x5B;2]: Leaving directory `\/usr\/x86_64-freebsd\/src\/gcc-4.8.3\/obj\/x86_64-pc-freebsd10.0\/libgcc'\r\nmake&#x5B;1]: *** &#x5B;all-target-libgcc] Error 2\r\nmake&#x5B;1]: Leaving directory `\/usr\/x86_64-freebsd\/src\/gcc-4.8.3\/obj'\r\nmake: *** &#x5B;all] Error 2\r\n<\/pre>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n...\/bin\/ld: cannot find \/lib\/libc.so.7\r\n...\/bin\/ld: cannot find \/usr\/lib\/libc_nonshared.a\r\n...\/bin\/ld: cannot find \/usr\/lib\/libssp_nonshared.a\r\n<\/pre>\n<pre class=\"brush: plain; title: FreeBSD 10.0 (64-bit); notranslate\" title=\"FreeBSD 10.0 (64-bit)\">\r\n$ uname -a\r\nFreeBSD gateway 10.0-RELEASE FreeBSD 10.0-RELEASE #1: Sun Apr 20 15:45:27 CEST 2014     bachi@gateway:\/usr\/obj\/usr\/src\/sys\/INES  amd64\r\n\r\n$ find \/lib -name 'libc.so*'\r\n\/lib\/libc.so.7\r\n\r\n$ find \/usr\/lib -name 'libc.so*'\r\n\/usr\/lib\/libc.so\r\n\r\n$ find \/usr\/lib -name 'libc_nonshared*'\r\n\/usr\/lib\/libc_nonshared.a\r\n\r\n$ find \/usr\/lib -name 'libssp_nonshared*'\r\n\/usr\/lib\/libssp_nonshared.a\r\n<\/pre>\n<pre class=\"brush: plain; title: Xubuntu 12.10 (64-bit); notranslate\" title=\"Xubuntu 12.10 (64-bit)\">\r\n$ lsb_release -a\r\nDistributor ID: Ubuntu\r\nDescription:    Ubuntu quantal (development branch)\r\nRelease:        12.10\r\nCodename:       quantal\r\n\r\n$ uname -a\r\nLinux andreas-OptiPlex-9010 3.5.0-6-generic #6-Ubuntu SMP Mon Jul 23 19:52:14 UTC 2012 x86_64 x86_64 x86_64 GNU\/Linux\r\n\r\n$ find \/lib -name 'libc.so*'\r\n\/lib\/x86_64-linux-gnu\/libc.so.6\r\n\/lib\/i386-linux-gnu\/libc.so.6\r\n\r\n$ find \/usr\/lib -name 'libc.so*'\r\n\/usr\/lib\/x86_64-linux-gnu\/libc.so\r\n\r\n$ find \/usr\/lib -name 'libc_nonshared*'\r\n\/usr\/lib\/x86_64-linux-gnu\/libc_nonshared.a\r\n\r\n$ find \/usr\/lib -name 'libssp_nonshared*'\r\n\/usr\/lib\/gcc\/x86_64-linux-gnu\/4.7\/libssp_nonshared.a\r\n\/usr\/lib\/gcc\/arm-linux-gnueabi\/4.7\/libssp_nonshared.a\r\n<\/pre>\n<pre class=\"brush: plain; title: Xubuntu 14.04 (32-bit); notranslate\" title=\"Xubuntu 14.04 (32-bit)\">\r\n$ lsb_release -a\r\nDistributor ID: Ubuntu\r\nDescription:    Ubuntu 14.04.1 LTS\r\nRelease:        14.04\r\nCodename:       trusty\r\n\r\n$ uname -a\r\nLinux ines-OptiPlex-745 3.13.0-35-generic #62-Ubuntu SMP Fri Aug 15 01:58:01 UTC 2014 i686 i686 i686 GNU\/Linux\r\n\r\n$ find \/lib -name 'libc.so*'\r\n\/lib\/i386-linux-gnu\/libc.so.6\r\n\r\n$ find \/usr\/lib -name 'libc.so*'\r\n\/usr\/lib\/i386-linux-gnu\/libc.so\r\n\r\n$ find \/usr\/lib -name 'libc_nonshared*'\r\n\/usr\/lib\/i386-linux-gnu\/libc_nonshared.a\r\n\r\n$ find \/usr\/lib -name 'libssp_nonshared*'\r\n\/usr\/lib\/gcc\/i686-linux-gnu\/4.7\/libssp_nonshared.a\r\n\/usr\/lib\/gcc\/i686-linux-gnu\/4.8\/libssp_nonshared.a\r\n<\/pre>\n<h4>&#8211;disable-multilib<\/h4>\n<p>The same as above<\/p>\n<h4>Make without LD_LIBRARY_PATH<\/h4>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nmake&#x5B;2]: Leaving directory `\/usr\/x86_64-freebsd\/src\/gcc-4.7.4\/objdir\/gcc'\r\nChecking multilib configuration for libgcc...\r\nmkdir -p -- x86_64-pc-freebsd10.0\/libgcc\r\nConfiguring in x86_64-pc-freebsd10.0\/libgcc\r\nconfigure: creating cache .\/config.cache\r\nchecking build system type... x86_64-unknown-linux-gnu\r\nchecking host system type... x86_64-pc-freebsd10.0\r\nchecking for --enable-version-specific-runtime-libs... no\r\nchecking for a BSD-compatible install... \/usr\/bin\/install -c\r\nchecking for gawk... gawk\r\nchecking for x86_64-pc-freebsd10.0-ar... \/usr\/x86_64-freebsd\/x86_64-pc-freebsd10.0\/bin\/ar\r\nchecking for x86_64-pc-freebsd10.0-lipo... x86_64-pc-freebsd10.0-lipo\r\nchecking for x86_64-pc-freebsd10.0-nm... \/usr\/x86_64-freebsd\/src\/gcc-4.7.4\/objdir\/.\/gcc\/nm\r\nchecking for x86_64-pc-freebsd10.0-ranlib... \/usr\/x86_64-freebsd\/x86_64-pc-freebsd10.0\/bin\/ranlib\r\nchecking for x86_64-pc-freebsd10.0-strip... \/usr\/x86_64-freebsd\/x86_64-pc-freebsd10.0\/bin\/strip\r\nchecking whether ln -s works... yes\r\nchecking for x86_64-pc-freebsd10.0-gcc... \/usr\/x86_64-freebsd\/src\/gcc-4.7.4\/objdir\/.\/gcc\/xgcc -B\/usr\/x86_64-freebsd\/src\/gcc-4.7.4\/objdir\/.\/gcc\/ -B\/usr\/x86_64-freebsd\/x86_64-pc-freebsd10.0\/bin\/ -B\/usr\/x86_64-freebsd\/x86_64-pc-freebsd10.0\/lib\/ -isystem \/usr\/x86_64-freebsd\/x86_64-pc-freebsd10.0\/include -isystem \/usr\/x86_64-freebsd\/x86_64-pc-freebsd10.0\/sys-include   \r\nchecking for suffix of object files... configure: error: in `\/usr\/x86_64-freebsd\/src\/gcc-4.7.4\/objdir\/x86_64-pc-freebsd10.0\/libgcc':\r\nconfigure: error: cannot compute suffix of object files: cannot compile\r\nSee `config.log' for more details.\r\nmake&#x5B;1]: *** &#x5B;configure-target-libgcc] Error 1\r\nmake&#x5B;1]: Leaving directory `\/usr\/x86_64-freebsd\/src\/gcc-4.7.4\/objdir'\r\nmake: *** &#x5B;all] Error 2\r\n<\/pre>\n<pre class=\"brush: plain; title: \/usr\/x86_64-freebsd\/src\/gcc-4.7.4\/objdir\/x86_64-pc-freebsd10.0\/libgcc\/config.log; notranslate\" title=\"\/usr\/x86_64-freebsd\/src\/gcc-4.7.4\/objdir\/x86_64-pc-freebsd10.0\/libgcc\/config.log\">\r\n...\r\n<\/pre>\n<h4>Configure with &#8211;with-build-sysroot<\/h4>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n# ..\/configure --without-headers --with-gnu-as --with-gnu-ld --enable-languages=c,c++ --disable-nls --enable-libssp --enable-gold --enable-ld --target=x86_64-pc-freebsd10.0 --prefix=\/usr\/x86_64-freebsd --with-gmp=\/usr\/x86_64-freebsd --with-mpc=\/usr\/x86_64-freebsd --with-mpfr=\/usr\/x86_64-freebsd --disable-libgomp --disable-multilib --with-build-sysroot=\/usr\/x86_64-freebsd\r\n\r\n# LD_LIBRARY_PATH=\/usr\/x86_64-freebsd\/lib make -j 4\r\n&#x5B;...]\r\n\/usr\/x86_64-freebsd\/src\/gcc-4.7.4\/objdir\/.\/gcc\/xgcc -B\/usr\/x86_64-freebsd\/src\/gcc-4.7.4\/objdir\/.\/gcc\/ -B\/usr\/x86_64-freebsd\/x86_64-pc-freebsd10.0\/bin\/ -B\/usr\/x86_64-freebsd\/x86_64-pc-freebsd10.0\/lib\/ -isystem \/usr\/x86_64-freebsd\/x86_64-pc-freebsd10.0\/include -isystem \/usr\/x86_64-freebsd\/x86_64-pc-freebsd10.0\/sys-include --sysroot=\/usr\/x86_64-freebsd   -O2  -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE  -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem .\/include   -fpic -pthread -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector -Dinhibit_libc -shared -nodefaultlibs -Wl,--soname=libgcc_s.so.1 -Wl,--version-script=libgcc.map -o .\/libgcc_s.so.1.tmp -g -O2 -B.\/ _muldi3_s.o _negdi2_s.o _lshrdi3_s.o _ashldi3_s.o _ashrdi3_s.o _cmpdi2_s.o _ucmpdi2_s.o _clear_cache_s.o _trampoline_s.o __main_s.o _absvsi2_s.o _absvdi2_s.o _addvsi3_s.o _addvdi3_s.o _subvsi3_s.o _subvdi3_s.o _mulvsi3_s.o _mulvdi3_s.o _negvsi2_s.o _negvdi2_s.o _ctors_s.o _ffssi2_s.o _ffsdi2_s.o _clz_s.o _clzsi2_s.o _clzdi2_s.o _ctzsi2_s.o _ctzdi2_s.o _popcount_tab_s.o _popcountsi2_s.o _popcountdi2_s.o _paritysi2_s.o _paritydi2_s.o _powisf2_s.o _powidf2_s.o _powixf2_s.o _powitf2_s.o _mulsc3_s.o _muldc3_s.o _mulxc3_s.o _multc3_s.o _divsc3_s.o _divdc3_s.o _divxc3_s.o _divtc3_s.o _bswapsi2_s.o _bswapdi2_s.o _clrsbsi2_s.o _clrsbdi2_s.o _fixunssfsi_s.o _fixunsdfsi_s.o _fixunsxfsi_s.o _fixsfdi_s.o _fixdfdi_s.o _fixxfdi_s.o _fixunssfdi_s.o _fixunsdfdi_s.o _fixunsxfdi_s.o _floatdisf_s.o _floatdidf_s.o _floatdixf_s.o _floatundisf_s.o _floatundidf_s.o _floatundixf_s.o _divdi3_s.o _moddi3_s.o _udivdi3_s.o _umoddi3_s.o _udiv_w_sdiv_s.o _udivmoddi4_s.o addtf3_s.o divtf3_s.o eqtf2_s.o getf2_s.o letf2_s.o multf3_s.o negtf2_s.o subtf3_s.o unordtf2_s.o fixtfsi_s.o fixunstfsi_s.o floatsitf_s.o floatunsitf_s.o fixtfdi_s.o fixunstfdi_s.o floatditf_s.o floatunditf_s.o fixtfti_s.o fixunstfti_s.o floattitf_s.o floatuntitf_s.o extendsftf2_s.o extenddftf2_s.o extendxftf2_s.o trunctfsf2_s.o trunctfdf2_s.o trunctfxf2_s.o enable-execute-stack_s.o unwind-dw2_s.o unwind-dw2-fde-dip_s.o unwind-sjlj_s.o unwind-c_s.o emutls_s.o libgcc.a -lc &amp;&amp; rm -f .\/libgcc_s.so &amp;&amp; if &#x5B; -f .\/libgcc_s.so.1 ]; then mv -f .\/libgcc_s.so.1 .\/libgcc_s.so.1.backup; else true; fi &amp;&amp; mv .\/libgcc_s.so.1.tmp .\/libgcc_s.so.1 &amp;&amp; ln -s libgcc_s.so.1 .\/libgcc_s.so\r\n\/usr\/x86_64-freebsd\/x86_64-pc-freebsd10.0\/bin\/ld: this linker was not configured to use sysroots\r\ncollect2: error: ld returned 1 exit status\r\nmake&#x5B;2]: *** &#x5B;libgcc_s.so] Error 1\r\nmake&#x5B;2]: Leaving directory `\/usr\/x86_64-freebsd\/src\/gcc-4.7.4\/objdir\/x86_64-pc-freebsd10.0\/libgcc'\r\nmake&#x5B;1]: *** &#x5B;all-target-libgcc] Error 2\r\nmake&#x5B;1]: Leaving directory `\/usr\/x86_64-freebsd\/src\/gcc-4.7.4\/objdir'\r\nmake: *** &#x5B;all] Error 2\r\n<\/pre>\n<p>========================================================================<\/p>\n<h2>Alles mit sysroot<\/h2>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n$ .\/configure --enable-libssp --enable-gold --enable-ld --target=x86_64-pc-freebsd10.0 --prefix=\/usr\/x86_64-freebsd --with-build-sysroot=\/usr\/x86_64-freebsd\/x86_64-pc-freebsd10.0\r\n<\/pre>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n$ ..\/configure \\\r\n--with-gnu-as \\\r\n--with-gnu-ld \\\r\n--enable-languages=c,c++ \\\r\n--disable-nls \\\r\n--enable-libssp \\\r\n--enable-gold \\\r\n--enable-ld \\\r\n--target=x86_64-pc-freebsd10.0 \\\r\n--prefix=\/usr\/x86_64-freebsd \\\r\n--with-gmp=\/usr\/x86_64-freebsd \\\r\n--with-mpc=\/usr\/x86_64-freebsd \\\r\n--with-mpfr=\/usr\/x86_64-freebsd \\\r\n--disable-libgomp \\\r\n--disable-multilib \\\r\n--with-build-sysroot=\/usr\/x86_64-freebsd\/x86_64-pc-freebsd10.0\r\n$ LD_LIBRARY_PATH=\/usr\/x86_64-freebsd\/lib make\r\n&#x5B;...]\r\n\r\nmake&#x5B;2]: Entering directory `\/usr\/x86_64-freebsd\/src\/gcc-4.8.3\/objdir\/x86_64-pc-freebsd10.0\/libgcc'\r\n# If this is the top-level multilib, build all the other\r\n# multilibs.\r\nDEFINES='' HEADERS='' \\\r\n\t\t..\/..\/..\/libgcc\/mkheader.sh &gt; tmp-libgcc_tm.h\r\n\/bin\/bash ..\/..\/..\/libgcc\/..\/move-if-change tmp-libgcc_tm.h libgcc_tm.h\r\necho timestamp &gt; libgcc_tm.stamp\r\n\/usr\/x86_64-freebsd\/src\/gcc-4.8.3\/objdir\/.\/gcc\/xgcc -B\/usr\/x86_64-freebsd\/src\/gcc-4.8.3\/objdir\/.\/gcc\/ -B\/usr\/x86_64-freebsd\/x86_64-pc-freebsd10.0\/bin\/ -B\/usr\/x86_64-freebsd\/x86_64-pc-freebsd10.0\/lib\/ -isystem \/usr\/x86_64-freebsd\/x86_64-pc-freebsd10.0\/include -isystem \/usr\/x86_64-freebsd\/x86_64-pc-freebsd10.0\/sys-include --sysroot=\/usr\/x86_64-freebsd\/x86_64-pc-freebsd10.0   -g -O2 -O2  -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE  -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem .\/include   -fpic -pthread -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector -Dinhibit_libc  -fpic -pthread -I. -I. -I..\/..\/.\/gcc -I..\/..\/..\/libgcc -I..\/..\/..\/libgcc\/. -I..\/..\/..\/libgcc\/..\/gcc -I..\/..\/..\/libgcc\/..\/include  -DHAVE_CC_TLS  -o _muldi3.o -MT _muldi3.o -MD -MP -MF _muldi3.dep -DL_muldi3 -c ..\/..\/..\/libgcc\/libgcc2.c -fvisibility=hidden -DHIDE_EXPORTS\r\nIn file included from ..\/..\/..\/libgcc\/..\/gcc\/tsystem.h:44:0,\r\n                 from ..\/..\/..\/libgcc\/libgcc2.c:27:\r\n\/usr\/x86_64-freebsd\/src\/gcc-4.8.3\/objdir\/gcc\/include\/stddef.h:56:24: fatal error: sys\/_types.h: No such file or directory\r\n #include &lt;sys\/_types.h&gt;\r\n                        ^\r\ncompilation terminated.\r\nmake&#x5B;2]: *** &#x5B;_muldi3.o] Error 1\r\nmake&#x5B;2]: Leaving directory `\/usr\/x86_64-freebsd\/src\/gcc-4.8.3\/objdir\/x86_64-pc-freebsd10.0\/libgcc'\r\nmake&#x5B;1]: *** &#x5B;all-target-libgcc] Error 2\r\nmake&#x5B;1]: Leaving directory `\/usr\/x86_64-freebsd\/src\/gcc-4.8.3\/objdir'\r\nmake: *** &#x5B;all] Error 2\r\n\r\n# find \/usr\/x86_64-freebsd\/x86_64-pc-freebsd10.0\/usr\/include -name _types.h\r\n\/usr\/x86_64-freebsd\/x86_64-pc-freebsd10.0\/usr\/include\/sys\/_types.h\r\n\/usr\/x86_64-freebsd\/x86_64-pc-freebsd10.0\/usr\/include\/machine\/_types.h\r\n\/usr\/x86_64-freebsd\/x86_64-pc-freebsd10.0\/usr\/include\/x86\/_types.h\r\n<\/pre>\n<p>==========================<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n\/bin\/bash ..\/libtool --tag CXX   --mode=link \/usr\/x86_64-freebsd\/src\/gcc-4.8.3\/objdir\/.\/gcc\/xgcc -shared-libgcc -B\/usr\/x86_64-freebsd\/src\/gcc-4.8.3\/objdir\/.\/gcc -nostdinc++ -L\/usr\/x86_64-freebsd\/src\/gcc-4.8.3\/objdir\/x86_64-pc-freebsd10.0\/libstdc++-v3\/src -L\/usr\/x86_64-freebsd\/src\/gcc-4.8.3\/objdir\/x86_64-pc-freebsd10.0\/libstdc++-v3\/src\/.libs -B\/usr\/x86_64-freebsd\/x86_64-pc-freebsd10.0\/bin\/ -B\/usr\/x86_64-freebsd\/x86_64-pc-freebsd10.0\/lib\/ -isystem \/usr\/x86_64-freebsd\/x86_64-pc-freebsd10.0\/include -isystem \/usr\/x86_64-freebsd\/x86_64-pc-freebsd10.0\/sys-include --sysroot=\/usr\/x86_64-freebsd\/x86_64-pc-freebsd10.0   -Wl,-O1 -Wl,-z,relro -Wl,--gc-sections  -fPIC -DPIC  -Wall -Wextra -Wwrite-strings -Wcast-qual -Wabi  -fdiagnostics-show-location=once   -ffunction-sections -fdata-sections  -frandom-seed=libstdc++.la  -o libstdc++.la -version-info 6:19:0 -Wl,--version-script=libstdc++-symbols.ver -lm -rpath \/usr\/x86_64-freebsd\/x86_64-pc-freebsd10.0\/lib compatibility.lo compatibility-debug_list.lo compatibility-debug_list-2.lo  compatibility-c++0x.lo compatibility-atomic-c++0x.lo compatibility-thread-c++0x.lo compatibility-chrono.lo  ..\/libsupc++\/libsupc++convenience.la ..\/src\/c++98\/libc++98convenience.la ..\/src\/c++11\/libc++11convenience.la \r\nlibtool: link:  \/usr\/x86_64-freebsd\/src\/gcc-4.8.3\/objdir\/.\/gcc\/xgcc -shared-libgcc -B\/usr\/x86_64-freebsd\/src\/gcc-4.8.3\/objdir\/.\/gcc -nostdinc++ -L\/usr\/x86_64-freebsd\/src\/gcc-4.8.3\/objdir\/x86_64-pc-freebsd10.0\/libstdc++-v3\/src -L\/usr\/x86_64-freebsd\/src\/gcc-4.8.3\/objdir\/x86_64-pc-freebsd10.0\/libstdc++-v3\/src\/.libs -B\/usr\/x86_64-freebsd\/x86_64-pc-freebsd10.0\/bin\/ -B\/usr\/x86_64-freebsd\/x86_64-pc-freebsd10.0\/lib\/ -isystem \/usr\/x86_64-freebsd\/x86_64-pc-freebsd10.0\/include -isystem \/usr\/x86_64-freebsd\/x86_64-pc-freebsd10.0\/sys-include --sysroot=\/usr\/x86_64-freebsd\/x86_64-pc-freebsd10.0   -shared -nostdlib \/usr\/x86_64-freebsd\/x86_64-pc-freebsd10.0\/usr\/lib\/crti.o \/usr\/x86_64-freebsd\/src\/gcc-4.8.3\/objdir\/.\/gcc\/crtbeginS.o  .libs\/compatibility.o .libs\/compatibility-debug_list.o .libs\/compatibility-debug_list-2.o .libs\/compatibility-c++0x.o .libs\/compatibility-atomic-c++0x.o .libs\/compatibility-thread-c++0x.o .libs\/compatibility-chrono.o  -Wl,--whole-archive ..\/libsupc++\/.libs\/libsupc++convenience.a ..\/src\/c++98\/.libs\/libc++98convenience.a ..\/src\/c++11\/.libs\/libc++11convenience.a -Wl,--no-whole-archive  -L\/usr\/x86_64-freebsd\/src\/gcc-4.8.3\/objdir\/x86_64-pc-freebsd10.0\/libstdc++-v3\/src -L\/usr\/x86_64-freebsd\/src\/gcc-4.8.3\/objdir\/x86_64-pc-freebsd10.0\/libstdc++-v3\/src\/.libs -lm -L\/usr\/x86_64-freebsd\/src\/gcc-4.8.3\/objdir\/.\/gcc -L\/usr\/x86_64-freebsd\/x86_64-pc-freebsd10.0\/bin -L\/usr\/x86_64-freebsd\/x86_64-pc-freebsd10.0\/lib -L\/usr\/x86_64-freebsd\/x86_64-pc-freebsd10.0\/usr\/lib -lc -lgcc_s \/usr\/x86_64-freebsd\/src\/gcc-4.8.3\/objdir\/.\/gcc\/crtendS.o \/usr\/x86_64-freebsd\/x86_64-pc-freebsd10.0\/usr\/lib\/crtn.o  -Wl,-O1 -Wl,-z -Wl,relro -Wl,--gc-sections -Wl,--version-script=libstdc++-symbols.ver   -Wl,-soname -Wl,libstdc++.so.6 -o .libs\/libstdc++.so.6\r\n\/usr\/x86_64-freebsd\/x86_64-pc-freebsd10.0\/bin\/ld: \/usr\/x86_64-freebsd\/x86_64-pc-freebsd10.0\/usr\/lib\/libm.a(e_sinh.o): relocation R_X86_64_32S against `.rodata.cst16' can not be used when making a shared object; recompile with -fPIC\r\n\/usr\/x86_64-freebsd\/x86_64-pc-freebsd10.0\/usr\/lib\/libm.a: error adding symbols: Bad value\r\ncollect2: error: ld returned 1 exit status\r\nmake&#x5B;5]: *** &#x5B;libstdc++.la] Error 1\r\nmake&#x5B;5]: Leaving directory `\/usr\/x86_64-freebsd\/src\/gcc-4.8.3\/objdir\/x86_64-pc-freebsd10.0\/libstdc++-v3\/src'\r\nmake&#x5B;4]: *** &#x5B;all-recursive] Error 1\r\nmake&#x5B;4]: Leaving directory `\/usr\/x86_64-freebsd\/src\/gcc-4.8.3\/objdir\/x86_64-pc-freebsd10.0\/libstdc++-v3\/src'\r\nmake&#x5B;3]: *** &#x5B;all-recursive] Error 1\r\nmake&#x5B;3]: Leaving directory `\/usr\/x86_64-freebsd\/src\/gcc-4.8.3\/objdir\/x86_64-pc-freebsd10.0\/libstdc++-v3'\r\nmake&#x5B;2]: *** &#x5B;all] Error 2\r\nmake&#x5B;2]: Leaving directory `\/usr\/x86_64-freebsd\/src\/gcc-4.8.3\/objdir\/x86_64-pc-freebsd10.0\/libstdc++-v3'\r\nmake&#x5B;1]: *** &#x5B;all-target-libstdc++-v3] Error 2\r\nmake&#x5B;1]: Leaving directory `\/usr\/x86_64-freebsd\/src\/gcc-4.8.3\/objdir'\r\nmake: *** &#x5B;all] Error 2\r\n<\/pre>\n<p><a href=\"http:\/\/stackoverflow.com\/questions\/13812185\/how-to-recompile-with-fpic\">how to recompile with -fPIC<\/a><br \/>\n<a href=\"https:\/\/www.gentoo.org\/proj\/en\/base\/amd64\/howtos\/index.xml?part=1&#038;chap=3\">HOWTO fix -fPIC errors<\/a><\/p>\n<p>===================================================<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n..\/configure --with-gnu-as --with-gnu-ld --enable-languages=c,c++ --disable-nls --enable-libssp --enable-gold --enable-ld --target=x86_64-pc-freebsd10.0 --prefix=\/usr\/x86_64-freebsd --with-gmp=\/usr\/x86_64-freebsd --with-mpc=\/usr\/x86_64-freebsd --with-mpfr=\/usr\/x86_64-freebsd --disable-libgomp --enable-shared --with-sysroot=\/usr\/x86_64-freebsd\/x86_64-pc-freebsd10.0\r\n<\/pre>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n\/usr\/x86_64-freebsd\/src\/gcc-4.8.3\/objdir\/.\/gcc\/xgcc -B\/usr\/x86_64-freebsd\/src\/gcc-4.8.3\/objdir\/.\/gcc\/ -B\/usr\/x86_64-freebsd\/x86_64-pc-freebsd10.0\/bin\/ -B\/usr\/x86_64-freebsd\/x86_64-pc-freebsd10.0\/lib\/ -isystem \/usr\/x86_64-freebsd\/x86_64-pc-freebsd10.0\/include -isystem \/usr\/x86_64-freebsd\/x86_64-pc-freebsd10.0\/sys-include    -O2  -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE  -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem .\/include   -fpic -pthread -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector  -shared -nodefaultlibs -Wl,--soname=libgcc_s.so.1 -Wl,--version-script=libgcc.map -o .\/libgcc_s.so.1.tmp -g -O2 -B.\/ _muldi3_s.o _negdi2_s.o _lshrdi3_s.o _ashldi3_s.o _ashrdi3_s.o _cmpdi2_s.o _ucmpdi2_s.o _clear_cache_s.o _trampoline_s.o __main_s.o _absvsi2_s.o _absvdi2_s.o _addvsi3_s.o _addvdi3_s.o _subvsi3_s.o _subvdi3_s.o _mulvsi3_s.o _mulvdi3_s.o _negvsi2_s.o _negvdi2_s.o _ctors_s.o _ffssi2_s.o _ffsdi2_s.o _clz_s.o _clzsi2_s.o _clzdi2_s.o _ctzsi2_s.o _ctzdi2_s.o _popcount_tab_s.o _popcountsi2_s.o _popcountdi2_s.o _paritysi2_s.o _paritydi2_s.o _powisf2_s.o _powidf2_s.o _powixf2_s.o _powitf2_s.o _mulsc3_s.o _muldc3_s.o _mulxc3_s.o _multc3_s.o _divsc3_s.o _divdc3_s.o _divxc3_s.o _divtc3_s.o _bswapsi2_s.o _bswapdi2_s.o _clrsbsi2_s.o _clrsbdi2_s.o _fixunssfsi_s.o _fixunsdfsi_s.o _fixunsxfsi_s.o _fixsfdi_s.o _fixdfdi_s.o _fixxfdi_s.o _fixunssfdi_s.o _fixunsdfdi_s.o _fixunsxfdi_s.o _floatdisf_s.o _floatdidf_s.o _floatdixf_s.o _floatundisf_s.o _floatundidf_s.o _floatundixf_s.o _divdi3_s.o _moddi3_s.o _udivdi3_s.o _umoddi3_s.o _udiv_w_sdiv_s.o _udivmoddi4_s.o cpuinfo_s.o sfp-exceptions_s.o addtf3_s.o divtf3_s.o eqtf2_s.o getf2_s.o letf2_s.o multf3_s.o negtf2_s.o subtf3_s.o unordtf2_s.o fixtfsi_s.o fixunstfsi_s.o floatsitf_s.o floatunsitf_s.o fixtfdi_s.o fixunstfdi_s.o floatditf_s.o floatunditf_s.o fixtfti_s.o fixunstfti_s.o floattitf_s.o floatuntitf_s.o extendsftf2_s.o extenddftf2_s.o extendxftf2_s.o trunctfsf2_s.o trunctfdf2_s.o trunctfxf2_s.o enable-execute-stack_s.o unwind-dw2_s.o unwind-dw2-fde-dip_s.o unwind-sjlj_s.o unwind-c_s.o emutls_s.o libgcc.a -lc &amp;&amp; rm -f .\/libgcc_s.so &amp;&amp; if &#x5B; -f .\/libgcc_s.so.1 ]; then mv -f .\/libgcc_s.so.1 .\/libgcc_s.so.1.backup; else true; fi &amp;&amp; mv .\/libgcc_s.so.1.tmp .\/libgcc_s.so.1 &amp;&amp; ln -s libgcc_s.so.1 .\/libgcc_s.so\r\n\/usr\/x86_64-freebsd\/x86_64-pc-freebsd10.0\/bin\/ld: cannot find crti.o: No such file or directory\r\n\/usr\/x86_64-freebsd\/x86_64-pc-freebsd10.0\/bin\/ld: cannot find -lc\r\n\/usr\/x86_64-freebsd\/x86_64-pc-freebsd10.0\/bin\/ld: cannot find crtn.o: No such file or directory\r\ncollect2: error: ld returned 1 exit status\r\nmake&#x5B;2]: *** &#x5B;libgcc_s.so] Error 1\r\nmake&#x5B;2]: Leaving directory `\/usr\/x86_64-freebsd\/src\/gcc-4.8.3\/objdir\/x86_64-pc-freebsd10.0\/libgcc'\r\nmake&#x5B;1]: *** &#x5B;all-target-libgcc] Error 2\r\nmake&#x5B;1]: Leaving directory `\/usr\/x86_64-freebsd\/src\/gcc-4.8.3\/objdir'\r\nmake: *** &#x5B;all] Error 2\r\n<\/pre>\n<p>========================================<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nlibtool: compile:  \/usr\/x86_64-freebsd\/src\/gcc-4.8.3\/objdir\/.\/gcc\/xgcc -shared-libgcc -B\/usr\/x86_64-freebsd\/src\/gcc-4.8.3\/objdir\/.\/gcc -nostdinc++ -L\/usr\/x86_64-freebsd\/src\/gcc-4.8.3\/objdir\/x86_64-pc-freebsd10.0\/libstdc++-v3\/src -L\/usr\/x86_64-freebsd\/src\/gcc-4.8.3\/objdir\/x86_64-pc-freebsd10.0\/libstdc++-v3\/src\/.libs -B\/usr\/x86_64-freebsd\/x86_64-pc-freebsd10.0\/bin\/ -B\/usr\/x86_64-freebsd\/x86_64-pc-freebsd10.0\/lib\/ -isystem \/usr\/x86_64-freebsd\/x86_64-pc-freebsd10.0\/include -isystem \/usr\/x86_64-freebsd\/x86_64-pc-freebsd10.0\/sys-include --sysroot=\/usr\/x86_64-freebsd\/x86_64-pc-freebsd10.0 -I\/usr\/x86_64-freebsd\/src\/gcc-4.8.3\/objdir\/x86_64-pc-freebsd10.0\/libstdc++-v3\/include\/x86_64-pc-freebsd10.0 -I\/usr\/x86_64-freebsd\/src\/gcc-4.8.3\/objdir\/x86_64-pc-freebsd10.0\/libstdc++-v3\/include -I\/usr\/x86_64-freebsd\/src\/gcc-4.8.3\/libstdc++-v3\/libsupc++ -fPIC -DPIC -Wall -Wextra -Wwrite-strings -Wcast-qual -Wabi -fdiagnostics-show-location=once -ffunction-sections -fdata-sections -frandom-seed=compatibility-thread-c++0x.lo -g -O2 -std=gnu++11 -c ..\/..\/..\/..\/libstdc++-v3\/src\/c++11\/compatibility-thread-c++0x.cc -o compatibility-thread-c++0x.o &gt;\/dev\/null 2&gt;&amp;1\r\n\/bin\/bash ..\/libtool --tag CXX   --mode=link \/usr\/x86_64-freebsd\/src\/gcc-4.8.3\/objdir\/.\/gcc\/xgcc -shared-libgcc -B\/usr\/x86_64-freebsd\/src\/gcc-4.8.3\/objdir\/.\/gcc -nostdinc++ -L\/usr\/x86_64-freebsd\/src\/gcc-4.8.3\/objdir\/x86_64-pc-freebsd10.0\/libstdc++-v3\/src -L\/usr\/x86_64-freebsd\/src\/gcc-4.8.3\/objdir\/x86_64-pc-freebsd10.0\/libstdc++-v3\/src\/.libs -B\/usr\/x86_64-freebsd\/x86_64-pc-freebsd10.0\/bin\/ -B\/usr\/x86_64-freebsd\/x86_64-pc-freebsd10.0\/lib\/ -isystem \/usr\/x86_64-freebsd\/x86_64-pc-freebsd10.0\/include -isystem \/usr\/x86_64-freebsd\/x86_64-pc-freebsd10.0\/sys-include --sysroot=\/usr\/x86_64-freebsd\/x86_64-pc-freebsd10.0   -Wl,-O1 -Wl,-z,relro -Wl,--gc-sections  -fPIC -DPIC  -Wall -Wextra -Wwrite-strings -Wcast-qual -Wabi  -fdiagnostics-show-location=once   -ffunction-sections -fdata-sections  -frandom-seed=libstdc++.la  -o libstdc++.la -version-info 6:19:0 -Wl,--version-script=libstdc++-symbols.ver -lm -rpath \/usr\/x86_64-freebsd\/x86_64-pc-freebsd10.0\/lib compatibility.lo compatibility-debug_list.lo compatibility-debug_list-2.lo  compatibility-c++0x.lo compatibility-atomic-c++0x.lo compatibility-thread-c++0x.lo compatibility-chrono.lo  ..\/libsupc++\/libsupc++convenience.la ..\/src\/c++98\/libc++98convenience.la ..\/src\/c++11\/libc++11convenience.la \r\nlibtool: link:  \/usr\/x86_64-freebsd\/src\/gcc-4.8.3\/objdir\/.\/gcc\/xgcc -shared-libgcc -B\/usr\/x86_64-freebsd\/src\/gcc-4.8.3\/objdir\/.\/gcc -nostdinc++ -L\/usr\/x86_64-freebsd\/src\/gcc-4.8.3\/objdir\/x86_64-pc-freebsd10.0\/libstdc++-v3\/src -L\/usr\/x86_64-freebsd\/src\/gcc-4.8.3\/objdir\/x86_64-pc-freebsd10.0\/libstdc++-v3\/src\/.libs -B\/usr\/x86_64-freebsd\/x86_64-pc-freebsd10.0\/bin\/ -B\/usr\/x86_64-freebsd\/x86_64-pc-freebsd10.0\/lib\/ -isystem \/usr\/x86_64-freebsd\/x86_64-pc-freebsd10.0\/include -isystem \/usr\/x86_64-freebsd\/x86_64-pc-freebsd10.0\/sys-include --sysroot=\/usr\/x86_64-freebsd\/x86_64-pc-freebsd10.0   -shared -nostdlib \/usr\/x86_64-freebsd\/x86_64-pc-freebsd10.0\/usr\/lib\/crti.o \/usr\/x86_64-freebsd\/src\/gcc-4.8.3\/objdir\/.\/gcc\/crtbeginS.o  .libs\/compatibility.o .libs\/compatibility-debug_list.o .libs\/compatibility-debug_list-2.o .libs\/compatibility-c++0x.o .libs\/compatibility-atomic-c++0x.o .libs\/compatibility-thread-c++0x.o .libs\/compatibility-chrono.o  -Wl,--whole-archive ..\/libsupc++\/.libs\/libsupc++convenience.a ..\/src\/c++98\/.libs\/libc++98convenience.a ..\/src\/c++11\/.libs\/libc++11convenience.a -Wl,--no-whole-archive  -L\/usr\/x86_64-freebsd\/src\/gcc-4.8.3\/objdir\/x86_64-pc-freebsd10.0\/libstdc++-v3\/src -L\/usr\/x86_64-freebsd\/src\/gcc-4.8.3\/objdir\/x86_64-pc-freebsd10.0\/libstdc++-v3\/src\/.libs -lm -L\/usr\/x86_64-freebsd\/src\/gcc-4.8.3\/objdir\/.\/gcc -L\/usr\/x86_64-freebsd\/x86_64-pc-freebsd10.0\/bin -L\/usr\/x86_64-freebsd\/x86_64-pc-freebsd10.0\/lib -L\/usr\/x86_64-freebsd\/x86_64-pc-freebsd10.0\/usr\/lib -lc -lgcc_s \/usr\/x86_64-freebsd\/src\/gcc-4.8.3\/objdir\/.\/gcc\/crtendS.o \/usr\/x86_64-freebsd\/x86_64-pc-freebsd10.0\/usr\/lib\/crtn.o  -Wl,-O1 -Wl,-z -Wl,relro -Wl,--gc-sections -Wl,--version-script=libstdc++-symbols.ver   -Wl,-soname -Wl,libstdc++.so.6 -o .libs\/libstdc++.so.6\r\n\/usr\/x86_64-freebsd\/x86_64-pc-freebsd10.0\/bin\/ld: \/usr\/x86_64-freebsd\/x86_64-pc-freebsd10.0\/usr\/lib\/libm.a(e_sinh.o): relocation R_X86_64_32S against `.rodata.cst16' can not be used when making a shared object; recompile with -fPIC\r\n\/usr\/x86_64-freebsd\/x86_64-pc-freebsd10.0\/usr\/lib\/libm.a: error adding symbols: Bad value\r\ncollect2: error: ld returned 1 exit status\r\nmake&#x5B;5]: *** &#x5B;libstdc++.la] Error 1\r\nmake&#x5B;5]: Leaving directory `\/usr\/x86_64-freebsd\/src\/gcc-4.8.3\/objdir\/x86_64-pc-freebsd10.0\/libstdc++-v3\/src'\r\nmake&#x5B;4]: *** &#x5B;all-recursive] Error 1\r\nmake&#x5B;4]: Leaving directory `\/usr\/x86_64-freebsd\/src\/gcc-4.8.3\/objdir\/x86_64-pc-freebsd10.0\/libstdc++-v3\/src'\r\nmake&#x5B;3]: *** &#x5B;all-recursive] Error 1\r\nmake&#x5B;3]: Leaving directory `\/usr\/x86_64-freebsd\/src\/gcc-4.8.3\/objdir\/x86_64-pc-freebsd10.0\/libstdc++-v3'\r\nmake&#x5B;2]: *** &#x5B;all] Error 2\r\nmake&#x5B;2]: Leaving directory `\/usr\/x86_64-freebsd\/src\/gcc-4.8.3\/objdir\/x86_64-pc-freebsd10.0\/libstdc++-v3'\r\nmake&#x5B;1]: *** &#x5B;all-target-libstdc++-v3] Error 2\r\nmake&#x5B;1]: Leaving directory `\/usr\/x86_64-freebsd\/src\/gcc-4.8.3\/objdir'\r\nmake: *** &#x5B;all] Error 2\r\n<\/pre>\n<p>============================================<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n..\/configure --with-gnu-as --with-gnu-ld --enable-languages=c,c++ --disable-nls --enable-libssp --enable-gold --enable-ld --target=x86_64-pc-freebsd10.0 --prefix=\/usr\/x86_64-freebsd --with-gmp=\/usr\/x86_64-freebsd --with-mpc=\/usr\/x86_64-freebsd --with-mpfr=\/usr\/x86_64-freebsd --disable-libgomp\r\n<\/pre>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n\/bin\/bash ..\/..\/..\/libgcc\/..\/mkinstalldirs .\r\n\/usr\/x86_64-freebsd\/src\/gcc-4.8.3\/objdir\/.\/gcc\/xgcc -B\/usr\/x86_64-freebsd\/src\/gcc-4.8.3\/objdir\/.\/gcc\/ -B\/usr\/x86_64-freebsd\/x86_64-pc-freebsd10.0\/bin\/ -B\/usr\/x86_64-freebsd\/x86_64-pc-freebsd10.0\/lib\/ -isystem \/usr\/x86_64-freebsd\/x86_64-pc-freebsd10.0\/include -isystem \/usr\/x86_64-freebsd\/x86_64-pc-freebsd10.0\/sys-include    -O2  -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE  -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem .\/include   -fpic -pthread -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector -Dinhibit_libc -shared -nodefaultlibs -Wl,--soname=libgcc_s.so.1 -Wl,--version-script=libgcc.map -o .\/libgcc_s.so.1.tmp -g -O2 -B.\/ _muldi3_s.o _negdi2_s.o _lshrdi3_s.o _ashldi3_s.o _ashrdi3_s.o _cmpdi2_s.o _ucmpdi2_s.o _clear_cache_s.o _trampoline_s.o __main_s.o _absvsi2_s.o _absvdi2_s.o _addvsi3_s.o _addvdi3_s.o _subvsi3_s.o _subvdi3_s.o _mulvsi3_s.o _mulvdi3_s.o _negvsi2_s.o _negvdi2_s.o _ctors_s.o _ffssi2_s.o _ffsdi2_s.o _clz_s.o _clzsi2_s.o _clzdi2_s.o _ctzsi2_s.o _ctzdi2_s.o _popcount_tab_s.o _popcountsi2_s.o _popcountdi2_s.o _paritysi2_s.o _paritydi2_s.o _powisf2_s.o _powidf2_s.o _powixf2_s.o _powitf2_s.o _mulsc3_s.o _muldc3_s.o _mulxc3_s.o _multc3_s.o _divsc3_s.o _divdc3_s.o _divxc3_s.o _divtc3_s.o _bswapsi2_s.o _bswapdi2_s.o _clrsbsi2_s.o _clrsbdi2_s.o _fixunssfsi_s.o _fixunsdfsi_s.o _fixunsxfsi_s.o _fixsfdi_s.o _fixdfdi_s.o _fixxfdi_s.o _fixunssfdi_s.o _fixunsdfdi_s.o _fixunsxfdi_s.o _floatdisf_s.o _floatdidf_s.o _floatdixf_s.o _floatundisf_s.o _floatundidf_s.o _floatundixf_s.o _divdi3_s.o _moddi3_s.o _udivdi3_s.o _umoddi3_s.o _udiv_w_sdiv_s.o _udivmoddi4_s.o cpuinfo_s.o sfp-exceptions_s.o addtf3_s.o divtf3_s.o eqtf2_s.o getf2_s.o letf2_s.o multf3_s.o negtf2_s.o subtf3_s.o unordtf2_s.o fixtfsi_s.o fixunstfsi_s.o floatsitf_s.o floatunsitf_s.o fixtfdi_s.o fixunstfdi_s.o floatditf_s.o floatunditf_s.o fixtfti_s.o fixunstfti_s.o floattitf_s.o floatuntitf_s.o extendsftf2_s.o extenddftf2_s.o extendxftf2_s.o trunctfsf2_s.o trunctfdf2_s.o trunctfxf2_s.o enable-execute-stack_s.o unwind-dw2_s.o unwind-dw2-fde-dip_s.o unwind-sjlj_s.o unwind-c_s.o emutls_s.o libgcc.a -lc &amp;&amp; rm -f .\/libgcc_s.so &amp;&amp; if &#x5B; -f .\/libgcc_s.so.1 ]; then mv -f .\/libgcc_s.so.1 .\/libgcc_s.so.1.backup; else true; fi &amp;&amp; mv .\/libgcc_s.so.1.tmp .\/libgcc_s.so.1 &amp;&amp; ln -s libgcc_s.so.1 .\/libgcc_s.so\r\n\/usr\/x86_64-freebsd\/x86_64-pc-freebsd10.0\/bin\/ld: cannot find crti.o: No such file or directory\r\ncollect2: error: ld returned 1 exit status\r\nmake&#x5B;2]: *** &#x5B;libgcc_s.so] Error 1\r\nmake&#x5B;2]: Leaving directory `\/usr\/x86_64-freebsd\/src\/gcc-4.8.3\/objdir\/x86_64-pc-freebsd10.0\/libgcc'\r\nmake&#x5B;1]: *** &#x5B;all-target-libgcc] Error 2\r\nmake&#x5B;1]: Leaving directory `\/usr\/x86_64-freebsd\/src\/gcc-4.8.3\/objdir'\r\nmake: *** &#x5B;all] Error 2\r\n<\/pre>\n<p>==================<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n..\/configure --with-gnu-as --with-gnu-ld --enable-languages=c --disable-nls --enable-libssp --enable-gold --enable-ld --target=x86_64-pc-freebsd10.0 --prefix=\/usr\/x86_64-freebsd --with-gmp=\/usr\/x86_64-freebsd --with-mpc=\/usr\/x86_64-freebsd --with-mpfr=\/usr\/x86_64-freebsd --disable-libgomp --enable-shared --with-build-sysroot=\/usr\/x86_64-freebsd\/x86_64-pc-freebsd10.0\r\n<\/pre>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nlibtool: link: \/usr\/x86_64-freebsd\/src\/gcc-4.7.4\/objdir\/.\/gcc\/xgcc -B\/usr\/x86_64-freebsd\/src\/gcc-4.7.4\/objdir\/.\/gcc\/ -B\/usr\/x86_64-freebsd\/x86_64-pc-freebsd10.0\/bin\/ -B\/usr\/x86_64-freebsd\/x86_64-pc-freebsd10.0\/lib\/ -isystem \/usr\/x86_64-freebsd\/x86_64-pc-freebsd10.0\/include -isystem \/usr\/x86_64-freebsd\/x86_64-pc-freebsd10.0\/sys-include --sysroot=\/usr\/x86_64-freebsd\/x86_64-pc-freebsd10.0   -shared  math\/.libs\/acoshq.o math\/.libs\/fmodq.o math\/.libs\/acosq.o math\/.libs\/frexpq.o math\/.libs\/rem_pio2q.o math\/.libs\/asinhq.o math\/.libs\/hypotq.o math\/.libs\/remainderq.o math\/.libs\/asinq.o math\/.libs\/rintq.o math\/.libs\/atan2q.o math\/.libs\/isinfq.o math\/.libs\/roundq.o math\/.libs\/atanhq.o math\/.libs\/isnanq.o math\/.libs\/scalblnq.o math\/.libs\/atanq.o math\/.libs\/j0q.o math\/.libs\/scalbnq.o math\/.libs\/cbrtq.o math\/.libs\/j1q.o math\/.libs\/signbitq.o math\/.libs\/ceilq.o math\/.libs\/jnq.o math\/.libs\/sincos_table.o math\/.libs\/complex.o math\/.libs\/ldexpq.o math\/.libs\/sincosq.o math\/.libs\/copysignq.o math\/.libs\/lgammaq.o math\/.libs\/sincosq_kernel.o math\/.libs\/coshq.o math\/.libs\/llroundq.o math\/.libs\/sinhq.o math\/.libs\/cosq.o math\/.libs\/log10q.o math\/.libs\/sinq.o math\/.libs\/cosq_kernel.o math\/.libs\/log1pq.o math\/.libs\/sinq_kernel.o math\/.libs\/erfq.o math\/.libs\/logq.o math\/.libs\/sqrtq.o math\/.libs\/expm1q.o math\/.libs\/lroundq.o math\/.libs\/tanhq.o math\/.libs\/expq.o math\/.libs\/modfq.o math\/.libs\/tanq.o math\/.libs\/fabsq.o math\/.libs\/nanq.o math\/.libs\/tgammaq.o math\/.libs\/finiteq.o math\/.libs\/nextafterq.o math\/.libs\/truncq.o math\/.libs\/floorq.o math\/.libs\/powq.o math\/.libs\/fmaq.o math\/.libs\/cacoshq.o math\/.libs\/cacosq.o math\/.libs\/casinhq.o math\/.libs\/casinq.o math\/.libs\/catanhq.o math\/.libs\/catanq.o math\/.libs\/cimagq.o math\/.libs\/conjq.o math\/.libs\/cprojq.o math\/.libs\/crealq.o math\/.libs\/fdimq.o math\/.libs\/fmaxq.o math\/.libs\/fminq.o math\/.libs\/ilogbq.o math\/.libs\/llrintq.o math\/.libs\/log2q.o math\/.libs\/lrintq.o math\/.libs\/nearbyintq.o math\/.libs\/remquoq.o printf\/.libs\/addmul_1.o printf\/.libs\/add_n.o printf\/.libs\/cmp.o printf\/.libs\/divrem.o printf\/.libs\/flt1282mpn.o printf\/.libs\/fpioconst.o printf\/.libs\/lshift.o printf\/.libs\/mul_1.o printf\/.libs\/mul_n.o printf\/.libs\/mul.o printf\/.libs\/printf_fphex.o printf\/.libs\/printf_fp.o printf\/.libs\/quadmath-printf.o printf\/.libs\/rshift.o printf\/.libs\/submul_1.o printf\/.libs\/sub_n.o strtod\/.libs\/strtoflt128.o strtod\/.libs\/mpn2flt128.o strtod\/.libs\/tens_in_limb.o   -lm  -Wl,--version-script=..\/..\/..\/libquadmath\/quadmath.map   -Wl,-soname -Wl,libquadmath.so.0 -o .libs\/libquadmath.so.0\r\n\/usr\/x86_64-freebsd\/x86_64-pc-freebsd10.0\/bin\/ld: \/usr\/x86_64-freebsd\/x86_64-pc-freebsd10.0\/usr\/lib\/libm.a(fenv.o): relocation R_X86_64_PC32 against undefined symbol `__stack_chk_guard@@FBSD_1.0' can not be used when making a shared object; recompile with -fPIC\r\n\/usr\/x86_64-freebsd\/x86_64-pc-freebsd10.0\/bin\/ld: final link failed: Bad value\r\ncollect2: error: ld returned 1 exit status\r\nmake&#x5B;3]: *** &#x5B;libquadmath.la] Error 1\r\nmake&#x5B;3]: Leaving directory `\/usr\/x86_64-freebsd\/src\/gcc-4.7.4\/objdir\/x86_64-pc-freebsd10.0\/libquadmath'\r\nmake&#x5B;2]: *** &#x5B;all] Error 2\r\nmake&#x5B;2]: Leaving directory `\/usr\/x86_64-freebsd\/src\/gcc-4.7.4\/objdir\/x86_64-pc-freebsd10.0\/libquadmath'\r\nmake&#x5B;1]: *** &#x5B;all-target-libquadmath] Error 2\r\nmake&#x5B;1]: Leaving directory `\/usr\/x86_64-freebsd\/src\/gcc-4.7.4\/objdir'\r\nmake: *** &#x5B;all] Error 2\r\n<\/pre>\n<p>================================<\/p>\n<h4>binutils<\/h4>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n .\/configure \\\r\n--enable-libssp \\\r\n--enable-gold \\\r\n--enable-ld \\\r\n--target=x86_64-pc-freebsd10 \\\r\n--prefix=\/usr\/x86_64-freebsd \\\r\n--with-sysroot=\/usr\/x86_64-freebsd\/x86_64-pc-freebsd10 \\\r\n--enable-static \\\r\n--enable-shared\r\n<\/pre>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n\/bin\/sh .\/libtool --tag=CC   --mode=link gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Werror -g -O2  -release `cat libtool-soversion`  -static-libstdc++ -static-libgcc  -o libbfd.la -rpath \/usr\/x86_64-freebsd\/i686-pc-linux-gnu\/x86_64-pc-freebsd10\/lib archive.lo archures.lo bfd.lo bfdio.lo bfdwin.lo cache.lo coffgen.lo corefile.lo format.lo init.lo libbfd.lo opncls.lo reloc.lo section.lo syms.lo targets.lo hash.lo linker.lo srec.lo binary.lo tekhex.lo ihex.lo stabs.lo stab-syms.lo merge.lo dwarf2.lo simple.lo compress.lo verilog.lo `cat ofiles` -L\/usr\/x86_64-freebsd\/src\/binutils-2.24\/bfd\/..\/libiberty\/pic -liberty -Wl,-lc,--as-needed,-lm,--no-as-needed  -lz \r\nlibtool: link: gcc -shared  .libs\/archures.o .libs\/targets.o .libs\/dwarf2.o   -L\/usr\/x86_64-freebsd\/src\/binutils-2.24\/bfd\/..\/libiberty\/pic -liberty -lz  -Wl,-lc -Wl,--as-needed -Wl,-lm -Wl,--no-as-needed   -Wl,-soname -Wl,libbfd-2.24.so -o .libs\/libbfd-2.24.so\r\n\/usr\/bin\/ld: cannot find -liberty\r\ncollect2: error: ld returned 1 exit status\r\nmake&#x5B;4]: *** &#x5B;libbfd.la] Error 1\r\nmake&#x5B;4]: Leaving directory `\/usr\/x86_64-freebsd\/src\/binutils-2.24\/bfd'\r\nmake&#x5B;3]: *** &#x5B;all-recursive] Error 1\r\nmake&#x5B;3]: Leaving directory `\/usr\/x86_64-freebsd\/src\/binutils-2.24\/bfd'\r\nmake&#x5B;2]: *** &#x5B;all] Error 2\r\nmake&#x5B;2]: Leaving directory `\/usr\/x86_64-freebsd\/src\/binutils-2.24\/bfd'\r\nmake&#x5B;1]: *** &#x5B;all-bfd] Error 2\r\nmake&#x5B;1]: Leaving directory `\/usr\/x86_64-freebsd\/src\/binutils-2.24'\r\nmake: *** &#x5B;all] Error 2\r\n<\/pre>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n$ pkg search libiberty\r\ngnulibiberty-2.19.1_2\r\n\r\n$ pkg install gnulibiberty-2.19.1_2\r\nThe following 1 packages will be affected (of 0 checked):\r\nNew packages to be INSTALLED:\r\n\tgnulibiberty: 2.19.1_2\r\nThe process will require 449 KB more space\r\n111 KB to be downloaded\r\nProceed with this action &#x5B;y\/N]: y\r\nFetching gnulibiberty-2.19.1_2.txz: 100% of 111 KB\r\nChecking integrity... done (0 conflicting)\r\n&#x5B;1\/1] Installing gnulibiberty-2.19.1_2: 100%\r\n\r\n$ find \/usr\/local -name 'libiberty*'\r\n\/usr\/local\/include\/libiberty\r\n\/usr\/local\/include\/libiberty\/libiberty.h\r\n\/usr\/local\/lib\/libiberty.a\r\n<\/pre>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n# apt-cache search libiberty\r\nlibiberty-dev - library of utility functions used by GNU programs\r\n\r\n$ sudo apt-get install libiberty-dev\r\nReading package lists... Done\r\nBuilding dependency tree       \r\nReading state information... Done\r\nThe following NEW packages will be installed:\r\n  libiberty-dev\r\n0 upgraded, 1 newly installed, 0 to remove and 21 not upgraded.\r\nNeed to get 135 kB of archives.\r\nAfter this operation, 542 kB of additional disk space will be used.\r\nGet:1 http:\/\/mirror.switch.ch\/ftp\/mirror\/ubuntu\/ trusty\/main libiberty-dev i386 20131116-1 &#x5B;135 kB]\r\nFetched 135 kB in 0s (731 kB\/s)   \r\nSelecting previously unselected package libiberty-dev:i386.\r\n(Reading database ... 324870 files and directories currently installed.)\r\nPreparing to unpack ...\/libiberty-dev_20131116-1_i386.deb ...\r\nUnpacking libiberty-dev:i386 (20131116-1) ...\r\nSetting up libiberty-dev:i386 (20131116-1) ...\r\n<\/pre>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n\/usr\/x86_64-freebsd\/src\/gcc-4.9.1\/objdir\/.\/gcc\/xgcc\r\n-B\/usr\/x86_64-freebsd\/src\/gcc-4.9.1\/objdir\/.\/gcc\/ -B\/usr\/x86_64-freebsd\/x86_64-pc-freebsd10\/bin\/ -B\/usr\/x86_64-freebsd\/x86_64-pc-freebsd10\/lib\/ -isystem \/usr\/x86_64-freebsd\/x86_64-pc-freebsd10\/include -isystem \/usr\/x86_64-freebsd\/x86_64-pc-freebsd10\/sys-include -O2  -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -DNATIVE_CROSS -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem .\/include   -fpic -pthread -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector  -shared -nodefaultlibs -Wl,--soname=libgcc_s.so.1 -Wl,--version-script=libgcc.map -o .\/libgcc_s.so.1.tmp -g -O2 -B.\/ _muldi3_s.o _negdi2_s.o _lshrdi3_s.o _ashldi3_s.o _ashrdi3_s.o _cmpdi2_s.o _ucmpdi2_s.o _clear_cache_s.o _trampoline_s.o __main_s.o _absvsi2_s.o _absvdi2_s.o _addvsi3_s.o _addvdi3_s.o _subvsi3_s.o _subvdi3_s.o _mulvsi3_s.o _mulvdi3_s.o _negvsi2_s.o _negvdi2_s.o _ctors_s.o _ffssi2_s.o _ffsdi2_s.o _clz_s.o _clzsi2_s.o _clzdi2_s.o _ctzsi2_s.o _ctzdi2_s.o _popcount_tab_s.o _popcountsi2_s.o _popcountdi2_s.o _paritysi2_s.o _paritydi2_s.o _powisf2_s.o _powidf2_s.o _powixf2_s.o _powitf2_s.o _mulsc3_s.o _muldc3_s.o _mulxc3_s.o _multc3_s.o _divsc3_s.o _divdc3_s.o _divxc3_s.o _divtc3_s.o _bswapsi2_s.o _bswapdi2_s.o _clrsbsi2_s.o _clrsbdi2_s.o _fixunssfsi_s.o _fixunsdfsi_s.o _fixunsxfsi_s.o _fixsfdi_s.o _fixdfdi_s.o _fixxfdi_s.o _fixunssfdi_s.o _fixunsdfdi_s.o _fixunsxfdi_s.o _floatdisf_s.o _floatdidf_s.o _floatdixf_s.o _floatundisf_s.o _floatundidf_s.o _floatundixf_s.o _divdi3_s.o _moddi3_s.o _udivdi3_s.o _umoddi3_s.o _udiv_w_sdiv_s.o _udivmoddi4_s.o cpuinfo_s.o sfp-exceptions_s.o addtf3_s.o divtf3_s.o eqtf2_s.o getf2_s.o letf2_s.o multf3_s.o negtf2_s.o subtf3_s.o unordtf2_s.o fixtfsi_s.o fixunstfsi_s.o floatsitf_s.o floatunsitf_s.o fixtfdi_s.o fixunstfdi_s.o floatditf_s.o floatunditf_s.o fixtfti_s.o fixunstfti_s.o floattitf_s.o floatuntitf_s.o extendsftf2_s.o extenddftf2_s.o extendxftf2_s.o trunctfsf2_s.o trunctfdf2_s.o trunctfxf2_s.o enable-execute-stack_s.o unwind-dw2_s.o unwind-dw2-fde-dip_s.o unwind-sjlj_s.o unwind-c_s.o emutls_s.o libgcc.a -lc &amp;&amp; rm -f .\/libgcc_s.so &amp;&amp; if &#x5B; -f .\/libgcc_s.so.1 ]; then mv -f .\/libgcc_s.so.1 .\/libgcc_s.so.1.backup; else true; fi &amp;&amp; mv .\/libgcc_s.so.1.tmp .\/libgcc_s.so.1 &amp;&amp; ln -s libgcc_s.so.1 .\/libgcc_s.so\r\n\/usr\/x86_64-freebsd\/x86_64-pc-freebsd10\/bin\/ld: \/usr\/x86_64-freebsd\/x86_64-pc-freebsd10\/lib\/libc.a(jemalloc_jemalloc.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC\r\n\/usr\/x86_64-freebsd\/x86_64-pc-freebsd10\/lib\/libc.a: error adding symbols: Bad value\r\ncollect2: error: ld returned 1 exit status\r\n\r\n\r\nlrwxrwxrwx 1 root root      17 Aug 31 14:41 libc.a -&gt; ..\/usr\/lib\/libc.a\r\n-r--r--r-- 1 root root 1567216 Jan 16  2014 libc.so.7\r\n\r\n\r\n\/usr\/x86_64-freebsd\/src\/gcc-4.9.1\/objdir\/.\/gcc\/xgcc -B\/usr\/x86_64-freebsd\/src\/gcc-4.9.1\/objdir\/.\/gcc\/ -B\/usr\/x86_64-freebsd\/x86_64-pc-freebsd10\/bin\/ -B\/usr\/x86_64-freebsd\/x86_64-pc-freebsd10\/lib\/ -isystem \/usr\/x86_64-freebsd\/x86_64-pc-freebsd10\/include -isystem \/usr\/x86_64-freebsd\/x86_64-pc-freebsd10\/sys-include    -O2  -g -O2 -DIN_GCC  -DCROSS_DIRECTORY_STRUCTURE -DNATIVE_CROSS  -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem .\/include   -fpic -pthread -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector  -shared -nodefaultlibs -Wl,--soname=libgcc_s.so.1 -Wl,--version-script=libgcc.map -o .\/libgcc_s.so.1.tmp -g -O2 -B.\/ _muldi3_s.o _negdi2_s.o _lshrdi3_s.o _ashldi3_s.o _ashrdi3_s.o _cmpdi2_s.o _ucmpdi2_s.o _clear_cache_s.o _trampoline_s.o __main_s.o _absvsi2_s.o _absvdi2_s.o _addvsi3_s.o _addvdi3_s.o _subvsi3_s.o _subvdi3_s.o _mulvsi3_s.o _mulvdi3_s.o _negvsi2_s.o _negvdi2_s.o _ctors_s.o _ffssi2_s.o _ffsdi2_s.o _clz_s.o _clzsi2_s.o _clzdi2_s.o _ctzsi2_s.o _ctzdi2_s.o _popcount_tab_s.o _popcountsi2_s.o _popcountdi2_s.o _paritysi2_s.o _paritydi2_s.o _powisf2_s.o _powidf2_s.o _powixf2_s.o _powitf2_s.o _mulsc3_s.o _muldc3_s.o _mulxc3_s.o _multc3_s.o _divsc3_s.o _divdc3_s.o _divxc3_s.o _divtc3_s.o _bswapsi2_s.o _bswapdi2_s.o _clrsbsi2_s.o _clrsbdi2_s.o _fixunssfsi_s.o _fixunsdfsi_s.o _fixunsxfsi_s.o _fixsfdi_s.o _fixdfdi_s.o _fixxfdi_s.o _fixunssfdi_s.o _fixunsdfdi_s.o _fixunsxfdi_s.o _floatdisf_s.o _floatdidf_s.o _floatdixf_s.o _floatundisf_s.o _floatundidf_s.o _floatundixf_s.o _divdi3_s.o _moddi3_s.o _udivdi3_s.o _umoddi3_s.o _udiv_w_sdiv_s.o _udivmoddi4_s.o cpuinfo_s.o sfp-exceptions_s.o addtf3_s.o divtf3_s.o eqtf2_s.o getf2_s.o letf2_s.o multf3_s.o negtf2_s.o subtf3_s.o unordtf2_s.o fixtfsi_s.o fixunstfsi_s.o floatsitf_s.o floatunsitf_s.o fixtfdi_s.o fixunstfdi_s.o floatditf_s.o floatunditf_s.o fixtfti_s.o fixunstfti_s.o floattitf_s.o floatuntitf_s.o extendsftf2_s.o extenddftf2_s.o extendxftf2_s.o trunctfsf2_s.o trunctfdf2_s.o trunctfxf2_s.o enable-execute-stack_s.o unwind-dw2_s.o unwind-dw2-fde-dip_s.o unwind-sjlj_s.o unwind-c_s.o emutls_s.o libgcc.a -lc &amp;&amp; rm -f .\/libgcc_s.so &amp;&amp; if &#x5B; -f .\/libgcc_s.so.1 ]; then mv -f .\/libgcc_s.so.1 .\/libgcc_s.so.1.backup; else true; fi &amp;&amp; mv .\/libgcc_s.so.1.tmp .\/libgcc_s.so.1 &amp;&amp; ln -s libgcc_s.so.1 .\/libgcc_s.so\r\n\/usr\/x86_64-freebsd\/x86_64-pc-freebsd10\/bin\/ld: cannot find -lc\r\ncollect2: error: ld returned 1 exit status\r\nmake&#x5B;2]: *** &#x5B;libgcc_s.so] Error 1\r\nmake&#x5B;2]: Leaving directory `\/usr\/x86_64-freebsd\/src\/gcc-4.9.1\/objdir\/x86_64-pc-freebsd10\/libgcc'\r\nmake&#x5B;1]: *** &#x5B;all-target-libgcc] Error 2\r\nmake&#x5B;1]: Leaving directory `\/usr\/x86_64-freebsd\/src\/gcc-4.9.1\/objdir'\r\nmake: *** &#x5B;all] Error 2\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>FreeBSD Toolchain BSD Toolchain Project The LLVM Compiler Infrastructure The LLDB Debugger build &#8211; host &#8211; target Traditional cross-compilation terminology defines three platforms: build &#8211; the platform we&#8217;re building on host &#8211; the platform the compiler will run on target &#8211; the platform the compiler we&#8217;re building will generate code for Cross-compiling GHC arch-vendor-os Can [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2833","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts\/2833","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2833"}],"version-history":[{"count":38,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts\/2833\/revisions"}],"predecessor-version":[{"id":2891,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts\/2833\/revisions\/2891"}],"wp:attachment":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2833"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2833"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2833"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}