Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] install uClibc daily snapshot failes
@ 2007-01-17  7:33 Claus Klein
  2007-01-17 18:13 ` Bernhard Fischer
  0 siblings, 1 reply; 6+ messages in thread
From: Claus Klein @ 2007-01-17  7:33 UTC (permalink / raw)
  To: buildroot

Hi all!

I'm not able to build uClibc daily snapshot:

# Host: Linux P3linux 2.6.16.21-0.25-default #1 Tue Sep 19 07:26:15 UTC 2006 i686 i686 i386 GNU/Linux
# Target Architecture (powerpc)

make[1]: Leaving directory `/home/claus/src/buildroot/toolchain_build_powerpc/uClibc'
touch -c /home/claus/src/buildroot/toolchain_build_powerpc/uClibc/lib/libc.a
make -C /home/claus/src/buildroot/toolchain_build_powerpc/uClibc \
        PREFIX= \
        DEVEL_PREFIX=/tools/LinuxCDK/ \
        RUNTIME_PREFIX=/tools/LinuxCDK/ \
        install_runtime install_dev
make[1]: Entering directory `/home/claus/src/buildroot/toolchain_build_powerpc/uClibc'
install -d /tools/LinuxCDK/lib
install -m 644 lib/lib*-0.9.29.so \
        /tools/LinuxCDK/lib
cd lib && tar -cf - *.so.* | tar -xf - -C /tools/LinuxCDK/lib
tar: error while loading shared libraries: libpthread.so.0: ELF file data encoding not little-endian
tar: error while loading shared libraries: libpthread.so.0: ELF file data encoding not little-endian
make[1]: *** [install_runtime] Fehler 127
make[1]: Leaving directory `/home/claus/src/buildroot/toolchain_build_powerpc/uClibc'
make: *** [/tools/LinuxCDK/lib/libc.a] Fehler 2
You have new mail in /var/spool/mail/claus
claus at P3linux:~/src/buildroot>


It seems, the problem is in target:

# Installs run-time libraries
install_runtime:
...
	cd lib && $(TAR)  -cf - *.so.* | $(TAR) -xf - -C $(PREFIX)$(RUNTIME_PREFIX)lib
...
# failes! -:((


This version:
# Installs run-time libraries
install_runtime:
...
	$(TAR) -C lib -cf - $(notdir $(wildcard lib/*.so.*)) | $(TAR) -xf - -C $(PREFIX)$(RUNTIME_PREFIX)lib
...

# works fine; -:) ck

Bye

Claus

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Buildroot] install uClibc daily snapshot failes
  2007-01-17  7:33 [Buildroot] install uClibc daily snapshot failes Claus Klein
@ 2007-01-17 18:13 ` Bernhard Fischer
  2007-01-17 20:14   ` Claus Klein
  0 siblings, 1 reply; 6+ messages in thread
From: Bernhard Fischer @ 2007-01-17 18:13 UTC (permalink / raw)
  To: buildroot

On Wed, Jan 17, 2007 at 08:33:04AM +0100, Claus Klein wrote:
>Hi all!
>
>I'm not able to build uClibc daily snapshot:
>
># Host: Linux P3linux 2.6.16.21-0.25-default #1 Tue Sep 19 07:26:15 UTC 2006 i686 i686 i386 GNU/Linux
># Target Architecture (powerpc)
>
>make[1]: Leaving directory `/home/claus/src/buildroot/toolchain_build_powerpc/uClibc'
>touch -c /home/claus/src/buildroot/toolchain_build_powerpc/uClibc/lib/libc.a
>make -C /home/claus/src/buildroot/toolchain_build_powerpc/uClibc \
>        PREFIX= \
>        DEVEL_PREFIX=/tools/LinuxCDK/ \
>        RUNTIME_PREFIX=/tools/LinuxCDK/ \
>        install_runtime install_dev
>make[1]: Entering directory `/home/claus/src/buildroot/toolchain_build_powerpc/uClibc'
>install -d /tools/LinuxCDK/lib
>install -m 644 lib/lib*-0.9.29.so \
>        /tools/LinuxCDK/lib
>cd lib && tar -cf - *.so.* | tar -xf - -C /tools/LinuxCDK/lib
>tar: error while loading shared libraries: libpthread.so.0: ELF file data encoding not little-endian
>tar: error while loading shared libraries: libpthread.so.0: ELF file data encoding not little-endian

You don't have "." in your LD_LIBRARY_PATH, do you?
What is your echo $LD_LIBRARY_PATH ?

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Buildroot] install uClibc daily snapshot failes
  2007-01-17 18:13 ` Bernhard Fischer
@ 2007-01-17 20:14   ` Claus Klein
  2007-01-18 10:29     ` Bernhard Fischer
  0 siblings, 1 reply; 6+ messages in thread
From: Claus Klein @ 2007-01-17 20:14 UTC (permalink / raw)
  To: buildroot

On Wednesday 17 January 2007 19:13, Bernhard Fischer wrote:
> On Wed, Jan 17, 2007 at 08:33:04AM +0100, Claus Klein wrote:
> >Hi all!
> >
> >I'm not able to build uClibc daily snapshot:
> >
> ># Host: Linux P3linux 2.6.16.21-0.25-default #1 Tue Sep 19 07:26:15 UTC 2006 i686 i686 i386 GNU/Linux
> ># Target Architecture (powerpc)
> >
> >make[1]: Leaving directory `/home/claus/src/buildroot/toolchain_build_powerpc/uClibc'
> >touch -c /home/claus/src/buildroot/toolchain_build_powerpc/uClibc/lib/libc.a
> >make -C /home/claus/src/buildroot/toolchain_build_powerpc/uClibc \
> >        PREFIX= \
> >        DEVEL_PREFIX=/tools/LinuxCDK/ \
> >        RUNTIME_PREFIX=/tools/LinuxCDK/ \
> >        install_runtime install_dev
> >make[1]: Entering directory `/home/claus/src/buildroot/toolchain_build_powerpc/uClibc'
> >install -d /tools/LinuxCDK/lib
> >install -m 644 lib/lib*-0.9.29.so \
> >        /tools/LinuxCDK/lib
> >cd lib && tar -cf - *.so.* | tar -xf - -C /tools/LinuxCDK/lib
> >tar: error while loading shared libraries: libpthread.so.0: ELF file data encoding not little-endian
> >tar: error while loading shared libraries: libpthread.so.0: ELF file data encoding not little-endian
> 
> You don't have "." in your LD_LIBRARY_PATH, do you?
I checked this alrady.
That is not the problem.

> What is your echo $LD_LIBRARY_PATH ?
> 
> 
claus at P3linux:~/src/buildroot> echo $LD_LIBRARY_PATH
/usr/lib/qt3/lib:/usr/lib/qt3/lib:/usr/lib/qt3/lib:/usr/lib/qt3/lib:
claus at P3linux:~/src/buildroot>          
                             

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Buildroot] install uClibc daily snapshot failes
  2007-01-17 20:14   ` Claus Klein
@ 2007-01-18 10:29     ` Bernhard Fischer
  2007-01-19 15:51       ` Claus Klein
  0 siblings, 1 reply; 6+ messages in thread
From: Bernhard Fischer @ 2007-01-18 10:29 UTC (permalink / raw)
  To: buildroot

On Wed, Jan 17, 2007 at 09:14:07PM +0100, Claus Klein wrote:
>On Wednesday 17 January 2007 19:13, Bernhard Fischer wrote:
>> On Wed, Jan 17, 2007 at 08:33:04AM +0100, Claus Klein wrote:
>> >Hi all!
>> >
>> >I'm not able to build uClibc daily snapshot:
>> >
>> ># Host: Linux P3linux 2.6.16.21-0.25-default #1 Tue Sep 19 07:26:15 UTC 2006 i686 i686 i386 GNU/Linux
>> ># Target Architecture (powerpc)
>> >
>> >make[1]: Leaving directory `/home/claus/src/buildroot/toolchain_build_powerpc/uClibc'
>> >touch -c /home/claus/src/buildroot/toolchain_build_powerpc/uClibc/lib/libc.a
>> >make -C /home/claus/src/buildroot/toolchain_build_powerpc/uClibc \
>> >        PREFIX= \
>> >        DEVEL_PREFIX=/tools/LinuxCDK/ \
>> >        RUNTIME_PREFIX=/tools/LinuxCDK/ \
>> >        install_runtime install_dev
>> >make[1]: Entering directory `/home/claus/src/buildroot/toolchain_build_powerpc/uClibc'
>> >install -d /tools/LinuxCDK/lib
>> >install -m 644 lib/lib*-0.9.29.so \
>> >        /tools/LinuxCDK/lib
>> >cd lib && tar -cf - *.so.* | tar -xf - -C /tools/LinuxCDK/lib
>> >tar: error while loading shared libraries: libpthread.so.0: ELF file data encoding not little-endian
>> >tar: error while loading shared libraries: libpthread.so.0: ELF file data encoding not little-endian
>> 
>> You don't have "." in your LD_LIBRARY_PATH, do you?
>I checked this alrady.
>That is not the problem.

Of course it is.
>
>> What is your echo $LD_LIBRARY_PATH ?
>> 
>> 
>claus at P3linux:~/src/buildroot> echo $LD_LIBRARY_PATH
>/usr/lib/qt3/lib:/usr/lib/qt3/lib:/usr/lib/qt3/lib:/usr/lib/qt3/lib:
--------------------------------------------------------------------^

fix your LD_LIBRARY_PATH, no patch needed.

HTH,

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Buildroot] install uClibc daily snapshot failes
  2007-01-18 10:29     ` Bernhard Fischer
@ 2007-01-19 15:51       ` Claus Klein
  2007-01-19 19:44         ` Bernhard Fischer
  0 siblings, 1 reply; 6+ messages in thread
From: Claus Klein @ 2007-01-19 15:51 UTC (permalink / raw)
  To: buildroot

On Thursday 18 January 2007 11:29, Bernhard Fischer wrote:
> >> What is your echo $LD_LIBRARY_PATH ?
> >> 
> >> 
> >claus at P3linux:~/src/buildroot> echo $LD_LIBRARY_PATH
> >/usr/lib/qt3/lib:/usr/lib/qt3/lib:/usr/lib/qt3/lib:/usr/lib/qt3/lib:
> --------------------------------------------------------------------^
> 
> fix your LD_LIBRARY_PATH, no patch needed.
> 
> HTH,
> 
> 
Hi,

thanks for your help, you are right.

I din't know that the tailing ':' is the same as ':.'

I'm working with OpenSuse 10.1 and I can't find the config file, which writes this LD_LIBRARY_PATH.
While about 2 years working with buildrout I had no problem with my LD_LIBRARY_PATH!

I would like to hear that the Makefile will be changed to my version. 
This works always!


PS: There is no note about LD_LIBRARY_PATH in the buildroot docu!


Bye,

Claus

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Buildroot] install uClibc daily snapshot failes
  2007-01-19 15:51       ` Claus Klein
@ 2007-01-19 19:44         ` Bernhard Fischer
  0 siblings, 0 replies; 6+ messages in thread
From: Bernhard Fischer @ 2007-01-19 19:44 UTC (permalink / raw)
  To: buildroot

On Fri, Jan 19, 2007 at 04:51:07PM +0100, Claus Klein wrote:
>On Thursday 18 January 2007 11:29, Bernhard Fischer wrote:
>> >> What is your echo $LD_LIBRARY_PATH ?
>> >> 
>> >> 
>> >claus at P3linux:~/src/buildroot> echo $LD_LIBRARY_PATH
>> >/usr/lib/qt3/lib:/usr/lib/qt3/lib:/usr/lib/qt3/lib:/usr/lib/qt3/lib:
>> --------------------------------------------------------------------^
>> 
>> fix your LD_LIBRARY_PATH, no patch needed.
>> 
>> HTH,
>> 
>> 
>Hi,
>
>thanks for your help, you are right.
>
>I din't know that the tailing ':' is the same as ':.'

^: == :$ == :: == :.:
Same for PATH.
>
>I'm working with OpenSuse 10.1 and I can't find the config file, which writes this LD_LIBRARY_PATH.
>While about 2 years working with buildrout I had no problem with my LD_LIBRARY_PATH!

.profile, .bashrc and /etc/sysconfig come to mind.

IMO it is hazardous to have CWD in PATH and the same holds true for the
ld lib path. If you can convince anybody else to apply your patch, then
ok, but i will not apply it since this just means that you risk breakage
anywhere else that may trigger trouble like the one you experienced.
>
>I would like to hear that the Makefile will be changed to my version. 
>This works always!
>
>
>PS: There is no note about LD_LIBRARY_PATH in the buildroot docu!

I've added checks to dependencies.sh as you may have seen.
Please fix your pathes. Thanks for your understanding and kind regards,

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-01-19 19:44 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-17  7:33 [Buildroot] install uClibc daily snapshot failes Claus Klein
2007-01-17 18:13 ` Bernhard Fischer
2007-01-17 20:14   ` Claus Klein
2007-01-18 10:29     ` Bernhard Fischer
2007-01-19 15:51       ` Claus Klein
2007-01-19 19:44         ` Bernhard Fischer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox