[Cygwin] error building llvm-gcc

I am getting an error building svn llvm-gcc on Cygwin :-

/home/ang/build/llvm-gcc/./gcc/xgcc -B/home/ang/build/llvm-gcc/./gcc/ -B/usr/llv
m-gcc/i686-pc-cygwin/bin/ -B/usr/llvm-gcc/i686-pc-cygwin/lib/ -isystem /usr/llvm
-gcc/i686-pc-cygwin/include -isystem /usr/llvm-gcc/i686-pc-cygwin/sys-include -
O2 -I/home/ang/svn/llvm-gcc/gcc/…/winsup/w32api/include -O2 -g -O2 -DIN_GCC
-W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-d
efinition -isystem ./include -g -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -
I. -I/home/ang/svn/llvm-gcc/gcc -I/home/ang/svn/llvm-gcc/gcc/. -I/home/ang/svn/l
lvm-gcc/gcc/…/include -I/home/ang/svn/llvm-gcc/gcc/…/libcpp/include -I/home/a
ng/svn/llvm-gcc/gcc/…/libdecnumber -I…/libdecnumber -I/home/ang/build/llvm/inc
lude -I/home/ang/svn/llvm/include -DL_popcountsi2 -c /home/ang/svn/llvm-gcc/gcc/
libgcc2.c -o libgcc/./_popcountsi2.o
assertion “V == V2 && “Didn’t find key?”” failed: file “/home/ang/svn/llvm/lib/S
upport/StringMap.cpp”, line 172
make[4]: *** [libgcc/./_popcountsi2.o] Error 1
make[4]: Leaving directory `/home/ang/build/llvm-gcc/gcc’
make[3]: *** [libgcc.a] Error 2

I have tried with gcc-4.2.4 and gcc-4.2.1 and it fails in exactly the same place in libgcc.

Anyone got any pointers ?

Many thanks in advance,

Aaron

Hi Aaron,

Which revision are you building?

Assuming TOT, it's possible this is a bug that I introduced/triggered
with the name changes. I know nothing of the status of cygwin however,
can you confirm that this used to work?

If you use r77097, does it work?

- Daniel

Hi Daniel,

2009/7/26 Daniel Dunbar <daniel@zuster.org>

Hi Aaron,

Which revision are you building?

77074

Assuming TOT, it’s possible this is a bug that I introduced/triggered
with the name changes.

Yes I am now getting the following :-

c++ -c -g -DIN_GCC -W -Wall -Wwrite-strings -pedantic -Wno-long-long -Wno-variad
ic-macros -Wmissing-format-attribute -fno-common -DHAVE_CONFIG_H -Wno-unused -DT
ARGET_NAME="i686-pc-cygwin" -frandom-seed=0 -I. -I. -I/home/ang/svn/llvm-gcc/g
cc -I/home/ang/svn/llvm-gcc/gcc/. -I/home/ang/svn/llvm-gcc/gcc/…/include -I/hom
e/ang/svn/llvm-gcc/gcc/…/libcpp/include -I/home/ang/svn/llvm-gcc/gcc/…/libdec
number -I…/libdecnumber -I/home/ang/build/llvm/include -I/home/ang/svn/llvm/inc
lude -DENABLE_LLVM -I/home/ang/svn/llvm/include -I/home/ang/build/llvm/include
-D_DEBUG -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -I. -I.
-I/home/ang/svn/llvm-gcc/gcc -I/home/ang/svn/llvm-gcc/gcc/. -I/home/ang/svn/llv
m-gcc/gcc/…/include -I/home/ang/svn/llvm-gcc/gcc/…/libcpp/include -I/home/ang
/svn/llvm-gcc/gcc/…/libdecnumber -I…/libdecnumber -I/home/ang/build/llvm/inclu
de -I/home/ang/svn/llvm/include /home/ang/svn/llvm-gcc/gcc/llvm-backend.cpp -o l
lvm-backend.o
/home/ang/svn/llvm-gcc/gcc/llvm-backend.cpp: In function ‘void llvm_initialize_b
ackend()’:
/home/ang/svn/llvm-gcc/gcc/llvm-backend.cpp:455: error: ‘getClosestStaticTargetF
orModule’ is not a member of ‘llvm::TargetRegistry’
make[3]: *** [llvm-backend.o] Error 1
make[3]: Leaving directory /home/ang/build/llvm-gcc/gcc' make[2]: *** [all-stage1-gcc] Error 2 make[2]: Leaving directory /home/ang/build/llvm-gcc’
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/home/ang/build/llvm-gcc’
make: *** [all] Error 2
real 34m34.916s
user 4m57.094s
sys 6m56.224s
ang@AMD2500-PC ~/build/llvm-gcc

I know nothing of the status of cygwin however,
can you confirm that this used to work?

I have not tested it in several months.

If you use r77097, does it work?

Shall I try that, or latest revision ?

Aaron

lvm-backend.o
/home/ang/svn/llvm-gcc/gcc/llvm-backend.cpp: In function 'void
llvm_initialize_b
ackend()':
/home/ang/svn/llvm-gcc/gcc/llvm-backend.cpp:455: error:
'getClosestStaticTargetF
orModule' is not a member of 'llvm::TargetRegistry'

This should be work on TOT.

If you use r77097, does it work?

Shall I try that, or latest revision ?

Please try on TOT and if that fails, r77097.

If it turns out to be my fault -- sorry for the breakage. :slight_smile:

- Daniel

2009/7/26 Daniel Dunbar <daniel@zuster.org>

2009/7/26 Daniel Dunbar <daniel@zuster.org>

lvm-backend.o
/home/ang/svn/llvm-gcc/gcc/llvm-backend.cpp: In function ‘void
llvm_initialize_b
ackend()’:
/home/ang/svn/llvm-gcc/gcc/llvm-backend.cpp:455: error:
‘getClosestStaticTargetF
orModule’ is not a member of ‘llvm::TargetRegistry’

This should be work on TOT.

If you use r77097, does it work?
Shall I try that, or latest revision ?

Please try on TOT and if that fails, r77097.

Okay.

If it turns out to be my fault – sorry for the breakage. :slight_smile:

Don’t worry I am used to it, I think there are probably more breakages anyway, its Cygwin !

Aaron