crt0.o?

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
impostor
Posts: 8
Joined: Wed Mar 28, 2007 8:35 am

crt0.o?

Post by impostor »

Hey guys, I've been trying to compile the gcc 4.1.0, with the psp toolchain. "Have been trying" - you read well. Been trying because after +/- 20min of compiling the script gives me an error and asks me to check the file config.log. This is the part of the file i found being more relevant:

Code: Select all

configure:2310: /home/impostor/toolchain/gcc-4.1.0/build-psp/./gcc/xgcc -B/home/impostor/toolchain/gcc-4.1.0/build-psp/./gcc/ -B/psp/bin/ -B/psp/lib/ -isystem /psp/include -isystem /psp/sys-include -O2 -g -O2    conftest.c  >&5
/usr/local/pspdev/psp/bin/ld: crt0.o: No such file: No such file or directory
collect2: ld returned 1 exit status
configure:2313: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME "libssp"
| #define PACKAGE_TARNAME "libssp"
| #define PACKAGE_VERSION "1.0"
| #define PACKAGE_STRING "libssp 1.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "libssp"
| #define VERSION "1.0"
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:2352: error: C compiler cannot create executables
Can someone tell me what this file "crt0.o" is for, and where I have to put it?

Note: I'm using a linux Fedora Core 5
chrismulhearn
Posts: 80
Joined: Wed Feb 22, 2006 4:43 am

Post by chrismulhearn »

"crt" stands for "c runtime". Its a place where architecture-specific code is supposed to go to get everything in a sane state I guess. It contains the very first bit of code that is run when your program starts up.

So from what I understand here from "trying to compile gcc 4.1.0 with the PSP toolchain", you are attempting to build a gcc that will on the PSP? The PSP toolchain is a cross-compiler, meaning that it runs on your PC but it targets the PSP.

What is your actual intention?
impostor
Posts: 8
Joined: Wed Mar 28, 2007 8:35 am

Post by impostor »

I'm trying to install the PSP toolchain in order to start PSP programming. I'm following this (http://wiki.ps2dev.org/psp:programming_faq) FAQ.
jblaze2201
Posts: 3
Joined: Thu Apr 05, 2007 12:36 pm

Post by jblaze2201 »

impostor
Posts: 8
Joined: Wed Mar 28, 2007 8:35 am

Post by impostor »

isn't there any such package but for use in linux Fedora Core 5?
Post Reply