I am having problems getting target-src to build for dcload-ip-1.0.4. The problem seems to stem from the dcload.x file. I was able to get past the first error by changinf the line
OUTPUT_FORMAT("elf32-shl", "elf32-shl", "elf32-shl")
to
OUTPUT_FORMAT("elf32-sh-linux", "elf32-sh-linux", "elf32-sh-linux")
However now there is a second problem that I can't get past and is due to the following line in dcload.x
SEARCH_DIR(/usr/local/dcdev/sh-elf/lib);.
This is not a known directory on my personal machine.
When I run make the error look like:
/home/smm/Dreamcast/toolchain/bin/sh4-linux-gcc -ml -m4 -Wl,-Tdcload.x -nostartfiles -nostdlib dcload-crt0.o syscalls.o memcpy.o memset.o memcmp.o disable.o go.o video.o dcload.o cdfs_redir.o cdfs_syscalls.o bswap.o packet.o rtl8139.o net.o commands.o adapter.o lan_adapter.o -o dcload -lgcc
dcload-crt0.o: In function `setup_video_k':
dcload-crt0.o(.text+0xc): undefined reference to `_setup_video'
dcload-crt0.o: In function `uint_to_string_k':
dcload-crt0.o(.text+0x18): undefined reference to `_uint_to_string'
dcload-crt0.o: In function `exc_to_string_k':
Thanks,
Frank X
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am having problems getting target-src to build for dcload-ip-1.0.4. The problem seems to stem from the dcload.x file. I was able to get past the first error by changinf the line
OUTPUT_FORMAT("elf32-shl", "elf32-shl", "elf32-shl")
to
OUTPUT_FORMAT("elf32-sh-linux", "elf32-sh-linux", "elf32-sh-linux")
However now there is a second problem that I can't get past and is due to the following line in dcload.x
SEARCH_DIR(/usr/local/dcdev/sh-elf/lib);.
This is not a known directory on my personal machine.
When I run make the error look like:
/home/smm/Dreamcast/toolchain/bin/sh4-linux-gcc -ml -m4 -Wl,-Tdcload.x -nostartfiles -nostdlib dcload-crt0.o syscalls.o memcpy.o memset.o memcmp.o disable.o go.o video.o dcload.o cdfs_redir.o cdfs_syscalls.o bswap.o packet.o rtl8139.o net.o commands.o adapter.o lan_adapter.o -o dcload -lgcc
dcload-crt0.o: In function `setup_video_k':
dcload-crt0.o(.text+0xc): undefined reference to `_setup_video'
dcload-crt0.o: In function `uint_to_string_k':
dcload-crt0.o(.text+0x18): undefined reference to `_uint_to_string'
dcload-crt0.o: In function `exc_to_string_k':
Thanks,
Frank X