Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 07 Dec 2011 05:56:31 +0100
From:      "O. Hartmann" <ohartman@zedat.fu-berlin.de>
To:        freebsd-questions@freebsd.org,  Current FreeBSD <freebsd-current@freebsd.org>
Subject:   FreeBSD 10.0-CURRENT/AMD64 (CLANG): lang/gcc46 fails to build
Message-ID:  <4EDEF1FF.5020307@zedat.fu-berlin.de>

next in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enigA91E2862F7ED83A63FB7335F
Content-Type: text/plain; charset=ISO-8859-15
Content-Transfer-Encoding: quoted-printable

Hello.
On FreeBSD 10.0-CURRENT/amd64 I run into the error shown below when
updating the installation of the gcc46 compiler suite.

The OS has been compiled via CLANG, binutils 2.22 are installed and has
been installed either with the UNAME_r settings and WITH_FBSD10_FIX set
in /etc/make.conf.

I was wondering whether others would also see this on CURRENT. On all
FreeBSD 9.0 boxes gcc46 compiles well.

Regards,
Oliver

=3D=3D=3D=3D

Configuring stage 1 in ./gcc
clang -O3 -fno-strict-aliasing -pipe -march=3Dnative -I/usr/local/include=

 -o fixincl fixincl.o fixtests.o fixfixes.o server.o procopen.o fixlib.o
fixopts.o ../libiberty/libiberty.a
echo timestamp > full-stamp
gmake[3]: Leaving directory
`/usr/ports/lang/gcc46/work/build/build-x86_64-portbld-freebsd9.9/fixincl=
udes'
gmake[3]: Entering directory `/usr/ports/lang/gcc46/work/build/libcpp'
clang  -I.././../gcc-4.6-20111202/libcpp -I.
-I.././../gcc-4.6-20111202/libcpp/../include
-I.././../gcc-4.6-20111202/libcpp/include  -g -fkeep-inline-functions -W
-Wall -Wwrite-strings -Wmissing-format-attribute -Wstrict-prototypes
-Wmissing-prototypes -Wold-style-definition -Wc++-compat -pedantic
-Wno-long-long  -I.././../gcc-4.6-20111202/libcpp -I.
-I.././../gcc-4.6-20111202/libcpp/../include
-I.././../gcc-4.6-20111202/libcpp/include  -c -o charset.o -MT charset.o
-MMD -MP -MF .deps/charset.Tpo .././../gcc-4.6-20111202/libcpp/charset.c
=2E././../gcc-4.6-20111202/libcpp/charset.c:1371:1: error: conflicting
types for 'cpp_interpret_string'
cpp_interpret_string (cpp_reader *pfile, const cpp_string *from, size_t
count,
^
=2E././../gcc-4.6-20111202/libcpp/include/cpplib.h:742:13: note: previous=

declaration is here
extern bool cpp_interpret_string (cpp_reader *,
            ^
=2E././../gcc-4.6-20111202/libcpp/charset.c:1452:1: error: conflicting
types for 'cpp_interpret_string_notranslate'
cpp_interpret_string_notranslate (cpp_reader *pfile, const cpp_string *fr=
om,
^
=2E././../gcc-4.6-20111202/libcpp/include/cpplib.h:745:13: note: previous=

declaration is here
extern bool cpp_interpret_string_notranslate (cpp_reader *,
            ^
2 errors generated.
gmake[3]: *** [charset.o] Error 1
gmake[3]: Leaving directory `/usr/ports/lang/gcc46/work/build/libcpp'
gmake[2]: *** [all-stage1-libcpp] Error 2
gmake[2]: *** Waiting for unfinished jobs....
configure: creating cache ./config.cache
checking build system type... x86_64-portbld-freebsd9.9
checking host system type... x86_64-portbld-freebsd9.9
checking target system type... x86_64-portbld-freebsd9.9
checking LIBRARY_PATH variable... ok
checking GCC_EXEC_PREFIX variable... ok

[...]


checking linker *_sol2 emulation support... no
checking linker --sysroot support... yes
checking __stack_chk_fail in target C library... checking for
__stack_chk_fail... yes
yes
checking dl_iterate_phdr in target C library... unknown
Using ggc-page for garbage collection.
checking whether to enable maintainer-specific portions of Makefiles... n=
o
Links are now set up to build a native compiler for
x86_64-portbld-freebsd9.9.
checking for exported symbols... yes
checking for -rdynamic... yes
checking for library containing dlopen... none required
checking for -fPIC -shared... yes
configure: updating cache ./config.cache
configure: creating ./config.status
config.status: creating as
config.status: creating collect-ld
config.status: creating nm
config.status: creating Makefile
config.status: creating ada/gcc-interface/Makefile
config.status: creating ada/Makefile
config.status: creating auto-host.h
config.status: executing default commands
gmake[2]: Leaving directory `/usr/ports/lang/gcc46/work/build'
gmake[1]: *** [stage1-bubble] Error 2
gmake[1]: Leaving directory `/usr/ports/lang/gcc46/work/build'
gmake: *** [bootstrap-lean] Error 2
*** Error code 1

Stop in /usr/ports/lang/gcc46.
*** Error code 1

Stop in /usr/ports/lang/gcc46.

=3D=3D=3D>>> make failed for lang/gcc46
=3D=3D=3D>>> Aborting update

=3D=3D=3D>>> Update for lang/gcc46 failed
=3D=3D=3D>>> Aborting update


=3D=3D=3D>>> You can restart from the point of failure with this command =
line:
       portmaster <flags> lang/gcc46


--------------enigA91E2862F7ED83A63FB7335F
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJO3vH/AAoJEOgBcD7A/5N8Rl4H/1uFfc1HYxrwdE+XiQWBluBr
duLk2cispRveqzaKv94n+1pPNz3X8qc5tw08l1uL71n4OkaUPme/ZQ8jqbtTIJ7c
ZeKvoqtabw50hjQqOhskg7Icyy7IJnu7s/C2bKA3nR/Pb/4xMyqTnrX9JMnqG9Jt
W4eQ4jNQSc55F9RWEUyFdTNmDsoLCf9XC6UhktMGKKjey+LXZLtr0mNYCii5MlEK
3HVAZUuPAAsHU6ER1KlGE98Z8vwyR+285TXtAiAg4Ifzfz4rEWqJEnQCN1yLLmJC
tsAuWUMgNSK1tpAVcdvVstGpeV/INNkb4hFBh2tYmNH90yyvFBk4b/2MBAQ5xgY=
=nxqp
-----END PGP SIGNATURE-----

--------------enigA91E2862F7ED83A63FB7335F--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4EDEF1FF.5020307>