All of lore.kernel.org
 help / color / mirror / Atom feed
* -lz gets translated into /usr/lib/libz.so
@ 2010-10-25  8:05 Jaap de Jong
  2010-10-25  8:10 ` Khem Raj
  0 siblings, 1 reply; 4+ messages in thread
From: Jaap de Jong @ 2010-10-25  8:05 UTC (permalink / raw)
  To: openembedded-devel

Building openjdk-6 still ends in an error (or again?)
Looking at the log file reveals that the -lz option is somehow replaced 
by /usr/lib/libz.so
Is there anyone with a hint in the right direction?
Is this a libtool issue?

////
| /bin/sh ../../libtool --tag=CC   --mode=link 
arm-angstrom-linux-gnueabi-gcc -march=armv5te -mtune=arm926ej-s 
-mthumb-interwork -mno-thumb -D__ARM__ -D__LINUX__ -std=c99 -pedantic 
-Wall -Wno-long-long -D_POSIX_C_SOURCE=200112L -D_XOPEN_SOURCE=600 
-D_XOPEN_SOURCE_EXTENDED -D_BSD_SOURCE -D_REENTRANT 
-isystem/media/OpenEmbedded/unstable/tmp/sysroots/armv5te-angstrom-linux-gnueabi/usr/include 
-fexpensive-optimizations -fomit-frame-pointer -frename-registers -O2 
-ggdb2 -fno-strict-aliasing -avoid-version -Xlinker 
--version-script=../../contrib/mapfile-vers-product -Wl,-O1 
-Wl,--hash-style=gnu -o libjvm.la -lz -lpthread -ldl  -rpath 
/media/OpenEmbedded/unstable/tmp/work/armv5te-angstrom-linux-gnueabi/openjdk-6-jre-6b18-1.8-r10.7/icedtea6-1.8.2/build/cacao/install/lib  
../../src/fdlibm/libfdlibm.la ../../src/mm/libmm.la 
../../src/native/libnative.la ../../src/threads/libthreads.la 
../../src/toolbox/libtoolbox.la ../../src/vm/libvm.la 
../../src/vmcore/libvmcore.la
| arm-angstrom-linux-gnueabi-gcc -march=armv5te -mtune=arm926ej-s 
-mthumb-interwork -mno-thumb -shared  -Wl,--whole-archive 
../../src/fdlibm/.libs/libfdlibm.a ../../src/mm/.libs/libmm.a 
../../src/native/.libs/libnative.a ../../src/threads/.libs/libthreads.a 
../../src/toolbox/.libs/libtoolbox.a ../../src/vm/.libs/libvm.a 
../../src/vmcore/.libs/libvmcore.a -Wl,--no-whole-archive 
*/usr/lib/libz.so* -lpthread -ldl  -march=armv5te -mtune=arm926ej-s 
-mthumb-interwork -mno-thumb 
-Wl,--version-script=../../contrib/mapfile-vers-product -Wl,-O1 
-Wl,--hash-style=gnu -Wl,-soname -Wl,libjvm.so -o .libs/libjvm.so
| /usr/lib/libz.so: could not read symbols: File in wrong format
| collect2: ld returned 1 exit status
////




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

* Re: -lz gets translated into /usr/lib/libz.so
  2010-10-25  8:05 -lz gets translated into /usr/lib/libz.so Jaap de Jong
@ 2010-10-25  8:10 ` Khem Raj
  2010-10-25  8:58   ` Jaap de Jong
  0 siblings, 1 reply; 4+ messages in thread
From: Khem Raj @ 2010-10-25  8:10 UTC (permalink / raw)
  To: openembedded-devel

On Mon, Oct 25, 2010 at 1:05 AM, Jaap de Jong <jaap.dejong@nedap.com> wrote:
> Building openjdk-6 still ends in an error (or again?)
> Looking at the log file reveals that the -lz option is somehow replaced by
> /usr/lib/libz.so
> Is there anyone with a hint in the right direction?
> Is this a libtool issue?

are you using libtool 2.4 ? i.e. if you are using angstrom-2010 then
you are. In this case the libtool macros used for concerned package
might need upgrade.

>
> ////
> | /bin/sh ../../libtool --tag=CC   --mode=link
> arm-angstrom-linux-gnueabi-gcc -march=armv5te -mtune=arm926ej-s
> -mthumb-interwork -mno-thumb -D__ARM__ -D__LINUX__ -std=c99 -pedantic -Wall
> -Wno-long-long -D_POSIX_C_SOURCE=200112L -D_XOPEN_SOURCE=600
> -D_XOPEN_SOURCE_EXTENDED -D_BSD_SOURCE -D_REENTRANT
> -isystem/media/OpenEmbedded/unstable/tmp/sysroots/armv5te-angstrom-linux-gnueabi/usr/include
> -fexpensive-optimizations -fomit-frame-pointer -frename-registers -O2 -ggdb2
> -fno-strict-aliasing -avoid-version -Xlinker
> --version-script=../../contrib/mapfile-vers-product -Wl,-O1
> -Wl,--hash-style=gnu -o libjvm.la -lz -lpthread -ldl  -rpath
> /media/OpenEmbedded/unstable/tmp/work/armv5te-angstrom-linux-gnueabi/openjdk-6-jre-6b18-1.8-r10.7/icedtea6-1.8.2/build/cacao/install/lib
>  ../../src/fdlibm/libfdlibm.la ../../src/mm/libmm.la
> ../../src/native/libnative.la ../../src/threads/libthreads.la
> ../../src/toolbox/libtoolbox.la ../../src/vm/libvm.la
> ../../src/vmcore/libvmcore.la
> | arm-angstrom-linux-gnueabi-gcc -march=armv5te -mtune=arm926ej-s
> -mthumb-interwork -mno-thumb -shared  -Wl,--whole-archive
> ../../src/fdlibm/.libs/libfdlibm.a ../../src/mm/.libs/libmm.a
> ../../src/native/.libs/libnative.a ../../src/threads/.libs/libthreads.a
> ../../src/toolbox/.libs/libtoolbox.a ../../src/vm/.libs/libvm.a
> ../../src/vmcore/.libs/libvmcore.a -Wl,--no-whole-archive */usr/lib/libz.so*
> -lpthread -ldl  -march=armv5te -mtune=arm926ej-s -mthumb-interwork
> -mno-thumb -Wl,--version-script=../../contrib/mapfile-vers-product -Wl,-O1
> -Wl,--hash-style=gnu -Wl,-soname -Wl,libjvm.so -o .libs/libjvm.so
> | /usr/lib/libz.so: could not read symbols: File in wrong format
> | collect2: ld returned 1 exit status
> ////
>
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>



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

* Re: -lz gets translated into /usr/lib/libz.so
  2010-10-25  8:10 ` Khem Raj
@ 2010-10-25  8:58   ` Jaap de Jong
  2010-10-25 17:51     ` Khem Raj
  0 siblings, 1 reply; 4+ messages in thread
From: Jaap de Jong @ 2010-10-25  8:58 UTC (permalink / raw)
  To: openembedded-devel

On 10/25/2010 10:10 AM, Khem Raj wrote:
> On Mon, Oct 25, 2010 at 1:05 AM, Jaap de Jong<jaap.dejong@nedap.com>  wrote:
>> Building openjdk-6 still ends in an error (or again?)
>> Looking at the log file reveals that the -lz option is somehow replaced by
>> /usr/lib/libz.so
>> Is there anyone with a hint in the right direction?
>> Is this a libtool issue?
> are you using libtool 2.4 ? i.e. if you are using angstrom-2010 then
> you are. In this case the libtool macros used for concerned package
> might need upgrade.
>
Yep: angstrom 2010 & libtool 2.4
Where should I find this macro's? And what should I change?
There is a zlib.m4; can't find any clue there...
>> ////
>> | /bin/sh ../../libtool --tag=CC   --mode=link
>> arm-angstrom-linux-gnueabi-gcc -march=armv5te -mtune=arm926ej-s
>> -mthumb-interwork -mno-thumb -D__ARM__ -D__LINUX__ -std=c99 -pedantic -Wall
>> -Wno-long-long -D_POSIX_C_SOURCE=200112L -D_XOPEN_SOURCE=600
>> -D_XOPEN_SOURCE_EXTENDED -D_BSD_SOURCE -D_REENTRANT
>> -isystem/media/OpenEmbedded/unstable/tmp/sysroots/armv5te-angstrom-linux-gnueabi/usr/include
>> -fexpensive-optimizations -fomit-frame-pointer -frename-registers -O2 -ggdb2
>> -fno-strict-aliasing -avoid-version -Xlinker
>> --version-script=../../contrib/mapfile-vers-product -Wl,-O1
>> -Wl,--hash-style=gnu -o libjvm.la -lz -lpthread -ldl  -rpath
>> /media/OpenEmbedded/unstable/tmp/work/armv5te-angstrom-linux-gnueabi/openjdk-6-jre-6b18-1.8-r10.7/icedtea6-1.8.2/build/cacao/install/lib
>>   ../../src/fdlibm/libfdlibm.la ../../src/mm/libmm.la
>> ../../src/native/libnative.la ../../src/threads/libthreads.la
>> ../../src/toolbox/libtoolbox.la ../../src/vm/libvm.la
>> ../../src/vmcore/libvmcore.la
>> | arm-angstrom-linux-gnueabi-gcc -march=armv5te -mtune=arm926ej-s
>> -mthumb-interwork -mno-thumb -shared  -Wl,--whole-archive
>> ../../src/fdlibm/.libs/libfdlibm.a ../../src/mm/.libs/libmm.a
>> ../../src/native/.libs/libnative.a ../../src/threads/.libs/libthreads.a
>> ../../src/toolbox/.libs/libtoolbox.a ../../src/vm/.libs/libvm.a
>> ../../src/vmcore/.libs/libvmcore.a -Wl,--no-whole-archive */usr/lib/libz.so*
>> -lpthread -ldl  -march=armv5te -mtune=arm926ej-s -mthumb-interwork
>> -mno-thumb -Wl,--version-script=../../contrib/mapfile-vers-product -Wl,-O1
>> -Wl,--hash-style=gnu -Wl,-soname -Wl,libjvm.so -o .libs/libjvm.so
>> | /usr/lib/libz.so: could not read symbols: File in wrong format
>> | collect2: ld returned 1 exit status
>> ////
>>
>>
>> _______________________________________________
>> Openembedded-devel mailing list
>> Openembedded-devel@lists.openembedded.org
>> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel



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

* Re: -lz gets translated into /usr/lib/libz.so
  2010-10-25  8:58   ` Jaap de Jong
@ 2010-10-25 17:51     ` Khem Raj
  0 siblings, 0 replies; 4+ messages in thread
From: Khem Raj @ 2010-10-25 17:51 UTC (permalink / raw)
  To: openembedded-devel

look into some recipes like binutils or gnutls and see how they get
the updates forced.

On 10/25/10, Jaap de Jong <jaap.dejong@nedap.com> wrote:
> On 10/25/2010 10:10 AM, Khem Raj wrote:
>> On Mon, Oct 25, 2010 at 1:05 AM, Jaap de Jong<jaap.dejong@nedap.com>
>> wrote:
>>> Building openjdk-6 still ends in an error (or again?)
>>> Looking at the log file reveals that the -lz option is somehow replaced
>>> by
>>> /usr/lib/libz.so
>>> Is there anyone with a hint in the right direction?
>>> Is this a libtool issue?
>> are you using libtool 2.4 ? i.e. if you are using angstrom-2010 then
>> you are. In this case the libtool macros used for concerned package
>> might need upgrade.
>>
> Yep: angstrom 2010 & libtool 2.4
> Where should I find this macro's? And what should I change?
> There is a zlib.m4; can't find any clue there...
>>> ////
>>> | /bin/sh ../../libtool --tag=CC   --mode=link
>>> arm-angstrom-linux-gnueabi-gcc -march=armv5te -mtune=arm926ej-s
>>> -mthumb-interwork -mno-thumb -D__ARM__ -D__LINUX__ -std=c99 -pedantic
>>> -Wall
>>> -Wno-long-long -D_POSIX_C_SOURCE=200112L -D_XOPEN_SOURCE=600
>>> -D_XOPEN_SOURCE_EXTENDED -D_BSD_SOURCE -D_REENTRANT
>>> -isystem/media/OpenEmbedded/unstable/tmp/sysroots/armv5te-angstrom-linux-gnueabi/usr/include
>>> -fexpensive-optimizations -fomit-frame-pointer -frename-registers -O2
>>> -ggdb2
>>> -fno-strict-aliasing -avoid-version -Xlinker
>>> --version-script=../../contrib/mapfile-vers-product -Wl,-O1
>>> -Wl,--hash-style=gnu -o libjvm.la -lz -lpthread -ldl  -rpath
>>> /media/OpenEmbedded/unstable/tmp/work/armv5te-angstrom-linux-gnueabi/openjdk-6-jre-6b18-1.8-r10.7/icedtea6-1.8.2/build/cacao/install/lib
>>>   ../../src/fdlibm/libfdlibm.la ../../src/mm/libmm.la
>>> ../../src/native/libnative.la ../../src/threads/libthreads.la
>>> ../../src/toolbox/libtoolbox.la ../../src/vm/libvm.la
>>> ../../src/vmcore/libvmcore.la
>>> | arm-angstrom-linux-gnueabi-gcc -march=armv5te -mtune=arm926ej-s
>>> -mthumb-interwork -mno-thumb -shared  -Wl,--whole-archive
>>> ../../src/fdlibm/.libs/libfdlibm.a ../../src/mm/.libs/libmm.a
>>> ../../src/native/.libs/libnative.a ../../src/threads/.libs/libthreads.a
>>> ../../src/toolbox/.libs/libtoolbox.a ../../src/vm/.libs/libvm.a
>>> ../../src/vmcore/.libs/libvmcore.a -Wl,--no-whole-archive
>>> */usr/lib/libz.so*
>>> -lpthread -ldl  -march=armv5te -mtune=arm926ej-s -mthumb-interwork
>>> -mno-thumb -Wl,--version-script=../../contrib/mapfile-vers-product
>>> -Wl,-O1
>>> -Wl,--hash-style=gnu -Wl,-soname -Wl,libjvm.so -o .libs/libjvm.so
>>> | /usr/lib/libz.so: could not read symbols: File in wrong format
>>> | collect2: ld returned 1 exit status
>>> ////
>>>
>>>
>>> _______________________________________________
>>> Openembedded-devel mailing list
>>> Openembedded-devel@lists.openembedded.org
>>> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>>>
>> _______________________________________________
>> Openembedded-devel mailing list
>> Openembedded-devel@lists.openembedded.org
>> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>


-- 
-Khem



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

end of thread, other threads:[~2010-10-25 17:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-25  8:05 -lz gets translated into /usr/lib/libz.so Jaap de Jong
2010-10-25  8:10 ` Khem Raj
2010-10-25  8:58   ` Jaap de Jong
2010-10-25 17:51     ` Khem Raj

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.