public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* GCC_EXEC_PREFIX or option -B needed to find cc1 and crt*.o files
@ 2022-12-05  2:46 William Tambe
  0 siblings, 0 replies; only message in thread
From: William Tambe @ 2022-12-05  2:46 UTC (permalink / raw)
  To: gcc-help

GCC fails to run with following error:
gcc: fatal error: cannot execute 'cc1': execvp: No such file or directory

Above error goes away when setting environment GCC_EXEC_PREFIX or
using option -B to the path where `cc1` was installed.

GCC was configured as follow:
configure --target=pu32-elf --host=pu32-elf --prefix=/opt/toolchain
--libexecdir=/opt/toolchain/lib --without-headers --disable-libssp
--disable-multilib --disable-gcov --disable-lto --enable-libatomic
--enable-languages=c,c++ --disable-nls --disable-doc --disable-docs
--disable-documentation

Any idea why the correct prefix where to find `cc1` is not built inside GCC ?

Complete change implementing target pu32 can be found at:
https://github.com/fontamsoc/gcc/commit/5a661b4

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-12-05  2:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-05  2:46 GCC_EXEC_PREFIX or option -B needed to find cc1 and crt*.o files William Tambe

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