Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Feb 2012 15:34:01 GMT
From:      Alexander Panyushkin <vsityz@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/164932: lang/gcc46 not build with clang
Message-ID:  <201202091534.q19FY1Du005734@red.freebsd.org>
Resent-Message-ID: <201202091540.q19FeAZu088283@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         164932
>Category:       ports
>Synopsis:       lang/gcc46 not build with clang
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb 09 15:40:10 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Alexander Panyushkin
>Release:        FreeBSD 9.0-STABLE
>Organization:
Home
>Environment:
FreeBSD 9.0-STABLE #0: Fri Feb  3 14:03:43 EET 2012     root@admin:/usr/obj/usr/src/sys/Kernel  amd64
>Description:
/etc/make.conf
==============
CPUTYPE?=nocona
KERNCONF=Kernel
BATCH_DELETE_OLD_FILES=yes
.if ${.CURDIR:M*/usr/src/*} || ${.CURDIR:M*/usr/obj/*}
CFLAGS+= -D_FORTIFY_SOURCE=2
.if !defined(CPP) || ${CPP} == "cpp"
CPP=clang-cpp
.endif
.endif
.if ${.CURDIR:M*/ports/*}
CFLAGS+= -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
.if !defined(CPP) || ${CPP} == "cpp"
CPP=clang -E
.endif
.endif
.if !defined(CC) || ${CC} == "cc"
CC=clang
.endif
.if !defined(CXX) || ${CXX} == "c++"
CXX=clang++
.endif

NO_FSCHG=
NO_WERROR=
WERROR=
MAKE_SHELL?=sh
WITH_SSE=                       yes
WITH_3DNOW=                     yes
WITH_MMX=                       yes
WITH_THREADS=                   yes
WITHOUT_PROFILE=                yes
WITHOUT_DEBUG=                  yes
WITH_SYSTEM_ICU=                yes

PYTHON_DEFAULT_VERSION=python2.7
QT4_VERSION=4.7.4
RUBY_DEFAULT_VER=1.9
DEFAULT_PGSQL_VER=91
PERL_VERSION=5.14.2

====================================
portmaster lang/gcc46 

..[cut]...

checking for long long int... gmake[3]: Вход в каталог `/usr/ports/lang/gcc46/work/build/libcpp'
clang  -I.././../gcc-4.6-20120203/libcpp -I. -I.././../gcc-4.6-20120203/libcpp/../include -I.././../gcc-4.6-20120203/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-20120203/libcpp -I. -I.././../gcc-4.6-20120203/libcpp/../include -I.././../gcc-4.6-20120203/libcpp/include  -c -o charset.o -MT charset.o -MMD -MP -MF .deps/charset.Tpo .././../gcc-4.6-20120203/libcpp/charset.c
yes
checking for intmax_t... .././../gcc-4.6-20120203/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,
^
././../gcc-4.6-20120203/libcpp/include/cpplib.h:742:13: note: previous declaration is here
extern bool cpp_interpret_string (cpp_reader *,
            ^
././../gcc-4.6-20120203/libcpp/charset.c:1452:1: error: conflicting types for 'cpp_interpret_string_notranslate'
cpp_interpret_string_notranslate (cpp_reader *pfile, const cpp_string *from,
^
././../gcc-4.6-20120203/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] Ошибка 1
gmake[3]: Выход из каталога `/usr/ports/lang/gcc46/work/build/libcpp'
gmake[2]: *** [all-stage1-libcpp] Ошибка 2
gmake[2]: *** Ожидание завершения заданий...
yes
checking for intptr_t... yes
checking for uint8_t... yes
checking for uint16_t... yes
checking for uint32_t... yes
checking for uint64_t... yes
checking for unsigned long long int... yes
checking for uintmax_t... yes
checking for uintptr_t... yes
checking whether clang supports -W... yes
checking whether clang supports -Wall... yes
checking whether clang supports -Wwrite-strings... yes
checking whether clang supports -Wcast-qual... yes
checking whether clang supports -Wstrict-prototypes... yes
checking whether clang supports -Wmissing-prototypes... yes
checking whether clang supports -Wmissing-format-attribute... yes
checking whether clang supports -Wold-style-definition... yes
checking whether clang supports -Wc++-compat... yes
checking whether clang supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings... yes
checking valgrind.h usability... no
checking valgrind.h presence... no
checking for valgrind.h... no
configure: WARNING: decimal float is not supported for this target, ignored
configure: WARNING: fixed-point is not supported for this target, ignored
checking whether gmake sets $(MAKE)... yes
checking for gawk... gawk
checking whether ln -s works... yes
checking whether ln works... yes
checking for x86_64-portbld-freebsd9.0-ranlib... /usr/local/bin/ranlib
checking for a BSD compatible install... /usr/bin/install -c -o root -g wheel
checking for cmp's capabilities... fastcompare
checking for mktemp... yes
checking for makeinfo... makeinfo --no-split --split-size=5000000
checking for modern makeinfo... yes
checking for recent Pod::Man... yes
checking for flex... flex
checking for bison... bison
checking for nm... /usr/local/bin/nm
checking for ar... /usr/local/bin/ar
checking for ANSI C header files... (cached) yes
checking whether time.h and sys/time.h may both be included... yes
checking whether string.h and strings.h may both be included... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for limits.h... yes
checking for stddef.h... yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for time.h... yes
checking for iconv.h... yes
checking for fcntl.h... yes
checking for unistd.h... (cached) yes
checking for sys/file.h... yes
checking for sys/time.h... yes
checking for sys/mman.h... yes
checking for sys/resource.h... yes
checking for sys/param.h... yes
checking for sys/times.h... yes
checking for sys/stat.h... (cached) yes
checking for direct.h... no
checking for malloc.h... no
checking for langinfo.h... yes
checking for ldfcn.h... no
checking for locale.h... yes
checking for wchar.h... yes
checking for thread.h... no
checking for pthread.h... yes
checking for CHAR_BIT... yes
checking whether byte ordering is bigendian... no
checking how to run the C++ preprocessor... clang++ -E
checking for unordered_map... no
checking for tr1/unordered_map... yes
checking for ext/hash_map... yes
checking for collect2 libraries... none required
checking for library containing exc_resume... no
checking for library containing ldexp... none required
checking for inttypes.h... yes
checking for times... yes
checking for clock... yes
checking for kill... yes
checking for getrlimit... yes
checking for setrlimit... yes
checking for atoll... yes
checking for atoq... no
checking for sysconf... yes
checking for strsignal... yes
checking for getrusage... yes
checking for nl_langinfo... yes
checking for gettimeofday... yes
checking for mbstowcs... yes
checking for wcswidth... yes
checking for mmap... yes
checking for setlocale... yes
checking for clearerr_unlocked... yes
checking for feof_unlocked... yes
checking for ferror_unlocked... yes
checking for fflush_unlocked... no
checking for fgetc_unlocked... no
checking for fgets_unlocked... no
checking for fileno_unlocked... yes
checking for fprintf_unlocked... no
checking for fputc_unlocked... no
checking for fputs_unlocked... no
checking for fread_unlocked... no
checking for fwrite_unlocked... no
checking for getchar_unlocked... yes
checking for getc_unlocked... yes
checking for putchar_unlocked... yes
checking for putc_unlocked... yes
checking whether mbstowcs works... yes
checking for ssize_t... yes
checking for caddr_t... yes
checking for sys/mman.h... (cached) yes
checking for mmap... (cached) yes
checking whether read-only mmap of a plain file works... yes
checking whether mmap from /dev/zero works... yes
checking for MAP_ANON(YMOUS)... yes
checking whether mmap with MAP_ANON(YMOUS) works... yes
checking for pid_t... yes
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking for ld used by GCC... /usr/local/bin/ld
checking if the linker (/usr/local/bin/ld) is GNU ld... yes
checking for shared library run path origin... done
checking for iconv... yes
checking for iconv declaration... install-shextern size_t iconv (iconv_t cd, const char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
checking for LC_MESSAGES... yes
checking for nl_langinfo and CODESET... yes
checking whether getenv is declared... yes
checking whether atol is declared... yes
checking whether asprintf is declared... yes
checking whether sbrk is declared... yes
checking whether abort is declared... yes
checking whether atof is declared... yes
checking whether getcwd is declared... yes
checking whether getwd is declared... yes
checking whether strsignal is declared... yes
checking whether strstr is declared... yes
checking whether strverscmp is declared... no
checking whether errno is declared... yes
checking whether snprintf is declared... yes
checking whether vsnprintf is declared... yes
checking whether vasprintf is declared... yes
checking whether malloc is declared... yes
checking whether realloc is declared... yes
checking whether calloc is declared... yes
checking whether free is declared... yes
checking whether basename is declared... no
checking whether getopt is declared... yes
checking whether clock is declared... yes
checking whether getpagesize is declared... yes
checking whether clearerr_unlocked is declared... yes
checking whether feof_unlocked is declared... yes
checking whether ferror_unlocked is declared... yes
checking whether fflush_unlocked is declared... no
checking whether fgetc_unlocked is declared... no
checking whether fgets_unlocked is declared... no
checking whether fileno_unlocked is declared... yes
checking whether fprintf_unlocked is declared... no
checking whether fputc_unlocked is declared... no
checking whether fputs_unlocked is declared... no
checking whether fread_unlocked is declared... no
checking whether fwrite_unlocked is declared... no
checking whether getchar_unlocked is declared... yes
checking whether getc_unlocked is declared... yes
checking whether putchar_unlocked is declared... yes
checking whether putc_unlocked is declared... yes
checking whether getrlimit is declared... yes
checking whether setrlimit is declared... yes
checking whether getrusage is declared... yes
checking whether ldgetname is declared... no
checking whether times is declared... yes
checking whether sigaltstack is declared... yes
checking for struct tms... yes
checking for clock_t... yes
checking for .preinit_array/.init_array/.fini_array support... no
checking if mkdir takes one argument... no
Using `.././../gcc-4.6-20120203/gcc/config/i386/i386.c' for machine-specific logic.
Using `.././../gcc-4.6-20120203/gcc/config/i386/i386.md' as machine description file.
Using the following target machine macro files:
	.././../gcc-4.6-20120203/gcc/config/vxworks-dummy.h
	.././../gcc-4.6-20120203/gcc/config/i386/biarch64.h
	.././../gcc-4.6-20120203/gcc/config/i386/i386.h
	.././../gcc-4.6-20120203/gcc/config/i386/unix.h
	.././../gcc-4.6-20120203/gcc/config/i386/att.h
	.././../gcc-4.6-20120203/gcc/config/dbxelf.h
	.././../gcc-4.6-20120203/gcc/config/elfos.h
	.././../gcc-4.6-20120203/gcc/config/freebsd-spec.h
	.././../gcc-4.6-20120203/gcc/config/freebsd.h
	.././../gcc-4.6-20120203/gcc/config/freebsd-stdint.h
	.././../gcc-4.6-20120203/gcc/config/i386/x86-64.h
	.././../gcc-4.6-20120203/gcc/config/i386/freebsd.h
	.././../gcc-4.6-20120203/gcc/config/i386/freebsd64.h
Using host-default.o for host machine hooks.
checking for __cxa_atexit... yes
checking whether NLS is requested... no
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for fgrep... /usr/bin/grep -F
checking for ld used by clang... /usr/local/bin/ld
checking if the linker (/usr/local/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/local/bin/nm
checking the name lister (/usr/local/bin/nm) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 196608
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... no
checking for /usr/local/bin/ld option to reload object files... -r
checking for x86_64-portbld-freebsd9.0-objdump... /usr/local/bin/objdump
checking how to recognize dependent libraries... pass_all
checking for x86_64-portbld-freebsd9.0-ar... (cached) /usr/local/bin/ar
checking for x86_64-portbld-freebsd9.0-strip... no
checking for strip... strip
checking for x86_64-portbld-freebsd9.0-ranlib... (cached) /usr/local/bin/ranlib
checking command to parse /usr/local/bin/nm output from clang object... ok
checking for dlfcn.h... yes
checking for objdir... .libs
checking if clang supports -fno-rtti -fno-exceptions... yes
checking for clang option to produce PIC... -fPIC -DPIC
checking if clang PIC flag -fPIC -DPIC works... yes
checking if clang static flag -static works... yes
checking if clang supports -c -o file.o... yes
checking if clang supports -c -o file.o... (cached) yes
checking whether the clang linker (/usr/local/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... freebsd9.0 ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking how to run the C++ preprocessor... clang++ -E
checking for ld used by clang++... /usr/local/bin/ld
checking if the linker (/usr/local/bin/ld) is GNU ld... yes
checking whether the clang++ linker (/usr/local/bin/ld) supports shared libraries... yes
checking for clang++ option to produce PIC... -fPIC -DPIC
checking if clang++ PIC flag -fPIC -DPIC works... yes
checking if clang++ static flag -static works... yes
checking if clang++ supports -c -o file.o... yes
checking if clang++ supports -c -o file.o... (cached) yes
checking whether the clang++ linker (/usr/local/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... freebsd9.0 ld.so
checking how to hardcode library paths into programs... immediate
checking what assembler to use... /usr/local/bin/as
checking whether we are using gold... no
checking what linker to use... /usr/local/bin/ld
checking what nm to use... /usr/local/x86_64-portbld-freebsd9.0/bin/nm
checking what objdump to use... /usr/local/x86_64-portbld-freebsd9.0/bin/objdump
checking for readelf... /usr/bin/readelf
checking what readelf to use... /usr/bin/readelf
checking assembler flags...  
checking assembler for .balign and .p2align... yes
checking assembler for .p2align with maximum skip... yes
checking assembler for .literal16... no
checking assembler for working .subsection -1... yes
checking assembler for .weak... yes
checking assembler for .weakref... yes
checking assembler for .nsubspa comdat... no
checking assembler for .hidden... yes
checking linker for .hidden support... yes
checking linker read-only and read-write section mixing... read-write
checking assembler for .sleb128 and .uleb128... yes
checking assembler for cfi directives... yes
checking assembler for working cfi advance... yes
checking assembler for cfi personality directive... yes
checking assembler for cfi sections directive... yes
checking assembler for eh_frame optimization... yes
checking assembler for section merging support... yes
checking assembler for COMDAT group support... yes
checking assembler for line table discriminator support... yes
checking assembler for thread-local storage support... yes
checking linker -Bstatic/-Bdynamic option... yes
checking linker plugin support... yes
checking assembler for filds and fists mnemonics... yes
checking assembler for fildq and fistpq mnemonics... yes
checking assembler for cmov syntax... no
checking assembler for ffreep mnemonic... yes
checking assembler for .quad directive... yes
checking assembler for sahf mnemonic... yes
checking assembler for swap suffix... yes
checking assembler for different section symbol subtraction... yes
checking assembler for GOTOFF in data... no
checking assembler for rep and lock prefix... yes
checking assembler for dwarf2 debug_line support... yes
checking assembler for buggy dwarf2 .file directive... no
checking assembler for --gdwarf2 option... yes
checking assembler for --gstabs option... yes
checking assembler for --debug-prefix-map option... yes
checking assembler for .lcomm with alignment... no
checking assembler for gnu_unique_object... no
checking assembler for tolerance to line number 0... yes
checking linker PT_GNU_EH_FRAME support... yes
checking linker position independent executable support... yes
checking linker EH-compatible garbage collection of sections... yes
checking linker EH garbage collection of sections bug... no
checking linker --as-needed support... yes
checking linker --build-id support... yes
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... no
Links are now set up to build a native compiler for x86_64-portbld-freebsd9.0.
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]: Выход из каталога `/usr/ports/lang/gcc46/work/build'
gmake[1]: *** [stage1-bubble] Ошибка 2
gmake[1]: Выход из каталога `/usr/ports/lang/gcc46/work/build'
gmake: *** [bootstrap-lean] Ошибка 2
*** Error code 1

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

Stop in /usr/ports/lang/gcc46.

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

>How-To-Repeat:
portmaster lang/gcc46 
>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:



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