====== binutils ===== ../configure \ --enable-option-checking \ --prefix=${CX_DIR} \ --target=${T_TRIPLET} \ --disable-nls \ --enable-64-bit-bfd \ --enable-plugins \ --enable-threads \ --disable-multilib assert_err $? make -j12 assert_err $? make install assert_err $? dirs -c exit $? ===== linux headers ===== NAME="linux" ## stage # TODO add check for success cp -Rf ${SOURCES_DIR}/${NAME}-* ${BUILD_DIR}/${NAME} assert_err $? #apply_patches ${PATCH_DIR} ${BUILD_DIR}/${NAME} # set cwd to current target pushd ${BUILD_DIR}/${NAME} # why is this pointing to the compiler space instead of the # crosscompiler space? # by other instructionals it looks like it should be # INSTALL_HDR_PATH=${CX_DIR} make mrproper assert_err $? make \ -j12 \ ARCH=$(uname -m) \ headers_check assert_err $? make \ ARCH=$(uname -m) \ INSTALL_HDR_PATH=${CX_DIR} \ headers_install assert_err $? dirs -c exit $? ====== GCC ====== NAME="gcc" ## stage # TODO add check for success cp -Rf ${SOURCES_DIR}/${NAME}-* ${BUILD_DIR}/${NAME} assert_err $? #apply_patches ${PATCH_DIR} ${BUILD_DIR}/${NAME} mkdir ${BUILD_DIR}/${NAME}-build assert_err $? pushd ${BUILD_DIR}/${NAME} assert_err $? contrib/download_prerequisites assert_err $? popd assert_err $? pushd ${BUILD_DIR}/${NAME}-build assert_err $? ../${NAME}/configure \ --prefix="${CX_DIR}" \ --program-prefix="cx-" \ --with-local-prefix="${CX_DIR}" \ --with-native-system-header-dir="/include" \ --disable-shared \ --with-gnu-as \ --with-as="${CX_DIR}/${T_TRIPLET}/bin/as" \ --disable-nls \ --build="${H_TRIPLET}" \ --host="${H_TRIPLET}" \ --target="${T_TRIPLET}" \ --with-sysroot="${CX_DIR}" \ --with-build-sysroot="${CX_DIR}" \ --enable-languages=c,c++ \ --enable-checking=release assert_err $? make -j12 all-gcc assert_err $? make install all-gcc assert_err $? dirs -c exit $? ============================= OUTPUT when compiling GCC ============================== g++ -fno-PIE -c -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. -I. -I../../gcc/gcc -I../../gcc/gcc/. -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 insn-output.o -MT insn-output.o -MMD -MP -MF ./.deps/insn-output.TPo insn-output.c g++ -fno-PIE -c -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. -I. -I../../gcc/gcc -I../../gcc/gcc/. -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 insn-peep.o -MT insn-peep.o -MMD -MP -MF ./.deps/insn-peep.TPo insn-peep.c g++ -fno-PIE -c -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. -I. -I../../gcc/gcc -I../../gcc/gcc/. -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 insn-recog.o -MT insn-recog.o -MMD -MP -MF ./.deps/insn-recog.TPo insn-recog.c rm -rf libcommon-target.a ar rc libcommon-target.a i386-common.o prefix.o params.o opts.o opts-common.o options.o vec.o hooks.o common/common-targhooks.o hash-table.o file-find.o spellcheck.o selftest.o opt-suggestions.o ranlib libcommon-target.a rm -rf libcommon.a ar rc libcommon.a diagnostic.o diagnostic-color.o diagnostic-show-locus.o diagnostic-format-json.o json.o edit-context.o pretty-print.o intl.o sbitmap.o vec.o input.o version.o hash-table.o ggc-none.o memory-block.o selftest.o selftest-diagnostic.o sort.o double free or corruption (!prev) during RTL pass: ira ../../gcc/gcc/lto/lto.c: In function 'bool compare_tree_sccs_1(tree, tree, tree_node***)': ../../gcc/gcc/lto/lto.c:1515:1: internal compiler error: Aborted } ^ ranlib libcommon.a Please submit a full bug report, with preprocessed source if appropriate. See for instructions. free(): corrupted unsorted chunks g++ -fno-PIE -c -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. -I. -I../../gcc/gcc -I../../gcc/gcc/. -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 insn-attrtab.o -MT insn-attrtab.o -MMD -MP -MF ./.deps/insn-attrtab.TPo insn-attrtab.c g++ -fno-PIE -c -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. -I. -I../../gcc/gcc -I../../gcc/gcc/. -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 insn-automata.o -MT insn-automata.o -MMD -MP -MF ./.deps/insn-automata.TPo insn-automata.c g++: internal compiler error: Aborted signal terminated program cc1plus Please submit a full bug report, with preprocessed source if appropriate. See for instructions. make[1]: *** [Makefile:1116: lto/lto.o] Error 4 make[1]: *** Waiting for unfinished jobs.... rm fsf-funding.pod gcov.pod gfdl.pod gpl.pod gcc.pod cpp.pod make[1]: Leaving directory '/opt/foster/out/build/gcc-build/gcc' make: *** [Makefile:4313: all-gcc] Error 2