| View previous topic :: View next topic |
| Author |
Message |
SpaceForce
Joined: 15 Dec 2008 Posts: 12
|
Posted: Sat Sep 26, 2009 2:23 am Post subject: Libraries autogen error |
|
|
I had just updated the toolchain to the latest from SVN, then compiled it
Everything works well in my previous projects, I successfully recompiled them.
But when I try to recompile some libraries using autogen.sh, such as libTremor, SDL, libogg etc, the autogen.sh evil produced all the same error:
| Code: |
configure: error: in `/opt/SVN/libTremor':
configure: error: C compiler cannot create executables
|
And their error logs are the same:
| Code: |
configure:3115: $? = 0
configure:3104: psp-gcc -v >&5
Using built-in specs.
Target: psp
Configured with: ../configure --prefix=/opt/PSPDEV --target=psp --enable-languages=c,c++ --with-newlib --with-gmp --with-mpfr --enable-cxx-flags=-G0
Thread model: single
gcc version 4.3.2 (GCC)
configure:3115: $? = 0
configure:3104: psp-gcc -V >&5
psp-gcc: '-V' option must have argument
configure:3115: $? = 1
configure:3104: psp-gcc -qversion >&5
psp-gcc: unrecognized option '-qversion'
psp-gcc: no input files
configure:3115: $? = 1
configure:3137: checking for C compiler default output file name
configure:3159: psp-gcc -L/opt/PSPDEV/psp/sdk/lib -lc -lpspuser conftest.c >&5
/cygdrive/c/DOCUME~1/SPACEF~1/LOCALS~1/Temp/ccydd8Da.o: In function `main':
conftest.c:(.text+0x20): undefined reference to `fopen'
conftest.c:(.text+0x48): undefined reference to `fclose'
collect2: ld returned 1 exit status
configure:3163: $? = 1
configure:3200: result:
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define PACKAGE "libvorbisidec"
| #define VERSION "1.2.0"
| /* end confdefs.h. */
| #include <stdio.h>
| int
| main ()
| {
| FILE *f = fopen ("conftest.out", "w");
| return ferror (f) || fclose (f) != 0;
|
| ;
| return 0;
| }
configure:3206: error: in `/opt/SVN/libTremor':
configure:3210: error: C compiler cannot create executables
See `config.log' for more details.
|
Foucus on this
| Code: |
configure:3159: psp-gcc -L/opt/PSPDEV/psp/sdk/lib -lc -lpspuser conftest.c >&5
/cygdrive/c/DOCUME~1/SPACEF~1/LOCALS~1/Temp/ccydd8Da.o: In function `main':
conftest.c:(.text+0x20): undefined reference to `fopen'
conftest.c:(.text+0x48): undefined reference to `fclose'
|
This is quite strange, because most of my successfully recompiled projects are using standard IO, there are no problems when linking, I have checked libc.a, fopen and fclose exist.
I have seen similar problems on forums, but no one fits mine, can anyone help me? thx _________________ NJU SE |
|
| Back to top |
|
 |
SpaceForce
Joined: 15 Dec 2008 Posts: 12
|
Posted: Sat Sep 26, 2009 2:27 am Post subject: |
|
|
PS: I've followed the instructions in README.PSP
| Code: |
LDFLAGS="-L$(psp-config --pspsdk-path)/lib -lc -lpspuser" ./autogen.sh --host psp --prefix=$(psp-config --psp-prefix)
|
I compiled the libs successfully about 5 months ago, the only change is that I reinstalled Cygwin last week. _________________ NJU SE |
|
| Back to top |
|
 |
jimparis
Joined: 10 Jun 2005 Posts: 1179 Location: Boston
|
Posted: Wed Sep 30, 2009 12:49 pm Post subject: |
|
|
Try changing LDFLAGS to:
| Quote: |
LDFLAGS="-L$(psp-config --pspsdk-path)/lib --start-group -lc -lpspuser"
|
|
|
| Back to top |
|
 |
imhotep
Joined: 13 Dec 2005 Posts: 41
|
|
| Back to top |
|
 |
jimparis
Joined: 10 Jun 2005 Posts: 1179 Location: Boston
|
Posted: Tue Oct 20, 2009 5:11 am Post subject: |
|
|
Huh? That's entirely unrelated. |
|
| Back to top |
|
 |
|