smpeg fails to build

Dimitry Andric dim at FreeBSD.org
Tue Jan 15 11:01:58 UTC 2013


On 2013-01-15 01:28, Joseph A. Nagy, Jr wrote:
> root at alex-laptop:/usr/ports/multimedia/smpeg # make
> ===>   smpeg-0.4.4_9 depends on executable: gmake - found
> ===>   smpeg-0.4.4_9 depends on file: /usr/local/bin/sdl-config - found
> ===>   smpeg-0.4.4_9 depends on package: libtool>=2.4 - found
> ===>   smpeg-0.4.4_9 depends on executable: pkgconf - found
> ===>   smpeg-0.4.4_9 depends on shared library: SDL-1.2.11 - found
> ===>   smpeg-0.4.4_9 depends on shared library: glib-12.3 - found
> ===>   smpeg-0.4.4_9 depends on shared library: gtk-12.2 - found
> ===>  Configuring for smpeg-0.4.4_9
> loading cache ./config.cache
> checking for a BSD compatible install... /usr/bin/install -c -o root -g
> wheel
> checking whether build environment is sane... yes
> checking whether gmake sets ${MAKE}... yes
> checking for working aclocal... found
> checking for working autoconf... found
> checking for working automake... found
> checking for working autoheader... found
> checking for working makeinfo... found
> checking host system type... amd64-portbld-freebsd9.1
> checking target system type... amd64-portbld-freebsd9.1
> checking whether gmake sets ${MAKE}... (cached) yes
> 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.


> 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 at 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?


More information about the freebsd-ports mailing list