Advertisement
Guest User

Untitled

a guest
Apr 24th, 2014
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.37 KB | None | 0 0
  1. export HOST=x86_64-pc-linux-gnu
  2. export BUILD=$HOST
  3. export TARGET=x86_64-none-linux-gnu
  4. export CROSS_TOOL=/vita/cross-tool
  5. export CROSS_GCC_TMP=/vita/cross-gcc-tmp
  6. export SYSROOT=/vita/sysroot
  7. PATH=$CROSS_TOOL/bin:$CROSS_GCC_TMP/bin:/sbin:/usr/sbin:$PATH
  8.  
  9. ../binutils-2.23.1/configure --prefix=$CROSS_TOOL
  10. --target=$TARGET --with-sysroot=$SYSROOT
  11.  
  12. export AR="$TARGET-ar"
  13. export AS="$TARGET-as"
  14. export RANLIB="$TARGET-ranlib"
  15. export LD="$TARGET-ld"
  16. export STRIP="$TARGET-strip"
  17.  
  18. cd gcc-4.7.2/
  19. tar -xvf ../../source/mpfr-3.1.1.tar.bz2
  20. tar -xvf ../../source/mpc-1.0.1.tar.gz
  21. tar -xvf ../../source/gmp-5.0.5.tar.bz2
  22. mv gmp-5.0.5/ gmp
  23. mv mpfr-3.1.1/ mpfr
  24. mv mpc-1.0.1/ mpc
  25.  
  26. ../gcc-4.7.2/configure --prefix=$CROSS_GCC_TMP --target=$TARGET
  27. --with-sysroot=$SYSROOT --with-newlib --enable-languages=c
  28. --with-mpfr-include=/vita/build/gcc-4.7.2/mpfr/src
  29. --with-mpfr-lib=/vita/build/gcc-build1/mpfr/src/.libs
  30. --disable-shared --disable-threads --disable-decimal-float
  31. --disable-libquadmath --disable-libmudflap --disable-libgomp
  32. --disable-nls --disable-libssp --disable-multilib
  33.  
  34. export CC="$TARGET-gcc"
  35.  
  36. ../glibc-2.15/configure --prefix=/usr --host=$TARGET
  37. --enable-kernel=3.7.4 --enable-add-ons
  38. --with-headers=$SYSROOT/usr/include
  39. libc_cv_forced_unwind=yes libc_cv_c_cleanup=yes
  40. libc_cv_ctors_header=yes
  41.  
  42. make install_root=$SYSROOT install
  43.  
  44. vita@engine-virtual-machine:/vita$ ls sysroot/usr/lib64/*.o
  45. sysroot/usr/lib64/crt1.o sysroot/usr/lib64/crtn.o sysroot/usr/lib64/Mcrt1.o
  46. sysroot/usr/lib64/crti.o sysroot/usr/lib64/gcrt1.o sysroot/usr/lib64/Scrt1.o
  47.  
  48. ../gcc-4.7.2/configure --prefix=$CROSS_TOOL --target=$TARGET
  49. --with-sysroot=$SYSROOT
  50. --with-newlib --enable-languages=c,c++
  51. --with-mpfr-include=/vita/build/gcc-4.7.2/mpfr/src
  52. --with-mpfr-lib=/vita/build/gcc-build2/mpfr/src/.libs
  53. --disable-multilib --enable-threads=posix
  54.  
  55. checking build system type... x86_64-unknown-linux-gnu
  56. checking host system type... x86_64-unknown-linux-gnu
  57. checking target system type... x86_64-none-linux-gnu
  58. checking for a BSD-compatible install... /usr/bin/install -c
  59. checking whether ln works... yes
  60. checking whether ln -s works... yes
  61. checking for a sed that does not truncate output... /bin/sed
  62. checking for gawk... gawk
  63. checking for libitm support... yes
  64. checking for gcc... x86_64-none-linux-gnu-gcc
  65. checking for C compiler default output file name...
  66. configure: error: in `/vita/build/gcc-build2':
  67. configure: error: C compiler cannot create executables
  68.  
  69. vita@engine-virtual-machine:/vita/cross-gcc-tmp/bin$ ./x86_64-none-linux-gnu-gcc test.c
  70. /vita/cross-tool/bin/x86_64-none-linux-gnu-ld: cannot find crt1.o: No such file or directory
  71. /vita/cross-tool/bin/x86_64-none-linux-gnu-ld: cannot find crti.o: No such file or directory
  72. collect2: error: ld returned 1 exit status
  73.  
  74. vita@engine-virtual-machine:/vita/cross-gcc-tmp/bin$ ./x86_64-none-linux-gnu-gcc -v test.c
  75. Using built-in specs.
  76. COLLECT_GCC=./x86_64-none-linux-gnu-gcc
  77. COLLECT_LTO_WRAPPER=/vita/cross-gcc-tmp/libexec/gcc/x86_64-none-linux-gnu/4.7.2/lto-wrapper
  78. Target: x86_64-none-linux-gnu
  79. 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
  80. Thread model: single
  81. gcc version 4.7.2 (GCC)
  82. COLLECT_GCC_OPTIONS='-v' '-mtune=generic' '-march=x86-64'
  83. /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
  84. GNU C (GCC) version 4.7.2 (x86_64-none-linux-gnu)
  85. compiled by GNU C version 4.6.3, GMP version 5.0.5, MPFR version 3.1.1, MPC version 1.0.1
  86. GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
  87. ignoring nonexistent directory "/vita/sysroot/usr/local/include"
  88. ignoring nonexistent directory "/vita/cross-gcc-tmp/lib/gcc/x86_64-none-linux-gnu/4.7.2/../../../../x86_64-none-linux-gnu/include"
  89. #include "..." search starts here:
  90. #include <...> search starts here:
  91. /vita/cross-gcc-tmp/lib/gcc/x86_64-none-linux-gnu/4.7.2/include
  92. /vita/cross-gcc-tmp/lib/gcc/x86_64-none-linux-gnu/4.7.2/include-fixed
  93. /vita/sysroot/usr/include
  94. End of search list.
  95. GNU C (GCC) version 4.7.2 (x86_64-none-linux-gnu)
  96. compiled by GNU C version 4.6.3, GMP version 5.0.5, MPFR version 3.1.1, MPC version 1.0.1
  97. GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
  98. Compiler executable checksum: d2557ce90ab859485cf941b7a7411e1d
  99. COLLECT_GCC_OPTIONS='-v' '-mtune=generic' '-march=x86-64'
  100. as -v --64 -o /tmp/ccXcmyeV.o /tmp/ccizEqtk.s
  101. GNU assembler version 2.22 (x86_64-linux-gnu) using BFD version (GNU Binutils for Ubuntu) 2.22
  102. 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/
  103. LIBRARY_PATH=/vita/cross-gcc-tmp/lib/gcc/x86_64-none-linux-gnu/4.7.2/
  104. COLLECT_GCC_OPTIONS='-v' '-mtune=generic' '-march=x86-64'
  105. /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
  106. /vita/cross-tool/bin/x86_64-none-linux-gnu-ld: cannot find crt1.o: No such file or directory
  107. /vita/cross-tool/bin/x86_64-none-linux-gnu-ld: cannot find crti.o: No such file or directory
  108.  
  109. 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