Tiny Core Linux

Tiny Core Extensions => TCE Q&A Forum => Topic started by: mainr on July 03, 2009, 10:35:42 PM

Title: Where is "crt1.o"?
Post by: mainr on July 03, 2009, 10:35:42 PM
Hi,
I'm trying to run ".configure" prior to compiling a module, but the configure script dies, claiming "the compiler can't generate executables - check config.log". "config.log" indicates ld has failed because it cannot find crt1.o. This file is normally part of the libc6-dev package (which apparently does not exist for tinycore yet). I HAVE installed the "compiletc" meta-package.

Any suggestions?

Thanks.
Title: Re: Where is "crt1.o"?
Post by: Juanito on July 04, 2009, 12:27:32 AM
/usr/lib/crt1.o is part of the base-devs extension - is this loaded OK by the compiletc meta-package?
Title: Re: Where is "crt1.o"?
Post by: mainr on July 04, 2009, 09:03:48 AM
I guess compiletc has not propertly installed it. I use the appbrowser to check out base-devs.tce. I can see /usr/lib/crt1.o listed, but I checked and the file is not there. I tried to install base-devs.tce, but just immediately got the dialog indicating it was installed.

Is there a way to force overloading / re-installing of a (broken) package?

For that matter how does one uninstall a package (once installed to a PPI)?
(I'm guessing attempting to uninstall a package named "base-devs" might be a bad idea, but it would be usefull for other packages I've installed to "check-out", or no longer have any use for.

If case it helps / impacts:
- I'm running Tinycore 2.0;
- I have installed to a hard drive & setup a PPI.

Thanks.
Title: Re: Where is "crt1.o"?
Post by: Juanito on July 04, 2009, 09:18:33 AM
My own preference is PPR - thus avoiding system rot.

I think if you delete /usr/local/tce.installed/base-devs, you might be able to force a re-load of the base-devs extension - this works in PPR mode anyway...
Title: Re: Where is "crt1.o"?
Post by: mainr on July 04, 2009, 09:57:58 AM
Thanks, Juanito!
I renamed the /usr/local/tce.installed/base-devs, then re-installed, and /usr/lib/crt1.o appeared!
I guess the real question is "Why was /usr/lib/crt1.o not installed in the first place?", but that's a question for people with more time (/talent) than I.
I'm set.
Thanks for the help.
Title: Re: Where is "crt1.o"?
Post by: blazej on July 04, 2009, 10:09:20 AM
hello
did you reboot after the installation an THEN noticed that the crt1.o is missing?
Title: Re: Where is "crt1.o"?
Post by: mainr on July 04, 2009, 05:20:04 PM
I'd rebooted _many_ times before I had things in place to attempt a recompile. I needed "comedi" for digital and analog IO capability. Unfortunately, the cards I need are not part of the base package, so I had to modify the driver and rebuild.
Title: Re: Where is "crt1.o"?
Post by: tinypad on July 05, 2009, 01:42:36 AM
I got the same problem while compiling another app.  After installing base-dev package, everything worked fine.

Or see here: http://anaaman.blogspot.com/2006/01/crt1o-no-such-file-no-such-file-or.html (http://anaaman.blogspot.com/2006/01/crt1o-no-such-file-no-such-file-or.html).

Good luck!