Skip to contentSkip to conversation

New: libstdc++ has _GLIBCXX_HAVE_FENV_H undefined but uclibc appears to have a fenv.h

Buildroot bugzilla at busybox.net 1 participant 8 messages Nov 15, 2011 – Jan 31, 2012

lore
Share & tools
lore
#0 lore raw

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

Summary: libstdc++ has _GLIBCXX_HAVE_FENV_H undefined but
uclibc appears to have a fenv.h
Product: buildroot
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: minor
Priority: P5
Component: Other
AssignedTo: unassigned at buildroot.uclibc.org
ReportedBy: holger at freyther.de
CC: buildroot at uclibc.org
Estimated Hours: 0.0

bits/c++config.h does not define GLUBCXX_HAVE_FENV but it appears that uclibc has basic support for it.

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.
#1 lore raw

[Buildroot] [Bug 4484] libstdc++ has _GLIBCXX_HAVE_FENV_H undefined but uclibc appears to have a fenv.h

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

Peter Korsgaard <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED

--- Comment #1 from Peter Korsgaard <[email protected]> 2011-11-26 20:46:52 UTC --- On what arch is this? uClibc currently only has basic fenv support for i386

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.
#2 lore raw

[Buildroot] [Bug 4484] libstdc++ has _GLIBCXX_HAVE_FENV_H undefined but uclibc appears to have a fenv.h

In reply to bugzilla at busybox.net

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

--- Comment #2 from jacek.kolo at gmail.com 2011-11-29 11:30:33 UTC --- Created attachment 3818
--> https://bugs.busybox.net/attachment.cgi?id=3818
Buildroot configuration with fenv no such file problem

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.
#3 lore raw

[Buildroot] [Bug 4484] libstdc++ has _GLIBCXX_HAVE_FENV_H undefined but uclibc appears to have a fenv.h

In reply to bugzilla at busybox.net

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

--- Comment #3 from jacek.kolo at gmail.com 2011-11-29 11:31:07 UTC --- Created attachment 3824
--> https://bugs.busybox.net/attachment.cgi?id=3824
Full error log

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.
#4 lore raw

[Buildroot] [Bug 4484] libstdc++ has _GLIBCXX_HAVE_FENV_H undefined but uclibc appears to have a fenv.h

In reply to bugzilla at busybox.net

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

--- Comment #4 from jacek.kolo at gmail.com 2011-11-29 11:37:26 UTC --- (In reply to comment #1)

Quoted 1 line

On what arch is this? uClibc currently only has basic fenv support for i386

I believe I hit this problem. I'm using a powerpc p2020 (e500 core based) development board. The compilation ends with:

powerpc-unknown-linux-uclibc/libstdc++-v3/include/fenv.h:36:24: fatal error:
fenv.h: No such file or directory
compilation terminated.

Reproducible: always

Submitted my configuration file and full error log.

Solution for compiling without this error:
after getting the error
make uclibc-menuconfig
switch UCLIBC_HAS_FENV to [=y]

PS. bug reporting for the first time - please excuse any inconveniences

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.
#5 lore raw

[Buildroot] [Bug 4484] libstdc++ has _GLIBCXX_HAVE_FENV_H undefined but uclibc appears to have a fenv.h

In reply to bugzilla at busybox.net

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

--- Comment #5 from Peter Korsgaard <[email protected]> 2011-11-29 19:26:20 UTC --- (In reply to comment #4)

Quoted 8 lines

Submitted my configuration file and full error log.

Solution for compiling without this error:
after getting the error
make uclibc-menuconfig
switch UCLIBC_HAS_FENV to [=y]

PS. bug reporting for the first time - please excuse any inconveniences

From the .config I see:

grep ^BR2_UCLIBC .config BR2_UCLIBC_VERSION_0_9_32=y BR2_UCLIBC_VERSION_STRING="0.9.32" BR2_UCLIBC_CONFIG="toolchain/uClibc/uClibc-0.9.31.config"

So you try to build uClibc 0.9.32 with a 0.9.31 defconfig. That is not going to work. Please change it to uClibc-0.9.32.config and try again.

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.
#6 lore raw

[Buildroot] [Bug 4484] libstdc++ has _GLIBCXX_HAVE_FENV_H undefined but uclibc appears to have a fenv.h

In reply to bugzilla at busybox.net

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

--- Comment #6 from Jacek Ko?odziejski <[email protected]> 2011-12-08 15:17:34 UTC --- (In reply to comment #5)

Quoted 12 lines

(In reply to comment #4)

Quoted 8 lines

Submitted my configuration file and full error log.

Solution for compiling without this error:
after getting the error
make uclibc-menuconfig
switch UCLIBC_HAS_FENV to [=y]

PS. bug reporting for the first time - please excuse any inconveniences

From the .config I see:

Quoted 7 lines

grep ^BR2_UCLIBC .config BR2_UCLIBC_VERSION_0_9_32=y BR2_UCLIBC_VERSION_STRING="0.9.32" BR2_UCLIBC_CONFIG="toolchain/uClibc/uClibc-0.9.31.config"

So you try to build uClibc 0.9.32 with a 0.9.31 defconfig. That is not going to work. Please change it to uClibc-0.9.32.config and try again.

Hi,
I changed the .config to use "toolchain/uClibc/uClibc-0.9.32.config" (I only touched this thing), did make clean, and git pull.The compilation ends in the same place with the same effect (small unrelated differences - I can submit if you want).

I looked at the two defconfigs - both have # UCLIBC_HAS_FENV is not set. I also noticed this patch:
toolchain/uClibc/uClibc-0.9.32-honor-UCLIBC_HAS_FENV-for-e500.patch, but sadly I don't understand if it has anything in common.

Regards, Jacek

grep ^BR2_UCLIBC .config BR2_UCLIBC_VERSION_0_9_32=y BR2_UCLIBC_VERSION_STRING="0.9.32" BR2_UCLIBC_CONFIG="toolchain/uClibc/uClibc-0.9.32.config"

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.
#7 lore raw

[Buildroot] [Bug 4484] libstdc++ has _GLIBCXX_HAVE_FENV_H undefined but uclibc appears to have a fenv.h

In reply to bugzilla at busybox.net

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

Thomas Petazzoni <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |WORKSFORME

--- Comment #7 from Thomas Petazzoni <[email protected]> 2012-01-31 22:15:16 UTC --- I just tried with the latest Buildroot to build a PowerPC toolchain with gcc
4.6 for e500mc, and it just works fine.

If it still doesn't work for you, please post your Buildroot .config file. Your previous one was incorrect because it was using the 0.9.31 uClibc configuration with a 0.9.32 uClibc.

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.