forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

link problem, huge number of files

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
Kristof



Joined: 20 May 2005
Posts: 46

PostPosted: Thu Sep 29, 2005 11:32 pm    Post subject: link problem, huge number of files Reply with quote

Hi,

I'm facing a bad problem while linker. The command stops quickly with a simple "make: *** [out] Error 1" and no error message.

My guess is that the number of objects I have is too big (330). (I'm recompiling C64 Vice emulator).

Someone know if there is a limitation of the number of objects that can be linked .... ??

Reducing number of object make the link work (I means, It fail with link error, but do not stop before making something).



Second question : I can create two libs files containing each half of the object. But what are the options of psp-ld to create a .a file ?

Thanks
Back to top
View user's profile Send private message
holger



Joined: 18 Aug 2005
Posts: 204

PostPosted: Fri Sep 30, 2005 12:48 am    Post subject: Reply with quote

static .a-archives are created using "ar cru <libname.a> <objects>".
Back to top
View user's profile Send private message
Kristof



Joined: 20 May 2005
Posts: 46

PostPosted: Fri Sep 30, 2005 1:01 am    Post subject: Reply with quote

Thanks, I'm going to try this ...
Back to top
View user's profile Send private message
Kristof



Joined: 20 May 2005
Posts: 46

PostPosted: Fri Sep 30, 2005 1:26 am    Post subject: Reply with quote

It works fine.

Thanks a lot !!!


Now I have another problem with macro PSP_MODULE_INFO in C++ that do not want to compile.
Back to top
View user's profile Send private message
mrbrown



Joined: 17 Jan 2004
Posts: 1536

PostPosted: Fri Sep 30, 2005 2:16 am    Post subject: Reply with quote

Kristof wrote:
Now I have another problem with macro PSP_MODULE_INFO in C++ that do not want to compile.

You need PSPSDK from SVN, as the PSP_MODULE_INFO C++ thing was fixed shortly after the beta release.
Back to top
View user's profile Send private message
Kristof



Joined: 20 May 2005
Posts: 46

PostPosted: Fri Sep 30, 2005 3:01 am    Post subject: Reply with quote

Thanks mrbrown.

I'm not using beta release. I'm using subversion base from 31 August. I'll try an update to see if things have change whith that macro.
Back to top
View user's profile Send private message
Kristof



Joined: 20 May 2005
Posts: 46

PostPosted: Fri Sep 30, 2005 3:53 am    Post subject: Reply with quote

No way of compiling that line ... :(

I'm got rid of it by recopyng the whole macro in my main. This is not the best method, but it compile. Not sure it will work (actually it fails when launching, but I do not know why).

The outpatch.exe also say me "modulename" not found. I think all is linked.

This kind of stuff are the very bad side of developpement. So much time wasted.
Back to top
View user's profile Send private message
groepaz



Joined: 01 Sep 2005
Posts: 305

PostPosted: Fri Sep 30, 2005 4:00 am    Post subject: Reply with quote

outpatch? err....thats no more needed with the latest pspsdk... check one of the latest examples on how they are build, maybe that solves the problems for you.
_________________
http://www.hitmen-console.org
http://hitmen.c02.at/files/yapspd/
Back to top
View user's profile Send private message Visit poster's website
Kristof



Joined: 20 May 2005
Posts: 46

PostPosted: Fri Sep 30, 2005 4:05 am    Post subject: Reply with quote

In fact, I did not manage to compile samples in pspsdk. The auto generated makefile did not work for samples. So I do not have any valid make makefile for sample, and I took a makefile from another package "pspdev"...

As I'm very weak in makefile, I admit I do not understand everything around it.

I've check the makefiles in pspsdk and they are complex as hell. I'm going to check on the forum if someone already posted a simple single makefile for pspsdk samples.

--

For PSP_MODULE_INFO I'm going to forget C++.
Back to top
View user's profile Send private message
groepaz



Joined: 01 Sep 2005
Posts: 305

PostPosted: Fri Sep 30, 2005 4:24 am    Post subject: Reply with quote

uhm that indicates serious problems with your setup.... if pspsdk is installed correctly, the samples should just compile. i'd fix that first and then try again whatever you are doing.
_________________
http://www.hitmen-console.org
http://hitmen.c02.at/files/yapspd/
Back to top
View user's profile Send private message Visit poster's website
holger



Joined: 18 Aug 2005
Posts: 204

PostPosted: Fri Sep 30, 2005 4:44 am    Post subject: Reply with quote

Try using a Makefile from pspgl/test-*/, these are based on the pspgl/tools/psp-install script, this simplifies them somewhat.

Nevertheless your toolchain seems broken, maybe you're better deleting your toolchain installation and restart toolchain.sh to get a fresh one...
Back to top
View user's profile Send private message
Kristof



Joined: 20 May 2005
Posts: 46

PostPosted: Fri Sep 30, 2005 5:41 am    Post subject: Reply with quote

Quote:
maybe you're better deleting your toolchain installation


I already spend hours installing it, better die than reinstalling the whole thing again :)

Quote:
Try using a Makefile from pspgl/test-*/


I'll try this thanks.



PSP_MODULE_INFO is not compiling in C (different error).
Back to top
View user's profile Send private message
Kristof



Joined: 20 May 2005
Posts: 46

PostPosted: Fri Sep 30, 2005 6:07 am    Post subject: Reply with quote

Quote:
Try using a Makefile from pspgl/test-*/


The PSP_MODULE_INFO of that package compile well. Thanks. :)

Now it produce a pbp but it does not boot... Still need to search...
Back to top
View user's profile Send private message
Kristof



Joined: 20 May 2005
Posts: 46

PostPosted: Fri Sep 30, 2005 6:59 am    Post subject: Reply with quote

I just compiled a sample of pspsdk (cube) using makefile and changing the minimum of things in it ... it generate a nice bootable elf, but that elf is not bootable "impossible launch".

Still need to read this forum again :)
Back to top
View user's profile Send private message
groepaz



Joined: 01 Sep 2005
Posts: 305

PostPosted: Fri Sep 30, 2005 7:21 am    Post subject: Reply with quote

try "make kxploit" :)
_________________
http://www.hitmen-console.org
http://hitmen.c02.at/files/yapspd/
Back to top
View user's profile Send private message Visit poster's website
Kristof



Joined: 20 May 2005
Posts: 46

PostPosted: Fri Sep 30, 2005 7:29 am    Post subject: Reply with quote

I'm already using the kxploit tool to transfert the eboot file to psp.

But thanks for hints. The "make kxploit" does not work, but I like the idea :)
Back to top
View user's profile Send private message
groepaz



Joined: 01 Sep 2005
Posts: 305

PostPosted: Fri Sep 30, 2005 7:38 am    Post subject: Reply with quote

Quote:

But thanks for hints. The "make kxploit" does not work, but I like the idea :)


well it should. you really should fix your setup
_________________
http://www.hitmen-console.org
http://hitmen.c02.at/files/yapspd/
Back to top
View user's profile Send private message Visit poster's website
Kristof



Joined: 20 May 2005
Posts: 46

PostPosted: Fri Sep 30, 2005 4:39 pm    Post subject: Reply with quote

Yes I know, but so close to my goal, I really do not want to reinstall the whole thing again. I'm very ignorant in autoconfig makefile, so when it fail in the middle of installation, it is very embarassing.

I'll try to find what is going wrong with the samples.
Back to top
View user's profile Send private message
holger



Joined: 18 Aug 2005
Posts: 204

PostPosted: Fri Sep 30, 2005 6:33 pm    Post subject: Reply with quote

when you built and installed the toolchain properly, the samples and test programs should compile&run out-of-the-box, without touching anything.
Back to top
View user's profile Send private message
Kristof



Joined: 20 May 2005
Posts: 46

PostPosted: Fri Sep 30, 2005 6:59 pm    Post subject: Reply with quote

You are right.

The packages are always like this. If everything is ok then it is simple, but if there is one error then it is hell.

I'm going to check everything to understand how it works. The best way to solve problems is to understand them.

---

No results. I bet I'll have to make the installation again :)

But I'm understanding more things everyday. I'll soon understand the mystery of building a version.

==> In fact, I need to install the toolchain. I never succeded in completing the script installation, so I took the toolchain of the zip "pspdev".
Back to top
View user's profile Send private message
Kristof



Joined: 20 May 2005
Posts: 46

PostPosted: Fri Sep 30, 2005 10:45 pm    Post subject: Reply with quote

Following you advices, I just start a fresh installation from scratch.

This time the toolchain built well (after 1h30).

I think my other PC (the one were the build failed) have a problem. (cygwin tell me he can not create the /tmp dir, that's surely a problem).

Thanks all.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group