zylin / zpugcc

50 stars 31 forks source link

Compile Issue #6

Open weingaunity opened 8 years ago

weingaunity commented 8 years ago

I try to compile the gcc toolchain on linux and get following error:

There is some issue within the created command for compilation. Can you support me plz.

make[3]: Verzeichnis „/home/kw/Work/zpugcc/toolchain/build/ld“ wird betreten /bin/sh ../../binutils/ld/../ylwrap "" ../../binutils/ld/ldgram.y y.tab.c ldgram.c y.tab.h ldgram.h -- -d ../../binutils/ld/../ylwrap: 86: ../../binutils/ld/../ylwrap: -d: not found Makefile:407: die Regel für Ziel „ldgram.c“ scheiterte make[3]: * [ldgram.c] Fehler 1 make[3]: Verzeichnis „/home/kw/Work/zpugcc/toolchain/build/ld“ wird verlassen Makefile:574: die Regel für Ziel „all-recursive“ scheiterte make[2]: * [all-recursive] Fehler 1 make[2]: Verzeichnis „/home/kw/Work/zpugcc/toolchain/build/ld“ wird verlassen Makefile:745: die Regel für Ziel „all-recursive-am“ scheiterte make[1]: * [all-recursive-am] Fehler 2 make[1]: Verzeichnis „/home/kw/Work/zpugcc/toolchain/build/ld“ wird verlassen Makefile:19975: die Regel für Ziel „all-ld“ scheiterte make: * [all-ld] Fehler 2

boert commented 8 years ago

You need to install the "byacc" package,

weingaunity commented 8 years ago

So compiling continued, but now i got following issue:

gcc -D_FORTIFY_SOURCE=0 -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -fno-common -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 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
cp/except.o: In Funktion nothrow_libfn_p': except.c:(.text+0x2225): Nicht definierter Verweis auflibc_name_p' collect2: error: ld returned 1 exit status ../../gcc/gcc/cp/Make-lang.in:90: die Regel für Ziel „cc1plus“ scheiterte make[1]: * [cc1plus] Fehler 1 make[1]: Verzeichnis „/home/kw/Work/zpugcc/toolchain/gccbuild/gcc“ wird verlassen Makefile:23339: die Regel für Ziel „all-gcc“ scheiterte make: * [all-gcc] Fehler 2