Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- export HOST=x86_64-pc-linux-gnu
- export BUILD=$HOST
- export TARGET=x86_64-none-linux-gnu
- export CROSS_TOOL=/vita/cross-tool
- export CROSS_GCC_TMP=/vita/cross-gcc-tmp
- export SYSROOT=/vita/sysroot
- PATH=$CROSS_TOOL/bin:$CROSS_GCC_TMP/bin:/sbin:/usr/sbin:$PATH
- ../binutils-2.23.1/configure --prefix=$CROSS_TOOL
- --target=$TARGET --with-sysroot=$SYSROOT
- export AR="$TARGET-ar"
- export AS="$TARGET-as"
- export RANLIB="$TARGET-ranlib"
- export LD="$TARGET-ld"
- export STRIP="$TARGET-strip"
- cd gcc-4.7.2/
- tar -xvf ../../source/mpfr-3.1.1.tar.bz2
- tar -xvf ../../source/mpc-1.0.1.tar.gz
- tar -xvf ../../source/gmp-5.0.5.tar.bz2
- mv gmp-5.0.5/ gmp
- mv mpfr-3.1.1/ mpfr
- mv mpc-1.0.1/ mpc
- ../gcc-4.7.2/configure --prefix=$CROSS_GCC_TMP --target=$TARGET
- --with-sysroot=$SYSROOT --with-newlib --enable-languages=c
- --with-mpfr-include=/vita/build/gcc-4.7.2/mpfr/src
- --with-mpfr-lib=/vita/build/gcc-build1/mpfr/src/.libs
- --disable-shared --disable-threads --disable-decimal-float
- --disable-libquadmath --disable-libmudflap --disable-libgomp
- --disable-nls --disable-libssp --disable-multilib
- export CC="$TARGET-gcc"
- ../glibc-2.15/configure --prefix=/usr --host=$TARGET
- --enable-kernel=3.7.4 --enable-add-ons
- --with-headers=$SYSROOT/usr/include
- libc_cv_forced_unwind=yes libc_cv_c_cleanup=yes
- libc_cv_ctors_header=yes
- make install_root=$SYSROOT install
- vita@engine-virtual-machine:/vita$ ls sysroot/usr/lib64/*.o
- sysroot/usr/lib64/crt1.o sysroot/usr/lib64/crtn.o sysroot/usr/lib64/Mcrt1.o
- sysroot/usr/lib64/crti.o sysroot/usr/lib64/gcrt1.o sysroot/usr/lib64/Scrt1.o
- ../gcc-4.7.2/configure --prefix=$CROSS_TOOL --target=$TARGET
- --with-sysroot=$SYSROOT
- --with-newlib --enable-languages=c,c++
- --with-mpfr-include=/vita/build/gcc-4.7.2/mpfr/src
- --with-mpfr-lib=/vita/build/gcc-build2/mpfr/src/.libs
- --disable-multilib --enable-threads=posix
- checking build system type... x86_64-unknown-linux-gnu
- checking host system type... x86_64-unknown-linux-gnu
- checking target system type... x86_64-none-linux-gnu
- checking for a BSD-compatible install... /usr/bin/install -c
- checking whether ln works... yes
- checking whether ln -s works... yes
- checking for a sed that does not truncate output... /bin/sed
- checking for gawk... gawk
- checking for libitm support... yes
- checking for gcc... x86_64-none-linux-gnu-gcc
- checking for C compiler default output file name...
- configure: error: in `/vita/build/gcc-build2':
- configure: error: C compiler cannot create executables
- vita@engine-virtual-machine:/vita/cross-gcc-tmp/bin$ ./x86_64-none-linux-gnu-gcc test.c
- /vita/cross-tool/bin/x86_64-none-linux-gnu-ld: cannot find crt1.o: No such file or directory
- /vita/cross-tool/bin/x86_64-none-linux-gnu-ld: cannot find crti.o: No such file or directory
- collect2: error: ld returned 1 exit status
- vita@engine-virtual-machine:/vita/cross-gcc-tmp/bin$ ./x86_64-none-linux-gnu-gcc -v test.c
- Using built-in specs.
- COLLECT_GCC=./x86_64-none-linux-gnu-gcc
- COLLECT_LTO_WRAPPER=/vita/cross-gcc-tmp/libexec/gcc/x86_64-none-linux-gnu/4.7.2/lto-wrapper
- Target: x86_64-none-linux-gnu
- Configured with: ../gcc-4.7.2/configure --prefix=/vita/cross-gcc-tmp --target=x86_64-none-linux-gnu --with-sysroot=/vita/sysroot --with-newlib --enable-languages=c --with-mpfr-include=/vita/build/gcc-4.7.2/mpfr/src --with-mpfr-lib=/vita/build/gcc-build1/mpfr/src/.libs --disable-shared --disable-threads --disable-decimal-float --disable-libquadmath --disable-libmudflap --disable-libgomp --disable-nls --disable-libssp --disable-multilib : (reconfigured) ../gcc-4.7.2/configure --prefix=/vita/cross-gcc-tmp --target=x86_64-none-linux-gnu --with-sysroot=/vita/sysroot --with-newlib --enable-languages=c --with-mpfr-include=/vita/build/gcc-4.7.2/mpfr/src --with-mpfr-lib=/vita/build/gcc-build1/mpfr/src/.libs --disable-shared --disable-threads --disable-decimal-float --disable-libquadmath --disable-libmudflap --disable-libgomp --disable-nls --disable-libssp --disable-multilib
- Thread model: single
- gcc version 4.7.2 (GCC)
- COLLECT_GCC_OPTIONS='-v' '-mtune=generic' '-march=x86-64'
- /vita/cross-gcc-tmp/libexec/gcc/x86_64-none-linux-gnu/4.7.2/cc1 -quiet -v test.c -quiet -dumpbase test.c -mtune=generic -march=x86-64 -auxbase test -version -o /tmp/ccizEqtk.s
- GNU C (GCC) version 4.7.2 (x86_64-none-linux-gnu)
- compiled by GNU C version 4.6.3, GMP version 5.0.5, MPFR version 3.1.1, MPC version 1.0.1
- GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
- ignoring nonexistent directory "/vita/sysroot/usr/local/include"
- ignoring nonexistent directory "/vita/cross-gcc-tmp/lib/gcc/x86_64-none-linux-gnu/4.7.2/../../../../x86_64-none-linux-gnu/include"
- #include "..." search starts here:
- #include <...> search starts here:
- /vita/cross-gcc-tmp/lib/gcc/x86_64-none-linux-gnu/4.7.2/include
- /vita/cross-gcc-tmp/lib/gcc/x86_64-none-linux-gnu/4.7.2/include-fixed
- /vita/sysroot/usr/include
- End of search list.
- GNU C (GCC) version 4.7.2 (x86_64-none-linux-gnu)
- compiled by GNU C version 4.6.3, GMP version 5.0.5, MPFR version 3.1.1, MPC version 1.0.1
- GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
- Compiler executable checksum: d2557ce90ab859485cf941b7a7411e1d
- COLLECT_GCC_OPTIONS='-v' '-mtune=generic' '-march=x86-64'
- as -v --64 -o /tmp/ccXcmyeV.o /tmp/ccizEqtk.s
- GNU assembler version 2.22 (x86_64-linux-gnu) using BFD version (GNU Binutils for Ubuntu) 2.22
- COMPILER_PATH=/vita/cross-gcc-tmp/libexec/gcc/x86_64-none-linux-gnu/4.7.2/:/vita/cross-gcc-tmp/libexec/gcc/x86_64-none-linux-gnu/4.7.2/:/vita/cross-gcc-tmp/libexec/gcc/x86_64-none-linux-gnu/:/vita/cross-gcc-tmp/lib/gcc/x86_64-none-linux-gnu/4.7.2/:/vita/cross-gcc-tmp/lib/gcc/x86_64-none-linux-gnu/
- LIBRARY_PATH=/vita/cross-gcc-tmp/lib/gcc/x86_64-none-linux-gnu/4.7.2/
- COLLECT_GCC_OPTIONS='-v' '-mtune=generic' '-march=x86-64'
- /vita/cross-gcc-tmp/libexec/gcc/x86_64-none-linux-gnu/4.7.2/collect2 --sysroot=/vita/sysroot --eh-frame-hdr -m elf_x86_64 -dynamic-linker /lib64/ld-linux-x86-64.so.2 crt1.o crti.o /vita/cross-gcc-tmp/lib/gcc/x86_64-none-linux-gnu/4.7.2/crtbegin.o -L/vita/cross-gcc-tmp/lib/gcc/x86_64-none-linux-gnu/4.7.2 /tmp/ccXcmyeV.o -lgcc -lc -lgcc /vita/cross-gcc-tmp/lib/gcc/x86_64-none-linux-gnu/4.7.2/crtend.o crtn.o
- /vita/cross-tool/bin/x86_64-none-linux-gnu-ld: cannot find crt1.o: No such file or directory
- /vita/cross-tool/bin/x86_64-none-linux-gnu-ld: cannot find crti.o: No such file or directory
- LIBRARY_PATH=/vita/cross-gcc-tmp/lib/gcc/x86_64-none-linux-gnu/4.7.2/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement