Syntax error at each compile

support for the ARM toolchain
Post Reply
Fuyuri
Posts: 3
Joined: Wed Jan 05, 2011 6:55 pm

Syntax error at each compile

Post by Fuyuri » Wed Jan 05, 2011 7:03 pm

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 :)

zeromus
Posts: 212
Joined: Wed Mar 31, 2010 6:05 pm

Re: Syntax error at each compile

Post by zeromus » Wed Jan 05, 2011 11:21 pm

my best guess: your hard drive or filesystem is trashed. cease writing to it immediately and make backups.

WinterMute
Site Admin
Posts: 1986
Joined: Tue Aug 09, 2005 3:21 am
Location: UK
Contact:

Re: Syntax error at each compile

Post by WinterMute » Thu Jan 06, 2011 5:39 am

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.
Help keep devkitPro toolchains free, Donate today

Personal Blog

Fuyuri
Posts: 3
Joined: Wed Jan 05, 2011 6:55 pm

Re: Syntax error at each compile

Post by Fuyuri » Thu Jan 06, 2011 9:03 am

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 :)

User avatar
Izhido
Posts: 107
Joined: Fri Oct 19, 2007 10:57 pm
Location: Costa Rica
Contact:

Re: Syntax error at each compile

Post by Izhido » Thu Jan 06, 2011 4:56 pm

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.

Fuyuri
Posts: 3
Joined: Wed Jan 05, 2011 6:55 pm

Re: Syntax error at each compile

Post by Fuyuri » Thu Jan 06, 2011 8:45 pm

x86 AFAIK is 32 bit. I could be wrong though.

User avatar
Izhido
Posts: 107
Joined: Fri Oct 19, 2007 10:57 pm
Location: Costa Rica
Contact:

Re: Syntax error at each compile

Post by Izhido » Mon Jan 10, 2011 9:29 pm

x86 is 32-bit. x86-64, in the other hand...

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

Hope that helps.

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 5 guests