Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building without the provided toolchain #35

Open
MartijnBraam opened this issue Oct 2, 2017 · 1 comment
Open

Building without the provided toolchain #35

MartijnBraam opened this issue Oct 2, 2017 · 1 comment

Comments

@MartijnBraam
Copy link

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

@nickpack
Copy link
Member

nickpack commented Oct 6, 2017

We never built it with anything else, so I expect the configuration is sub optimal in most cases. Looking at the error I assume there is a late include somewhere that the compiler hasn't allocated space for, can't really say any more than that without seeing it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants