Skip to contentSkip to conversation

Questions about gcc target packages

DISCUSSION Jeremy Williams 3 participants 6 messages Dec 4, 2009 – Dec 6, 2009

lore
Share & tools
lore
#0 lore raw

I am seeing some QA errors when building the gcc target package. The two QA errors are .so symlink in non -dev package (for the gcc package) and GNU_HASH in objc libraries.

Looking into the first issue reveals something puzzling to me. If you look at gcc-package-target.inc, the do_install operation creates a .so symlink to libgcc. Looking at the FILES definition for the gcc package (non -dev), it appears that this symlink is being sucked into the package by the entry "${gcclibdir}/${TARGET_SYS}/${BINV}/lib*". Am I confused here?

I'm not sure what is causing the GNU_HASH issue with the objc libraries...

I do have one other question. What is the thought behind the rule that first looks for the soft-float (nof) version of libgcc and copies that into base_libdir instead of the hard-float version? This version of libgcc ends up in the package libgcc1. When building an sdk with meta-toolchain, libgcc1 ends up getting installed in the target folder and overwrites the hard-float library that the gcc-cross-sdk package installs. This causes issues with libstdc++ which is built to expect the hard-float version of libgcc when linking qmul and friends (hard float is version GCC_4.1, soft float is version GCC_4.2).

thanks!

-jeremy

#1 lore raw
Quoted 9 lines · Jeremy Williams

I am seeing some QA errors when building the gcc target package. The two QA errors are .so symlink in non -dev package (for the gcc package) and GNU_HASH in objc libraries.

Looking into the first issue reveals something puzzling to me. If you look at gcc-package-target.inc, the do_install operation creates a .so symlink to libgcc. Looking at the FILES definition for the gcc package (non -dev), it appears that this symlink is being sucked into the package by the entry "${gcclibdir}/${TARGET_SYS}/${BINV}/lib*". Am I confused here?

Seems plausible

Quoted 2 lines

I'm not sure what is causing the GNU_HASH issue with the objc libraries...

LDFLAGS are not honored. May be you could try to force the --hash-style option into builds of target parts of gcc

Quoted 9 lines

I do have one other question. What is the thought behind the rule that first looks for the soft-float (nof) version of libgcc and copies that into base_libdir instead of the hard-float version? This version of libgcc ends up in the package libgcc1. When building an sdk with meta-toolchain, libgcc1 ends up getting installed in the target folder and overwrites the hard-float library that the gcc-cross-sdk package installs. This causes issues with libstdc++ which is built to expect the hard-float version of libgcc when linking qmul and friends (hard float is version GCC_4.1, soft float is version GCC_4.2).

Due to multilib and nof happens to be first. I think we should patch gcc to not generate
nof version if not asked for.

Quoted 11 lines

thanks!

-jeremy

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

#2 lore raw
Quoted 5 lines · Khem Raj <raj.khem <at> gmail.com> writes:

Due to multilib and nof happens to be first. I think we should patch gcc to not generate
nof version if not asked for.

I am not a gcc expert by any stretch of the imagination but if your target has hard-float support, wouldn't one prefer that over software emulation?

Why not switch the if/else check around to first check for the non nof library first?

-jeremy

#3 lore raw
In reply to Khem Raj
Quoted 6 lines · Khem Raj <raj.khem <at> gmail.com> writes:
Quoted 2 lines

I'm not sure what is causing the GNU_HASH issue with the objc libraries...

LDFLAGS are not honored. May be you could try to force the --hash-style option into builds of target parts of gcc

Why is it only the objc libraries that are affected? It appears that this was addressed by gcc-configure-common.inc, correct?

http://cgit.openembedded.net/cgit.cgi/openembedded/tree/recipes/gcc/gcc-configure-common.inc#n79

-jeremy

#4 lore raw
In reply to Jeremy Williams

Actually I stand corrected regarding the libgcc issues. The gcc-package-target.inc file has a FILES_libgcc entry but does not actually provide this package. This package is provided by the gcc-cross recipe (gcc-package-cross.inc). So the libgcc problem is coming from here...

-jeremy

#5 lore raw
In reply to Jeremy Williams
Quoted 5 lines · Jeremy Williams

Looking into the first issue reveals something puzzling to me. If you look at gcc-package-target.inc, the do_install operation creates a .so symlink to libgcc. Looking at the FILES definition for the gcc package (non -dev), it appears that this symlink is being sucked into the package by the entry "${gcclibdir}/${TARGET_SYS}/${BINV}/lib*". Am I confused here?

I think you're probably right, and the QA test is just wrong/unhelpful in this situation. Having the .so symlink in the gcc package is the correct thing to do: it would be silly to force everybody to install an extra gcc-dev package in order to get it.

p.