NickThePowerful / iphone-dev

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

Failed last step due to missing std-includes #107

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. create a new user iphone-dev
2. execute all steps of the Instructions, with --prefix=/home/iphone-dev
after all configures
3. in the last step (with-as and with-ld corrected for
/home/iphone-dev/bin..) the error occurs

What is the expected output? What do you see instead?
expected: clean compile
instead:
make[3]: Betrete Verzeichnis
'/home/iphone-dev/iphone/iphone-dev/build/llvm-gcc-4.0-iphone/gcc'
/home/iphone-dev/iphone/iphone-dev/build/llvm-gcc-4.0-iphone/gcc/xgcc
-B/home/iphone-dev/iphone/iphone-dev/build/llvm-gcc-4.0-iphone/gcc/
-B/home/iphone-dev//arm-apple-darwin/bin/
-B/home/iphone-dev//arm-apple-darwin/lib/ -isystem
/home/iphone-dev//arm-apple-darwin/include -isystem
/home/iphone-dev//arm-apple-darwin/sys-include -DIN_GCC
-DCROSS_DIRECTORY_STRUCTURE   -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/home/iphone-dev/iphone/llvm-svn/include
-I/home/iphone-dev/iphone/llvm-svn/include  \
         \
          -c ../../../llvm-gcc-4.0-iphone/gcc/config/darwin-crt3.c -o crt3.o
In file included from ../../../llvm-gcc-4.0-iphone/gcc/config/darwin-crt3.c:38:
../../../llvm-gcc-4.0-iphone/gcc/tsystem.h:90:19: error: stdio.h: No such
file or directory
../../../llvm-gcc-4.0-iphone/gcc/tsystem.h:93:23: error: sys/types.h: No
such file or directory
../../../llvm-gcc-4.0-iphone/gcc/tsystem.h:96:19: error: errno.h: No such
file or directory
../../../llvm-gcc-4.0-iphone/gcc/tsystem.h:103:20: error: string.h: No such
file or directory
../../../llvm-gcc-4.0-iphone/gcc/tsystem.h:104:20: error: stdlib.h: No such
file or directory
../../../llvm-gcc-4.0-iphone/gcc/tsystem.h:105:20: error: unistd.h: No such
file or directory
../../../llvm-gcc-4.0-iphone/gcc/tsystem.h:111:18: error: time.h: No such
file or directory
../../../llvm-gcc-4.0-iphone/gcc/config/darwin-crt3.c:40:19: error:
dlfcn.h: No such file or directory
../../../llvm-gcc-4.0-iphone/gcc/config/darwin-crt3.c: In function
‘get_globals’:
../../../llvm-gcc-4.0-iphone/gcc/config/darwin-crt3.c:271: warning:
implicit declaration of function ‘calloc’
../../../llvm-gcc-4.0-iphone/gcc/config/darwin-crt3.c:271: warning:
incompatible implicit declaration of built-in function ‘calloc’
../../../llvm-gcc-4.0-iphone/gcc/config/darwin-crt3.c:280: warning:
implicit declaration of function ‘dlopen’
../../../llvm-gcc-4.0-iphone/gcc/config/darwin-crt3.c:280: error:
‘RTLD_NOLOAD’ undeclared (first use in this function)
../../../llvm-gcc-4.0-iphone/gcc/config/darwin-crt3.c:280: error: (Each
undeclared identifier is reported only once
../../../llvm-gcc-4.0-iphone/gcc/config/darwin-crt3.c:280: error: for each
function it appears in.)
../../../llvm-gcc-4.0-iphone/gcc/config/darwin-crt3.c:280: warning:
assignment makes pointer from integer without a cast
../../../llvm-gcc-4.0-iphone/gcc/config/darwin-crt3.c:298: warning:
implicit declaration of function ‘dlsym’
../../../llvm-gcc-4.0-iphone/gcc/config/darwin-crt3.c: In function
‘add_routine’:
../../../llvm-gcc-4.0-iphone/gcc/config/darwin-crt3.c:335: warning:
implicit declaration of function ‘malloc’
../../../llvm-gcc-4.0-iphone/gcc/config/darwin-crt3.c:335: warning:
incompatible implicit declaration of built-in function ‘malloc’
../../../llvm-gcc-4.0-iphone/gcc/config/darwin-crt3.c: In function
‘run_routines’:
../../../llvm-gcc-4.0-iphone/gcc/config/darwin-crt3.c:374: warning:
implicit declaration of function ‘free’
../../../llvm-gcc-4.0-iphone/gcc/config/darwin-crt3.c: In function
‘atexit_common’:
../../../llvm-gcc-4.0-iphone/gcc/config/darwin-crt3.c:498: warning:
incompatible implicit declaration of built-in function ‘malloc’
make[3]: *** [crt3.o] Fehler 1
make[3]: Verlasse Verzeichnis
'/home/iphone-dev/iphone/iphone-dev/build/llvm-gcc-4.0-iphone/gcc'
make[2]: *** [extra] Fehler 2
make[2]: Verlasse Verzeichnis
'/home/iphone-dev/iphone/iphone-dev/build/llvm-gcc-4.0-iphone/gcc'
make[1]: *** [stmp-multilib] Fehler 2
make[1]: Verlasse Verzeichnis
'/home/iphone-dev/iphone/iphone-dev/build/llvm-gcc-4.0-iphone/gcc'
make: *** [all-gcc] Fehler 2

What version of the product are you using? On what operating system?
gcc (GCC) 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)
bison (GNU Bison) 2.3
flex 2.5.33

Original issue reported on code.google.com by tutm...@gmail.com on 9 Dec 2007 at 12:35

GoogleCodeExporter commented 9 years ago
i have the same problem on archlinux
trying to build under 32bit chroot

Original comment by zeb...@gmail.com on 16 Dec 2007 at 11:55

GoogleCodeExporter commented 9 years ago
i found a hackish solution that will get you past this issue.  Try the 
following:

../../llvm-gcc-4.0-iphone/configure ......
pushd gcc/include
for i in $PREFIX/include/*; do ln -s $i; done
popd
make LLVM_VERSION_INFO=2.0-svn-iphone-dev-0.3-svn 

This will create a symlink of your headers in a directory that is always 
included
when compiling.  Like I said, very hackish but it gets the job done.

Note that you should replace $PREFIX with whatever prefix you used.  Also the 
above
lines are not the only lines to execute, but it is just there to show you where 
to
run them.  Follow the guide and insert the middle lines between the first and 
last as
they are in the guide.

Original comment by patricks...@gmail.com on 4 Jan 2008 at 4:14

GoogleCodeExporter commented 9 years ago
I had the same problem on Fedora Core 8 i386.
I followed all instructions in the guide just as it is.

Original comment by weifa...@gmail.com on 11 Jan 2008 at 5:51

GoogleCodeExporter commented 9 years ago
I also have this problem and tried the hack about - but cannot for the life of 
me 
figure out what $PREFIX is supposed to be pointing to.  

I check all my environment variables but nada...  So close yet so far....

Original comment by agalew...@gmail.com on 28 Mar 2008 at 6:12

GoogleCodeExporter commented 9 years ago
I reread the hack and saw sort of how to construct the PREFIX - but when i 
looked 
into what i thought was the include directory it didnt have std.h in it - I am 
so 
confused!

Original comment by agalew...@gmail.com on 28 Mar 2008 at 6:38

GoogleCodeExporter commented 9 years ago
It works!  I have a Ubuntu Feisty setup thaat now works - I removed all the old 
directories and very carefully re-did all the steps and it compiled cleanly and 
now 
works. 

I think the above errors stem from missing a step in the instructions...

Original comment by agalew...@gmail.com on 29 Mar 2008 at 3:18