Definitive way to set up DCdev in Linux?

If you have any questions on programming, this is the place to ask them, whether you're a newbie or an experienced programmer. Discussion on programming in general is also welcome. We will help you with programming homework, but we will not do your work for you! Any porting requests must be made in Developmental Ideas.
dospro
Insane DCEmu
Insane DCEmu
Posts: 147
https://www.artistsworkshop.eu/meble-kuchenne-na-wymiar-warszawa-gdzie-zamowic/
Joined: Thu Dec 30, 2004 7:12 pm
Has thanked: 0
Been thanked: 0
Contact:

Post by dospro »

Hi again.

Well, first, i needed to reinstall my linux os so i lost my dc compilers.
I tried again the full process and everything worked fine until i got to compile KOS.
Everything went smoothly until:

Code: Select all

make -C  arm
make[5]: Entering directory `/home/dospro/DC/kos/kernel/arch/dreamcast/sound/arm'
/home/dospro/DC/arm/arm-elf/bin/arm-elf-as -mcpu=arm7 crt0.s -o crt0.o
Assembler messages:
Error: Invalid processor variant -mcpu=arm7
make[5]: *** [crt0.o] Error 1
make[5]: Leaving directory `/home/dospro/DC/kos/kernel/arch/dreamcast/sound/arm'
make[4]: *** [_dir_arm] Error 2
make[4]: Leaving directory `/home/dospro/DC/kos/kernel/arch/dreamcast/sound'
make[3]: *** [_dir_sound] Error 2
make[3]: Leaving directory `/home/dospro/DC/kos/kernel/arch/dreamcast'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/dospro/DC/kos/kernel/arch'
make[1]: *** [_dir_arch] Error 2
make[1]: Leaving directory `/home/dospro/DC/kos/kernel'
make: *** [all] Error 255
Why is thi happening? the arm compiler compile well.
Any ideas?
Check the BioGB emulator any help me get it much better!!
http://www.geocities.com/instructivus
User avatar
henzenmann
Insane DCEmu
Insane DCEmu
Posts: 186
Joined: Wed Jul 12, 2006 4:58 pm
Has thanked: 0
Been thanked: 0
Contact:

Post by henzenmann »

Hmm, this works fine for me with the dc-chain-0.1-gcc346 toolchain:

Code: Select all

make -C arm/
make: Entering directory `/home/chenz/workspace/dreamcast/kos/kernel/arch/dreamcast/sound/arm'
/usr/local/dc/arm-elf/bin/arm-elf-as -mcpu=arm7 crt0.s -o crt0.o
/usr/local/dc/arm-elf/bin/arm-elf-gcc -mcpu=arm7 -Wall -O2  -c main.c -o main.o
/usr/local/dc/arm-elf/bin/arm-elf-gcc -mcpu=arm7 -Wall -O2  -c aica.c -o aica.o
/usr/local/dc/arm-elf/bin/arm-elf-gcc -Wl,-Ttext,0x00000000 -nostartfiles -nostdlib -e reset -o prog.elf crt0.o main.o aica.o -lgcc
/usr/local/dc/arm-elf/bin/arm-elf-objcopy -O binary prog.elf stream.drv
make: Leaving directory `/home/chenz/workspace/dreamcast/kos/kernel/arch/dreamcast/sound/arm'
The thing that comes to mind is that in recent toolchains, the arm target is explicitly set to "armv4". Maybe it would help to replace "-mcpu=arm7" with "-march=armv4" in kos/environ_dreamcast.sh?
Phantom
DC Developer
DC Developer
Posts: 1753
Joined: Thu Jan 16, 2003 4:01 am
Location: The Netherlands
Has thanked: 0
Been thanked: 0
Contact:

Post by Phantom »

I think you're using a very old (pre-2.12) binutils. Replacing -mcpu=arm7 with -marm7 (which is deprecated/broken in newer binutils) might fix the problem.
"Nothing works" - Catweazle
dospro
Insane DCEmu
Insane DCEmu
Posts: 147
Joined: Thu Dec 30, 2004 7:12 pm
Has thanked: 0
Been thanked: 0
Contact:

Post by dospro »

Are the new versions of binutils compatible with KOS?
Check the BioGB emulator any help me get it much better!!
http://www.geocities.com/instructivus
Phantom
DC Developer
DC Developer
Posts: 1753
Joined: Thu Jan 16, 2003 4:01 am
Location: The Netherlands
Has thanked: 0
Been thanked: 0
Contact:

Post by Phantom »

dospro wrote:Are the new versions of binutils compatible with KOS?
Yes.
"Nothing works" - Catweazle
Post Reply