#173954 - JackUzi - Mon May 10, 2010 12:10 am
Hello. I am trying to compile libpogo and glkpogo using devkitarm but aren't having much luck so far. I am very new to DS development so I was hoping someone might me able to tell me what I am doing wrong.
I am developing on Ubuntu 10.4 and have the following environment variables set:
When I run configure, with what may or may not be the correct arguments I get:
The relevant section from config.log appears to be:Configured with:
It seems to make the the compiler arm-eabi-gcc doesn't seem to like a lot of the arguments passed to it (and delegates all the real work to gcc anyway???) If anyone can offer any advice on what to try next it would be greatly appreciated!
Stuart
I am developing on Ubuntu 10.4 and have the following environment variables set:
Code: |
DEVKITARM=/opt/devkitpro/devkitARM DEVKITPRO=/opt/devkitpro |
When I run configure, with what may or may not be the correct arguments I get:
Code: |
~/svn/pogo2/libpogo$ ./configure --enable-platform=NDS --host=arm-eabi --build=arm-eabi --prefix=/opt/devkitpro/devkitARM/
checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes configure: Selected ARM based platform NDS configure: Using ../../libnds as libnds location checking build system type... arm-unknown-eabi checking host system type... arm-unknown-eabi checking for freetype-config... freetype-config checking for arm-eabi-gcc... arm-eabi-gcc checking whether the C compiler works... no configure: error: in `/home/stuart/svn/pogo2/libpogo': configure: error: C compiler cannot create executables See `config.log' for more details. |
The relevant section from config.log appears to be:Configured with:
Code: |
../../gcc-4.4.3/configure --enable-languages=c,c++,objc --with-cpu=arm7tdmi --enable-interwork --enable-multilib --with-gcc --with-gnu-ld --with-gnu-as --disable-dependency-tracking --disable-shared --disable-threads --disable-win32-registry --disable-nls --disable-debug --disable-libmudflap --disable-libssp --disable-libgomp --disable-libstdcxx-pch --target=arm-eabi --with-newlib --prefix=/opt/devkitpro/devkitARM --with-bugurl=http://wiki.devkitpro.org/index.php/Bug_Reports --with-pkgversion='devkitARM release 30'
Thread model: single gcc version 4.4.3 (devkitARM release 30) configure:2898: $? = 0 configure:2887: arm-eabi-gcc -V >&5 arm-eabi-gcc: '-V' option must have argument configure:2898: $? = 1 configure:2887: arm-eabi-gcc -qversion >&5 arm-eabi-gcc: unrecognized option '-qversion' arm-eabi-gcc: no input files configure:2898: $? = 1 configure:2918: checking whether the C compiler works configure:2940: arm-eabi-gcc -mthumb-interwork -specs=ds_arm9.specs conftest.c >&5 /opt/devkitpro/devkitARM/lib/gcc/arm-eabi/4.4.3/../../../../arm-eabi/lib/ds_arm9_crt0.o: In function `CIDLoop': (.init+0x1c0): undefined reference to `__libnds_mpu_setup' /opt/devkitpro/devkitARM/lib/gcc/arm-eabi/4.4.3/../../../../arm-eabi/lib/ds_arm9_crt0.o: In function `CIDLoop': (.init+0x210): undefined reference to `initSystem' /opt/devkitpro/devkitARM/lib/gcc/arm-eabi/4.4.3/../../../../arm-eabi/lib/ds_arm9_crt0.o: In function `CIDLoop': (.init+0x21c): undefined reference to `__libnds_exit' collect2: ld returned 1 exit status configure:2944: $? = 1 configure:2982: result: no configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libpogo" | #define PACKAGE_TARNAME "libpogo" | #define PACKAGE_VERSION "2.0" | #define PACKAGE_STRING "libpogo 2.0" | #define PACKAGE_BUGREPORT "jonas@nightmode.org" | #define PACKAGE_URL "" | #define PACKAGE "libpogo" | #define VERSION "2.0" | /* end confdefs.h. */ | | int | main () | { | | ; | return 0; | } configure:2987: error: in `/home/stuart/svn/pogo2/libpogo': configure:2991: error: C compiler cannot create executables |
It seems to make the the compiler arm-eabi-gcc doesn't seem to like a lot of the arguments passed to it (and delegates all the real work to gcc anyway???) If anyone can offer any advice on what to try next it would be greatly appreciated!
Stuart