mingwrt: error: 'LDBL_MIN_EXP' undeclared

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

mingwrt: error: 'LDBL_MIN_EXP' undeclared

YuGiOhJCJ Mailing-List
Hello,

I am building a cross compiler (linux 32 bits -> windows 32 bits).
I have compiled:
- binutils-2.22
- gcc-4.8.0
- w32api library

But when I try to compile mingwrt library, I got an error:
$ make
Making `all' in `mingwex'
make[1]: Entering directory `/home/yugiohjcj/documents/downloads/software/mingwrt-3.20-2-mingw32/mingwex'
i686-pc-mingw32-gcc -c  -g -O2   -Wall -fomit-frame-pointer -I. -I.. -I../include -nostdinc -iwithprefixbefore include -I ../../w32api/include ./math/hypotl.c -o hypotl.o
./math/hypotl.c: In function 'hypotl':
./math/hypotl.c:63:15: error: 'LDBL_MAX_EXP' undeclared (first use in this function)
     if (exx > LDBL_MAX_EXP)
               ^
./math/hypotl.c:63:15: note: each undeclared identifier is reported only once for each function it appears in
./math/hypotl.c:68:13: error: 'LDBL_MIN_EXP' undeclared (first use in this function)
   if (exx < LDBL_MIN_EXP)
             ^
make[1]: *** [hypotl.o] Error 1
make[1]: Leaving directory `/home/yugiohjcj/documents/downloads/software/mingwrt-3.20-2-mingw32/mingwex'
make: *** [mingwex] Error 2

What is this undeclared LDBL_MIN_EXP element?

Thank you.
Best regards.

------------------------------------------------------------------------------
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls.
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
_______________________________________________
MinGW-users mailing list
[hidden email]

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:[hidden email]?subject=unsubscribe
Reply | Threaded
Open this post in threaded view
|

Re: mingwrt: error: 'LDBL_MIN_EXP' undeclared

Keith Marshall
On 07/08/14 01:36, YuGiOhJCJ Mailing-List wrote:
> What is this undeclared LDBL_MIN_EXP element?

It's a manifest constant, defined in gcc's float.h

I've never encountered any problem related to this, when I build cross
linux->mingw32 tool chains; how are you configuring everything?  What is
your build and install sequence?

--
Regards,
Keith.

------------------------------------------------------------------------------
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls.
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
_______________________________________________
MinGW-users mailing list
[hidden email]

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:[hidden email]?subject=unsubscribe
Reply | Threaded
Open this post in threaded view
|

Re: mingwrt: error: 'LDBL_MIN_EXP' undeclared

YuGiOhJCJ Mailing-List
> > What is this undeclared LDBL_MIN_EXP element?
>
> It's a manifest constant, defined in gcc's float.h
>
> I've never encountered any problem related to this, when I build cross
> linux->mingw32 tool chains; how are you configuring everything?  What is
> your build and install sequence?
>

Hmm, I have done an other try using:
- binutils-2.24.51 instead of binutils-2.22
- gcc-4.9.1 instead of gcc-4.8.0
And it works.
So, I don't know if it is a bug in binutils-2.22/gcc-4.8.0 or if it is just me that have not followed carefully my usual method to build my cross-compiler.
Maybe I missed a step.

That is my build and install sequence (if you know how to improve it, let me know):
1) i686-pc-mingw32-binutils-2.24.51
$ ./configure --prefix=/usr --target=i686-pc-mingw32 --disable-nls
2) i686-pc-mingw32-mingwrt-3.20.2 (headers copy only)
$ mkdir -pv /usr/i686-pc-mingw32
$ mkdir -pv /usr/lib/gcc/i686-pc-mingw32/4.9.1
$ cp -rv include /usr/i686-pc-mingw32
$ cp -rv include /usr/lib/gcc/i686-pc-mingw32/4.9.1
3) i686-pc-mingw32-w32api-3.17 (headers copy only)
$ mkdir -pv /usr/i686-pc-mingw32
$ mkdir -pv /usr/lib/gcc/i686-pc-mingw32/4.9.1
$ cp -rv include /usr/i686-pc-mingw32
$ cp -rv include /usr/lib/gcc/i686-pc-mingw32/4.9.1
4) i686-pc-mingw32-gcc-4.9.1
$ ../gcc-4.9.1/configure --prefix=/usr --target=i686-pc-mingw32 --disable-shared --enable-languages=c --disable-nls
5) i686-pc-mingw32-w32api-lib-3.17
$ ./configure --prefix=/usr/i686-pc-mingw32 --build=`./config.guess` --host=i686-pc-mingw32 --disable-nls
6) i686-pc-mingw32-mingwrt-lib-3.20.2
$ ./configure --prefix=/usr/i686-pc-mingw32 --host=i686-pc-mingw32

------------------------------------------------------------------------------
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls.
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
_______________________________________________
MinGW-users mailing list
[hidden email]

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:[hidden email]?subject=unsubscribe
Reply | Threaded
Open this post in threaded view
|

Re: mingwrt: error: 'LDBL_MIN_EXP' undeclared

Keith Marshall
On 08/08/14 00:29, YuGiOhJCJ Mailing-List wrote:
> That is my build and install sequence (if you know how to improve it,
> let me know):
[...snip...]

There's a great deal wrong with it, but I simply don't have time for a
detailed commentary, right now.  I'll have to get back to you, later.

--
Regards,
Keith.

------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
MinGW-users mailing list
[hidden email]

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:[hidden email]?subject=unsubscribe