Bugs item #1659882, was opened at 2007-02-15 05:38
Message generated for change (Settings changed) made by dannysmith
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=102435&aid=1659882&group_id=2435
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: mingw runtime
>Group: IINR - Include In Next Release
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Dennis Schridde (lindevel)
Assigned to: Danny Smith (dannysmith)
Summary: mingw-runtime-3.11: ‘__MXCSR_ROUND_FLAG_SHIFT’ undeclared
Initial Comment:
When I try to build mingw-runtime-3.11, it halts at following error:
mingw32-gcc -c -march=athlon-xp -O2 -pipe -fomit-frame-pointer -Wall -fomit-frame-pointer -I /usr/mingw32/usr/include -I. -I./.. -I./../include -nostdinc -iwithprefixbefore include ./math/asinhl.c -o asinhl.o
mingw32-gcc -c -march=athlon-xp -O2 -pipe -fomit-frame-pointer -Wall -fomit-frame-pointer -I /usr/mingw32/usr/include -I. -I./.. -I./../include -nostdinc -iwithprefixbefore include ./math/atanh.c -o atanh.o
mingw32-gcc -c -march=athlon-xp -O2 -pipe -fomit-frame-pointer -Wall -fomit-frame-pointer -I /usr/mingw32/usr/include -I. -I./.. -I./../include -nostdinc -iwithprefixbefore include ./math/atanhf.c -o atanhf.o
mingw32-gcc -c -march=athlon-xp -O2 -pipe -fomit-frame-pointer -Wall -fomit-frame-pointer -I /usr/mingw32/usr/include -I. -I./.. -I./../include -nostdinc -iwithprefixbefore include ./math/atanhl.c -o atanhl.o
mingw32-gcc -c -march=athlon-xp -O2 -pipe -fomit-frame-pointer -Wall -fomit-frame-pointer -I /usr/mingw32/usr/include -I. -I./.. -I./../include -nostdinc -iwithprefixbefore include fesetround.c -o fesetround.o
fesetround.c: In function ‘fesetround’:
fesetround.c:25: error: ‘__MXCSR_ROUND_FLAG_SHIFT’ undeclared (first use in this function)
fesetround.c:25: error: (Each undeclared identifier is reported only once
fesetround.c:25: error: for each function it appears in.)
mingw32-gcc -c -march=athlon-xp -O2 -pipe -fomit-frame-pointer -Wall -fomit-frame-pointer -I /usr/mingw32/usr/include -I. -I./.. -I./../include -nostdinc -iwithprefixbefore include fegetround.c -o fegetround.o
make[1]: *** [fesetround.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/var/tmp/portage/cross-mingw32/mingw-runtime-3.11/work/mingw-runtime-3.11/mingwex'
make: *** [mingwex] Error 1
----------------------------------------------------------------------
Comment By: Dennis Schridde (lindevel)
Date: 2007-02-15 13:45
Message:
Logged In: YES
user_id=778819
Originator: YES
This fixed it, thanks!
Patch also sent to the Gentoo bugtracker for inclusion in the 3.11 ebuild.
----------------------------------------------------------------------
Comment By: Danny Smith (dannysmith)
Date: 2007-02-15 12:04
Message:
Logged In: YES
user_id=11494
Originator: NO
Ah, I see. Your W32API_INCLUDE dir also contains the old mingw runtime
headers so is picking up old fenv.h
Please try attached patch, which I'll commit to CVS.
Danny
File Added: Makefile.in.diff
----------------------------------------------------------------------
Comment By: Dennis Schridde (lindevel)
Date: 2007-02-15 07:24
Message:
Logged In: YES
user_id=778819
Originator: YES
PS: Currently installed versions:
w32api-3.8
mingw-runtime-3.9
----------------------------------------------------------------------
Comment By: Dennis Schridde (lindevel)
Date: 2007-02-15 07:21
Message:
Logged In: YES
user_id=778819
Originator: YES
Some thing as before:
mingw32-gcc -c -march=athlon-xp -O2 -pipe -fomit-frame-pointer -Wall
-fomit-frame-pointer -I ./../../w32api/include -I /usr/mingw32/usr/include
-I. -I./.. -I./../include -nostdinc -iwithprefixbefore include
./math/atanhl.c -o atanhl.o
mingw32-gcc -c -march=athlon-xp -O2 -pipe -fomit-frame-pointer -Wall
-fomit-frame-pointer -I ./../../w32api/include -I /usr/mingw32/usr/include
-I. -I./.. -I./../include -nostdinc -iwithprefixbefore include
fesetround.c -o fesetround.o
fesetround.c: In function ‘fesetround’:
fesetround.c:25: error: ‘__MXCSR_ROUND_FLAG_SHIFT’ undeclared (first
use in this function)
fesetround.c:25: error: (Each undeclared identifier is reported only once
fesetround.c:25: error: for each function it appears in.)
make[1]: *** [fesetround.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory
`/var/tmp/portage/cross-mingw32/mingw-runtime-3.11/work/mingw-runtime-3.11/mingwex'
make: *** [mingwex] Error 1
The configure script has a modified W32API_INCLUDE. "-I
/usr/mingw32/usr/include" was appended (instead of replacing the "-I
../../w32api/include" like it was done before).
----------------------------------------------------------------------
Comment By: Danny Smith (dannysmith)
Date: 2007-02-15 06:51
Message:
Logged In: YES
user_id=11494
Originator: NO
You have put
-I /usr/mingw32/usr/include
before other includes, so you will be using old headers to build the new
runtime.
Not a good idea.
Danny
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=102435&aid=1659882&group_id=2435
|