GamerGuide34 / iphone-gcc-full

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

Can't compile C code #2

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Trying to configure to build rootsh (1.5.3)
2.
3.

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

It should correctly configure the make files.

What version of the product are you using? On what operating system?

Please provide any additional information below.

When running the configure to build rootsh, I get the following error. It seems 
gcc can't correctly compile c code? 

iPhone:~/rootsh-1.5.3 root# ./configure --build=arm-apple-darwin11.0.0 
--disable-syslog --with-logdir=/private/var/log --with-defaultshell=/bin/sh
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... no
checking whether make sets $(MAKE)... yes
checking build system type... arm-apple-darwin11.0.0
checking host system type... arm-apple-darwin11.0.0
checking for syslog... no
checking for logfile... enabled
checking for logdir... /private/var/log
checking for maximum logfile size... 0
checking for defaultshell... /bin/sh
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... configure: error: cannot run C 
compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.

Attached is the config.log

Original issue reported on code.google.com by cellbros...@gmail.com on 14 May 2012 at 3:16

Attachments:

GoogleCodeExporter commented 9 years ago
This error seems to occur because the code isn't signed before being run. Seems 
ldid needs to be incorporated manually into each and every configure.

Original comment by cellbros...@gmail.com on 14 May 2012 at 3:26

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
https://ininjas.com/forum/index.php?topic=1626.0

Or just skip to the solution at

https://ininjas.com/forum/index.php?topic=1626.msg46557#msg46557

Original comment by t...@ininjas.com on 19 Aug 2012 at 3:23