于 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 ------------------------------------------------------------------------------ See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk _______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
