MrLolthe1st wrote:
$ ../binutils/configure --target=i686-butterflyos --prefix="$PREFIX" --with-sysroot=os/sysroot --disable-werror
Based on this configure line, you are building a cross compiler, not porting GCC. That is a very important difference in the context of OS development. If your intention was to build GCC to run on your OS, you need to specify --host, and you will find that you also need quite a complete environment to accomplish that.
Quote:
$ make
MAKE Version 5.2 Copyright (c) 1987, 1998 Inprise Corp.
You are trying to use Borland Make to run a GNU Makefile. This will never work.
I suggest you stop trying to use cygwin. if you are on Windows 10, use the Windows Subsystem for Linux. If you are using an older version of Windows, either upgrade or set up a Linux VM to run your builds. Alternatively, someone will eventually come in with recommendations on a native Windows-based build system.