Skip to content

Building without the provided toolchain #35

@MartijnBraam

Description

@MartijnBraam

I'm trying to build and package openiboot for the postmarketOS project to get the ipod touch 1g running. The postmarketOS project as a whole crosscompile setup integrated already and I'm trying to use that instead of adding more toolchains to the mix but I'm running into some build errors.

I've added a bunch of patches already to make the compile stage work with the current environment which is a GCC6 toolchain (see https://github.com/postmarketOS/pmbootstrap/tree/device/ipod1/aports/main/openiboot) but now I'm running into linking errors:

/usr/lib/gcc/armv6-alpine-linux-muslgnueabihf/6.4.0/../../../../armv6-alpine-linux-muslgnueabihf/bin/ld: section .interp LMA [0000000000000174,000000000000018b] overlaps section .text LMA [0000000000000000,0000000000038fa7]
/usr/lib/gcc/armv6-alpine-linux-muslgnueabihf/6.4.0/../../../../armv6-alpine-linux-muslgnueabihf/bin/ld: ipt_1g_openiboot: Not enough room for program headers, try linking with -N
/usr/lib/gcc/armv6-alpine-linux-muslgnueabihf/6.4.0/../../../../armv6-alpine-linux-muslgnueabihf/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status

Do any of you here know how this error or how to start debugging this?

buildlog.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions