|
From: David Cleaver <wraithx@mo...> - 2013-07-12 04:05:43
|
Hello everyone,
I was previously using an old Ozkan build, from 2011-11-01. I compiled a
project and when that got to the stage to use ld.exe, I got the following error:
ld.exe: unrecognized option '--large-address-aware'
I thought this may have been due to me using an old tool chain, so I just
updated using mingw-builds-install.exe. I downloaded the GCC 4.8.1 x64 posix
sjlj rev 2 package. I was able to successfully compile GMP 5.1.2, so this all
seems to be working fine. I then tried to compile the original project again,
and I still get the error:
c:/mingw64-20130711/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/../../../../x86_64-w64-mingw32/bin/ld.exe:
unrecognized option '--large-address-aware'
When I type:
ld --help
I see in the output:
--large-address-aware Executable supports virtual addresses greater than 2
gigabytes
Also to show which ld is being used:
$ which ld
/c/mingw64-20130711/mingw64/bin/ld.exe
The full command plus error is:
gcc -O3 -fomit-frame-pointer -march=core2 -D_FILE_OFFSET_BITS=64 -DNDEBUG
-D_LARGEFILE64_SOURCE -Wall -W -DMSIEVE_SVN_VERSION="\"914\"" -I. -Iinclude
-Ignfs -Ignfs/poly -Ignfs/poly/stage1 -DNO_ZLIB demo.c -o msieve
-Wl,--large-address-aware \
libmsieve.a -lgmp -lm -lpthread
c:/mingw64-20130711/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/../../../../x86_64-w64-mingw32/bin/ld.exe:
unrecognized option '--large-address-aware'
c:/mingw64-20130711/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/../../../../x86_64-w64-mingw32/bin/ld.exe:
use the --help option for usage information
collect2.exe: error: ld returned 1 exit status
make: *** [all] Error 1
So, I was wondering, if I'm compiling on a WinXP x64 system (inside of MSYS) and
I'll be using the binary on WinXP x64 and Win7 x64, do I even need the
--large-address-aware option to the MingW64 ld.exe? If so, how can I correct
the above error? If not, then I can just remove the option and the compile will
succeed. Thanks for any help you can provide.
-David C.
|
|
From: xunxun <xunxun1982@gm...> - 2013-07-12 04:22:03
|
δΊ 2013/7/12 ζζδΊ 11:48, David Cleaver ει: > Hello everyone, > > I was previously using an old Ozkan build, from 2011-11-01. I compiled a > project and when that got to the stage to use ld.exe, I got the following error: > ld.exe: unrecognized option '--large-address-aware' > > I thought this may have been due to me using an old tool chain, so I just > updated using mingw-builds-install.exe. I downloaded the GCC 4.8.1 x64 posix > sjlj rev 2 package. I was able to successfully compile GMP 5.1.2, so this all > seems to be working fine. I then tried to compile the original project again, > and I still get the error: > > c:/mingw64-20130711/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/../../../../x86_64-w64-mingw32/bin/ld.exe: > unrecognized option '--large-address-aware' > > When I type: > ld --help > I see in the output: > --large-address-aware Executable supports virtual addresses greater than 2 > gigabytes > > Also to show which ld is being used: > $ which ld > /c/mingw64-20130711/mingw64/bin/ld.exe > > The full command plus error is: > gcc -O3 -fomit-frame-pointer -march=core2 -D_FILE_OFFSET_BITS=64 -DNDEBUG > -D_LARGEFILE64_SOURCE -Wall -W -DMSIEVE_SVN_VERSION="\"914\"" -I. -Iinclude > -Ignfs -Ignfs/poly -Ignfs/poly/stage1 -DNO_ZLIB demo.c -o msieve > -Wl,--large-address-aware \ > libmsieve.a -lgmp -lm -lpthread > c:/mingw64-20130711/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/../../../../x86_64-w64-mingw32/bin/ld.exe: > unrecognized option '--large-address-aware' > c:/mingw64-20130711/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.8.1/../../../../x86_64-w64-mingw32/bin/ld.exe: > use the --help option for usage information > collect2.exe: error: ld returned 1 exit status > make: *** [all] Error 1 > > > So, I was wondering, if I'm compiling on a WinXP x64 system (inside of MSYS) and > I'll be using the binary on WinXP x64 and Win7 x64, do I even need the > --large-address-aware option to the MingW64 ld.exe? If so, how can I correct > the above error? If not, then I can just remove the option and the compile will > succeed. Thanks for any help you can provide. > > -David C. > -Wl,--large-address-aware is only for x86 target -- Best Regards, xunxun |
|
From: David Cleaver <wraithx@mo...> - 2013-07-12 11:11:08
|
On 7/11/2013 11:21 PM, xunxun wrote: > > -Wl,--large-address-aware is only for x86 target > > > Thank you. I've removed this option, since my target is x64, and the compile completes successfully. -David C. |