On 3/14/14, 1:42 AM, Martin Costabel wrote:
> (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.
>

For fftw I already removed the -fschedule-insns2 and -fno-schedule-insns 
flags from our CFLAGS setting, since they were noted as being no-ops 
even for clang on 10.7.  I figured that it was therefore safe to remove 
them.

In principle, it wouldn't be terribly difficult to add the flag under 
our clang wrapper.
-- 
Alexander Hansen, Ph.D.
Fink User Liaison
My package updates: http://finkakh.wordpress.com/

------------------------------------------------------------------------------
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-users mailing list
Fink-users@lists.sourceforge.net
List archive:
http://news.gmane.org/gmane.os.macosx.fink.user
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to