Fehler beim Bauen...

Kreuzuebersetzer, Diskussion über Änderungen im Tuxbox-CDK und Tuxbox-CVS
NoClue
Einsteiger
Einsteiger
Beiträge: 226
Registriert: Dienstag 30. Oktober 2001, 00:00

Fehler beim Bauen...

Beitrag von NoClue »

Irgendwie sehe ich grad keinen Fehler, eventuell aber jemand von Euch:

Code: Alles auswählen

Making all in misc
make[3]: Entering directory `/home/Administrator/head-0409/apps/tuxbox/tools/mis
c'
powerpc-tuxbox-linux-gnu-gcc -I/head/cdkroot/include/tuxbox   -Wall -mcpu=823 -m
multiple -mstring -meabi -pipe -Os   -o pluginx  pluginx.o -ldl -lpthread
/head/cdkroot/lib/: file not recognized: Is a directory
collect2: ld returned 1 exit status
make[3]: *** [pluginx] Error 1
und das Ganze mal noch mit Parameter -v:

Code: Alles auswählen

Administratoren@n008 ~/head-0409/apps/tuxbox/tools/misc
$ powerpc-tuxbox-linux-gnu-gcc -I/head/cdkroot/include/tuxbox   -Wall -mcpu=823
 -mmultiple -mstring -meabi -pipe -Os   -o pluginx  pluginx.o -ldl -lpthread -v
Reading specs from /head/cdk/lib/gcc-lib/powerpc-tuxbox-linux-gnu/3.3.5/specs
Configured with: ../gcc-3.3.5/configure --build=i686-pc-cygwin --host=i686-pc-cy
gwin --target=powerpc-tuxbox-linux-gnu --prefix=/head/cdk --with-cpu=823 --enabl
e-target-optspace --enable-languages=c,c++ --enable-shared --enable-threads --di
sable-nls --nfp
Thread model: posix
gcc version 3.3.5
 /head/cdk/lib/gcc-lib/powerpc-tuxbox-linux-gnu/3.3.5/collect2.exe --eh-frame-hd
r -V -Qy -m elf32ppclinux -dynamic-linker /lib/ld.so.1 -o pluginx /head/cdk/lib/
gcc-lib/powerpc-tuxbox-linux-gnu/3.3.5/../../../../powerpc-tuxbox-linux-gnu/lib/
crt1.o /head/cdk/lib/gcc-lib/powerpc-tuxbox-linux-gnu/3.3.5/../../../../powerpc-
tuxbox-linux-gnu/lib/crti.o /head/cdk/lib/gcc-lib/powerpc-tuxbox-linux-gnu/3.3.5
/nof/crtbegin.o -L/head/cdk/lib/gcc-lib/powerpc-tuxbox-linux-gnu/3.3.5/nof -L/he
ad/cdk/lib/gcc-lib/powerpc-tuxbox-linux-gnu/3.3.5 -L/head/cdk/lib/gcc-lib/powerp
c-tuxbox-linux-gnu/3.3.5/../../../../powerpc-tuxbox-linux-gnu/lib/nof -L/head/cd
k/lib/gcc-lib/powerpc-tuxbox-linux-gnu/3.3.5/../../../../powerpc-tuxbox-linux-gn
u/lib pluginx.o -ldl -lpthread -lgcc -lgcc_eh -lc -lgcc -lgcc_eh /head/cdk/lib/g
cc-lib/powerpc-tuxbox-linux-gnu/3.3.5/nof/crtsavres.o /head/cdk/lib/gcc-lib/powe
rpc-tuxbox-linux-gnu/3.3.5/nof/crtend.o /head/cdk/lib/gcc-lib/powerpc-tuxbox-lin
ux-gnu/3.3.5/../../../../powerpc-tuxbox-linux-gnu/lib/crtn.o
/head/cdkroot/lib/: file not recognized: Is a directory
GNU ld version 2.14.90.0.5 20030722
  Supported emulations:
   elf32ppclinux
   elf32ppc
   elf32ppcsim
collect2: ld returned 1 exit status

Danke und Grüsse,
NoClue
Sagem mit 1*Intel Flash und Avia 600 :-)
Homar
Senior Member
Beiträge: 1278
Registriert: Mittwoch 5. September 2001, 00:00

Beitrag von Homar »

hi NoClue,

bist schon weitergekommen bei dem Problem ???
NoClue
Einsteiger
Einsteiger
Beiträge: 226
Registriert: Dienstag 30. Oktober 2001, 00:00

Beitrag von NoClue »

Hi Homar,

leider nicht - sonst hätte ich mich schon gemeldet. :(

Grüsse,
NoClue
Sagem mit 1*Intel Flash und Avia 600 :-)
dietmarw
Contributor
Beiträge: 1833
Registriert: Mittwoch 10. April 2002, 15:39

Beitrag von dietmarw »

tippe auf ein lokales versionsproblem..
generell baut das cdk momentan unter suse gut.
sowohl flash als auch yadd.

automake >=1.7 :1.7.6
autoconf >=2.57a :2.59
cvs :1.11.6
libtool >=1.4.2 :1.5
make >=3.79 :3.80
gettext >=0.12.1 :0.12.1
makeinfo :4.5
tar :1.13.25
bunzip2 :1.0.2
gunzip :1.3.5
patch :2.5.9
infocmp :5.3.20030201
gcc >=3.0 :3.3.1
g++ >=3.0 :3.3.1
yacc :yacc installiert
bison :1.75
flex :2.5.4
pkg-config :0.15.0
dbluelle
Contributor
Beiträge: 319
Registriert: Samstag 29. Mai 2004, 18:49

Beitrag von dbluelle »

Ich habe dasselbe Problem.

Ich übersetze unter Cygwin und habe bis auf makeinfo (Version 4.2) alles in der gleichen Version wie oben angegeben.

Bei mir tritt der gleiche Fehler auch beim Übersetzen der Plugins auf.

Der Release-Zweig (mit Enigma aus Head) läuft ohne Probleme durch. :gruebel:


dbluelle
dbluelle
Contributor
Beiträge: 319
Registriert: Samstag 29. Mai 2004, 18:49

Beitrag von dbluelle »

Der Fehler scheint irgendwas mit dem -lpthread Switch (in Makefile.am) zu tun zu haben :gruebel: .

Die plugins, die diesen Switch nicht haben (tuxcom, vncviewer) laufen ohne Probleme durch.

Ausserdem bricht bei mir auch directfb mit folgender Meldung ab:

Code: Alles auswählen

checking for pthread_attr_init in -lpthread... no
configure: error:
*** DirectFB requires libpthread.
make: *** [.deps/libdirectfb] Error 1
Irgendwelche Ideen, in welche Richtung man da nachforschen könnte?

dbluelle
HEAD
Einsteiger
Einsteiger
Beiträge: 313
Registriert: Freitag 14. Februar 2003, 15:59

Beitrag von HEAD »

touch .deps/libdirectfb , wenn du nichts selbst mit directfb machst.
dbluelle
Contributor
Beiträge: 319
Registriert: Samstag 29. Mai 2004, 18:49

Beitrag von dbluelle »

HEAD hat geschrieben:touch .deps/libdirectfb , wenn du nichts selbst mit directfb machst.
Das hilft aber nicht, dass eigentliche Problem zu lösen (Das liegt ja beim Übersetzen der Plugins bzw. von pluginx).

(Ich habe die directfb-Meldung hier nur als Hinweis mal reingeschrieben, vielleicht kann man dadurch den Fehler ja etwas eingrenzen)

dbluelle
IceTrooper
Beiträge: 1
Registriert: Freitag 21. Januar 2005, 18:49

Beitrag von IceTrooper »

Werft mal einen Blick in die /cdkroot/lib/libpthread.so. Bei mir war dort die Pfadangabe unvollständig.

Hab das erstmal direkt gefixt, weil ich die Ursache nicht finden konnte. Aber danach hat er anstandslos weiter gemacht.
dbluelle
Contributor
Beiträge: 319
Registriert: Samstag 29. Mai 2004, 18:49

Beitrag von dbluelle »

IceTrooper hat geschrieben:Werft mal einen Blick in die /cdkroot/lib/libpthread.so. Bei mir war dort die Pfadangabe unvollständig.
Danke, das war ein guter Tip.
Ich habe auch die Ursache für die unvollständige Pfadangabe gefunden. Da fehlte was in cdk/Patches/cygwin/glibc.diff:

Code: Alles auswählen

diff -Naur glibc-2.2.5.org/Makeconfig glibc-2.2.5/Makeconfig
--- glibc-2.2.5.org/Makeconfig	Wed Sep 12 18:49:45 2001
+++ glibc-2.2.5/Makeconfig	Sun Mar  3 00:11:44 2002
@@ -433,13 +433,13 @@
 # run the linked programs.
 link-libc = -Wl,-rpath-link=$(rpath-link) \
 	    $(common-objpfx)libc.so$(libc.so-version) \
-	    $(common-objpfx)$(patsubst %,$(libtype.oS),c) $(gnulib)
+	    $(common-objpfx)$(patsubst %,$(libtype.ot),c) $(gnulib)
 # This is how to find at build-time things that will be installed there.
 rpath-dirs = math elf dlfcn nss nis rt resolv crypt
 else
 ifneq (,$(filter aix aix%,$(config-os)))
 link-libc = $(common-objpfx)libc.a \
-	    $(common-objpfx)$(patsubst %,$(libtype.oS),c) $(gnulib)
+	    $(common-objpfx)$(patsubst %,$(libtype.ot),c) $(gnulib)
 rpath-dirs = math dlfcn nss nis rt resolv crypt
 endif
 endif
@@ -652,7 +652,7 @@
 # The compilation rules use $(CPPFLAGS-${SUFFIX}) and $(CFLAGS-${SUFFIX})
 # to pass different flags for each flavor.
 libtypes = $(foreach o,$(object-suffixes-for-libc),$(libtype$o))
-all-object-suffixes := .o .os .op .og .ob .oS
+all-object-suffixes := .o .os .op .og .ob .ot
 object-suffixes :=
 CPPFLAGS-.o = $(pic-default)
 CFLAGS-.o = $(filter %frame-pointer,$(+cflags))
@@ -706,14 +706,14 @@
 
 ifeq (yes,$(build-shared))
 # Build special library that contains the static-only routines for libc.
-object-suffixes-for-libc += .oS
+object-suffixes-for-libc += .ot
 
 # Must build the routines as PIC, though, because they can end up in (users')
 # shared objects.  We don't want to use CFLAGS-os because users may, for
 # example, make that processor-specific.
-CFLAGS-.oS = $(CFLAGS-.o) $(pic-ccflag)
-CPPFLAGS-.oS = $(CPPFLAGS-.o) -DPIC -DLIBC_NONSHARED=1
-libtype.oS = lib%_nonshared.a
+CFLAGS-.ot = $(CFLAGS-.o) $(pic-ccflag)
+CPPFLAGS-.ot = $(CPPFLAGS-.o) -DPIC -DLIBC_NONSHARED=1
+libtype.ot = lib%_nonshared.a
 endif
 
 
diff -Naur glibc-2.2.5.org/Makerules glibc-2.2.5/Makerules
--- glibc-2.2.5.org/Makerules	Sun Mar  3 00:08:12 2002
+++ glibc-2.2.5/Makerules	Sun Mar  3 00:12:40 2002
@@ -446,7 +446,7 @@
 # Bounded pointer thunks are only built for *.ob
 elide-bp-thunks = $(addprefix $(bppfx),$(bp-thunks))
 
-elide-routines.oS += $(filter-out $(static-only-routines),\
+elide-routines.ot += $(filter-out $(static-only-routines),\
 				  $(routines) $(aux) $(sysdep_routines)) \
 		     $(elide-bp-thunks)
 elide-routines.os += $(static-only-routines) $(elide-bp-thunks)
@@ -958,7 +958,7 @@
 install: $(inst_libdir)/libc.so
 $(inst_libdir)/libc.so: $(common-objpfx)format.lds \
 			$(common-objpfx)libc.so$(libc.so-version) \
-			$(inst_libdir)/$(patsubst %,$(libtype.oS),\
+			$(inst_libdir)/$(patsubst %,$(libtype.ot),\
 						  $(libprefix)$(libc-name)) \
 			$(+force)
 	(echo '/* GNU ld script';\
@@ -966,7 +966,7 @@
	 echo '   the static library, so try that secondarily.  */';\
	 cat $<; \
	 echo 'GROUP ( $(inst_libdir)/libc.so$(libc.so-version)' \
-	      '$(inst_libdir)/$(patsubst %,$(libtype.oS),$(libprefix)$(libc-name))'\
+	      '$(inst_libdir)/$(patsubst %,$(libtype.ot),$(libprefix)$(libc-name))'\
 	      ')' \
 	) > $@.new
 	mv -f $@.new $@
diff -Naur glibc-2.3.2/linuxthreads/Makefile glibc-2.3.2.patched/linuxthreads/Makefile
--- glibc-2.3.2/linuxthreads/Makefile	2003-02-22 02:01:16.000000000 +0100
+++ glibc-2.3.2.patched/linuxthreads/Makefile	2003-10-12 14:13:50.000000000 +0200
@@ -114,7 +114,7 @@
 install: $(inst_libdir)/libpthread.so
 $(inst_libdir)/libpthread.so: $(common-objpfx)format.lds \
 			      $(objpfx)libpthread.so$(libpthread.so-version) \
-			      $(inst_libdir)/$(patsubst %,$(libtype.oS),\
+			      $(inst_libdir)/$(patsubst %,$(libtype.ot),\
 							$(libprefix)pthread) \
 			      $(+force)
 	(echo '/* GNU ld script';\
@@ -122,7 +122,7 @@
 	 echo '   the static library, so try that secondarily.  */';\
 	 cat $<; \
 	 echo 'GROUP ( $(inst_libdir)/libpthread.so$(libpthread.so-version)' \
-	      '$(inst_libdir)/$(patsubst %,$(libtype.oS),$(libprefix)pthread)'\
+	      '$(inst_libdir)/$(patsubst %,$(libtype.ot),$(libprefix)pthread)'\
 	      ')' \
 	) > $@.new
 	mv -f $@.new $@ 
diff -Naur glibc-2.2.5.org/sysdeps/sparc/sparc32/sparcv9/Makefile glibc-2.2.5/sysdeps/sparc/sparc32/sparcv9/Makefile
--- glibc-2.2.5.org/sysdeps/sparc/sparc32/sparcv9/Makefile	Tue Apr 10 00:11:57 2001
+++ glibc-2.2.5/sysdeps/sparc/sparc32/sparcv9/Makefile	Sun Mar  3 00:13:42 2002
@@ -10,4 +10,4 @@
 ASFLAGS-.op += -Wa,-Av9a
 ASFLAGS-.og += -Wa,-Av9a
 ASFLAGS-.ob += -Wa,-Av9a
-ASFLAGS-.oS += -Wa,-Av9a
+ASFLAGS-.ot += -Wa,-Av9a 
Die Änderungen sind an die Devs unterwegs.

dbluelle