Hi,
Okay, I got the 4.0 toolchain running but it has no ee-gcc. Whne I compile my stuff with (I figured) psp-gcc it chokes on the asm files, like 'illegal operands la $v0,_gp'
I know a few peeps use this toolchain, could one of them tell me what I am doing wrong?
Thx,
0xdf
4.0 Toolchain compiling?
ee-as has code which provides symbolic names for MIPS registers. psp-as doesn't have this code. When accessing registers, you will have to use the register number, so instead of $v0 you'll need to use $2.
If you search for a regdef.h header file (newlib has one) and include it, you can get the symbolic names through the C preprocessor.
If you search for a regdef.h header file (newlib has one) and include it, you can get the symbolic names through the C preprocessor.
mh. i am trying to compile nem's helloworld with the psp-toolchain, and i get the same error. compiling the c files with psp-gcc works fine, but when i get to the startup.s, i get the errors.
following your post i am under the impression that
.include "/usr/local/pspdev/psp/psp/include/machine/regdef.h"
in startup.s should do the trick, but i still can not get "psp-as startup.s" or "psp-gcc -c -xassembler startup.s" to compile the file.
i am new to gcc and friends, so i am a bit lost here.
following your post i am under the impression that
.include "/usr/local/pspdev/psp/psp/include/machine/regdef.h"
in startup.s should do the trick, but i still can not get "psp-as startup.s" or "psp-gcc -c -xassembler startup.s" to compile the file.
i am new to gcc and friends, so i am a bit lost here.
hi, i am new too with gcc and alike,
i am trying to use the round() funtion
so here is my link directive (using gcc to compil):
psp-gcc startup.o mandelbrot.o -nostartfiles -o out -Wl,-Ttext -Wl,8900000 -lm -lc -lgcc
but i get error :
mandelbrot.o: In function `xmain':
mandelbrot.c:(.text+0x1f00): undefined reference to `__extendsfdf2'
/usr/local/pspdev/psp/lib/gcc/psp/4.0.0/../../../../psp/lib/libm.a(s_round.o): In function `round':
../../../../../newlib/libm/common/s_round.c:58: undefined reference to `__adddf3'
/usr/local/pspdev/psp/lib/gcc/psp/4.0.0/libgcc.a(_fixunsdfsi.o): In function `__fixunsdfsi':
../../gcc/libgcc2.c:1492: undefined reference to `__gedf2'
../../gcc/libgcc2.c:1493: undefined reference to `__subdf3'
../../gcc/libgcc2.c:1493: undefined reference to `__fixdfsi'
../../gcc/libgcc2.c:1494: undefined reference to `__fixdfsi'
collect2: ld returned 1 exit status
any idea ?
AloneTrio
i am trying to use the round() funtion
so here is my link directive (using gcc to compil):
psp-gcc startup.o mandelbrot.o -nostartfiles -o out -Wl,-Ttext -Wl,8900000 -lm -lc -lgcc
but i get error :
mandelbrot.o: In function `xmain':
mandelbrot.c:(.text+0x1f00): undefined reference to `__extendsfdf2'
/usr/local/pspdev/psp/lib/gcc/psp/4.0.0/../../../../psp/lib/libm.a(s_round.o): In function `round':
../../../../../newlib/libm/common/s_round.c:58: undefined reference to `__adddf3'
/usr/local/pspdev/psp/lib/gcc/psp/4.0.0/libgcc.a(_fixunsdfsi.o): In function `__fixunsdfsi':
../../gcc/libgcc2.c:1492: undefined reference to `__gedf2'
../../gcc/libgcc2.c:1493: undefined reference to `__subdf3'
../../gcc/libgcc2.c:1493: undefined reference to `__fixdfsi'
../../gcc/libgcc2.c:1494: undefined reference to `__fixdfsi'
collect2: ld returned 1 exit status
any idea ?
AloneTrio
Have you solve this problem?
I also meet problem like yours.
Have you solve this problem?
and how?
Have you solve this problem?
and how?
alonetrio wrote:hi, i am new too with gcc and alike,
i am trying to use the round() funtion
so here is my link directive (using gcc to compil):
psp-gcc startup.o mandelbrot.o -nostartfiles -o out -Wl,-Ttext -Wl,8900000 -lm -lc -lgcc
but i get error :
mandelbrot.o: In function `xmain':
mandelbrot.c:(.text+0x1f00): undefined reference to `__extendsfdf2'
/usr/local/pspdev/psp/lib/gcc/psp/4.0.0/../../../../psp/lib/libm.a(s_round.o): In function `round':
../../../../../newlib/libm/common/s_round.c:58: undefined reference to `__adddf3'
/usr/local/pspdev/psp/lib/gcc/psp/4.0.0/libgcc.a(_fixunsdfsi.o): In function `__fixunsdfsi':
../../gcc/libgcc2.c:1492: undefined reference to `__gedf2'
../../gcc/libgcc2.c:1493: undefined reference to `__subdf3'
../../gcc/libgcc2.c:1493: undefined reference to `__fixdfsi'
../../gcc/libgcc2.c:1494: undefined reference to `__fixdfsi'
collect2: ld returned 1 exit status
any idea ?
AloneTrio