public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* GCC builds with relative searchpaths instead of absolute
@ 2022-09-21 11:42 Nuno Silva
  2022-09-21 12:49 ` Jonathan Wakely
  2022-09-21 15:31 ` AW: " stefan
  0 siblings, 2 replies; 7+ messages in thread
From: Nuno Silva @ 2022-09-21 11:42 UTC (permalink / raw)
  To: gcc-help

Hello,
This is my first post in this mailing list, so I apologize if I do
anything wrong.

I'm working on a hobby operating system and, as part of making apps
for it, I'm trying to port gcc to it. To be clear: I already have my
cross compiler, I just want to make gcc run inside the OS.

However, gcc doesn't seem to find cc1, and when I look into the
searchdirs it shows relative paths (prepended with ".."), which means
it would never find cc1.
I'm configuring GCC with the following:

configure --host=x86_64-toast --prefix=/usr --target=x86_64-toast
--with-sysroot=/ --with-build-sysroot=<my sysroot dir>
--enable-languages=c,c++ --enable-initfini-array --disable-multilib
--disable-nls --enable-lto --with-system-zlib CFLAGS=-O2 CXXFLAGS=-O2

Then running make all-gcc all-target-libgcc all-target-libcstdc++-v3

Is there some sort of setting I could use to change the searchdirs to absolute?

Thank you very much for your time.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-09-21 15:57 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-21 11:42 GCC builds with relative searchpaths instead of absolute Nuno Silva
2022-09-21 12:49 ` Jonathan Wakely
2022-09-21 12:56   ` Nuno Silva
2022-09-21 13:49     ` Jonathan Wakely
2022-09-21 13:53       ` Nuno Silva
2022-09-21 15:31 ` AW: " stefan
2022-09-21 15:57   ` Xi Ruoyao

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).