SDK error with Gentoo Linux

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

Moderators: cheriff, TyRaNiD

Post Reply
dbase
Posts: 8
Joined: Wed Jul 20, 2005 11:08 am

SDK error with Gentoo Linux

Post by dbase »

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: Select all

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
dbase
Posts: 8
Joined: Wed Jul 20, 2005 11:08 am

Post by dbase »

Comon I need a fellow Tuxor to help please :)
dbase
Posts: 8
Joined: Wed Jul 20, 2005 11:08 am

Post by dbase »

Hmm.. I thought Linux people helped each other out :(
ooPo
Site Admin
Posts: 2023
Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:

Post by ooPo »

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.
rinco
Posts: 255
Joined: Fri Jan 21, 2005 2:12 pm
Location: Canberra, Australia

Post by rinco »

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

this indicates you do not have pspstub.s

my investigation:
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.
abu
Posts: 3
Joined: Sat Aug 20, 2005 5:53 am

Post by abu »

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: Select all

--- 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.
Post Reply