New: Buildroot fails to account for "nof" subdirectory (no floating point)
https://bugs.busybox.net/show_bug.cgi?id=1225
Summary: Buildroot fails to account for "nof" subdirectory (no
floating point)
Product: buildroot
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P5
Component: Other
AssignedTo: unassigned at buildroot.uclibc.org
ReportedBy: gnemesure at avtec.com
CC: buildroot at uclibc.org
Estimated Hours: 0.0
I am using buildroot-2010.2 to target a 440GP processor with no hardware floating point.
When software floating point is enabled (BR2_SOFT_FLOAT), the gcc build puts libgcc_s.so, libstdc++.so, etc. in an "nof" subdirectory that buildroot is not accommodating. These are deposited in
$(STAGING_DIR)/usr/powerpc-linux-uclibc/lib/nof
but the toolchain/gcc/gcc-uclibc-4.x.mk makefile tries to copy these files from
$(STAGING_DIR)/usr/powerpc-linux-uclibc/lib
which results in failure to copy the libraries to the target filesystem.
This is with GCC 4.3.4. I'm not sure if this applies to other versions as well.
As a workaround, I think I can enable floating point in the kernel, and then enable hardware floating point in the toolchain.
Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
[Buildroot] [Bug 1225] Buildroot fails to account for "nof" subdirectory (no floating point)
https://bugs.busybox.net/show_bug.cgi?id=1225
--- Comment #1 from Thomas Petazzoni <[email protected]> 2010-03-02 21:50:35 UTC --- I am not able to reproduce, with a build for PowerPC 440, BR2_SOFT_FLOAT=y. So, something else must be different in your configuration. Could you attach your
.config ?
Note that your workaround is not very nice, since floating point emulation by the kernel is noticably slower that emulation in userspace.
Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
[Buildroot] [Bug 1225] Buildroot fails to account for "nof" subdirectory (no floating point)
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=1225
--- Comment #2 from gnemesure <[email protected]> 2010-03-03 15:05:46 UTC --- Created an attachment (id=1189)
--> (https://bugs.busybox.net/attachment.cgi?id=1189)
Buildroot .config file demonstrating libgcc_s issue
Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
[Buildroot] [Bug 1225] Buildroot fails to account for "nof" subdirectory (no floating point)
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=1225
--- Comment #3 from gnemesure <[email protected]> 2010-03-03 15:11:48 UTC --- (In reply to comment #1)
Quoted 4 lines
I am not able to reproduce, with a build for PowerPC 440, BR2_SOFT_FLOAT=y. So, something else must be different in your configuration. Could you attach your .config ?
I've attached a .config file that should demonstrate the issue. I think it may depend on the specific version of binutils selected.
Quoted 3 lines
Note that your workaround is not very nice, since floating point emulation by the kernel is noticably slower that emulation in userspace.
Yes, I assumed that would be the case. However, floating point computation is not really central to my application, so this approach should be sufficient for now.
Thanks.
Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
[Buildroot] [Bug 1225] Buildroot fails to account for "nof" subdirectory (no floating point)
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=1225
--- Comment #4 from Thomas Petazzoni <[email protected]> 2010-03-03 16:06:24 UTC --- Ok, thanks, got it. I think I missed it the previous time because the error is
ignored and the build continues:
==================================================================
# These are in /lib, so...
rm -rf /home/test/buildroot/output/target/usr/lib/libgcc_s*.so*
cp -dpf /home/test/buildroot/output/staging/usr/powerpc-linux-uclibc/lib*/libgcc_s* \
/home/test/buildroot/output/target/lib/
cp: cannot stat `/home/test/buildroot/output/staging/usr/powerpc-linux-uclibc/lib*/libgcc_s*':
No such file or directory
make: [/home/test/buildroot/output/stamps/gcc_libs_target_installed] Error 1 (ignored) /home/test/buildroot/output/staging/usr/bin/powerpc-linux-uclibc-strip --remove-section=.comment --remove-section=.note --strip-unneeded /home/test/buildroot/output/target/lib/libgcc_s* /home/test/buildroot/output/staging/usr/bin/powerpc-linux-uclibc-strip:
'/home/test/buildroot/output/target/lib/libgcc_s*': No such file
make: [/home/test/buildroot/output/stamps/gcc_libs_target_installed] Error 1 (ignored)
mkdir -p /home/test/buildroot/output/target/usr/lib
cp -dpf /home/test/buildroot/output/staging/usr/powerpc-linux-uclibc/lib*/libstdc++.so* \
/home/test/buildroot/output/target/usr/lib/
cp: cannot stat `/home/test/buildroot/output/staging/usr/powerpc-linux-uclibc/lib*/libstdc++.so*':
No such file or directory
make: [/home/test/buildroot/output/stamps/gcc_libs_target_installed] Error 1 (ignored)
==================================================================
Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
[Buildroot] [Bug 1225] Buildroot fails to account for "nof" subdirectory (no floating point)
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=1225
--- Comment #5 from gnemesure <[email protected]> 2010-03-03 23:15:53 UTC --- The use of an "nof" subdirectory is to support the multilib capability enabled by BR2_ENABLE_MULTILIB. When this is disabled, the "nof" directory is not used, and the original problem does not occur.
Probably need to check this flag in the gcc-uclibc-*.mk makefile.
Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
[Buildroot] [Bug 1225] Buildroot fails to account for "nof" subdirectory (no floating point)
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=1225
Thomas Petazzoni <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |2010.05
Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
[Buildroot] [Bug 1225] Buildroot fails to account for "nof" subdirectory (no floating point)
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=1225
Thomas Petazzoni <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED--- Comment #6 from Thomas Petazzoni <[email protected]> --- This bug is "fixed" by the fact that we don't allow multilib toolchain builds anymore, since
http://git.buildroot.net/buildroot/commit/?id=5575d205c35942d992db636a4f7caa246340bd0c
Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.