Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Jan 2013 11:50:51 -0600
From:      "Joseph A. Nagy, Jr" <jnagyjr1978@gmail.com>
To:        Dimitry Andric <dim@FreeBSD.org>
Cc:        acm@FreeBSD.org, "Ports @ FreeBSD" <freebsd-ports@freebsd.org>
Subject:   Re: smpeg fails to build
Message-ID:  <50F596FB.7070408@gmail.com>
In-Reply-To: <50F53724.1030704@FreeBSD.org>
References:  <50F4A29F.5080902@gmail.com> <50F53724.1030704@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 01/15/13 05:01, Dimitry Andric wrote:
> On 2013-01-15 01:28, Joseph A. Nagy, Jr wrote:
<snip>
>> checking for gcc... clang++
>> checking whether the C compiler (clang++ -O2 -pipe -fno-strict-aliasing
>> -std=gnu89 ) works... no
>> configure: error: installation or configuration problem: C compiler
>> cannot create executables.
> 
> Strange, where does that -std=gnu89 flag come from?  It is probably the
> cause of the error.  If I configure the smpeg port locally, that flag
> does not get added, so it must be something in your system's
> configuration.

I wouldn't even know where to set that flag, so if it is it's not
something I set.

>> the config.log just includes the above text, nothing more. No other port
>> has problems being built with clang, but here are my make.conf entries:
>>
>> root@alex-laptop:/usr/ports/multimedia/smpeg # less /etc/make.conf
>> WITH_PKGNG=yes
>> # added by use.perl 2012-12-11 17:43:33
>> PERL_VERSION=5.16.2
>> #Add in clang after rebuilding world
>> WITH_CLANG=YES
>> CXX=clang++
>> CPP=clang-cpp
>> KERNCONF=ALEX-LAPTOP
> 
> Why don't you have a "CC=clang" entry too?

I missed that one? I'm still rather new to using make.conf so I'm sure
I'm missing a bunch of useful stuff.
-- 
Yours in Christ,

Joseph A Nagy Jr
"Whoever loves instruction loves knowledge, But he who hates correction
is stupid." -- Proverbs 12:1
Emails are not formal business letters, whatever businesses may want.
Original content CopyFree (F) under the OWL http://owl.apotheon.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?50F596FB.7070408>