| View previous topic :: View next topic |
| Author |
Message |
jsharrad
Joined: 20 Oct 2005 Posts: 102
|
Posted: Mon Jun 04, 2007 5:32 pm Post subject: Odd errors since upgrading toolchain |
|
|
I've been getting alot of strange errors lately after updating my toolchain.
conflicting types errors in alot of stuff eg. pspgl:
| Code: | $ make
psp-gcc -std=gnu99 -g -Wall -Wmissing-prototypes -Os -G0 -fsingle-precision-constant -I. -I /usr/local/pspdev/psp/include -I /usr/local/pspdev/psp/sdk/include -funit-at-a-time -MD -MF .deps/eglBindTexImage.d -c eglBindTexImage.c
In file included from /usr/local/pspdev/psp/sdk/include/psptypes.h:22,
from pspgl_internal.h:293,
from eglBindTexImage.c:1:
/usr/local/pspdev/lib/gcc/psp/4.1.0/../../../../psp/include/stdint.h:84: error: conflicting types for ‘uint32_t’
pspgl_misc.h:6: error: previous declaration of ‘uint32_t’ was here
make: *** [eglBindTexImage.o] Error 1 |
undefined references while trying to compile SDL libs:
| Code: | psp-gcc -g -O2 -I/usr/local/pspdev/psp/include/SDL -Dmain=SDL_main -DUSE_RWOPS -DCMD_MUSIC -DWAV_MUSIC -DMOD_MUSIC -I./mikmod -DMID_MUSIC -DUSE_TIMIDITY_MIDI -I./timidity -DOGG_MUSIC -DUSE_TREMOR -G0 -I/usr/local/pspdev/psp/sdk/include -o playwave playwave.o -L/usr/local/pspdev/psp/sdk/lib ./.libs/libSDL_mixer.a /usr/local/pspdev/psp/lib/libvorbisidec.a -L/usr/local/pspdev/psp/lib -L/home/justin/psptoolchain/build/gcc-4.1.0/build-psp/psp/libstdc++-v3/src -L/home/justin/psptoolchain/build/gcc-4.1.0/build-psp/psp/libstdc++-v3/src/.libs -L/home/justin/psptoolchain/build/gcc-4.1.0/build-psp/./gcc -L/usr/local/pspdev/psp/bin -L/usr/local/pspdev/lib/gcc/psp/4.1.0 -L/usr/local/pspdev/lib/gcc/psp/4.1.0/../../../../psp/lib -lSDLmain /usr/local/pspdev/psp/lib/libSDL.a /usr/local/pspdev/psp/lib/libstdc++.a -lgcc -lm -lpspdebug -lpspgu -lpspctrl -lpspge -lpspdisplay -lpsphprm -lpspsdk -lpsprtc -lpspaudio -lc -lpspuser -lpsputility -lpspkernel
/usr/local/pspdev/psp/lib/libc.a(setsockopt.o): In function `setsockopt':
../../../../../../newlib/libc/sys/psp/socket.c:293: undefined reference to `sceNetInetSetsockopt'
../../../../../../newlib/libc/sys/psp/socket.c:296: undefined reference to `sceNetInetGetErrno'
/usr/local/pspdev/psp/lib/libc.a(setsockopt.o): In function `getsockopt':
../../../../../../newlib/libc/sys/psp/socket.c:167: undefined reference to `sceNetInetGetsockopt'
../../../../../../newlib/libc/sys/psp/socket.c:170: undefined reference to `sceNetInetGetErrno'
collect2: ld returned 1 exit status
make[1]: *** [playwave] Error 1
make[1]: Leaving directory `/home/justin/backup/justin/stuff/psp/SDL_mixer'
make: *** [all-recursive] Error 1 |
I have tried it on both a gentoo and an ubuntu system with the same results. If I comment out one of the conflicting types I get pages of errors. Anyone know what's going on? |
|
| Back to top |
|
 |
futaris
Joined: 28 Dec 2005 Posts: 45
|
Posted: Mon Jun 04, 2007 6:37 pm Post subject: |
|
|
| Yep I get these errors too. NB, the int32 is ok to replace, but I don't know about the SDL ones. Anyone? |
|
| Back to top |
|
 |
futaris
Joined: 28 Dec 2005 Posts: 45
|
|
| Back to top |
|
 |
ooPo Site Admin
Joined: 17 Jan 2004 Posts: 2032 Location: Canada
|
Posted: Tue Jun 05, 2007 6:51 am Post subject: Re: Odd errors since upgrading toolchain |
|
|
| Code: | $ make
psp-gcc -std=gnu99 -g -Wall -Wmissing-prototypes -Os -G0 -fsingle-precision-constant -I. -I /usr/local/pspdev/psp/include -I /usr/local/pspdev/psp/sdk/include -funit-at-a-time -MD -MF .deps/eglBindTexImage.d -c eglBindTexImage.c
In file included from /usr/local/pspdev/psp/sdk/include/psptypes.h:22,
from pspgl_internal.h:293,
from eglBindTexImage.c:1:
/usr/local/pspdev/lib/gcc/psp/4.1.0/../../../../psp/include/stdint.h:84: error: conflicting types for ‘uint32_t’
pspgl_misc.h:6: error: previous declaration of ‘uint32_t’ was here
make: *** [eglBindTexImage.o] Error 1 |
I made a quick fix, try grabbing it again from the repository and giving it a try.
| Code: | psp-gcc -g -O2 -I/usr/local/pspdev/psp/include/SDL -Dmain=SDL_main -DUSE_RWOPS -DCMD_MUSIC -DWAV_MUSIC -DMOD_MUSIC -I./mikmod -DMID_MUSIC -DUSE_TIMIDITY_MIDI -I./timidity -DOGG_MUSIC -DUSE_TREMOR -G0 -I/usr/local/pspdev/psp/sdk/include -o playwave playwave.o -L/usr/local/pspdev/psp/sdk/lib ./.libs/libSDL_mixer.a /usr/local/pspdev/psp/lib/libvorbisidec.a -L/usr/local/pspdev/psp/lib -L/home/justin/psptoolchain/build/gcc-4.1.0/build-psp/psp/libstdc++-v3/src -L/home/justin/psptoolchain/build/gcc-4.1.0/build-psp/psp/libstdc++-v3/src/.libs -L/home/justin/psptoolchain/build/gcc-4.1.0/build-psp/./gcc -L/usr/local/pspdev/psp/bin -L/usr/local/pspdev/lib/gcc/psp/4.1.0 -L/usr/local/pspdev/lib/gcc/psp/4.1.0/../../../../psp/lib -lSDLmain /usr/local/pspdev/psp/lib/libSDL.a /usr/local/pspdev/psp/lib/libstdc++.a -lgcc -lm -lpspdebug -lpspgu -lpspctrl -lpspge -lpspdisplay -lpsphprm -lpspsdk -lpsprtc -lpspaudio -lc -lpspuser -lpsputility -lpspkernel
/usr/local/pspdev/psp/lib/libc.a(setsockopt.o): In function `setsockopt':
../../../../../../newlib/libc/sys/psp/socket.c:293: undefined reference to `sceNetInetSetsockopt'
../../../../../../newlib/libc/sys/psp/socket.c:296: undefined reference to `sceNetInetGetErrno'
/usr/local/pspdev/psp/lib/libc.a(setsockopt.o): In function `getsockopt':
../../../../../../newlib/libc/sys/psp/socket.c:167: undefined reference to `sceNetInetGetsockopt'
../../../../../../newlib/libc/sys/psp/socket.c:170: undefined reference to `sceNetInetGetErrno'
collect2: ld returned 1 exit status
make[1]: *** [playwave] Error 1
make[1]: Leaving directory `/home/justin/backup/justin/stuff/psp/SDL_mixer'
make: *** [all-recursive] Error 1 |
A fix for this was posted in that other thread and has been added to the repository. |
|
| Back to top |
|
 |
|