Skip to contentSkip to conversation

libstc++ libtool problem, cross lamanger broken

DISCUSSION Koen Kooi 3 participants 9 messages May 8, 2010 – May 17, 2010

lore
Share & tools
lore

Koen Kooi

author
#0 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I've been getting failures when ARM apps try to link with x86_64 libxml2, and I started to do some digging:

grep L/OE/angstrom-dev/sysroots/x86_64-linux/usr/lib /OE/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/lib/*.la | more | awk -F: '{print $1}' | sed s:/OE/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/lib/::glibaspell.la libatkmm-1.6.la
libcairomm-1.0.la
libetpan.la
libFLAC++.la
libgdkmm-2.4.la
libgiomm-2.4.la
libglibmm-2.4.la
libglibmm_generate_extra_defs-2.4.la
libgnutlsxx.la
libgtkmathview_custom_reader.la
libgtkmathview_libxml2.la
libgtkmathview_libxml2_reader.la
libgtkmm-2.4.la
libmathview_backend_gtk.la
libmathview_backend_ps.la
libmathview_backend_svg.la
libmathview_frontend_custom_reader.la libmathview_frontend_libxml2.la libmathview_frontend_libxml2_reader.la
libmathview.la
libpangomm-1.4.la
libpcrecpp.la
libpoppler-glib.la
libpoppler.la
libpspell.la
libschroedinger-1.0.la
libsidplay.la
libsigc-2.0.la
libstdc++.la
libsupc++.la
libtiffxx.la
libwebkit-1.0.la

So pretty much anything with a c++ dep gets a bogus .la file, so lets look at libstdc++.la:

dependency_libs=' -L/OE/angstrom-dev/sysroots/x86_64-linux/usr/lib /OE/angstrom-dev/sysroots/armv7a-angstrom-linux-gnueabi/usr/lib/libstdc++.la'

So it looks like the cross.bbclass lamangler needs some more work.

regards,

Koen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFL5RiNMkyGM64RGpERAj8wAJwI7kS06MsYkJ0F9qPC7zMtAayo3wCgr7dB S6dcdHhKvPl0WSxZk+zXpAk=
=0C1I
-----END PGP SIGNATURE-----

author
#1 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Almost a week later, any fixes people can try[1]?

[1] apart from sed -i -e 's:-L/OE/angstrom-dev/sysroots/x86_64-linux/usr/lib::g' sysroots/*/usr/lib/*.la

Quoted 45 lines · Koen Kooi

Hi,

I've been getting failures when ARM apps try to link with x86_64 libxml2, and I started to do some digging:

grep L/OE/angstrom-dev/sysroots/x86_64-linux/usr/lib /OE/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/lib/*.la | more | awk -F: '{print $1}' | sed s:/OE/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/lib/::glibaspell.la libatkmm-1.6.la
libcairomm-1.0.la
libetpan.la
libFLAC++.la
libgdkmm-2.4.la
libgiomm-2.4.la
libglibmm-2.4.la
libglibmm_generate_extra_defs-2.4.la
libgnutlsxx.la
libgtkmathview_custom_reader.la
libgtkmathview_libxml2.la
libgtkmathview_libxml2_reader.la
libgtkmm-2.4.la
libmathview_backend_gtk.la
libmathview_backend_ps.la
libmathview_backend_svg.la
libmathview_frontend_custom_reader.la libmathview_frontend_libxml2.la libmathview_frontend_libxml2_reader.la
libmathview.la
libpangomm-1.4.la
libpcrecpp.la
libpoppler-glib.la
libpoppler.la
libpspell.la
libschroedinger-1.0.la
libsidplay.la
libsigc-2.0.la
libstdc++.la
libsupc++.la
libtiffxx.la
libwebkit-1.0.la

So pretty much anything with a c++ dep gets a bogus .la file, so lets look at libstdc++.la:

Quoted 8 lines

dependency_libs=' -L/OE/angstrom-dev/sysroots/x86_64-linux/usr/lib /OE/angstrom-dev/sysroots/armv7a-angstrom-linux-gnueabi/usr/lib/libstdc++.la'

So it looks like the cross.bbclass lamangler needs some more work.

regards,

Koen

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFL7YlOMkyGM64RGpERAjBZAKCK/+SSGgnqz7J8KVL31hI7zC1qRgCgsJGX O/dkdGg7FraOdiQFEhxL8MQ=
=FKfz
-----END PGP SIGNATURE-----

author
#2 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

ping

Quoted 61 lines · Koen Kooi

Almost a week later, any fixes people can try[1]?

[1] apart from sed -i -e 's:-L/OE/angstrom-dev/sysroots/x86_64-linux/usr/lib::g' sysroots/*/usr/lib/*.la

Quoted 53 lines · Koen Kooi

Hi,

I've been getting failures when ARM apps try to link with x86_64 libxml2, and I started to do some digging:

grep L/OE/angstrom-dev/sysroots/x86_64-linux/usr/lib /OE/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/lib/*.la | more | awk -F: '{print $1}' | sed s:/OE/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/lib/::glibaspell.la libatkmm-1.6.la
libcairomm-1.0.la
libetpan.la
libFLAC++.la
libgdkmm-2.4.la
libgiomm-2.4.la
libglibmm-2.4.la
libglibmm_generate_extra_defs-2.4.la
libgnutlsxx.la
libgtkmathview_custom_reader.la
libgtkmathview_libxml2.la
libgtkmathview_libxml2_reader.la
libgtkmm-2.4.la
libmathview_backend_gtk.la
libmathview_backend_ps.la
libmathview_backend_svg.la
libmathview_frontend_custom_reader.la libmathview_frontend_libxml2.la libmathview_frontend_libxml2_reader.la
libmathview.la
libpangomm-1.4.la
libpcrecpp.la
libpoppler-glib.la
libpoppler.la
libpspell.la
libschroedinger-1.0.la
libsidplay.la
libsigc-2.0.la
libstdc++.la
libsupc++.la
libtiffxx.la
libwebkit-1.0.la

So pretty much anything with a c++ dep gets a bogus .la file, so lets look at libstdc++.la:

dependency_libs=' -L/OE/angstrom-dev/sysroots/x86_64-linux/usr/lib /OE/angstrom-dev/sysroots/armv7a-angstrom-linux-gnueabi/usr/lib/libstdc++.la'

So it looks like the cross.bbclass lamangler needs some more work.

regards,

Koen

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFL8BuAMkyGM64RGpERAt4cAJ4vI2Qgf6S+MnQ9ZnF4T2KHNpoqMACeMFTx S+Rf/i7pmxQKbiq5VgNyF10=
=BU9M
-----END PGP SIGNATURE-----

#3 lore raw
In reply to Koen Kooi
Quoted 4 lines · Koen Kooi

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Almost a week later, any fixes people can try[1]?

Koen

my sysroots/armv5te-oe-linux-gnueabi/usr/lib/libstdc++.la file has dependency_libs=' -lm'
I am not able to reproduce the problem on my end
What am I missing ?

Thx
-Khem

Quoted 74 lines

[1] apart from sed -i -e 's:-L/OE/angstrom-dev/sysroots/x86_64-linux/usr/lib::g' sysroots/*/usr/lib/*.la

Quoted 45 lines · Koen Kooi

Hi,

I've been getting failures when ARM apps try to link with x86_64 libxml2, and I started to do some digging:

grep L/OE/angstrom-dev/sysroots/x86_64-linux/usr/lib /OE/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/lib/*.la | more | awk -F: '{print $1}' | sed s:/OE/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/lib/::glibaspell.la libatkmm-1.6.la
libcairomm-1.0.la
libetpan.la
libFLAC++.la
libgdkmm-2.4.la
libgiomm-2.4.la
libglibmm-2.4.la
libglibmm_generate_extra_defs-2.4.la
libgnutlsxx.la
libgtkmathview_custom_reader.la
libgtkmathview_libxml2.la
libgtkmathview_libxml2_reader.la
libgtkmm-2.4.la
libmathview_backend_gtk.la
libmathview_backend_ps.la
libmathview_backend_svg.la
libmathview_frontend_custom_reader.la libmathview_frontend_libxml2.la libmathview_frontend_libxml2_reader.la
libmathview.la
libpangomm-1.4.la
libpcrecpp.la
libpoppler-glib.la
libpoppler.la
libpspell.la
libschroedinger-1.0.la
libsidplay.la
libsigc-2.0.la
libstdc++.la
libsupc++.la
libtiffxx.la
libwebkit-1.0.la

So pretty much anything with a c++ dep gets a bogus .la file, so lets look at libstdc++.la:

Quoted 8 lines

dependency_libs=' -L/OE/angstrom-dev/sysroots/x86_64-linux/usr/lib /OE/angstrom-dev/sysroots/armv7a-angstrom-linux-gnueabi/usr/lib/libstdc++.la'

So it looks like the cross.bbclass lamangler needs some more work.

regards,

Koen

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFL7YlOMkyGM64RGpERAjBZAKCK/+SSGgnqz7J8KVL31hI7zC1qRgCgsJGX O/dkdGg7FraOdiQFEhxL8MQ=
=FKfz
-----END PGP SIGNATURE-----

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

author
#4 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 9 lines · Khem Raj

On Fri, May 14, 2010 at 10:33 AM, Koen Kooi <[email protected]> wrote:
Almost a week later, any fixes people can try[1]?

Quoted 6 lines

Koen

my sysroots/armv5te-oe-linux-gnueabi/usr/lib/libstdc++.la file has dependency_libs=' -lm'
I am not able to reproduce the problem on my end
What am I missing ?

Try angstrom/beagleboard

Quoted 7 lines
Quoted 3 lines

Thx
-Khem

Quoted 61 lines

[1] apart from sed -i -e 's:-L/OE/angstrom-dev/sysroots/x86_64-linux/usr/lib::g' sysroots/*/usr/lib/*.la

Quoted 55 lines · Koen Kooi
Quoted 53 lines
Quoted 53 lines

Hi,

I've been getting failures when ARM apps try to link with x86_64 libxml2, and I started to do some digging:

grep L/OE/angstrom-dev/sysroots/x86_64-linux/usr/lib /OE/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/lib/*.la | more | awk -F: '{print $1}' | sed s:/OE/angstrom-dev/staging/armv7a-angstrom-linux-gnueabi/usr/lib/::glibaspell.la libatkmm-1.6.la
libcairomm-1.0.la
libetpan.la
libFLAC++.la
libgdkmm-2.4.la
libgiomm-2.4.la
libglibmm-2.4.la
libglibmm_generate_extra_defs-2.4.la
libgnutlsxx.la
libgtkmathview_custom_reader.la
libgtkmathview_libxml2.la
libgtkmathview_libxml2_reader.la
libgtkmm-2.4.la
libmathview_backend_gtk.la
libmathview_backend_ps.la
libmathview_backend_svg.la
libmathview_frontend_custom_reader.la libmathview_frontend_libxml2.la libmathview_frontend_libxml2_reader.la
libmathview.la
libpangomm-1.4.la
libpcrecpp.la
libpoppler-glib.la
libpoppler.la
libpspell.la
libschroedinger-1.0.la
libsidplay.la
libsigc-2.0.la
libstdc++.la
libsupc++.la
libtiffxx.la
libwebkit-1.0.la

So pretty much anything with a c++ dep gets a bogus .la file, so lets look at libstdc++.la:

dependency_libs=' -L/OE/angstrom-dev/sysroots/x86_64-linux/usr/lib /OE/angstrom-dev/sysroots/armv7a-angstrom-linux-gnueabi/usr/lib/libstdc++.la'

So it looks like the cross.bbclass lamangler needs some more work.

regards,

Koen

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

Quoted 1 line
Quoted 1 line

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFL8C+VMkyGM64RGpERAlr8AJ949cFdp1x8FPvU+0VJ3zcbvYFLgwCgkcPU QJHKTqHXB8YLAj8x/Zt1itE=
=xlTC
-----END PGP SIGNATURE-----

#5 lore raw
In reply to Khem Raj

Same on angstrom/c7x0 here (a bit old, though, built on May, 8th):

libstdc++.la [----] 0 L:[ 1+ 0 1/ 42] *(0 /1053b) 35 0x023
# libstdc++.la - a libtool library file
# Generated by ltmain.sh (GNU libtool 1.2435 2007/03/18 18:44:42) 2.1a #
# Please DO NOT delete this file!
# It is necessary for linking the library.

# The name that we can dlopen(3).
dlname='libstdc++.so.6'

# Names of this library. library_names='libstdc++.so.6.0.10 libstdc++.so.6 libstdc++.so'

# The name of the static archive.
old_library='libstdc++.a'

# Linker flags that can not go in dependency_libs. inherited_linker_flags=''

# Libraries that this one depends upon. dependency_libs=' -L/oe/build/tmp/sysroots/i686-linux/usr/lib -lm'

# Names of additional weak libraries provided by this library weak_library_names=''

# Version information for libstdc++.
current=6
age=0
revision=10

# Is this an already installed library?
installed=no

# Should we warn about portability when linking against -modules? shouldnotlink=no

# Files to dlopen/dlpreopen
dlopen=''
dlpreopen=''

# Directory that this library needs to be installed in:
libdir=/oe/build/tmp/sysroots/armv5te-angstrom-linux-gnueabi/usr/lib

Andrea

#6 lore raw

this -L only gets in with gcc 4.3 and not with gcc 4.4

Quoted 53 lines · Andrea Adami

Same on angstrom/c7x0 here (a bit old, though, built on May, 8th):

libstdc++.la [----] 0 L:[ 1+ 0 1/ 42] *(0 /1053b) 35 0x023
# libstdc++.la - a libtool library file
# Generated by ltmain.sh (GNU libtool 1.2435 2007/03/18 18:44:42) 2.1a #
# Please DO NOT delete this file!
# It is necessary for linking the library.

# The name that we can dlopen(3).
dlname='libstdc++.so.6'

# Names of this library. library_names='libstdc++.so.6.0.10 libstdc++.so.6 libstdc++.so'

# The name of the static archive.
old_library='libstdc++.a'

# Linker flags that can not go in dependency_libs. inherited_linker_flags=''

# Libraries that this one depends upon. dependency_libs=' -L/oe/build/tmp/sysroots/i686-linux/usr/lib -lm'

# Names of additional weak libraries provided by this library weak_library_names=''

# Version information for libstdc++.
current=6
age=0
revision=10

# Is this an already installed library?
installed=no

# Should we warn about portability when linking against -modules? shouldnotlink=no

# Files to dlopen/dlpreopen
dlopen=''
dlpreopen=''

# Directory that this library needs to be installed in:
libdir=/oe/build/tmp/sysroots/armv5te-angstrom-linux-gnueabi/usr/lib

Andrea

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

author
#7 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 1 line · Khem Raj

this -L only gets in with gcc 4.3 and not with gcc 4.4

Using gcc 4.4.x isn't an option for angstrom, it generates way too slow code for arm. Those regressions are fixed in gcc 4.5.x, though, which incidentally is what the angstrom-next branch is using.

regards,

Koen

Quoted 48 lines · Andrea Adami
Quoted 46 lines

Same on angstrom/c7x0 here (a bit old, though, built on May, 8th):

libstdc++.la [----] 0 L:[ 1+ 0 1/ 42] *(0 /1053b) 35 0x023
# libstdc++.la - a libtool library file
# Generated by ltmain.sh (GNU libtool 1.2435 2007/03/18 18:44:42) 2.1a #
# Please DO NOT delete this file!
# It is necessary for linking the library.

# The name that we can dlopen(3).
dlname='libstdc++.so.6'

# Names of this library. library_names='libstdc++.so.6.0.10 libstdc++.so.6 libstdc++.so'

# The name of the static archive.
old_library='libstdc++.a'

# Linker flags that can not go in dependency_libs. inherited_linker_flags=''

# Libraries that this one depends upon. dependency_libs=' -L/oe/build/tmp/sysroots/i686-linux/usr/lib -lm'

# Names of additional weak libraries provided by this library weak_library_names=''

# Version information for libstdc++.
current=6
age=0
revision=10

# Is this an already installed library?
installed=no

# Should we warn about portability when linking against -modules? shouldnotlink=no

# Files to dlopen/dlpreopen
dlopen=''
dlpreopen=''

# Directory that this library needs to be installed in:
libdir=/oe/build/tmp/sysroots/armv5te-angstrom-linux-gnueabi/usr/lib

Quoted 7 lines
Quoted 7 lines

Andrea

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFL8NkyMkyGM64RGpERAh+KAJ42pWFGiACvUSN04RFQEV9NYBQ4nACfQRbu Wr7tq2eQTTdXIjG/vtJHcWs=
=sB2b
-----END PGP SIGNATURE-----

#8 lore raw
Quoted 10 lines · Koen Kooi

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 1 line · Khem Raj

this -L only gets in with gcc 4.3 and not with gcc 4.4

Using gcc 4.4.x isn't an option for angstrom, it generates way too slow code for arm. Those regressions are fixed in gcc 4.5.x, though, which incidentally is what the angstrom-next branch is using.

nice to know. So probably you have to wait a little for 4.5 to mature. anyway I have committed a fix for 4.3 problem, try it out. I have done limited testing myself. Let me know if it breaks anything else.

Thx
-Khem