Page 1 of 1

Syntax error at each compile

Posted: Wed Jan 05, 2011 7:03 pm
by Fuyuri
Hello, I recently followed the tutorial here: http://devkitpro.org/wiki/Getting_Started/devkitARM to install devkitARM on my Ubuntu Netbook 10.10 netbook, and followed it to the letter. Once it was set up, I went to test some of the examples, and so opened the directory in terminal, chose hello_world, and typed "make", it doesn't compile, and gives me this:

Code: Select all

fuyuri@fuyuri-1001HA:/opt/devkitpro/examples/nds/hello_world$ make
main.cpp
arm-eabi-g++ -MMD -MP -MF /opt/devkitpro/examples/nds/hello_world/build/main.d -g -Wall -O2 -march=armv5te -mtune=arm946e-s -fomit-frame-pointer -ffast-math -mthumb -mthumb-interwork -I/opt/devkitpro/examples/nds/hello_world/include -I/opt/devkitpro/examples/nds/hello_world/build -I/opt/devkitpro/libnds/include -I/opt/devkitpro/libnds/include -I/opt/devkitpro/examples/nds/hello_world/build -DARM9 -fno-rtti -fno-exceptions -c /opt/devkitpro/examples/nds/hello_world/source/main.cpp -o main.o 
/opt/devkitpro/devkitARM/bin/arm-eabi-g++: 1: Syntax error: "(" unexpected
make[1]: *** [main.o] Error 2
make: *** [build] Error 2
fuyuri@fuyuri-1001HA:/opt/devkitpro/examples/nds/hello_world$ 
I get this error with all the examples I try too, e.g.

Code: Select all

fuyuri@fuyuri-1001HA:/opt/devkitpro/examples/nds/audio$ make
make[1]: Entering directory `/opt/devkitpro/examples/nds/audio/maxmod'
make[2]: Entering directory `/opt/devkitpro/examples/nds/audio/maxmod/audio_modes'
/opt/devkitpro/devkitARM/bin/mmutil: 1: 
                                        @8@@@B�
                                                  B�
                                                    : not found
/opt/devkitpro/devkitARM/bin/mmutil: 1: ELF: not found
/opt/devkitpro/devkitARM/bin/mmutil: 1: ����?H��1�I��^H��H���PTI��AH��0AH�ǰ+@�����H�H��+H��t��H�Ð������������UH��SH��=�+u_�H�kH�: not found
/opt/devkitpro/devkitARM/bin/mmutil: 2: �+H-8�kH��H�X�H9�s%�H�BH���+��8�kH���+H9�r��P6GH��t: not found
/opt/devkitpro/devkitARM/bin/mmutil: 3: Syntax error: ")" unexpected
make[3]: *** [soundbank.bin] Error 2
make[2]: *** [build] Error 2
make[2]: Leaving directory `/opt/devkitpro/examples/nds/audio/maxmod/audio_modes'
make[1]: *** [all] Error 1
make[1]: Leaving directory `/opt/devkitpro/examples/nds/audio/maxmod'
make: *** [all] Error 1
fuyuri@fuyuri-1001HA:/opt/devkitpro/examples/nds/audio$ 
Now chances are I'm doing it wrong, I haven't done anything like this since my PSP died, so could somebody please shed some light on my problem? Thanks :)

Re: Syntax error at each compile

Posted: Wed Jan 05, 2011 11:21 pm
by zeromus
my best guess: your hard drive or filesystem is trashed. cease writing to it immediately and make backups.

Re: Syntax error at each compile

Posted: Thu Jan 06, 2011 5:39 am
by WinterMute
Actually, he's trying to run the 64bit binaries on a 32bit system. This one drove me completely nuts a while ago on IRC until I randomly asked the right question.

Re: Syntax error at each compile

Posted: Thu Jan 06, 2011 9:03 am
by Fuyuri
Odd.... especially when the file name was "devkitARM_r32-x86_64-linux.tar.bz2". Ah well, I have my desktop up and running again, I'll see how it goes there, thanks :)

Re: Syntax error at each compile

Posted: Thu Jan 06, 2011 4:56 pm
by Izhido
Odd? What you just said is *exactly* what WinterMute meant... you downloaded the x86-64 binaries in what I presume is a 32-bit system.

Anyway... try again and let us know how that went.

Re: Syntax error at each compile

Posted: Thu Jan 06, 2011 8:45 pm
by Fuyuri
x86 AFAIK is 32 bit. I could be wrong though.

Re: Syntax error at each compile

Posted: Mon Jan 10, 2011 9:29 pm
by Izhido
x86 is 32-bit. x86-64, in the other hand...

http://en.wikipedia.org/wiki/X86-64

Hope that helps.