Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Apr 2012 12:54:48 +0200
From:      "O. Hartmann" <ohartman@zedat.fu-berlin.de>
To:        Current FreeBSD <freebsd-current@freebsd.org>
Subject:   lang/gcc46: error when compiling with CLANG
Message-ID:  <4F9D1DF8.20001@zedat.fu-berlin.de>

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

On a FreeBSD 10-CURRENT/amd64 box the compilation/update of the port
lang/gcc46 fails with the below shown error.

Since the port compiles well on FreeBSD 9 and another FreeBSD 10 box
(all amd64, CLANG built), I feel a bit confused since the setup is
almost the same on all boxes. The machine in question is the most modern
box, equipted with a Core i7-3930K:

Copyright (c) 1992-2012 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
        The Regents of the University of California. All rights reserved.=

FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 10.0-CURRENT #0: Sat Apr 28 11:08:09 CEST 2012
    root@telesto.geoinf.fu-berlin.de:/usr/obj/usr/src/sys/TELESTO amd64
CPU: Intel(R) Core(TM) i7-3930K CPU @ 3.20GHz (3209.59-MHz K8-class CPU)
  Origin =3D "GenuineIntel"  Id =3D 0x206d7  Family =3D 6  Model =3D 2d
Stepping =3D 7

Features=3D0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PG=
E,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>

Features2=3D0x1fbee3bf<SSE3,PCLMULQDQ,DTES64,MON,DS_CPL,VMX,EST,TM2,SSSE3=
,CX16,xTPR,PDCM,PCID,DCA,SSE4.1,SSE4.2,x2APIC,POPCNT,TSCDLT,AESNI,XSAVE,O=
SXSAVE,AVX>
  AMD Features=3D0x2c100800<SYSCALL,NX,Page1GB,RDTSCP,LM>
  AMD Features2=3D0x1<LAHF>
  TSC: P-state invariant, performance statistics
real memory  =3D 34359738368 (32768 MB)
avail memory =3D 33091874816 (31558 MB)
Event timer "LAPIC" quality 600
ACPI APIC Table: <ALASKA A M I>
FreeBSD/SMP: Multiprocessor System Detected: 12 CPUs
FreeBSD/SMP: 1 package(s) x 6 core(s) x 2 SMT threads
 cpu0 (BSP): APIC ID:  0
 cpu1 (AP): APIC ID:  1
 cpu2 (AP): APIC ID:  2
 cpu3 (AP): APIC ID:  3
 cpu4 (AP): APIC ID:  4
 cpu5 (AP): APIC ID:  5
 cpu6 (AP): APIC ID:  6
 cpu7 (AP): APIC ID:  7
 cpu8 (AP): APIC ID:  8
 cpu9 (AP): APIC ID:  9
 cpu10 (AP): APIC ID: 10
 cpu11 (AP): APIC ID: 11
ioapic0 <Version 2.0> irqs 0-23 on motherboard
ioapic1 <Version 2.0> irqs 24-47 on motherboard


[...]

clang   -g -fkeep-inline-functions -DIN_GCC   -W -Wall -Wwrite-strings
-Wcast-qual -Wstrict-prototypes -Wmissing-prototypes
-Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros
-Wno-overlength-strings -Wold-style-definition -Wc++-compat -fno-common
 -DHAVE_CONFIG_H -DGENERATOR_FILE  -o build/genenums \
    build/genenums.o build/read-md.o build/errors.o
=2E./build-x86_64-portbld-freebsd10.0/libiberty/libiberty.a
=2E././../gcc-4.6-20120420/gcc/gengtype.h:474:40: warning: Use of comma
pasting extension is non-portable [-pedantic]
=2E././../gcc-4.6-20120420/gcc/gengtype.h:474:40: warning: Use of comma
pasting extension is non-portable [-pedantic]
=2E././../gcc-4.6-20120420/gcc/gengtype.h:474:40: warning: Use of comma
pasting extension is non-portable [-pedantic]
=2E././../gcc-4.6-20120420/gcc/gengtype.h:474:40: warning: Use of comma
pasting extension is non-portable [-pedantic]
=2E././../gcc-4.6-20120420/gcc/gengtype.h:474:40: warning: Use of comma
pasting extension is non-portable [-pedantic]
=2E././../gcc-4.6-20120420/gcc/gengtype.h:474:40: warning: Use of comma
pasting extension is non-portable [-pedantic]
=2E././../gcc-4.6-20120420/gcc/gengtype.h:474:40: warning: Use of comma
pasting extension is non-portable [-pedantic]
=2E././../gcc-4.6-20120420/gcc/gengtype.h:474:40: warning: Use of comma
pasting extension is non-portable [-pedantic]
=2E././../gcc-4.6-20120420/gcc/gengtype.h:474:40: warning: Use of comma
pasting extension is non-portable [-pedantic]
clang: warning: argument unused during compilation: '-g'
echo timestamp > doc/cpp.1
(pod2man --center=3D"GNU" --release=3D"gcc-4.6.4" --date=3D2012-04-20
--section=3D1 cpp.pod > doc/cpp.1.T$$ && \
        mv -f doc/cpp.1.T$$ doc/cpp.1) || \
        (rm -f doc/cpp.1.T$$ && exit 1)
clang   -g -fkeep-inline-functions -DIN_GCC   -W -Wall -Wwrite-strings
-Wcast-qual -Wstrict-prototypes -Wmissing-prototypes
-Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros
-Wno-overlength-strings -Wold-style-definition -Wc++-compat -fno-common
 -DHAVE_CONFIG_H -DGENERATOR_FILE  -o build/genconstants \
    build/genconstants.o build/read-md.o build/errors.o
=2E./build-x86_64-portbld-freebsd10.0/libiberty/libiberty.a
clang   -g -fkeep-inline-functions -DIN_GCC   -W -Wall -Wwrite-strings
-Wcast-qual -Wstrict-prototypes -Wmissing-prototypes
-Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros
-Wno-overlength-strings -Wold-style-definition -Wc++-compat -fno-common
 -DHAVE_CONFIG_H -DGENERATOR_FILE  -o build/genmddeps \
    build/genmddeps.o build/read-md.o build/errors.o
=2E./build-x86_64-portbld-freebsd10.0/libiberty/libiberty.a
clang   -g -fkeep-inline-functions -DIN_GCC   -W -Wall -Wwrite-strings
-Wcast-qual -Wstrict-prototypes -Wmissing-prototypes
-Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros
-Wno-overlength-strings -Wold-style-definition -Wc++-compat -fno-common
 -DHAVE_CONFIG_H -DGENERATOR_FILE  -o build/genmodes \
    build/genmodes.o build/errors.o
=2E./build-x86_64-portbld-freebsd10.0/libiberty/libiberty.a
clang   -g -fkeep-inline-functions -DIN_GCC   -W -Wall -Wwrite-strings
-Wcast-qual -Wstrict-prototypes -Wmissing-prototypes
-Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros
-Wno-overlength-strings -Wold-style-definition -Wc++-compat -fno-common
 -DHAVE_CONFIG_H -DGENERATOR_FILE  -o build/gengenrtl \
    build/gengenrtl.o build/errors.o
=2E./build-x86_64-portbld-freebsd10.0/libiberty/libiberty.a
build/genhooks > tmp-target-hooks-def.h
=2E././../gcc-4.6-20120420/gcc/gengtype.h:474:40: warning: Use of comma
pasting extension is non-portable [-pedantic]
=2E././../gcc-4.6-20120420/gcc/gengtype.h:474:40: warning: Use of comma
pasting clang: warning: argument unused during compilation: '-g'
extension is non-portable [-pedantic]
clang.././../gcc-4.6-20120420/gcc/gengtype.h:474:40: warning: Use of
comma pastingclang: warning: argument unused during compilation: '-g'
 extension is non-portable [-pedantic]
: .././../gcc-4.6-20120420/gcc/gengtype.h:474:40: warning: Use of comma
pasting extension is non-portable [-pedantic]
warning: argument unused during compilation: '-g'
=2E././../gcc-4.6-20120420/gcc/gengtype.h:474:40: warning: Use of comma
pasting extension is non-portable [-pedantic]
=2E././../gcc-4.6-20120420/gcc/gengtype.h:474:40: warning: Use of comma
pasting extension is non-portable [-pedantic]
=2E././../gcc-4.6-20120420/gcc/gengtype.h:474:40: warning: Use of comma
pasting extension is non-portable [-pedantic]
/bin/sh .././../gcc-4.6-20120420/gcc/../move-if-change
tmp-target-hooks-def.h \
                                     target-hooks-def.h
build/genhooks \
                .././../gcc-4.6-20120420/gcc/doc/tm.texi.in > tmp-tm.texi=

clang: warning: argument unused during compilation: '-g'
echo timestamp > s-target-hooks-def-h
build/genmodes -h > tmp-modes.h
build/genmodes -m > tmp-min-modes.c
build/genmodes > tmp-modes.c
/bin/sh .././../gcc-4.6-20120420/gcc/../move-if-change tmp-modes.c
insn-modes.c
/bin/sh .././../gcc-4.6-20120420/gcc/../move-if-change tmp-min-modes.c
min-insn-modes.c
/bin/sh .././../gcc-4.6-20120420/gcc/../move-if-change tmp-modes.h
insn-modes.h
gmake[3]: *** [s-tm-texi] Segmentation fault: 11 (core dumped)
gmake[3]: *** Waiting for unfinished jobs....
echo timestamp > s-modes
echo timestamp > s-modes-m
echo timestamp > s-modes-h
14 warnings generated.
36 warnings generated.
/bin/sh .././../gcc-4.6-20120420/gcc/../move-if-change tmp-optionlist
optionlist
echo timestamp > s-options
rm cpp.pod gcc.pod gfdl.pod gcov.pod fsf-funding.pod
gmake[3]: Leaving directory `/usr/ports/lang/gcc46/work/build/gcc'
gmake[2]: *** [all-stage1-gcc] Error 2
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
*** [do-build] Error code 1

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

Stop in /usr/ports/lang/gcc46.


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

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (FreeBSD)

iQEcBAEBAgAGBQJPnR3+AAoJEOgBcD7A/5N802MIAJ98KIunb86wPI6TgJrhd/mg
gD8ZCkwmtd1yPW4w9aKbo+ZAmMicyk3pjNBlx4iHDPhLZ6bH1VZxmdPM2GNeApE2
jrqUuan3sj3fg+S7Al0NVGAs9TirX4C+Fh0Ktp6xKEVvwSqx6pzLu41vmXyepgKp
k2ONp6+wEW/JCisKbK/9DIvNfw6szTS2K8iijJfZMNRJWWDZj5OZHZE7RbMUYNkb
vI4NkV61y5OPXp3flMM2JvLNbTlmBkWG0ckL+TNOip7sIYBWlACHXZcR0cKfCREr
i4eV/YB4mJgpvk5gFYCEAz7T8AENkZss5Da/iKrXtUGGHO0K4TEIBUT+i8rz6Rs=
=O232
-----END PGP SIGNATURE-----

--------------enig7DA28C0D1B49305E7F4A407F--



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