Facebook
From Gentle Motmot, 3 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 245
  1.  
  2. ======
  3. binutils
  4. =====
  5.  
  6. ../configure \
  7.         --enable-option-checking \
  8.         --prefix=${CX_DIR} \
  9.         --target=${T_TRIPLET} \
  10.         --disable-nls \
  11.         --enable-64-bit-bfd \
  12.         --enable-plugins \
  13.         --enable-threads \
  14.         --disable-multilib
  15.        
  16. assert_err $?
  17.  
  18. make -j12
  19. assert_err $?
  20.  
  21. make install
  22. assert_err $?
  23.        
  24. dirs -c
  25. exit $?
  26.  
  27. =====
  28. linux headers
  29. =====
  30. NAME="linux"
  31.  
  32. ## stage
  33. # TODO add check for success
  34. cp -Rf ${SOURCES_DIR}/${NAME}-* ${BUILD_DIR}/${NAME}
  35. assert_err $?
  36.  
  37. #apply_patches ${PATCH_DIR} ${BUILD_DIR}/${NAME}
  38.  
  39. # set cwd to current target
  40. pushd ${BUILD_DIR}/${NAME}
  41.  
  42. # why is this pointing to the compiler space instead of the
  43. # crosscompiler space?
  44.  
  45. # by other instructionals it looks like it should be
  46. # INSTALL_HDR_PATH=${CX_DIR}
  47.  
  48.  
  49. make mrproper
  50. assert_err $?
  51.  
  52. make \
  53.         -j12 \
  54.         ARCH=$(uname -m) \
  55.         headers_check
  56.  
  57. assert_err $?
  58.  
  59. make \
  60.         ARCH=$(uname -m) \
  61.         INSTALL_HDR_PATH=${CX_DIR} \
  62.         headers_install
  63.  
  64. assert_err $?
  65.  
  66. dirs -c
  67. exit $?
  68.  
  69. ======
  70. GCC
  71. ======
  72.  
  73. NAME="gcc"
  74.  
  75. ## stage
  76. # TODO add check for success
  77. cp -Rf ${SOURCES_DIR}/${NAME}-* ${BUILD_DIR}/${NAME}
  78. assert_err $?
  79. #apply_patches ${PATCH_DIR} ${BUILD_DIR}/${NAME}
  80.  
  81. mkdir ${BUILD_DIR}/${NAME}-build
  82. assert_err $?
  83.  
  84. pushd ${BUILD_DIR}/${NAME}
  85. assert_err $?
  86.  
  87. contrib/download_prerequisites
  88. assert_err $?
  89.  
  90. popd
  91. assert_err $?
  92.  
  93. pushd ${BUILD_DIR}/${NAME}-build
  94. assert_err $?
  95.  
  96. ../${NAME}/configure \
  97. --prefix="${CX_DIR}" \
  98. --program-prefix="cx-" \
  99. --with-local-prefix="${CX_DIR}" \
  100. --with-native-system-header-dir="/include" \
  101. --disable-shared \
  102. --with-gnu-as \
  103. --with-as="${CX_DIR}/${T_TRIPLET}/bin/as" \
  104. --disable-nls \
  105. --build="${H_TRIPLET}" \
  106. --host="${H_TRIPLET}" \
  107. --target="${T_TRIPLET}" \
  108. --with-sysroot="${CX_DIR}" \
  109. --with-build-sysroot="${CX_DIR}" \
  110. --enable-languages=c,c++ \
  111. --enable-checking=release
  112.  
  113. assert_err $?
  114.  
  115. make -j12 all-gcc
  116. assert_err $?
  117.  
  118. make install all-gcc
  119. assert_err $?
  120.  
  121. dirs -c
  122. exit $?
  123.  
  124.  
  125.  
  126. =============================
  127. OUTPUT when compiling GCC
  128. ==============================
  129. .....
  130. g++ -fno-PIE -c  -DIN_GCC_FRONTEND -g -O2 -DIN_GCC  -DCROSS_DIRECTORY_STRUCTURE   -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings   -DHAVE_CONFIG_H -I. -Icp -I../../gcc/gcc -I../../gcc/gcc/cp -I../../gcc/gcc/../include -I../../gcc/gcc/../libcpp/include -I/opt/foster/out/build/gcc-build/./gmp -I/opt/foster/out/build/gcc/gmp -I/opt/foster/out/build/gcc-build/./mpfr/src -I/opt/foster/out/build/gcc/mpfr/src -I/opt/foster/out/build/gcc/mpc/src  -I../../gcc/gcc/../libdecnumber -I../../gcc/gcc/../libdecnumber/bid -I../libdecnumber -I../../gcc/gcc/../libbacktrace -I/opt/foster/out/build/gcc-build/./isl/include -I/opt/foster/out/build/gcc/isl/include  -o cp/vtable-class-hierarchy.o -MT cp/vtable-class-hierarchy.o -MMD -MP -MF cp/.deps/vtable-class-hierarchy.TPo ../../gcc/gcc/cp/vtable-class-hierarchy.c
  131. during RTL pass: expand
  132. ../../gcc/gcc/cp/name-lookup.c: In member function 'void name_lookup::restore_state()':
  133. ../../gcc/gcc/cp/name-lookup.c:326:1: internal compiler error: in expand_gimple_basic_block, at cfgexpand.c:5570
  134.  name_lookup::restore_state ()
  135.  ^~~~~~~~~~~
  136. Please submit a full bug report,
  137. with preprocessed source if appropriate.
  138. See <file:///usr/share/doc/gcc-8/README.Bugs> for instructions.
  139. make[1]: *** [Makefile:1117: cp/name-lookup.o] Error 1
  140. make[1]: *** Waiting for unfinished jobs....
  141. rm gcov.pod fsf-funding.pod lto-dump.pod gpl.pod gcc.pod cpp.pod
  142. make[1]: Leaving directory '/opt/foster/out/build/gcc-build/gcc'
  143. make: *** [Makefile:4411: all-gcc] Error 2

Replies to Untitled rss

Title Name Language When
Re: Untitled Melodic Guinea Pig text 3 Years ago.