======
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 -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
during RTL pass: expand
../../gcc/gcc/cp/name-lookup.c: In member function 'void name_lookup::restore_state()':
../../gcc/gcc/cp/name-lookup.c:326:1: internal compiler error: in expand_gimple_basic_block, at cfgexpand.c:5570
name_lookup::restore_state ()
^~~~~~~~~~~
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-8/README.Bugs> for instructions.
make[1]: *** [Makefile:1117: cp/name-lookup.o] Error 1
make[1]: *** Waiting for unfinished jobs....
rm gcov.pod fsf-funding.pod lto-dump.pod gpl.pod gcc.pod cpp.pod
make[1]: Leaving directory '/opt/foster/out/build/gcc-build/gcc'
make: *** [Makefile:4411: all-gcc] Error 2
Replies to Untitled
Title |
Name |
Language |
UNIX |
When |
Re: Untitled |
Melodic Guinea Pig |
text |
1594526611 |
3 Years ago. |
{"html5":"htmlmixed","css":"css","javascript":"javascript","php":"php","python":"python","ruby":"ruby","lua":"text\/x-lua","bash":"text\/x-sh","go":"go","c":"text\/x-csrc","cpp":"text\/x-c++src","diff":"diff","latex":"stex","sql":"sql","xml":"xml","apl":"apl","asterisk":"asterisk","c_loadrunner":"text\/x-csrc","c_mac":"text\/x-csrc","coffeescript":"text\/x-coffeescript","csharp":"text\/x-csharp","d":"d","ecmascript":"javascript","erlang":"erlang","groovy":"text\/x-groovy","haskell":"text\/x-haskell","haxe":"text\/x-haxe","html4strict":"htmlmixed","java":"text\/x-java","java5":"text\/x-java","jquery":"javascript","mirc":"mirc","mysql":"sql","ocaml":"text\/x-ocaml","pascal":"text\/x-pascal","perl":"perl","perl6":"perl","plsql":"sql","properties":"text\/x-properties","q":"text\/x-q","scala":"scala","scheme":"text\/x-scheme","tcl":"text\/x-tcl","vb":"text\/x-vb","verilog":"text\/x-verilog","yaml":"text\/x-yaml","z80":"text\/x-z80"}