make log continued...
Code:
echo "#include \"$f\""; \
done | sed 's|./||' > tmp-gencheck.h
/bin/sh ./move-if-change tmp-gencheck.h gencheck.h
gencheck.h is unchanged
echo timestamp > s-gencheck
AWK=gawk /bin/sh ./opts.sh \
'/bin/sh ./move-if-change' \
options.c options.h ./c.opt ./common.opt
options.h is unchanged
options.c is unchanged
gcc -g -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -DHAVE_CONFIG_H -I. -I. -I. -I./. -I./../include \
-DGCC_INCLUDE_DIR=\"/home/kyle2/Development/Games/Gamecube/usr/src/gcc/lib/gcc/powerpc-gamecube-linux-gnu/3.4.3/include\" -DGPLUSPLUS_INCLUDE_DIR=\"/home/kyle2/Development/Games/Gamecube/usr/src/gcc/lib/gcc/powerpc-gamecube-linux-gnu/3.4.3/../../../..`echo /home/kyle2/Development/Games/Gamecube/usr/src/gcc | sed -e 's|^/home/kyle2/Development/Games/Gamecube/usr/src/gcc||' -e 's|/[^/]*|/..|g'`/include/c++/3.4.3\" -DGPLUSPLUS_TOOL_INCLUDE_DIR=\"/home/kyle2/Development/Games/Gamecube/usr/src/gcc/lib/gcc/powerpc-gamecube-linux-gnu/3.4.3/../../../..`echo /home/kyle2/Development/Games/Gamecube/usr/src/gcc | sed -e 's|^/home/kyle2/Development/Games/Gamecube/usr/src/gcc||' -e 's|/[^/]*|/..|g'`/include/c++/3.4.3/powerpc-gamecube-linux-gnu\" -DGPLUSPLUS_BACKWARD_INCLUDE_DIR=\"/home/kyle2/Development/Games/Gamecube/usr/src/gcc/lib/gcc/powerpc-gamecube-linux-gnu/3.4.3/../../../..`echo /home/kyle2/Development/Games/Gamecube/usr/src/gcc | sed -e 's|^/home/kyle2/Development/Games/Gamecube/usr/src/gcc||' -e 's|/[^/]*|/..|g'`/include/c++/3.4.3/backward\" -DLOCAL_INCLUDE_DIR=\"/usr/local/include\" -DCROSS_INCLUDE_DIR=\"/home/kyle2/Documents/Development/Games/Gamecube/usr/include\" -DTOOL_INCLUDE_DIR=\"/home/kyle2/Development/Games/Gamecube/usr/src/gcc/lib/gcc/powerpc-gamecube-linux-gnu/3.4.3/../../../../powerpc-gamecube-linux-gnu/include\" -DTARGET_SYSTEM_ROOT=\"/home/kyle2/Documents/Development/Games/Gamecube\" \
-c ./cppdefault.c -o cppdefault.o
gcc -g -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -DHAVE_CONFIG_H -I. -I. -I. -I./. -I./../include \
-DPREFIX=\"/home/kyle2/Development/Games/Gamecube/usr/src/gcc\" \
-c ./prefix.c -o prefix.o
gcc -g -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -DHAVE_CONFIG_H -I. -I. -I. -I./. -I./../include \
-DLOCALEDIR=\"/home/kyle2/Development/Games/Gamecube/usr/src/gcc/share/locale\" \
-c ./intl.c -o intl.o
gcc -g -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -DHAVE_CONFIG_H -I. -I. -I. -I./. -I./../include \
-DTARGET_NAME=\"powerpc-gamecube-linux-gnu\" \
-c ./toplev.c -o toplev.o
rm -rf libbackend.a
ar rc libbackend.a alias.o bb-reorder.o bitmap.o builtins.o caller-save.o calls.o cfg.o cfganal.o cfgbuild.o cfgcleanup.o cfglayout.o cfgloop.o cfgloopanal.o cfgloopmanip.o loop-init.o loop-unswitch.o loop-unroll.o cfgrtl.o combine.o conflict.o convert.o coverage.o cse.o cselib.o dbxout.o debug.o df.o diagnostic.o dojump.o doloop.o dominance.o dwarf2asm.o dwarf2out.o emit-rtl.o except.o explow.o expmed.o expr.o final.o flow.o fold-const.o function.o gcse.o genrtl.o ggc-common.o global.o graph.o gtype-desc.o haifa-sched.o hooks.o ifcvt.o insn-attrtab.o insn-emit.o insn-modes.o insn-extract.o insn-opinit.o insn-output.o insn-peep.o insn-recog.o integrate.o intl.o jump.o langhooks.o lcm.o lists.o local-alloc.o loop.o optabs.o options.o opts.o params.o postreload.o predict.o print-rtl.o print-tree.o value-prof.o profile.o ra.o ra-build.o ra-colorize.o ra-debug.o ra-rewrite.o real.o recog.o reg-stack.o regclass.o regmove.o regrename.o reload.o reload1.o reorg.o resource.o rtl.o rtlanal.o rtl-error.o sbitmap.o sched-deps.o sched-ebb.o sched-rgn.o sched-vis.o sdbout.o sibcall.o simplify-rtx.o sreal.o stmt.o stor-layout.o stringpool.o targhooks.o timevar.o toplev.o tracer.o tree.o tree-dump.o unroll.o varasm.o varray.o version.o vmsdbgout.o xcoffout.o alloc-pool.o et-forest.o cfghooks.o bt-load.o pretty-print.o ggc-page.o web.o rs6000.o host-default.o hashtable.o tree-inline.o tree-optimize.o cgraph.o cgraphunit.o
ranlib libbackend.a
gcc -g -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -DHAVE_CONFIG_H -o cc1 \
c-parse.o c-lang.o c-pretty-print.o stub-objc.o attribs.o c-errors.o c-lex.o c-pragma.o c-decl.o c-typeck.o c-convert.o c-aux-info.o c-common.o c-opts.o c-format.o c-semantics.o c-incpath.o cppdefault.o c-ppoutput.o c-cppbuiltin.o prefix.o c-objc-common.o c-dump.o c-pch.o libcpp.a rs6000-c.o main.o libbackend.a ../libiberty/libiberty.a
gcc -g -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -DHAVE_CONFIG_H gcov.o intl.o version.o ../libiberty/libiberty.a -o gcov
gcc -g -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -DHAVE_CONFIG_H -o cc1plus \
cp/call.o cp/decl.o cp/expr.o cp/pt.o cp/typeck2.o cp/class.o cp/decl2.o cp/error.o cp/lex.o cp/parser.o cp/ptree.o cp/rtti.o cp/typeck.o cp/cvt.o cp/except.o cp/friend.o cp/init.o cp/method.o cp/search.o cp/semantics.o cp/tree.o cp/repo.o cp/dump.o cp/optimize.o cp/mangle.o cp/cp-lang.o cp/name-lookup.o cp/cxx-pretty-print.o attribs.o c-common.o c-format.o c-pragma.o c-semantics.o c-lex.o c-dump.o rs6000-c.o c-pretty-print.o c-opts.o c-pch.o c-incpath.o cppdefault.o c-ppoutput.o c-cppbuiltin.o prefix.o main.o libbackend.a libcpp.a ../libiberty/libiberty.a
gcc -g -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -DHAVE_CONFIG_H -o Tcollect2 \
collect2.o tlink.o intl.o version.o ../libiberty/libiberty.a
mv -f Tcollect2 collect2
if test yes = yes \
|| test -n ""; then \
/bin/sh ./genmultilib \
"msoft-float" \
"nof" \
"msoft-float=mcpu?401 msoft-float=mcpu?403 msoft-float=mcpu?405 msoft-float=mcpu?ec603e msoft-float=mcpu?801 msoft-float=mcpu?821 msoft-float=mcpu?823 msoft-float=mcpu?860" \
"" \
"fPIC mstrict-align" \
"" \
"" \
"yes" \
> tmp-mlib.h; \
else \
/bin/sh ./genmultilib '' '' '' '' '' '' '' no \
> tmp-mlib.h; \
fi
/bin/sh ./move-if-change tmp-mlib.h multilib.h
multilib.h is unchanged
echo timestamp > s-mlib
lsf="./cp/lang-specs.h"; for f in $lsf; do \
echo "#include \"$f\""; \
done | sed 's|./||' > tmp-specs.h
/bin/sh ./move-if-change tmp-specs.h specs.h
specs.h is unchanged
echo timestamp > s-specs
(SHLIB_LINK='/home/kyle2/Development/Games/Gamecube/gcc/gcc-3.4.3/gcc/xgcc -B/home/kyle2/Development/Games/Gamecube/gcc/gcc-3.4.3/gcc/ -B/home/kyle2/Development/Games/Gamecube/usr/src/gcc/powerpc-gamecube-linux-gnu/bin/ -B/home/kyle2/Development/Games/Gamecube/usr/src/gcc/powerpc-gamecube-linux-gnu/lib/ -isystem /home/kyle2/Development/Games/Gamecube/usr/src/gcc/powerpc-gamecube-linux-gnu/include -isystem /home/kyle2/Development/Games/Gamecube/usr/src/gcc/powerpc-gamecube-linux-gnu/sys-include -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wno-error -isystem ./include -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -shared -nodefaultlibs -Wl,--soname=@shlib_so_name@.so.1 -Wl,--version-script=@shlib_map_file@ -o @shlib_dir@@shlib_so_name@.so.1.tmp @multilib_flags@ @shlib_objs@ -lc && rm -f @shlib_base_name@.so && if [ -f @shlib_dir@@shlib_so_name@.so.1 ]; then mv -f @shlib_dir@@shlib_so_name@.so.1 @shlib_dir@@shlib_so_name@.so.1.`basename `; else true; fi && mv @shlib_dir@@shlib_so_name@.so.1.tmp @shlib_dir@@shlib_so_name@.so.1 && ln -s @shlib_dir@@shlib_so_name@.so.1 @shlib_base_name@.so' \
SHLIB_MULTILIB=''; \
gcc -g -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-error -DHAVE_CONFIG_H -I. -I. -I. -I./. -I./../include \
-DSTANDARD_STARTFILE_PREFIX=\"../../../\" -DSTANDARD_EXEC_PREFIX=\"/home/kyle2/Development/Games/Gamecube/usr/src/gcc/lib/gcc/\" -DSTANDARD_LIBEXEC_PREFIX=\"/home/kyle2/Development/Games/Gamecube/usr/src/gcc/libexec/gcc/\" -DDEFAULT_TARGET_VERSION=\"3.4.3\" -DDEFAULT_TARGET_MACHINE=\"powerpc-gamecube-linux-gnu\" -DSTANDARD_BINDIR_PREFIX=\"/home/kyle2/Development/Games/Gamecube/usr/src/gcc/bin/\" -DTOOLDIR_BASE_PREFIX=\"../../../../\" -DTARGET_SYSTEM_ROOT=\"/home/kyle2/Documents/Development/Games/Gamecube\" `test "X${SHLIB_LINK}" = "X" || test "yes" != "yes" || echo "-DENABLE_SHARED_LIBGCC"` `test "X${SHLIB_MULTILIB}" = "X" || echo "-DNO_SHARED_LIBGCC_MULTILIB"` \
-c ./gcc.c -o gcc.o)
gcc -g -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -DHAVE_CONFIG_H -o xgcc gcc.o gccspec.o intl.o \
prefix.o version.o ../libiberty/libiberty.a
cp xgcc gcc-cross
gcc -g -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -DHAVE_CONFIG_H -o cpp gcc.o cppspec.o intl.o \
prefix.o version.o ../libiberty/libiberty.a
/home/kyle2/Development/Games/Gamecube/gcc/gcc-3.4.3/gcc/xgcc -B/home/kyle2/Development/Games/Gamecube/gcc/gcc-3.4.3/gcc/ -B/home/kyle2/Development/Games/Gamecube/usr/src/gcc/powerpc-gamecube-linux-gnu/bin/ -B/home/kyle2/Development/Games/Gamecube/usr/src/gcc/powerpc-gamecube-linux-gnu/lib/ -isystem /home/kyle2/Development/Games/Gamecube/usr/src/gcc/powerpc-gamecube-linux-gnu/include -isystem /home/kyle2/Development/Games/Gamecube/usr/src/gcc/powerpc-gamecube-linux-gnu/sys-include -dumpspecs > tmp-specs
mv tmp-specs specs
if [ -f specs.ready ] ; then \
true; \else \
echo timestamp > specs.ready; \
fi
(MAKE="make"; srcdir=`cd ./fixinc && ${PWDCMD-pwd}` ; \
CC="gcc"; CFLAGS=" -g -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-error -DHAVE_CONFIG_H -DGENERATOR_FILE"; LDFLAGS=""; \
WARN_CFLAGS="-W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-error"; LIBERTY=`${PWDCMD-pwd}`/"../libiberty/libiberty.a"; \
export MAKE srcdir CC CFLAGS LDFLAGS WARN_CFLAGS LIBERTY; \
cd ./fixinc && \
/bin/sh ${srcdir}/mkfixinc.sh i686-pc-linux-gnu powerpc-gamecube-linux-gnu)
constructing ../fixinc.sh for powerpc-gamecube-linux-gnu to run on i686-pc-linux-gnu
make TARGETS=oneprocess SHELL="/bin/sh" CC="gcc" CFLAGS=" -g -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-error -DHAVE_CONFIG_H -DGENERATOR_FILE" LDFLAGS="" LIBERTY="/home/kyle2/Development/Games/Gamecube/gcc/gcc-3.4.3/gcc/../libiberty/libiberty.a" install-bin
make[2]: Entering directory `/home/kyle2/Development/Games/Gamecube/gcc/gcc-3.4.3/gcc/fixinc'
/bin/sh ./genfixes machname.h
gcc -c -DIN_GCC -DHAVE_CONFIG_H -g -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-error -DHAVE_CONFIG_H -DGENERATOR_FILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-error -I. -I.. -I. -I./.. -I./../config -I./../../include fixincl.c
make[2]: Leaving directory `/home/kyle2/Development/Games/Gamecube/gcc/gcc-3.4.3/gcc/fixinc'
make[1]: Leaving directory `/home/kyle2/Development/Games/Gamecube/gcc/gcc-3.4.3/gcc'
I am using "gcc (GCC) 4.0.1 (4.0.1-5mdk for Mandriva Linux release 2006.0)" for a compiler and I am using 'gcc-3.4.3' for the cross compiler source and binutils-2.15 compiled for gamecube powerpc (I guess this would be MIPS). I have also used versions 3.4.6 and 4.0.1, all with the same results. It appears to be an issue with how it is using mkdir, or in the config process.
Funny thing is, I had the same
EXACT issue when compiling gcc for a simulator I used in class called CS161. I eventually had to gcc use gcc-3.3.6 binary, and it compiled ok. If I use this, probably will be the same results. So what is up with gcc4.0.1 on mandriva? Does it not use mkdir correctly?
I also cannot use mkdir in 4.0.1 as it is intended by libc convention:
Code:
int mkdir (const char *FILENAME, mode_t MODE)
Example from one of my projects (ok, so it is using the c++ side)
Code:
g++ -c -Wall -Wno-deprecated filenamechanger.cpp
filenamechanger.cpp: In function 'int main(int, char**)':
filenamechanger.cpp:50: error: expected `)' before numeric constant
/usr/include/sys/stat.h:285: error: too few arguments to function 'int mkdir(const char*, __mode_t)'
filenamechanger.cpp:50: error: at this point in file
make: *** [filenamechanger.o] Error 1
Anyone else have this issue or know of any solution?
PS: 4.0.1 on Mandriva is ghetto... yep....