All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [Bug 1225] New: Buildroot fails to account for "nof" subdirectory (no floating point)
@ 2010-03-02 20:25 bugzilla at busybox.net
  2010-03-02 21:50 ` [Buildroot] [Bug 1225] " bugzilla at busybox.net
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: bugzilla at busybox.net @ 2010-03-02 20:25 UTC (permalink / raw)
  To: buildroot

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.


-- 
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.

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

* [Buildroot] [Bug 1225] Buildroot fails to account for "nof" subdirectory (no floating point)
  2010-03-02 20:25 [Buildroot] [Bug 1225] New: Buildroot fails to account for "nof" subdirectory (no floating point) bugzilla at busybox.net
@ 2010-03-02 21:50 ` bugzilla at busybox.net
  2010-03-03 15:05 ` bugzilla at busybox.net
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: bugzilla at busybox.net @ 2010-03-02 21:50 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=1225





--- Comment #1 from Thomas Petazzoni <thomas.petazzoni@free-electrons.com>  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.


-- 
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.

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

* [Buildroot] [Bug 1225] Buildroot fails to account for "nof" subdirectory (no floating point)
  2010-03-02 20:25 [Buildroot] [Bug 1225] New: Buildroot fails to account for "nof" subdirectory (no floating point) bugzilla at busybox.net
  2010-03-02 21:50 ` [Buildroot] [Bug 1225] " bugzilla at busybox.net
@ 2010-03-03 15:05 ` bugzilla at busybox.net
  2010-03-03 15:11 ` bugzilla at busybox.net
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: bugzilla at busybox.net @ 2010-03-03 15:05 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=1225





--- Comment #2 from gnemesure <gnemesure@avtec.com>  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


-- 
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.

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

* [Buildroot] [Bug 1225] Buildroot fails to account for "nof" subdirectory (no floating point)
  2010-03-02 20:25 [Buildroot] [Bug 1225] New: Buildroot fails to account for "nof" subdirectory (no floating point) bugzilla at busybox.net
  2010-03-02 21:50 ` [Buildroot] [Bug 1225] " bugzilla at busybox.net
  2010-03-03 15:05 ` bugzilla at busybox.net
@ 2010-03-03 15:11 ` bugzilla at busybox.net
  2010-03-03 16:06 ` bugzilla at busybox.net
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: bugzilla at busybox.net @ 2010-03-03 15:11 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=1225





--- Comment #3 from gnemesure <gnemesure@avtec.com>  2010-03-03 15:11:48 UTC ---
(In reply to comment #1)
> 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.

> 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.


-- 
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.

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

* [Buildroot] [Bug 1225] Buildroot fails to account for "nof" subdirectory (no floating point)
  2010-03-02 20:25 [Buildroot] [Bug 1225] New: Buildroot fails to account for "nof" subdirectory (no floating point) bugzilla at busybox.net
                   ` (2 preceding siblings ...)
  2010-03-03 15:11 ` bugzilla at busybox.net
@ 2010-03-03 16:06 ` bugzilla at busybox.net
  2010-03-03 23:15 ` bugzilla at busybox.net
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: bugzilla at busybox.net @ 2010-03-03 16:06 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=1225





--- Comment #4 from Thomas Petazzoni <thomas.petazzoni@free-electrons.com>  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)

==================================================================


-- 
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.

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

* [Buildroot] [Bug 1225] Buildroot fails to account for "nof" subdirectory (no floating point)
  2010-03-02 20:25 [Buildroot] [Bug 1225] New: Buildroot fails to account for "nof" subdirectory (no floating point) bugzilla at busybox.net
                   ` (3 preceding siblings ...)
  2010-03-03 16:06 ` bugzilla at busybox.net
@ 2010-03-03 23:15 ` bugzilla at busybox.net
  2010-04-09 14:54 ` bugzilla at busybox.net
  2010-07-29 19:27 ` bugzilla at busybox.net
  6 siblings, 0 replies; 8+ messages in thread
From: bugzilla at busybox.net @ 2010-03-03 23:15 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=1225





--- Comment #5 from gnemesure <gnemesure@avtec.com>  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.


-- 
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.

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

* [Buildroot] [Bug 1225] Buildroot fails to account for "nof" subdirectory (no floating point)
  2010-03-02 20:25 [Buildroot] [Bug 1225] New: Buildroot fails to account for "nof" subdirectory (no floating point) bugzilla at busybox.net
                   ` (4 preceding siblings ...)
  2010-03-03 23:15 ` bugzilla at busybox.net
@ 2010-04-09 14:54 ` bugzilla at busybox.net
  2010-07-29 19:27 ` bugzilla at busybox.net
  6 siblings, 0 replies; 8+ messages in thread
From: bugzilla at busybox.net @ 2010-04-09 14:54 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=1225


Thomas Petazzoni <thomas.petazzoni@free-electrons.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |2010.05




-- 
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.

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

* [Buildroot] [Bug 1225] Buildroot fails to account for "nof" subdirectory (no floating point)
  2010-03-02 20:25 [Buildroot] [Bug 1225] New: Buildroot fails to account for "nof" subdirectory (no floating point) bugzilla at busybox.net
                   ` (5 preceding siblings ...)
  2010-04-09 14:54 ` bugzilla at busybox.net
@ 2010-07-29 19:27 ` bugzilla at busybox.net
  6 siblings, 0 replies; 8+ messages in thread
From: bugzilla at busybox.net @ 2010-07-29 19:27 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=1225

Thomas Petazzoni <thomas.petazzoni@free-electrons.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #6 from Thomas Petazzoni <thomas.petazzoni@free-electrons.com>  ---
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

-- 
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.

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

end of thread, other threads:[~2010-07-29 19:27 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-02 20:25 [Buildroot] [Bug 1225] New: Buildroot fails to account for "nof" subdirectory (no floating point) bugzilla at busybox.net
2010-03-02 21:50 ` [Buildroot] [Bug 1225] " bugzilla at busybox.net
2010-03-03 15:05 ` bugzilla at busybox.net
2010-03-03 15:11 ` bugzilla at busybox.net
2010-03-03 16:06 ` bugzilla at busybox.net
2010-03-03 23:15 ` bugzilla at busybox.net
2010-04-09 14:54 ` bugzilla at busybox.net
2010-07-29 19:27 ` bugzilla at busybox.net

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.