Date: Thu, 28 Nov 2013 19:13:22 +0200 From: Volodymyr Kostyrko <c.kworr@gmail.com> To: Alexander Panyushkin <vsityz@gmail.com>, freebsd-current@freebsd.org Subject: Re: lang/gcc not build Message-ID: <529779B2.2090108@gmail.com> In-Reply-To: <5294DEAA.5070308@gmail.com> References: <5294DEAA.5070308@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
26.11.2013 19:47, Alexander Panyushkin wrote: > #portmaster lang/gcc > [...] > cd /usr/ports/lang/gcc/work/gcc-4.6.4 ; contrib/gcc_update --touch > configure: loading site script /usr/ports/Templates/config.site > checking build system type... x86_64-portbld-freebsd10.0 > checking host system type... x86_64-portbld-freebsd10.0 > checking target system type... x86_64-portbld-freebsd10.0 > checking for a BSD-compatible install... /usr/bin/install -c -o root -g > wheel > checking whether ln works... yes > checking whether ln -s works... yes > checking for a sed that does not truncate output... (cached) /usr/bin/sed > checking for gawk... (cached) /usr/bin/awk > checking for gcc... gcc46 > checking for C compiler default output file name... > configure: error: in `/usr/ports/lang/gcc/work/build': > configure: error: C compiler cannot create executables > See `config.log' for more details. > ===> Script "../gcc-4.6.4/configure" failed unexpectedly. > Please report the problem to gerald@FreeBSD.org [maintainer] and attach the > "/usr/ports/lang/gcc/work/build/config.log" including the output of the > failure > of your make command. Also, it might be a good idea to provide an overview > of all packages installed on your system (e.g. a /usr/local/sbin/pkg-static > info -g -Ea). > *** Error code 1 > > ############################################# > /etc/make.conf > > ..if ${.CURDIR:N*/ports/lang/gcc*} == "" > CFLAGS= -O2 -march=athlon64-sse3 -mtune=athlon64-sse3 -pipe -Wformat > CPPFLAGS+= -D_FORTIFY_SOURCE=2 > USE_GCC=4.6 > ..endif Added this to my make.conf and tested - WFM. The problem is not there. Can you post a sample of /usr/ports/lang/gcc/work/build/config.log as log suggests? PS: CFLAGS= is a bit rough thing to have, CFLAGS+= would be much better. PPS: clang is mature enough and works correctly with CPUTYPE?=native so -march and -mtune can be substituted for that one. -- Sphinx of black quartz, judge my vow.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?529779B2.2090108>