Posts: 148 from 2003/3/17
Anyone able to help? Will there be an update of the SDK source tarball or will you release a patch? Can I use the binutils from the previous SDK or is it incompatible?
Your problem seems to be that -DMORPHOS_TARGET isn't set when compiling.
For instance: it should look like this:
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../binutils-2.32/bfd -DBINDIR=\"/gg/bin\" -I. -I../../binutils-2.32/bfd -I../../binutils-2.32/bfd/../include -DHAVE_powerpc_elf32_morphos_vec -DHAVE_elf32_le_vec -DHAVE_elf32_be_vec -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wstack-usage=262144 -I../../binutils-2.32/bfd/../zlib -DMORPHOS_TARGET -MT elf32-ppc.lo -MD -MP -MF .deps/elf32-ppc.Tpo -c ../../binutils-2.32/bfd/elf32-ppc.c -o elf32-ppc.o
It works fine on our build system as well as on my local Debian box from a clean public source tarball. Please use the makefile in the binutils directory and comment away the line
"include $(ROOTPATH)SDK.global" by adding a #
My guess is that you try to build without this makefile and thus fail to add this definition.
Nicholai[ Edited by Nadir 17.10.2019 - 14:03 ]