error building from toolchain

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

Moderators: cheriff, TyRaNiD

Post Reply
x2cube
Posts: 7
Joined: Tue Oct 11, 2005 5:10 pm

error building from toolchain

Post by x2cube »

Making all in sdk
if psp-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../sdk/base -I../../sdk/kernel -I../../sdk/user -I../../sdk/net -I../../sdk/utility -g -O2 -G0 -Wall -MT query_mod.o -MD -MP -MF ".deps/query_mod.Tpo" -c -o query_mod.o query_mod.c; \
then mv -f ".deps/query_mod.Tpo" ".deps/query_mod.Po"; else rm -f ".deps/query_mod.Tpo"; exit 1; fi
if psp-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../sdk/base -I../../sdk/kernel -I../../sdk/user -I../../sdk/net -I../../sdk/utility -g -O2 -G0 -Wall -MT fixup.o -MD -MP -MF ".deps/fixup.Tpo" -c -o fixup.o fixup.c; \
then mv -f ".deps/fixup.Tpo" ".deps/fixup.Po"; else rm -f ".deps/fixup.Tpo"; exit 1; fi
if psp-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../sdk/base -I../../sdk/kernel -I../../sdk/user -I../../sdk/net -I../../sdk/utility -g -O2 -G0 -Wall -MT inethelper.o -MD -MP -MF ".deps/inethelper.Tpo" -c -o inethelper.o inethelper.c; \
then mv -f ".deps/inethelper.Tpo" ".deps/inethelper.Po"; else rm -f ".deps/inethelper.Tpo"; exit 1; fi
inethelper.c:16:24: error: pspNetInet.h: No such file or directory
inethelper.c:17:28: error: pspNetResolver.h: No such file or directory
inethelper.c:18:25: error: pspNetApctl.h: No such file or directory
inethelper.c: In function 'initInet':
inethelper.c:97: warning: implicit declaration of function 'sceNetInetInit'
inethelper.c:101: warning: implicit declaration of function 'sceNetResolverInit'
inethelper.c:105: warning: implicit declaration of function 'sceNetApctlInit'
inethelper.c: In function 'termInet':
inethelper.c:119: warning: implicit declaration of function 'sceNetApctlTerm'
inethelper.c:120: warning: implicit declaration of function 'sceNetResolverTerm'
inethelper.c:121: warning: implicit declaration of function 'sceNetInetTerm'
make[3]: *** [inethelper.o] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
ERROR BUILDING PSPSDK
:( help
mrbrown
Site Admin
Posts: 1537
Joined: Sat Jan 17, 2004 11:24 am

Post by mrbrown »

Fixed in revision 1461.
x2cube
Posts: 7
Joined: Tue Oct 11, 2005 5:10 pm

Post by x2cube »

mrbrown wrote:Fixed in revision 1461.
thanks that works
Elxx
Posts: 16
Joined: Wed Dec 07, 2005 4:48 pm
Contact:

Post by Elxx »

Sorry to resurrect this topic, but I'm getting a similar error. Downloaded the latest version of the toolchain (psptoolchain-20051202.tgz).
make[3]: *** [inethelper.o] Error 1
make[3]: Leaving directory `/tmp/pspdev/pspsdk/src/sdk`
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/pspdev/pspsdk/src`
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/pspdev/pspsdk`
make: *** [all] Error 2
ERROR BUILDING PSPSDK
mrbrown
Site Admin
Posts: 1537
Joined: Sat Jan 17, 2004 11:24 am

Post by mrbrown »

Fixed in 1541.
Elxx
Posts: 16
Joined: Wed Dec 07, 2005 4:48 pm
Contact:

Post by Elxx »

Worked like a charm. Thank you very much for such a quick fix!
NyNex
Posts: 13
Joined: Sun Jan 08, 2006 7:16 am

Post by NyNex »

Hi!

I get the same error with psptoolchain rev 1666:

In file included from inethelper.c:18:
../../src/net/pspnet_resolver.h:62: warning: 'struct in_addr' declared inside pa
rameter list
../../src/net/pspnet_resolver.h:62: warning: its scope is only this definition o
r declaration, which is probably not what you want
../../src/net/pspnet_resolver.h:76: warning: 'struct in_addr' declared inside pa
rameter list
make[3]: *** [inethelper.o] Error 1
make[3]: Leaving directory `/tmp/pspdev/pspsdk/src/sdk'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/pspdev/pspsdk/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/pspdev/pspsdk'
make: *** [all] Error 2
ERROR BUILDING PSPSDK


I have followed the steps on

http://wiki.pspdev.org/psp:programming_faq

I have reinstalled, I have used -p parameter...Any idea?
amer
Posts: 3
Joined: Sun Jan 01, 2006 8:42 pm

Post by amer »

I use psptoolchain-20051202.tgz, I also encounter the same problems!, How could i install it?

make[3]: *** [inethelper.o] Error 1
make[3]: Leaving directory `/tmp/pspdev/pspsdk/src/sdk`
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/pspdev/pspsdk/src`
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/pspdev/pspsdk`
make: *** [all] Error 2
ERROR BUILDING PSPSDK

Thanks!
jimparis
Posts: 1145
Joined: Fri Jun 10, 2005 4:21 am
Location: Boston

Post by jimparis »

amer wrote:I use psptoolchain-20051202.tgz
That is old. The problem is that you end up using the newlib/gcc/binutils patches from 20051202 but the most recent pspsdk from svn, and the two aren't compatible. Use the most recent toolchain:

Code: Select all

svn checkout svn://svn.pspdev.org/psp/trunk/psptoolchain
cd psptoolchain
./toolchain.sh
Oopo, maybe it would make more sense to include the current pspsdk in that tgz? pspsdk and newlib are somewhat interdependent these days.
amer
Posts: 3
Joined: Sun Jan 01, 2006 8:42 pm

Post by amer »

Hi, jimparis:

Thanks very much, I understand!
ooPo
Site Admin
Posts: 2023
Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:

Post by ooPo »

The readme in that package contains instructions on how to grab the absolute latest patches and other fun stuff directly from the svn repository. This should be sufficient for most usage.

Including the pspsdk in the toolchain package wouldn't make much sense as it gets updated very very frequently. Perhaps a more useful idea would be to limit what revision the script checks out of svn when it is building to a last known good, buildable version.

Although, there is some merit in having users report errors here as they see them...
NyNex
Posts: 13
Joined: Sun Jan 08, 2006 7:16 am

Post by NyNex »

It works fine now!

Thank you jimparis. After update:
./toolchain.sh -n
./toolchain.sh -p
and without problem.

Sorry ooPo, but i didn't find the solution and i had to ask. I thought i had last psptoolchain revision. My fault.
ooPo
Site Admin
Posts: 2023
Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:

Post by ooPo »

Its ok. Now people can find the answer when they search.

Also, I should have updated the copy on my site a while ago. *shrug*
Post Reply