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 

SDK error with Gentoo Linux

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



Joined: 20 Jul 2005
Posts: 8

PostPosted: Sun Aug 14, 2005 8:16 am    Post subject: SDK error with Gentoo Linux Reply with quote

I have setup the sdk before on Gentoo and with Cygwin, but when I tried to help a friend get his SDK going today we got this error. We are using the latest toolchain, and all needed packages are emerged I believe

Code:
Making clean in audio
gmake[2]: Entering directory `/tmp/pspdev/pspsdk/sdk/audio'
test -z "libpspaudio.a libpspaudiolib.a" || rm -f libpspaudio.a libpspaudiolib.a
rm -f *.o core *.core
gmake[2]: Leaving directory `/tmp/pspdev/pspsdk/sdk/audio'
Making clean in .
gmake[2]: Entering directory `/tmp/pspdev/pspsdk/sdk'
gmake[2]: Nothing to be done for `clean-am'.
gmake[2]: Leaving directory `/tmp/pspdev/pspsdk/sdk'
gmake[1]: Leaving directory `/tmp/pspdev/pspsdk/sdk'
Making clean in .
gmake[1]: Entering directory `/tmp/pspdev/pspsdk'
test -z "" || rm -f
gmake[1]: Leaving directory `/tmp/pspdev/pspsdk'
cd . \
  && CONFIG_FILES= CONFIG_HEADERS=config.h \
     /bin/sh ./config.status
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing default-1 commands
gmake  all-recursive
gmake[1]: Entering directory `/tmp/pspdev/pspsdk'
Making all in sdk
gmake[2]: Entering directory `/tmp/pspdev/pspsdk/sdk'
Making all in audio
gmake[3]: Entering directory `/tmp/pspdev/pspsdk/sdk/audio'
psp-gcc  -g -O2 -G0 -Wall -c `test -f audio.S || echo './'`audio.S
audio.S:3:21: error: pspstub.s: No such file or directory
gmake[3]: *** [audio.o] Error 1
gmake[3]: Leaving directory `/tmp/pspdev/pspsdk/sdk/audio'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/tmp/pspdev/pspsdk/sdk'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/tmp/pspdev/pspsdk'
gmake: *** [all] Error 2
ERROR BUILDING PSPSDK


I would very much apperciate any help I can get on this. :)

thanks
dbase
Back to top
View user's profile Send private message
dbase



Joined: 20 Jul 2005
Posts: 8

PostPosted: Mon Aug 15, 2005 4:41 am    Post subject: Reply with quote

Comon I need a fellow Tuxor to help please :)
Back to top
View user's profile Send private message
dbase



Joined: 20 Jul 2005
Posts: 8

PostPosted: Tue Aug 16, 2005 9:42 am    Post subject: Reply with quote

Hmm.. I thought Linux people helped each other out :(
Back to top
View user's profile Send private message
ooPo
Site Admin


Joined: 17 Jan 2004
Posts: 2032
Location: Canada

PostPosted: Tue Aug 16, 2005 2:06 pm    Post subject: Reply with quote

It seems that nobody knows the answer to your specific problem. Perhaps you're the first to run into it.

Let us know how you fix it so other folk can benefit from your experience.

By the way, 'linux people' are generally known as wanting the ability to fix it themselves, not specifically for helping each other out. That's the whole idea behind open source - you can do it yourself.
Back to top
View user's profile Send private message Visit poster's website
rinco



Joined: 21 Jan 2005
Posts: 255
Location: Canberra, Australia

PostPosted: Tue Aug 16, 2005 7:58 pm    Post subject: Reply with quote

your error:
audio.S:3:21: error: pspstub.s: No such file or directory

this indicates you do not have pspstub.s

my investigation:
Quote:

matthewh$ find . -name pspstub.s
./pspsdk/sdk/base/pspstub.s

matthewh$ svn log pspsdk/sdk/base/pspstub.s
------------------------------------------------------------------------
r668 | tyranid | 2005-07-16 23:36:18 +1000 (Sat, 16 Jul 2005) | 2 lines

Modified stubs to take a more generic named .s file. Also made pspstub.s install into the include dir.

------------------------------------------------------------------------


the svn repository is up to revision 867... so I'm guessing you haven't updated in a while.
Back to top
View user's profile Send private message
abu



Joined: 20 Aug 2005
Posts: 3

PostPosted: Sat Aug 20, 2005 6:08 am    Post subject: Reply with quote

I had this same problem on Gentoo Linux. For some reason the assembler ignores CCASFLAGS and uses CFLAGS instead. The include search path is set in CCASFLAGS, so the assembler doesn't get it.

This fix worked for me:

Code:

--- Makefile.orig       2005-08-19 23:08:46.000000000 +0300
+++ Makefile    2005-08-19 23:08:53.000000000 +0300
@@ -90,7 +90,7 @@
 AR = psp-ar
 
 INCLUDES = -I$(top_srcdir)/sdk/base -I$(top_srcdir)/sdk/user
-CFLAGS = -g -O2 -G0 -Wall
+CFLAGS = -g -O2 -G0 -Wall $(INCLUDES)
 CCASFLAGS = $(CFLAGS) $(INCLUDES)
 


You'll have to do this modification for several Makefiles.
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