[LLVMdev] msys/mingw32 llvm-gcc build errors

Charles Mutigwe cmutigwe at rfidresearch.net
Tue Oct 27 10:26:52 PDT 2009


I successfully built llvm using msys/mingw, but I am getting the following
error when I try to build llvm-gcc using

 

$ ../llvm-gcc4.2-2.6.source/configure --prefix=/c/Temp/msys-llvm-gcc
--program-

prefix=llvm- --enable-llvm=/c/Temp/msys-llvm --enable-languages=c,c++
--disable

-shared

$make

--------------------------------------------------

 

gcc -c   -g -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-pr

ototypes -pedantic -Wno-long-long -Wno-variadic-macros
-Wno-overlength-strings -

Wold-style-definition -Wmissing-format-attribute -fno-common
-DHAVE_CONFIG_H -

I. -I. -I../../llvm-gcc4.2-2.6.source/gcc
-I../../llvm-gcc4.2-2.6.source/gcc/. -

I../../llvm-gcc4.2-2.6.source/gcc/../include
-I../../llvm-gcc4.2-2.6.source/gcc/

../libcpp/include  -I../../llvm-gcc4.2-2.6.source/gcc/../libdecnumber
-I../libde

cnumber -I/c/Temp/msys-llvm/include -I/c/Temp/llvm-2.6/include -DENABLE_LLVM
-I/

c/Temp/msys-llvm/../llvm-2.6/include -I/c/Temp/msys-llvm/include  -D_DEBUG
-D_GN

U_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS
../../llvm-gcc4.2-2.6.

source/gcc/cppspec.c -o cppspec.o

c++   -g -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-proto

types -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings
-Wol

d-style-definition -Wmissing-format-attribute -fno-common   -DHAVE_CONFIG_H
-o

cpp.exe gcc.o opts-common.o gcc-options.o cppspec.o \

          intl.o prefix.o version.o driver-i386.o  ../libcpp/libcpp.a
../libib

erty/libiberty.a ../libdecnumber/libdecnumber.a
-L/c/Temp/msys-llvm/Release/lib

 -lpthread -lpsapi -limagehlp -lm

/c/Temp/msys-gcc-build/./gcc/xgcc -B/c/Temp/msys-gcc-build/./gcc/
-L/c/Temp/msys

-gcc-build/i686-pc-mingw32/winsup/mingw
-L/c/Temp/msys-gcc-build/i686-pc-mingw32

/winsup/w32api/lib -isystem
/c/Temp/llvm-gcc4.2-2.6.source/winsup/mingw/include

-isystem /c/Temp/llvm-gcc4.2-2.6.source/winsup/w32api/include
-B/c/Temp/msys-llv

m-gcc/i686-pc-mingw32/bin/ -B/c/Temp/msys-llvm-gcc/i686-pc-mingw32/lib/
-isystem

 /c/Temp/msys-llvm-gcc/i686-pc-mingw32/include -isystem
/c/Temp/msys-llvm-gcc/i6

86-pc-mingw32/sys-include -dumpspecs > tmp-specs

mv tmp-specs specs

if true ; then \

          cat ../../llvm-gcc4.2-2.6.source/gcc/limitx.h
../../llvm-gcc4.2-2.6.so

urce/gcc/glimits.h ../../llvm-gcc4.2-2.6.source/gcc/limity.h >
tmp-xlimits.h; \

        else \

          cat ../../llvm-gcc4.2-2.6.source/gcc/glimits.h > tmp-xlimits.h; \

        fi

mv tmp-xlimits.h xlimits.h

echo | /c/Temp/msys-gcc-build/./gcc/xgcc -B/c/Temp/msys-gcc-build/./gcc/
-L/c/Te

mp/msys-gcc-build/i686-pc-mingw32/winsup/mingw
-L/c/Temp/msys-gcc-build/i686-pc-

mingw32/winsup/w32api/lib -isystem
/c/Temp/llvm-gcc4.2-2.6.source/winsup/mingw/i

nclude -isystem /c/Temp/llvm-gcc4.2-2.6.source/winsup/w32api/include
-B/c/Temp/m

sys-llvm-gcc/i686-pc-mingw32/bin/
-B/c/Temp/msys-llvm-gcc/i686-pc-mingw32/lib/ -

isystem /c/Temp/msys-llvm-gcc/i686-pc-mingw32/include -isystem
/c/Temp/msys-llvm

-gcc/i686-pc-mingw32/sys-include -E -dM - | \

          sed -n -e 's/^#define \([^_][a-zA-Z0-9_]*\).*/\1/p' \

                 -e 's/^#define \(_[^_A-Z][a-zA-Z0-9_]*\).*/\1/p' | \

          sort -u > tmp-macro_list

Assertion failed: errorcode == 0, file
c:/Temp/llvm-2.6/lib/System/RWMutex.cpp,

line 87

 

This application has requested the Runtime to terminate it in an unusual
way.

Please contact the application's support team for more information.

xgcc.exe: Internal error: Aborted (program cc1)

Please submit a full bug report.

See <URL:http://llvm.org/bugs/> for instructions.

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20091027/18dc951d/attachment.html>


More information about the llvm-dev mailing list