(cross-posting to -devel, because this needs some serious action in the 
fink code)

On 13/03/14 19:14, Sam Seaver wrote:
> So,  just today, I tried installing fftw via fink.
>
> I got a clang error:
>
> clang: error: unknown argument: '-fschedule-insns2'
> [-Wunused-command-line-argument-hard-error-in-future]
>
> I googled about this, and tried using the CFLAGS,CPPFLAGS,CXXFLAGS, and
> ARCHFLAGS environment variables to use the
> -Wunused-command-line-argument-hard-error-in-future warning to prevent
> the error from repeating itself, but this wouldn't work, even if I went
> into the fftw source directory and ran configure directly.

This is currently biting everyone trying to compile open source projects 
with Apple's latest clang (clang-503.0.38 from March 2014). To avoid it 
one needs to

either remove all unused command-line arguments from all clang command 
lines in all packages that use clang (probably a huge task)

or add the flag

-Wno-error=unused-command-line-argument-hard-error-in-future

to all clang command lines. For the fftw package this can be done by 
adding this flag to the SetCFLAGS field. It then builds OK. For other 
packages this may be more tricky. In any case, the remedy that is 
proposed on some web discussions, namely setting the environment variable
ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future
does not work. It works perhaps inside xcode projects, but not in 
autotools projects or others.

-- 
Martin




------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
List archive:
http://news.gmane.org/gmane.os.apple.fink.devel
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to