August 01, 2008
For some reason I am getting a linker error(s) as this:
D$ make
psp-gcc -I. -I/usr/local/pspdev/psp/sdk/include -O2 -G0 -Wall -D_PSP_FW_VERSION=300  -L. -L. -L/usr/local/pspdev/psp/sdk/lib module.o main.o callbacks.o vram.o -lgcc -lgphobos -lpspsdkD -lpspgum -lpspgu -lpsprtc -lm -lpspdebug -lpspdisplay -lpspge -lpspctrl -lpspsdk -lc -lpspnet -lpspnet_inet -lpspnet_apctl -lpspnet_resolver -lpsputility -lpspuser -lpspkernel -o GuTutorial.elf
/usr/local/pspdev/lib/gcc/psp/4.1.0/../../../../psp/lib/libgphobos.a(stdio.o): In function `_D3std5stdio8writeflnFYv':
../../../libphobos/std/stdio.d:240: relocation truncated to fit: R_MIPS_GPREL16 against `_d_gnu_cbridge_stdout'
/usr/local/pspdev/lib/gcc/psp/4.1.0/../../../../psp/lib/libgphobos.a(stdio.o): In function `_D3std5stdio6writefFYv':
../../../libphobos/std/stdio.d:230: relocation truncated to fit: R_MIPS_GPREL16 against `_d_gnu_cbridge_stdout'
/usr/local/pspdev/lib/gcc/psp/4.1.0/../../../../psp/lib/libgphobos.a(stdio.o): In function `_D3std5stdio6readlnFKAaZk':
../../../libphobos/std/stdio.d:468: relocation truncated to fit: R_MIPS_GPREL16 against `_d_gnu_cbridge_stdin'
/usr/local/pspdev/lib/gcc/psp/4.1.0/../../../../psp/lib/libgphobos.a(cbridge_stdio.o): In function `_d_gnu_cbridge_init_stdio':
../../../libphobos/gcc/cbridge_stdio.c:29: relocation truncated to fit: R_MIPS_GPREL16 against `_d_gnu_cbridge_stderr'
../../../libphobos/gcc/cbridge_stdio.c:27: relocation truncated to fit: R_MIPS_GPREL16 against `_d_gnu_cbridge_stdin'
../../../libphobos/gcc/cbridge_stdio.c:30: relocation truncated to fit: R_MIPS_GPREL16 against `_d_gnu_cbridge_stdout'
/usr/local/pspdev/lib/gcc/psp/4.1.0/../../../../psp/lib/libgphobos.a(dgccmain2.o): In function `_d_run_main':
../../../libphobos/internal/dgccmain2.d:94: relocation truncated to fit: R_MIPS_GPREL16 against `_d_gnu_cbridge_stderr'
../../../libphobos/internal/dgccmain2.d:95: relocation truncated to fit: R_MIPS_GPREL16 against `_d_gnu_cbridge_stderr'
collect2: ld returned 1 exit status
make: *** [GuTutorial.elf] Error 1
freeksh0w86@ubuntu-desktop:~/Projects/PspGuSpeedTestD$ make
psp-gcc -I. -I/usr/local/pspdev/psp/sdk/include -O2 -G0 -Wall -D_PSP_FW_VERSION=300  -L. -L. -L/usr/local/pspdev/psp/sdk/lib module.o main.o callbacks.o vram.o -lc -lgphobos -lpspsdkD -lpspgum -lpspgu -lpsprtc -lm -lpspdebug -lpspdisplay -lpspge -lpspctrl -lpspsdk -lc -lpspnet -lpspnet_inet -lpspnet_apctl -lpspnet_resolver -lpsputility -lpspuser -lpspkernel -o GuTutorial.elf
/usr/local/pspdev/lib/gcc/psp/4.1.0/../../../../psp/lib/libgphobos.a(stdio.o): In function `_D3std5stdio8writeflnFYv':
../../../libphobos/std/stdio.d:240: relocation truncated to fit: R_MIPS_GPREL16 against `_d_gnu_cbridge_stdout'
/usr/local/pspdev/lib/gcc/psp/4.1.0/../../../../psp/lib/libgphobos.a(stdio.o): In function `_D3std5stdio6writefFYv':
../../../libphobos/std/stdio.d:230: relocation truncated to fit: R_MIPS_GPREL16 against `_d_gnu_cbridge_stdout'
/usr/local/pspdev/lib/gcc/psp/4.1.0/../../../../psp/lib/libgphobos.a(stdio.o): In function `_D3std5stdio6readlnFKAaZk':
../../../libphobos/std/stdio.d:468: relocation truncated to fit: R_MIPS_GPREL16 against `_d_gnu_cbridge_stdin'
/usr/local/pspdev/lib/gcc/psp/4.1.0/../../../../psp/lib/libgphobos.a(cbridge_stdio.o): In function `_d_gnu_cbridge_init_stdio':
../../../libphobos/gcc/cbridge_stdio.c:29: relocation truncated to fit: R_MIPS_GPREL16 against `_d_gnu_cbridge_stderr'
../../../libphobos/gcc/cbridge_stdio.c:27: relocation truncated to fit: R_MIPS_GPREL16 against `_d_gnu_cbridge_stdin'
../../../libphobos/gcc/cbridge_stdio.c:30: relocation truncated to fit: R_MIPS_GPREL16 against `_d_gnu_cbridge_stdout'
/usr/local/pspdev/lib/gcc/psp/4.1.0/../../../../psp/lib/libgphobos.a(dgccmain2.o): In function `_d_run_main':
../../../libphobos/internal/dgccmain2.d:94: relocation truncated to fit: R_MIPS_GPREL16 against `_d_gnu_cbridge_stderr'
../../../libphobos/internal/dgccmain2.d:95: relocation truncated to fit: R_MIPS_GPREL16 against `_d_gnu_cbridge_stderr'
collect2: ld returned 1 exit status
make: *** [GuTutorial.elf] Error 1

But I can't find anything in my code that tries to use std.stdio; in fact, neither std.c.stdio or std.stdio is imported in any of my modules. I don't know what to do about this. Please help. I'm trying to compile a graphics speed test converted from C to D to demonstrate to some developers how fast D can really be.