ports: clang: error: unsupported option '-dumpspecs'

Garrett Cooper yanegomi at gmail.com
Thu Dec 15 01:12:22 UTC 2011


On Wed, Dec 14, 2011 at 3:44 PM, b. f. <bf1783 at googlemail.com> wrote:
>> > -dumpspecs is a gcc internal thing that clang will never support (it doesnt use
>> > specs). It's wrong for ports to mess with the internals of the compiler and
>> > this should be fixed in a clean way.
>> >
>> > Ie. we have to replace the -dumpspec | grep something with a saner check.
>>
>>     The fact that gcc -dumpspecs is looked at at all is a really bad
>> idea. Do you know which port in the tree is calling this?
>
> As far as I know, in the Ports tree there are only:
>
> editors/emacs
> editors/emacs-devel
> graphics/OpenEXR
> multimedia/vdpau-video
>
> which use it in an ill-conceived (and now probably unnecessary) test
> for thread libraries.  However, there are many more instances within
> the configuration scripts of various port distfiles, and I do not
> think that all of these are protected by tests for gcc*.

Ah... great -- the -pthread vs -lpthread vs nptl vs [..] mess. Yeah...
those ports should probably have PRs filed against them so upstream
fixes their autoconf tests.
Thanks,
-Garrett


More information about the freebsd-ports mailing list