Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ld: library not found for -lcrt1.10.6.o #3

Closed
GoogleCodeExporter opened this issue Mar 5, 2016 · 12 comments
Closed

ld: library not found for -lcrt1.10.6.o #3

GoogleCodeExporter opened this issue Mar 5, 2016 · 12 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Using MAC OS X 10.6 and iPhone SDK 3.2.1
2. running "sh build-all-deps.sh `pwd`/binaries"
3.

What is the expected output? What do you see instead?
-----------------
checking for C compiler default output... configure: error: C compiler
cannot create executables
See `config.log' for more details.
-----------------

less
cyrus-sasl/iPhoneSimulator_iPhoneSimulator3.0.sdk_Release/cyrus-sasl-2.1.23/conf
ig.log:
-----------------
ld: library not found for -lcrt1.10.6.o
collect2: ld returned 1 exit status
configure:2226: $? = 1
configure: failed program was:
| #line 2199 "configure"
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "cyrus-sasl"
| #define VERSION "2.1.23"
| /* end confdefs.h.  */
| 
| int| main ()
| {
| 
|   ;
|   return 0;
| }
configure:2265: error: C compiler cannot create executables
See `config.log' for more details.
-----------------


What version of the product are you using? On what operating system?
Using MAC OS X 10.6 and iPhone SDK 3.2.1 (newest)

Please provide any additional information below.

I found something:
http://stackoverflow.com/questions/1365211/error-in-xcode-project-ld-library-not
-found-for-lcrt1-10-6-o

this should help (tested it, other errors appear):
CFLAGS="$(OTHER_CFLAGS) -mmacosx-version-min=10.5"
LDFLAGS="$(OTHER_LDFLAGS) -mmacosx-version-min=10.5"



Original issue reported on code.google.com by soe...@gmail.com on 6 Mar 2010 at 5:39

@GoogleCodeExporter
Copy link
Author

I've seen this issue as well on a Mac that I upgraded from Leopard to Snow 
Leopard. 

Here's how I fixed it:

$ cd /usr/libexec/gcc/
$ sudo ln -s i686-apple-darwin10 i686-apple-darwin9

I know this is bad but I don't know enough about how gcc works to figure out 
what 
the right thing is :-) And it worked again. 

Can you test if this fixes the issue? If it doesn't you should probably delete 
the 
symlink you created.

Thanks for your help!

Original comment by ga...@google.com on 6 Mar 2010 at 6:08

  • Changed title: ld: library not found for -lcrt1.10.6.o

@GoogleCodeExporter
Copy link
Author

After make the link I have the issue no. 4

Tnx for your Help!

Original comment by soe...@gmail.com on 6 Mar 2010 at 8:35

@GoogleCodeExporter
Copy link
Author

Issue 4 has been merged into this issue.

Original comment by gaborcse...@gmail.com on 8 Mar 2010 at 7:12

@GoogleCodeExporter
Copy link
Author

soeste: Is this issue solved for you? Can you provide more info about what's 
still
going wrong? A compiler error log would be super helpful

Thanks, Gabor

Original comment by gaborcse...@gmail.com on 8 Mar 2010 at 7:15

@GoogleCodeExporter
Copy link
Author

Had the same problem.  Had to perform a hacky workaround; but I actually have
something running in the simulator now.

1. cd
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.0.
sdk/usr/lib

(This is where crt1.10.5.o lives)

ln -s crt1.10.5.o crt1.10.6

2. Edit build-all-deps.sh so that it builds only 1 target.  E.g. the relevant 
lines
in mine look like this:

#PLATFORMS="iPhoneSimulator"
PLATFORMS="iPhoneSimulator iPhoneOS"
#CONFIGS="Release"
CONFIGS="Debug Release"

(This will build iPhoneSimulator Release)

3. Run build-all-deps.sh `pwd`/binaries

It fell over with some permission denied thing, but not before it built the 
files I
needed!

4. Manually copy the files over.

cp -R binaries/Developer/Platforms/iPhoneSimulator.platform
../../mailcore/libetpan/binaries/Developer/Platforms

5. Build in XCode, and success, hopefully.


It's not pretty but it works.  Will try and do a proper fix later, if no one's 
beaten
me to it.

Nathanael

Original comment by beta...@gmail.com on 10 Mar 2010 at 12:44

@GoogleCodeExporter
Copy link
Author

Oh PS, you should be building for Simulator 3.0 | Release.

Original comment by beta...@gmail.com on 10 Mar 2010 at 12:46

@GoogleCodeExporter
Copy link
Author

I am also getting that problem. Waiting for a proper fix.

Original comment by patrick....@gmail.com on 10 Mar 2010 at 1:46

@GoogleCodeExporter
Copy link
Author

Gabor: Could you probably post a full directory listing of *your* /mailcore/ 
folder?

I have a similar issue with "ld: library not found for -lsasl2" and probably 
could figure out what's wrong, if I 
could see what's good :-)

thx/pi

Original comment by pip...@gmail.com on 10 Mar 2010 at 3:37

@GoogleCodeExporter
Copy link
Author

@piprog - Full listing is attached.

I generated this using the following commandline (the grep is to exclude 
mercurial
files):
$ find . | grep -v .hg > mailcore_listing.txt

Gabor

Original comment by gaborcse...@gmail.com on 10 Mar 2010 at 6:41

Attachments:

@GoogleCodeExporter
Copy link
Author

@Gabor: joy finally! I started from scratch and the current checkout worked 
perfectly!

thx/pi

Original comment by pip...@gmail.com on 11 Mar 2010 at 8:45

@GoogleCodeExporter
Copy link
Author

ld: library not found for -lcrypto
collect2: ld returned 1 exit status
Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2
failed with exit code 1

not been able to compile for any platform using multiple grabs and sh files?

i'm on snow leopard.

any ideas?

cheers

Nik

Original comment by nik.bu...@gmail.com on 21 Mar 2010 at 6:01

@GoogleCodeExporter
Copy link
Author

@nik.burns: Your issue is totally independent of this one. The lcrt error 
referenced 
here is a build problem in pull_dependencies, a missing lcrypto is when 
building the 
actual iPhone App. 

Can you make a new bug for your issue?

Before you do that, can you make sure you're on the newest build? I just 
checked in 
something that might fix the problem you're seeing,

Finally, if you do open a new bug, can you include which configuration you're 
trying 
to build (e.g. Debug | iPhone Simulator 3.1.3)?

Thanks, Gabor

Original comment by ga...@google.com on 22 Mar 2010 at 4:42

  • Changed state: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant