[MacPorts] #31663: llvm-gcc42 doesn't compile
MacPorts
noreply at macports.org
Tue Oct 18 08:53:00 PDT 2011
#31663: llvm-gcc42 doesn't compile
---------------------------------------+------------------------------------
Reporter: tobias.noebauer@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.0.3
Keywords: | Port: llvm-gcc42
---------------------------------------+------------------------------------
Hi,
running "sudo port install llvm-gcc4" results in the following error
(excerpt from the log file, which is attached):
{{{
:info:build shell command " cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
.org_release_ports_lang_llvm-gcc42/llvm-gcc42/work/build" && /usr/bin/make
-j2 -w bootstrap BOOT_CFLAGS="-O2 -g -D_FORTIFY_SOURCE=0"
STAGE1_CFLAGS="-O2 -fkeep-inline-functions -D_FORTIFY_SOURCE=0" " returned
error 2
}}}
When running the second part of that shell command (make) by hand, the
following error appears (full output attached):
{{{
/Developer/usr/bin/clang -c -O2 -fkeep-inline-functions
-D_FORTIFY_SOURCE=0 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-
prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-
macros -Wno-overlength-strings -Wold-style-definition -Wmissing-format-
attribute -fno-common -mdynamic-no-pic -DHAVE_CONFIG_H -I. -I. -I
../../llvm-gcc-4.2-2.9.source/gcc -I../../llvm-gcc-4.2-2.9.source/gcc/. -I
../../llvm-gcc-4.2-2.9.source/gcc/../include -I../../llvm-
gcc-4.2-2.9.source/gcc/../libcpp/include -I/opt/local/include
-I/opt/local/include -I../../llvm-gcc-4.2-2.9.source/gcc/../libdecnumber
-I../libdecnumber -I/opt/local/include -DENABLE_LLVM -I/opt/local/include
-DNDEBUG -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS
../../llvm-gcc-4.2-2.9.source/gcc/passes.c -o passes.o
...
...
...
../../llvm-gcc-4.2-2.9.source/gcc/toplev.c:577:1: error: redefinition of a
'extern inline' function 'floor_log2' is not supported in C99 mode
floor_log2 (unsigned HOST_WIDE_INT x)
^
../../llvm-gcc-4.2-2.9.source/gcc/toplev.h:180:1: note: previous
definition is here
floor_log2 (unsigned HOST_WIDE_INT x)
^
../../llvm-gcc-4.2-2.9.source/gcc/toplev.c:612:1: error: redefinition of a
'extern inline' function 'exact_log2' is not supported in C99 mode
exact_log2 (unsigned HOST_WIDE_INT x)
^
../../llvm-gcc-4.2-2.9.source/gcc/toplev.h:186:1: note: previous
definition is here
exact_log2 (unsigned HOST_WIDE_INT x)
^
5 warnings and 2 errors generated.
make[3]: *** [toplev.o] Error 1
}}}
My system: MacOS 10.7.2, XCode 4.2, MacPorts 2.0.3
Any help appreciated (and as always I hope that the bug is not me...)
Regards,
planck
--
Ticket URL: <https://trac.macports.org/ticket/31663>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list