pereraa / iphone-dev

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

"arm-apple-darwin-ld" not created in /usr/local/bin/ #63

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Followed build instructions up to "make
LLVM_VERSION_INFO=2.0-svn-iphone-dev-0.3-svn " command which is where I
encounter the error

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

Instead of finding the file /usr/local/bin/arm-apple-darwin-ld , make
errors out asking for the correct location:

"...
configure: error: cannot execute: /usr/local/bin/arm-apple-darwin-ld: check
--with-ld or env. var. DEFAULT_LINKER
make: *** [configure-gcc] Error 1"

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

Ubuntu 7.04 x86 (2.6 generic)

Please provide any additional information below.

I assume it just failed to compile somewhere in the steps provided, which
would explain why it is not in the expected directory (or anywhere else). I
noticed that arm-apple-darwin-ar is present, but arm-apple-darwin-ld  is not.

Original issue reported on code.google.com by delore...@gmail.com on 27 Sep 2007 at 7:52

GoogleCodeExporter commented 8 years ago
I went back and traced my steps starting from this step:

$ ../../odcctools/configure --target=arm-apple-darwin --disable-ld64

and I found that for some reason these steps hadn't created the 
arm-apple-darwin-as
and arm-apple-darwin-ld:

$ ../../odcctools/configure --target=arm-apple-darwin --disable-ld64
$ make

so instead of running make in that directory, I went into these directories and 
ran
make individually:

/iphone-dev/build/odcctools/as
/iphone-dev/build/odcctools/ld

after this, both arm-apple-darwin-ld and arm-apple-darwin-as immediately showed 
up in
 the /usr/local/bin/ directory.

Sorry if this is clutter since I solved my own problem, but I figure it might 
help
someone else.  This might indicate a problem with the odcctools make script.

Original comment by delore...@gmail.com on 27 Sep 2007 at 8:52

GoogleCodeExporter commented 8 years ago
I realized I forgot to make, then make install odcctools so it was my error.

Althouh I hit another snag;  I get this error after I run the command:

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

...
checking for sys/types.h... (cached) yes
checking for g++ that supports -ffunction-sections -fdata-sections... yes
checking for sin in -lm... configure: error: Link tests are not allowed after
GCC_NO_EXECUTABLES.
make: *** [configure-target-libstdc++-v3] Error 1

a bit of googling seems to suggest this error is related to binutils, but I'm a 
bit
stuck where to go from here.  I might just remove everything and start from 
scratch.

Original comment by delore...@gmail.com on 27 Sep 2007 at 11:39

GoogleCodeExporter commented 8 years ago
There were updates in svn a little before you updated this.  I think the stdc++ 
was
updated.  Have you updated svn recently?

Original comment by co...@compuserve.com on 29 Sep 2007 at 12:16

GoogleCodeExporter commented 8 years ago
I went ahead and just started on a fresh ubuntu install (vmware) w/ the most 
recent
svn.  I'm getting to the same point resulting in the same error:

"checking for sin in -lm... configure: error: Link tests are not allowed after
GCC_NO_EXECUTABLES.
make: *** [configure-target-libstdc++-v3] Error 1"

I've attached my config.log if that will help diagnose this issue.

Also attached is the output of the command:
"make LLVM_VERSION_INFO=2.0-svn-iphone-dev-0.3-svn"

Original comment by delore...@gmail.com on 29 Sep 2007 at 5:07

Attachments:

GoogleCodeExporter commented 8 years ago
It looks like you are missing the devel portion of a package called gmp.  On my 
suse
system, there is a /usr/include/gmp.h provided by gmp-devel.  (This shows up in 
your
config.log.)

Original comment by co...@compuserve.com on 29 Sep 2007 at 2:24

GoogleCodeExporter commented 8 years ago
I checked and I do have libgmp3-dev installed, and /usr/include/gmp.h does 
exist so
I'm not sure why it's not being found. I noticed others had success setting up 
the
toolchain on Ubuntu 7.04, so unless they deviated from the guide, I'm a bit 
lost as
to why I'm experiencing this problem. Suggestions?

Original comment by delore...@gmail.com on 1 Oct 2007 at 4:22

GoogleCodeExporter commented 8 years ago
See comment 2 on issue 73 - this fixed it for me. 
http://code.google.com/p/iphone-dev/issues/detail?id=73

Original comment by davearter@gmail.com on 6 Oct 2007 at 3:25