wpadami-forks / iphone-dev

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

LLVM-GCC fails to make on OS X 10.51 #122

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I searched and could not find this issue.

What is the expected output? What do you see instead?
--CONFIGURE

JohnsMac:llvm-gcc-4.0-iphone john$ ../../llvm-gcc-4.0-iphone/configure --enable-
llvm=`llvm-config --obj-root` --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
checking build system type... i686-apple-darwin9.1.0
checking host system type... i686-apple-darwin9.1.0
checking target system type... arm-apple-darwin
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for gnatbind... no
checking whether compiler driver understands Ada... no
checking how to compare bootstrapped objects... cmp --ignore-initial=16 $$f1 
$$f2
checking for correct version of gmp.h... no
*** This configuration is not supported in the following subdirectories:
     target-libmudflap target-libobjc target-libffi target-zlib
    (Any other directories should still work fine.)
checking for bison... bison
checking for bison... bison -y
checking for gm4... gm4
checking for flex... flex
checking for flex... flex
checking for makeinfo... makeinfo
rm: conftest.dSYM: is a directory
*** removing build-i686-apple-darwin9.1.0/libiberty/Makefile to force 
reconfigure
*** removing build-i686-apple-darwin9.1.0/fixincludes/Makefile to force 
reconfigure
*** removing intl/Makefile to force reconfigure
*** removing libiberty/Makefile to force reconfigure
*** removing zlib/Makefile to force reconfigure
*** removing libcpp/Makefile to force reconfigure
*** removing fixincludes/Makefile to force reconfigure
*** removing gcc/Makefile to force reconfigure
checking for ar... ar
checking for as... as
checking for dlltool... dlltool
checking for ld... /usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld
checking for nm... nm
checking for ranlib... ranlib
checking for windres... windres
checking for objcopy... objcopy
checking for objdump... objdump
checking for arm-apple-darwin-ar... arm-apple-darwin-ar
checking for arm-apple-darwin-as... arm-apple-darwin-as
checking for arm-apple-darwin-dlltool... no
checking for arm-apple-darwin-ld... arm-apple-darwin-ld
checking for arm-apple-darwin-lipo... arm-apple-darwin-lipo
checking for arm-apple-darwin-nm... arm-apple-darwin-nm
checking for arm-apple-darwin-ranlib... arm-apple-darwin-ranlib
checking for arm-apple-darwin-strip... arm-apple-darwin-strip
checking for arm-apple-darwin-windres... no
checking whether to enable maintainer-specific portions of Makefiles... no
checking if symbolic links between directories work... yes
configure: creating ./config.status
config.status: creating Makefile

--MAKE

make LLVM_VERSION_INFO=2.0-svn-iphone-dev-0.3-svn
...

if [ -f stmp-dirs ]; then true; else touch stmp-dirs; fi
make GCC_FOR_TARGET="/Users/john/ToolChain/iphone-dev/build/llvm-gcc-4.0-
iphone/gcc/xgcc 
-B/Users/john/ToolChain/iphone-dev/build/llvm-gcc-4.0-iphone/gcc/ 
{FLAGS_FOR_TARGET-} -B/usr/local/arm-apple-darwin/bin/ -B/usr/local/arm-apple-
darwin/lib/ -isystem /usr/local/arm-apple-darwin/include -isystem 
/usr/local/arm-apple-
darwin/sys-include" \
      AR_FOR_TARGET="arm-apple-darwin-ar" \
      AR_CREATE_FOR_TARGET="arm-apple-darwin-ar  rc" \
      AR_EXTRACT_FOR_TARGET="arm-apple-darwin-ar  x" \
      AR_FLAGS_FOR_TARGET="" \
      CC="gcc" CFLAGS="-g -O2  -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-
prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition 
 " \
      BUILD_PREFIX="" \
      BUILD_PREFIX_1="loser-" \
      LANGUAGES="" \
      LIBGCC2_CFLAGS="-O2  -DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes -
Wmissing-prototypes -Wold-style-definition  -isystem ./include  -fPIC -pipe -g -
DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED  "  \
      MULTILIB_CFLAGS="" T= crt3.o
/Users/john/ToolChain/iphone-dev/build/llvm-gcc-4.0-iphone/gcc/xgcc -
B/Users/john/ToolChain/iphone-dev/build/llvm-gcc-4.0-iphone/gcc/ 
{FLAGS_FOR_TARGET-} -
B/usr/local/arm-apple-darwin/bin/ -B/usr/local/arm-apple-darwin/lib/ -isystem 
/usr/local/arm-apple-darwin/include -isystem 
/usr/local/arm-apple-darwin/sys-include -
DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes 
-Wold-style-
definition  -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/Users/john/ToolChain/llvm-svn/include -
I/Users/john/ToolChain/llvm-svn/include  \
     \
      -c ../../../llvm-gcc-4.0-iphone/gcc/config/darwin-crt3.c -o crt3.o
xgcc: {FLAGS_FOR_TARGET-}: No such file or directory
make[3]: *** [crt3.o] Error 1
make[2]: *** [extra] Error 2
make[1]: *** [stmp-multilib] Error 2
make: *** [all-gcc] Error 2

I thought it was a path problem, but a ls produces:
JohnsMac:llvm-gcc-4.0-iphone john$ ls -al 
../../../llvm-gcc-4.0-iphone/gcc/config/darwin-
crt3.c
-rw-r--r--  1 john  staff  16321 Feb 10 11:31 ../../../llvm-gcc-4.0-
iphone/gcc/config/darwin-crt3.c

I have attached the entire Configure and Make Output file

What version of the product are you using? On what operating system?
-svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm-svn -r 42498
-svn checkout http://iphone-dev.googlecode.com/svn/trunk/ iphone-dev
- 
http://appldnld.apple.com.edgesuite.net/content.info.apple.com/iPod/SBML/osx/bun
dles/061-
4036.20071107.9g3DF/iPod1,1_1.1.2_3B48b_Restore.ipsw

Darwin JohnsMac 9.1.0 Darwin Kernel Version 9.1.0: Wed Oct 31 17:46:22 PDT 
2007; root:xnu-
1228.0.2~1/RELEASE_I386 i386

XTools - 3.0

Both odctools and csu build and install without issue

Please provide any additional information below.

Original issue reported on code.google.com by johnc1...@gmail.com on 10 Feb 2008 at 5:29

Attachments:

GoogleCodeExporter commented 8 years ago
export FLAGS_FOR_TARGET="-mmacosx-version-min=10.1"

Original comment by Anton.Du...@gmail.com on 10 Feb 2008 at 5:31

GoogleCodeExporter commented 8 years ago
I tried the export FLAGS_FOR_TARGET="-mmacosx-version-min=10.1" directive and 
it makes no difference.

Original comment by johnc1...@gmail.com on 10 Feb 2008 at 6:06

GoogleCodeExporter commented 8 years ago
I'm having this issue as well -- setting FLAGS_FOR_TARGET isn't helping.

Original comment by sales%wo...@gtempaccount.com on 11 Feb 2008 at 9:45

GoogleCodeExporter commented 8 years ago
I am having this issue as well, I tried so many resolutions from threads, make 
no difference. 

Original comment by binli...@gmail.com on 11 Apr 2008 at 10:01