Facebook
From Melodic Guinea Pig, 4 Years ago, written in Plain Text.
This paste is a reply to Untitled from Gentle Motmot - view diff
Embed
Download Paste or View Raw
Hits: 272
  1. ======
  2. binutils
  3. =====
  4.  
  5. ../configure \
  6.         --enable-option-checking \
  7.         --prefix=${CX_DIR} \
  8.         --target=${T_TRIPLET} \
  9.         --disable-nls \
  10.         --enable-64-bit-bfd \
  11.         --enable-plugins \
  12.         --enable-threads \
  13.         --disable-multilib
  14.        
  15. assert_err $?
  16.  
  17. make -j12
  18. assert_err $?
  19.  
  20. make install
  21. assert_err $?
  22.        
  23. dirs -c
  24. exit $?
  25.  
  26. =====
  27. linux headers
  28. =====
  29. NAME="linux"
  30.  
  31. ## stage
  32. # TODO add check for success
  33. cp -Rf ${SOURCES_DIR}/${NAME}-* ${BUILD_DIR}/${NAME}
  34. assert_err $?
  35.  
  36. #apply_patches ${PATCH_DIR} ${BUILD_DIR}/${NAME}
  37.  
  38. # set cwd to current target
  39. pushd ${BUILD_DIR}/${NAME}
  40.  
  41. # why is this pointing to the compiler space instead of the
  42. # crosscompiler space?
  43.  
  44. # by other instructionals it looks like it should be
  45. # INSTALL_HDR_PATH=${CX_DIR}
  46.  
  47.  
  48. make mrproper
  49. assert_err $?
  50.  
  51. make \
  52.         -j12 \
  53.         ARCH=$(uname -m) \
  54.         headers_check
  55.  
  56. assert_err $?
  57.  
  58. make \
  59.         ARCH=$(uname -m) \
  60.         INSTALL_HDR_PATH=${CX_DIR} \
  61.         headers_install
  62.  
  63. assert_err $?
  64.  
  65. dirs -c
  66. exit $?
  67.  
  68. ======
  69. GCC
  70. ======
  71.  
  72. NAME="gcc"
  73.  
  74. ## stage
  75. # TODO add check for success
  76. cp -Rf ${SOURCES_DIR}/${NAME}-* ${BUILD_DIR}/${NAME}
  77. assert_err $?
  78. #apply_patches ${PATCH_DIR} ${BUILD_DIR}/${NAME}
  79.  
  80. mkdir ${BUILD_DIR}/${NAME}-build
  81. assert_err $?
  82.  
  83. pushd ${BUILD_DIR}/${NAME}
  84. assert_err $?
  85.  
  86. contrib/download_prerequisites
  87. assert_err $?
  88.  
  89. popd
  90. assert_err $?
  91.  
  92. pushd ${BUILD_DIR}/${NAME}-build
  93. assert_err $?
  94.  
  95. ../${NAME}/configure \
  96. --prefix="${CX_DIR}" \
  97. --program-prefix="cx-" \
  98. --with-local-prefix="${CX_DIR}" \
  99. --with-native-system-header-dir="/include" \
  100. --disable-shared \
  101. --with-gnu-as \
  102. --with-as="${CX_DIR}/${T_TRIPLET}/bin/as" \
  103. --disable-nls \
  104. --build="${H_TRIPLET}" \
  105. --host="${H_TRIPLET}" \
  106. --target="${T_TRIPLET}" \
  107. --with-sysroot="${CX_DIR}" \
  108. --with-build-sysroot="${CX_DIR}" \
  109. --enable-languages=c,c++ \
  110. --enable-checking=release
  111.  
  112. assert_err $?
  113.  
  114. make -j12 all-gcc
  115. assert_err $?
  116.  
  117. make install all-gcc
  118. assert_err $?
  119.  
  120. dirs -c
  121. exit $?
  122.  
  123.  
  124.  
  125. =============================
  126. OUTPUT when compiling GCC
  127. ==============================
  128. configure: WARNING: using in-tree isl, disabling version check
  129. *** This configuration is not supported in the following subdirectories:
  130.      gnattools gotools target-libada target-libhsail-rt target-libstdc++-v3 target-libphobos target-zlib target-libbacktrace target-libgfortran target-libgo target-libffi target-libobjc target-liboffloadmic target-libitm target-libsanitizer target-libvtv
  131.     (Any other directories should still work fine.)
  132. *** removing build-x86_64-xhl-linux-gnu/libiberty/Makefile to force reconfigure
  133. *** removing build-x86_64-xhl-linux-gnu/libcpp/Makefile to force reconfigure
  134. *** removing build-x86_64-xhl-linux-gnu/fixincludes/Makefile to force reconfigure
  135. *** removing intl/Makefile to force reconfigure
  136. *** removing libiberty/Makefile to force reconfigure
  137. *** removing zlib/Makefile to force reconfigure
  138. *** removing libbacktrace/Makefile to force reconfigure
  139. *** removing libcpp/Makefile to force reconfigure
  140. *** removing libdecnumber/Makefile to force reconfigure
  141. *** removing gmp/Makefile to force reconfigure
  142. *** removing mpfr/Makefile to force reconfigure
  143. *** removing mpc/Makefile to force reconfigure
  144. *** removing isl/Makefile to force reconfigure
  145. *** removing fixincludes/Makefile to force reconfigure
  146. *** removing gcc/Makefile to force reconfigure
  147. *** removing lto-plugin/Makefile to force reconfigure
  148. configure: WARNING: the "none" host is obsolete, use --disable-assembly
  149. configure: WARNING: cannot check for properly working vsnprintf when cross compiling, will assume it's ok
  150. ar: `u' modifier ignored since `D' is the default (see `U')
  151. ar: `u' modifier ignored since `D' is the default (see `U')
  152. ar: `u' modifier ignored since `D' is the default (see `U')
  153. ar: `u' modifier ignored since `D' is the default (see `U')
  154. configure: WARNING: fixed-point is not supported for this target, ignored
  155. Links are now set up to build a cross-compiler
  156.  from x86_64-xhl-linux-gnu to x86_64-xtl-linux-gnu.
  157. tm_p.h is unchanged
  158. config.h is unchanged
  159. bconfig.h is unchanged
  160. tm.h is unchanged
  161. tm_d.h is unchanged
  162. tconfig.h is unchanged
  163. malloc(): mismatching next->prev_size (unsorted)
  164. during RTL pass: reload
  165. malloc(): mismatching next->prev_size (unsorted)
  166. g++: internal compiler error: Aborted signal terminated program cc1plus
  167. Please submit a full bug report,
  168. with preprocessed source if appropriate.
  169. See <file:///usr/share/doc/gcc-8/README.Bugs> for instructions.
  170. make[1]: *** [Makefile:1116: ubsan.o] Error 4
  171. make[1]: *** Waiting for unfinished jobs....
  172. make: *** [Makefile:4313: all-gcc] Error 2
  173.  

Replies to Re: Untitled rss

Title Name Language When
Re: Re: Untitled Rude Gorilla text 4 Years ago.