• Caterpillar
    Posts: 31 from 2018/2/9
    From: Sweden

    Nadir wrote:

    Marlon wrote:
    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.



    I build with the provided Makefile that unpacks the binutils tarball and patches it. It is a completely clean Ubuntu 19.04 environment and have created an empty file called SDK.global in the path required by the Makefile.

    I will try commenting out the include $(ROOTPATH) rather than creating the SDK.global file and report back, but I doubt that would do any difference.
  • »17.10.19 - 14:59
    Profile Visit Website