cwalls251 / iphone-dev

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

Ubuntu: gcc 4.1.2 fails to compile LLVM #15

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
2. ./configure --enable-optimized
3. make ENABLE_OPTIMIZED=1

What is the expected output? What do you see instead?
llvm[2]: Compiling DAGISelEmitter.cpp for Release build 
llvm[2]: Compiling FileLexer.cpp for Release build 
/home/joeBrain/Development/iPhone/llvm-svn/utils/TableGen/FileLexer.l: In
function ‘int Filelex()’:
/home/joeBrain/Development/iPhone/llvm-svn/utils/TableGen/FileLexer.l:209:
error: ‘CONCATTOK’ was not declared in this scope
make[2]: ***
[/home/joeBrain/Development/iPhone/llvm-svn/utils/TableGen/Release/FileLexer.o]
Error 1
make[2]: Leaving directory
`/home/joeBrain/Development/iPhone/llvm-svn/utils/TableGen'
make[1]: *** [TableGen/.makeall] Error 2
make[1]: Leaving directory `/home/joeBrain/Development/iPhone/llvm-svn/utils'
make: *** [all] Error 1

What version of the product are you using? On what operating system?
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v
--enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr
--enable-shared --with-system-zlib --libexecdir=/usr/lib
--without-included-gettext --enable-threads=posix --enable-nls
--program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu
--enable-libstdcxx-debug --enable-mpfr --enable-checking=release i486-linux-gnu
Thread model: posix
gcc version 4.1.2 (Ubuntu 4.1.2-0ubuntu4)

Ubuntu v7.04 (fiesty)

Please provide any additional information below.
Running Ubuntu off of Parallels Desktop
apt-get latest subversion, csh, g++, libc6-dev, flex, bison 
   and all of the required dependencies involved with these packages...
   allowed universe components

Original issue reported on code.google.com by insanita...@yahoo.com on 12 Sep 2007 at 11:53

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Looks like llvm-svn/utils/TableGen/FileParser.h does not rm when you do a make 
clean...

the first make ENABLE_OPTIMIZED=1 that I did, I didn't have bison installed.  
After
deleting FileParser.h then retrying, it looks to work... (still compiling)

Cheers,

-JoeBrain

------------Additional-Info------------
... same error as Mingw (Issue #6)
Installed on my system:
bison 1:2.3dfsg-4
flex 2.5.33-10
m4 1.4.8-1

Original comment by insanita...@yahoo.com on 12 Sep 2007 at 12:42

GoogleCodeExporter commented 8 years ago
I talked with the submitter (joeBrain) on irc. It has compiled now. This should
probably be forwarded upstream, but I'm too tired to do that now.

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

GoogleCodeExporter commented 8 years ago
So I take it the problem is that you need bison and if you don't have it the 
build dies and you have to start over?

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

GoogleCodeExporter commented 8 years ago
More that, once it dies, doing a make clean fails to get rid of the
utils/TableGen/FileParser.h file. 

Original comment by Phi...@gmail.com on 12 Sep 2007 at 7:40

GoogleCodeExporter commented 8 years ago
Added a note about that to the HOWTO page then. Closing this.

Original comment by nightwat...@gmail.com on 12 Sep 2007 at 10:54