richfelker / musl-cross-make

Simple makefile-based build for musl cross compiler

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"can only configure for one host and one target at a time" when trying to compile a 32-bit system

IoIxD opened this issue · comments

commented

I'm trying to compile the new doslinux which means setting up a 32-bit toolchain. I was told that setting up a toolchain would be smooth sailing with this program but it's never that easy so of course I'm running into an error. I have tried for three hours to fix this and I simply cannot find the issue. The obvious error is that I'm doing this on a 64-bit system but isn't this program meant for cross compiling tool chains?

(Sorry for the image and not text, I'm using Windows because I happen to be doing college work as well and I forget how to copy and paste from terminal)

image

Relevant files:

Let me know if I'm forgetting anything.

I'm pretty sure the gcc 4.2.1 support is just bitrotted; it probably needs to be removed. But I'll take a closer look.

commented

I'm pretty sure I also tried modern GCC and it did not work. If it is GCC 4.2 though, what is the oldest version of GCC that will work?

gcc 6.5.0 should work well, it's what i always use for sabotage linux crosscompiles.

edit: you should also use binutils 2.27