* gcc 7.1.0
@ 2022-02-14 21:40 Zane Asher Post
2022-02-14 22:21 ` Tom Kacvinsky
0 siblings, 1 reply; 2+ messages in thread
From: Zane Asher Post @ 2022-02-14 21:40 UTC (permalink / raw)
To: gcc-help
Hi. I'm trying to compile a cross compiler to build my OS. I'm trying to
build on Windows using MSYS2. I'm having a couple of issues, though. First,
when it gets to s-selftest in gcc-build/gcc/Makefile, it stops with this
error:
CreateProcess: not a directory or file
It works when I copy cc1.exe into a folder that is in my PATH variable. I'm
afraid that this will mess with my C compiler and the one that is built.
Second, when libgcc is being configured, I get this error:
Cannot compute the suffix of object files
How do I fix these errors?
From, Zane Post
P.S. My configure flags for gcc are:
../gcc-7.1.0/configure --build="aarch64-w64-mingw32" --target="i686-elf"
--prefix="/c/compiled/gcc" --disable-nls --without headers
--enable-languages=c,c++ --without-isl --disable-fixincludes
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: gcc 7.1.0
2022-02-14 21:40 gcc 7.1.0 Zane Asher Post
@ 2022-02-14 22:21 ` Tom Kacvinsky
0 siblings, 0 replies; 2+ messages in thread
From: Tom Kacvinsky @ 2022-02-14 22:21 UTC (permalink / raw)
To: Zane Asher Post; +Cc: gcc-help
On Mon, Feb 14, 2022 at 4:48 PM Zane Asher Post via Gcc-help
<gcc-help@gcc.gnu.org> wrote:
>
> Hi. I'm trying to compile a cross compiler to build my OS. I'm trying to
> build on Windows using MSYS2. I'm having a couple of issues, though. First,
> when it gets to s-selftest in gcc-build/gcc/Makefile, it stops with this
> error:
>
> CreateProcess: not a directory or file
>
I too have had fun with building GCC on Windows using MSYS2. Fortunately
for me, the mingw-w64 development team has been very helpful.
I know of at least one of the mingw-w64 developers chimes in on the binutils
list, perhaps there are some of them on this list, too.
I'd start with this github repo which provides patches for building GCC within
an MSYS2 environment:
https://github.com/msys2/MINGW-packages
There are patches and pacman build scripts (pay attention to the
scripts, they do
some magic aside from applying patches). There is stuff there for arm cross
compilers. But beware, these patches may no longer apply for GCC 7.0 as the
mingw-w64 folks keep pretty current with packages they deliver.
Hope this helps,
Tom
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-02-14 22:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-14 21:40 gcc 7.1.0 Zane Asher Post
2022-02-14 22:21 ` Tom Kacvinsky
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).