cwalls251 / iphone-dev

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

Fedora Linux LLVM-GCC fails to compile #28

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. set LLVMOBJDIR and HEAVENLY
2. ../llvm-gcc-4.0-iphone/configure --enable-llvm=$LLVMOBJDIR
--enable-languages=c,c++,objc,obj-c++ --target=arm-apple-darwin
--enable-sjlj-exceptions --with-heavenly=$HEAVENLY
--with-as=/usr/local/bin/arm-apple-darwin-as
--with-ld=/usr/local/bin/arm-apple-darwin-ld
3. make LLVM_VERSION_INFO=2.0-svn-iphone-dev-0.3-svn

What is the expected output? What do you see instead?
make[3]: Entering directory
`/home/joeBrain/Development/iPhone/iphone-dev/llvm-gcc-4.0-iphone-build/gcc'
/home/joeBrain/Development/iPhone/iphone-dev/llvm-gcc-4.0-iphone-build/gcc/xgcc
-B/home/joeBrain/Development/
iPhone/iphone-dev/llvm-gcc-4.0-iphone-build/gcc/
-B/usr/local/arm-apple-darwin/bin/ -B/usr/local/arm-apple-darw
in/lib/ -isystem /usr/local/arm-apple-darwin/include -isystem
/usr/local/arm-apple-darwin/sys-include -DIN_GCC 
-DCROSS_DIRECTORY_STRUCTURE   -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wold-style-def
inition  -isystem ./include  -I. -I. -I../../llvm-gcc-4.0-iphone/gcc
-I../../llvm-gcc-4.0-iphone/gcc/. -I../../
llvm-gcc-4.0-iphone/gcc/../include
-I../../llvm-gcc-4.0-iphone/gcc/../libcpp/include  -I/home/joeBrain/Develop
ment/iPhone/llvm-svn/include
-I/home/joeBrain/Development/iPhone/llvm-svn/include  \
         \
          -c ../../llvm-gcc-4.0-iphone/gcc/config/darwin-crt3.c -o crt3.o
/tmp/ccp5OZod.s:6:syntax error, unexpected $undefined, expecting OPRD_REG
/tmp/ccp5OZod.s:7:Unknown instruction 'sp'
/tmp/ccp5OZod.s:7:syntax error, unexpected $end
/tmp/ccp5OZod.s:7:Unknown instruction 'p'
/tmp/ccp5OZod.s:7:syntax error, unexpected $end
/tmp/ccp5OZod.s:7:Spurious digit 1073815612.
/tmp/ccp5OZod.s:7:Rest of line ignored. 1st junk character valued 44 (,).
/tmp/ccp5OZod.s:7:syntax error, unexpected $undefined, expecting OPRD_REG

What version of the product are you using? On what operating system?
Fedora 7.04 (Moonshine)
gcc version 4.1.2 20070502 (Red Hat 4.1.2-12)

Please provide any additional information below.
Using Parallels on Mac OS X Intel

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

GoogleCodeExporter commented 8 years ago
LLVM from trunk seems very iffy.  There was a version that wasn't tested & 
couldn't
build that was committed for a while yesterday :( yuck.

But now, I've tried compiling LLVM 2.0 from tag, switching my LLVMOBJDIR and 
then
re-configuring and making llvm-gcc.  I get the following error:

c++ -c -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -W -Wall -Wwrite-strings 
-pedantic
-Wno-long-long -Wno-variadic-macros -DHAVE_CONFIG_H -Wno-unused
-DTARGET_NAME=\"arm-apple-darwin\" -DNDEBUG -DENABLE_LLVM 
-DLLVM_VERSION_INFO='"2.0-svn-iphone-dev-0.3-svn"'   -I. -I.
-I../../llvm-gcc-4.0-iphone/gcc -I../../llvm-gcc-4.0-iphone/gcc/.
-I../../llvm-gcc-4.0-iphone/gcc/../include
-I../../llvm-gcc-4.0-iphone/gcc/../libcpp/include 
-I/home/joeBrain/Development/iPhone/llvm-branch/include
-I/home/joeBrain/Development/iPhone/llvm-branch/include
../../llvm-gcc-4.0-iphone/gcc/llvm-backend.cpp -o llvm-backend.o
In file included from
/home/joeBrain/Development/iPhone/llvm-branch/include/llvm/ADT/SmallPtrSet.h:20,
                 from
/home/joeBrain/Development/iPhone/llvm-branch/include/llvm/ADT/SmallSet.h:18,
                 from
/home/joeBrain/Development/iPhone/llvm-branch/include/llvm/ADT/SetVector.h:23,
                 from ../../llvm-gcc-4.0-iphone/gcc/llvm-internal.h:37,
                 from ../../llvm-gcc-4.0-iphone/gcc/llvm-backend.cpp:23:
/home/joeBrain/Development/iPhone/llvm-branch/include/llvm/Support/DataTypes.h:3
8:3:
error: #error "Must #define __STDC_LIMIT_MACROS before #including 
Support/DataTypes.h"
/home/joeBrain/Development/iPhone/llvm-branch/include/llvm/Transforms/Scalar.h: 
In
function ‘void createOptimizationPasses()’:
/home/joeBrain/Development/iPhone/llvm-branch/include/llvm/Transforms/Scalar.h:1
30:
error: too many arguments to function ‘llvm::LoopPass* 
llvm::createLoopUnswitchPass()’
../../llvm-gcc-4.0-iphone/gcc/llvm-backend.cpp:342: error: at this point in file
../../llvm-gcc-4.0-iphone/gcc/llvm-backend.cpp:348: error: ‘createGVNPass’ 
was not
declared in this scope
make[1]: *** [llvm-backend.o] Error 1
make[1]: Leaving directory
`/home/joeBrain/Development/iPhone/iphone-dev/llvm-gcc-4.0-iphone-build/gcc'
make: *** [all-gcc] Error 2

Original comment by insanita...@yahoo.com on 13 Sep 2007 at 1:43

GoogleCodeExporter commented 8 years ago
Duplicate of issue 18.

Original comment by nightwat...@gmail.com on 13 Sep 2007 at 4:21