rawko3 / iphone-dev

Automatically exported from code.google.com/p/iphone-dev
0 stars 0 forks source link

Mingw gcc-4.2.1 fails to compile LLVM #6

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm-svn
2. cd llvm-svn
3. ./configure --enable-optimized
4. make ENABLE_OPTIMIZED=1

What is the expected output? What do you see instead?
make[2]: Entering directory
`/c/Devtool/source/iphone-dev/llvm-svn/utils/TableGen'
llvm[2]: Compiling FileLexer.cpp for Release build 
c:/Devtool/source/iphone-dev/llvm-svn/utils/TableGen/FileLexer.l: In
function 'int Filelex()':
c:/Devtool/source/iphone-dev/llvm-svn/utils/TableGen/FileLexer.l:209:
error: 'CONCATTOK' was not declared in this scope
Lexer.cpp:883: warning: label 'find_rule' defined but not used
make[2]: ***
[/c/Devtool/source/iphone-dev/llvm-svn/utils/TableGen/Release/FileLexer.o]
Error 1
make[2]: Leaving directory
`/c/Devtool/source/iphone-dev/llvm-svn/utils/TableGen'
make[1]: *** [TableGen/.makeall] Error 2
make[1]: Leaving directory `/c/Devtool/source/iphone-dev/llvm-svn/utils'
make: *** [all] Error 1

What version of the product are you using? On what operating system?
$ gcc -v
Using built-in specs.
Target: mingw32
Configured with: ../gcc-4.2.1/configure --prefix=/extra/crossgcc/win-gcc
--build=i686-pc-linux-gnu --host=mingw32 --target=mingw32
--with-as=/extra/crossgcc/cross-gcc/bin/mingw32-as
--with-ld=/extra/crossgcc/cross-gcc/bin/mingw32-ld --with-gcc --with-gnu-as
--with-gnu-ld --enable-languages=c,c++,fortran,objc,obj-c++,treelang
--disable-shared --disable-debug --disable-nls --disable-libstdcxx-pch
--disable-win32-registry --enable-sjlj-exceptions --enable-threads=win32
--enable-fully-dynamic-string --with-mtune=generic --enable-libgomp
--with-gmp=/extra/crossgcc/win-gmp-install
--with-mpfr=/extra/crossgcc/win-mpfr-install
--with-libiconv-prefix=/extra/crossgcc/win-iconv-install
Thread model: win32
gcc version 4.2.1

$ uname -a
MINGW32_NT-5.1 A4 1.0.10(0.46/3/2) 2004-03-15 07:17 i686 unknown

Please provide any additional information below.

Original issue reported on code.google.com by pathom...@gmail.com on 11 Sep 2007 at 11:38

GoogleCodeExporter commented 8 years ago

Original comment by nightwat...@gmail.com on 11 Sep 2007 at 11:51

GoogleCodeExporter commented 8 years ago
From issue 15:
Make sure bison and flex are installed, then 'make clean' and remove
llvm-svn/utils/TableGen/FileParser.h and try compiling again.

Original comment by Phi...@gmail.com on 12 Sep 2007 at 1:36

GoogleCodeExporter commented 8 years ago
Duplicate of issue 15.

Original comment by nightwat...@gmail.com on 12 Sep 2007 at 3:23