gccld complains (and halts) when it encounters multiple specifications of "-Wl,-native"
| Bugzilla Link | 667 |
| Resolution | FIXED |
| Resolved on | Mar 06, 2010 14:00 |
| Version | 1.0 |
| OS | All |
Extended Description
Compilation of the latest version of ImageMagick using LLVM yields the following error message at link time:
/bin/sh ./libtool --silent --tag=CC --mode=link llvm-gcc -g -O2 -Wall -pthread -Wl,-native -L/usr/X11R6/lib -lfreetype -lz -o utilities/animate -Wl,-native -L/usr/X11R6/lib -lfreetype -lz utilities/animate.o magick/libMagick.la gccld: for the -native option: : may only occur zero or one times! make: *** [utilities/animate] Error 1
./configure was run as follows:
CC=llvm-gcc CXX=llvm-g++ LDFLAGS="-Wl,-native" ./configure
It does not seem to be a "feature" for gccld to stop executing when "-Wl,-native" is encountered multiple times. Unless this truly is the desired behavior, I feel it should just print out a warning and continue (since it has plenty of reason to believe that "-Wl,-native" is the desired option).
Fixed, patch here: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20051114/029610.html
Thanks!
-Chris
assigned to @lattner