Compilieren von CVS-Version unter Debian-SID scheitert

Kreuzuebersetzer, Diskussion über Änderungen im Tuxbox-CDK und Tuxbox-CVS
citd
Neugieriger
Neugieriger
Beiträge: 14
Registriert: Dienstag 23. April 2002, 10:49

Compilieren von CVS-Version unter Debian-SID scheitert

Beitrag von citd »

Ich habe gerade probiert eine frisch ausgecheckte CVS-Version unter einer "frisch" upgedaten Debian-SID-Distribution zu compiliere.n

Nach der Liste unter cdk/doc/INSTALL.en sind alle relevanten Packete vorhanden und haben mindestens die genannte Versions-Nummer.

Hier ist die letzte Bildschirmseite. Wenn ich danach nocheinmal "make all" eingebe, entpackt er zuerst das binutils-tar-archive, es sieht also so aus als ob das compilieren der binutils schiefgeht.

gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -O2 -o as-new app.o as.o atof-generic.o bignum-copy.o cond.o depend.o dwarf2dbg.o ecoff.o ehopt.o expr.o flonum-copy.o flonum-konst.o flonum-mult.o frags.o hash.o input-file.o input-scrub.o listing.o literal.o macro.o messages.o output-file.o read.o sb.o stabs.o subsegs.o symbols.o write.o tc-ppc.o obj-elf.o atof-ieee.o ../opcodes/.libs/libopcodes.a ../bfd/.libs/libbfd.a ../libiberty/libiberty.a
make[4]: Leaving directory `/dbox2/cvs/cdk/build/gas'
make[3]: Leaving directory `/dbox2/cvs/cdk/build/gas'
make[2]: Leaving directory `/dbox2/cvs/cdk/build/gas'
make[2]: Entering directory `/dbox2/cvs/cdk/build/ld'
make all-recursive
make[3]: Entering directory `/dbox2/cvs/cdk/build/ld'
Making all in po
make[4]: Entering directory `/dbox2/cvs/cdk/build/ld/po'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/dbox2/cvs/cdk/build/ld/po'
make[4]: Entering directory `/dbox2/cvs/cdk/build/ld'
/bin/sh ../../binutils-2.13.90.0.16/ld/../ylwrap "bison -y" ../../binutils-2.13.90.0.16/ld/ldgram.y y.tab.c ldgram.c y.tab.h ldgram.h -- -d
gcc -DHAVE_CONFIG_H -I. -I../../binutils-2.13.90.0.16/ld -I. -D_GNU_SOURCE -I. -I../../binutils-2.13.90.0.16/ld -I../bfd -I../../binutils-2.13.90.0.16/ld/../bfd -I../../binutils-2.13.90.0.16/ld/../include -I../../binutils-2.13.90.0.16/ld/../intl -I../intl -g -O2 -DLOCALEDIR="\"/dbox2/cdk/share/locale\"" -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -O2 -c ldgram.c
flex ../../binutils-2.13.90.0.16/ld/ldlex.l && mv lex.yy.c ldlex.c
gcc -DHAVE_CONFIG_H -I. -I../../binutils-2.13.90.0.16/ld -I. -D_GNU_SOURCE -I. -I../../binutils-2.13.90.0.16/ld -I../bfd -I../../binutils-2.13.90.0.16/ld/../bfd -I../../binutils-2.13.90.0.16/ld/../include -I../../binutils-2.13.90.0.16/ld/../intl -I../intl -g -O2 -DLOCALEDIR="\"/dbox2/cdk/share/locale\"" -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -O2 -c ldlex.c
lex.yy.c:3465: warning: no previous prototype for `yyget_lineno'
lex.yy.c:3474: warning: no previous prototype for `yyget_in'
lex.yy.c:3482: warning: no previous prototype for `yyget_out'
lex.yy.c:3490: warning: no previous prototype for `yyget_leng'
lex.yy.c:3499: warning: no previous prototype for `yyget_text'
lex.yy.c:3508: warning: no previous prototype for `yyset_lineno'
lex.yy.c:3520: warning: no previous prototype for `yyset_in'
lex.yy.c:3525: warning: no previous prototype for `yyset_out'
lex.yy.c:3530: warning: no previous prototype for `yyget_debug'
lex.yy.c:3535: warning: no previous prototype for `yyset_debug'
lex.yy.c:3541: warning: no previous prototype for `yylex_destroy'
../../binutils-2.13.90.0.16/ld/ldlex.l: In function `yy_input':
../../binutils-2.13.90.0.16/ld/ldlex.l:615: `yy_current_buffer' undeclared (first use in this function)
../../binutils-2.13.90.0.16/ld/ldlex.l:615: (Each undeclared identifier is reported only once
../../binutils-2.13.90.0.16/ld/ldlex.l:615: for each function it appears in.)
/usr/include/sys/stat.h: At top level:
lex.yy.c:2973: warning: `yyunput' defined but not used
make[4]: *** [ldlex.o] Error 1
make[4]: Leaving directory `/dbox2/cvs/cdk/build/ld'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/dbox2/cvs/cdk/build/ld'
make[2]: *** [all-recursive-am] Error 2
make[2]: Leaving directory `/dbox2/cvs/cdk/build/ld'
make[1]: *** [all-ld] Error 2
make[1]: Leaving directory `/dbox2/cvs/cdk/build'
make: *** [.binutils] Error 2
obi
Senior Member
Beiträge: 1282
Registriert: Montag 12. November 2001, 00:00

Beitrag von obi »

flex ist wohl kaputt. probier das mal downzugraden.
citd
Neugieriger
Neugieriger
Beiträge: 14
Registriert: Dienstag 23. April 2002, 10:49

Beitrag von citd »

Erstmal gracias fuer den Hinweis.

Ich habe das flex von SID (2.5.31-3) durch die Woody-Version (2.5.4a-24) ersetzt.

Das scheint es wohl gewesen zu sein, inzwischen ist er beim compilieren des gcc. In so einer Stunde werde ich dann wohl sehen ob es (insgesamt) funktioniert hat. :-)
ds187
Interessierter
Interessierter
Beiträge: 94
Registriert: Montag 22. April 2002, 11:09

Beitrag von ds187 »

1 Stunde?
Was hast du denn für ein Mördergerät?
Also auf meinem P3 450 läuft das schon ein wenig länger :-)

MfG
ds187
We all live in a yellow subroutine!
citd
Neugieriger
Neugieriger
Beiträge: 14
Registriert: Dienstag 23. April 2002, 10:49

Beitrag von citd »

- MB: Tyan Thunder HE-SL (Serverworks HE-SL Chipsatz)
- Dual PIII-933Mhz
- 3GB RAM
- Relevante Platte: 18GB Ultra 160 SCSI-Platte (IBM DDYS-T18350N).
Wenn ich "spass" dran habe, compilier ich auch manchmal in der Ramdisk (bzw ramfs), da macht das ganze noch ein bisschen mehr freude. :-)

Allerdings compilier ich "nur" mit einer CPU, quasi als Background-Job.
Ich merke davon also praktisch nix. :-)
citd
Neugieriger
Neugieriger
Beiträge: 14
Registriert: Dienstag 23. April 2002, 10:49

Beitrag von citd »

Bevor ichs vergesse. Das compilieren hat funktioniert. :-)
woglinde
Einsteiger
Einsteiger
Beiträge: 261
Registriert: Donnerstag 15. November 2001, 00:00

Beitrag von woglinde »

Hi,

der bug ist flex und ich hab ihn bei mir auch schongefixt war nur eine option mehr beim Aufruf. ich hoffe ich schaff heute den fix einzubauen.

Gruss Woglinde
citd
Neugieriger
Neugieriger
Beiträge: 14
Registriert: Dienstag 23. April 2002, 10:49

Beitrag von citd »

Ich habe gesehen das eine Aenderung flex betreffend eingecheckt wurde.
Dann werde ich heute abend mal den "hold"-Status des flex-Packets aufheben und wieder auf die aktuelle Version updaten und den dann einmal durchcompilieren. :-)
Sat_Man
Einsteiger
Einsteiger
Beiträge: 351
Registriert: Donnerstag 24. Oktober 2002, 20:14

Beitrag von Sat_Man »

Der fix wurde aber nur in HEAD eingecheckt und nicht in rel oder ?
woglinde
Einsteiger
Einsteiger
Beiträge: 261
Registriert: Donnerstag 15. November 2001, 00:00

Beitrag von woglinde »

Hi,

ich verwende kein REL, wusste nicht das da das Problem auftritt wenn ja,
check ich es da auch ein.

Gruss Woglinde
Sat_Man
Einsteiger
Einsteiger
Beiträge: 351
Registriert: Donnerstag 24. Oktober 2002, 20:14

Beitrag von Sat_Man »

Ja das wäre prima, das Problem tritt nämlich bei REL auch auf, thx.
citd
Neugieriger
Neugieriger
Beiträge: 14
Registriert: Dienstag 23. April 2002, 10:49

Beitrag von citd »

Nach dem Methode immer mal wieder was neues.

Gibts jetzt einen anderen Fehler.
Vom flex-Packat gab es in der zwischenzeit auch ein Update.
(SID-Version ist jetzt 2.5.31-4 vorher 2.5.31-3)

Der Fehler ist jetzt beim compilieren der modutils.

powerpc-tuxbox-linux-gnu-gcc -msoft-float -mmultiple -mstring -meabi -O3 -g -pipe -I./../include -D_GNU_SOURCE -DCONFIG_ROOT_CHECK_OFF=1 -DCOMMON_3264 -DELF_MACHINE_H='"elf_ppc.h"' -DARCH_ppc -DTAINT_URL='"http://www.tux.org/lkml/#export-tainted"' -DONLY_32 -DCOMBINE_rmmod -DCOMBINE_modprobe -DCOMBINE_lsmod -DCOMBINE_ksyms -DCOMBINE_kallsyms -c -o modinfo.o modinfo.c
powerpc-tuxbox-linux-gnu-gcc -msoft-float -mmultiple -mstring -meabi -O3 -g -pipe -I./../include -D_GNU_SOURCE -DCONFIG_ROOT_CHECK_OFF=1 -DCOMMON_3264 -DELF_MACHINE_H='"elf_ppc64.h"' -DARCH_ppc64 -DONLY_64 -DTAINT_URL='"http://www.tux.org/lkml/#export-tainted"' -DCOMBINE_rmmod -DCOMBINE_modprobe -DCOMBINE_lsmod -DCOMBINE_ksyms -DCOMBINE_kallsyms -c -o modinfo_64.o modinfo.c
powerpc-tuxbox-linux-gnu-gcc -msoft-float -mmultiple -mstring -meabi -O3 -g -pipe -o modinfo modinfo.o modinfo_64.o ../obj/libobj.a ../util/libutil.a
make[2]: Leaving directory `/dbox2/cvs/cdk/modutils-2.4.21/insmod'
make[2]: Entering directory `/dbox2/cvs/cdk/modutils-2.4.21/genksyms'
gcc -O2 -o makecrc32 makecrc32.c
./makecrc32 > crc32.tab.tmp
mv crc32.tab.tmp crc32.tab
powerpc-tuxbox-linux-gnu-gcc -msoft-float -mmultiple -mstring -meabi -O3 -g -pipe -I. -I. -I./../include -D_GNU_SOURCE -DCONFIG_ROOT_CHECK_OFF=1 -c -o genksyms.o genksyms.c
expect 6 shift/reduce conflicts and 5 reduce/reduce conflicts.
bison -o parse.c -dtv parse.y
parse.y: conflicts: 6 shift/reduce, 5 reduce/reduce
powerpc-tuxbox-linux-gnu-gcc -msoft-float -mmultiple -mstring -meabi -O3 -g -pipe -Wno-uninitialized -I. -I. -I./../include -D_GNU_SOURCE -DCONFIG_ROOT_CHECK_OFF=1 -c -o parse.o parse.c
flex -olex.c -d lex.l parse.h
powerpc-tuxbox-linux-gnu-gcc -msoft-float -mmultiple -mstring -meabi -O3 -g -pipe -Wno-uninitialized -I. -I. -I./../include -D_GNU_SOURCE -DCONFIG_ROOT_CHECK_OFF=1 -c -o lex.o lex.c
lex.l: In function `yylex':
lex.l:429: `yytext_ptr' undeclared (first use in this function)
lex.l:429: (Each undeclared identifier is reported only once
lex.l:429: for each function it appears in.)
make[2]: *** [lex.o] Error 1
make[2]: Leaving directory `/dbox2/cvs/cdk/modutils-2.4.21/genksyms'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/dbox2/cvs/cdk/modutils-2.4.21'
make: *** [.modutils] Error 2
Indy500
Interessierter
Interessierter
Beiträge: 62
Registriert: Donnerstag 10. Oktober 2002, 19:40

Beitrag von Indy500 »

Saug dir doch einfach flex 2.54 und kompilliere selber. Das dauert nichtmal ne Minute und du hast Ruhe.
woglinde
Einsteiger
Einsteiger
Beiträge: 261
Registriert: Donnerstag 15. November 2001, 00:00

Beitrag von woglinde »

Hihi,

den Fehler in den modutils hab ich auch bei mir gefixt, werde heute abend mal einchecken.

Gruss Woglinde
TheDOC
Senior Member
Beiträge: 697
Registriert: Freitag 20. Juli 2001, 00:00

Beitrag von TheDOC »

apt-get install flex-old btw... Hatte das Problem auch gerade und bin über das Topic gestolpert. Vielleicht hilft's noch jemandem. :)