host-x86_64-pc-linux-gnu/gcc/xgcc: No such file or directory
Jonny Grant
jg@jguk.org
Mon Dec 4 00:34:39 GMT 2023
On 30/11/2023 09:31, Jonathan Wakely wrote:
>
>
> On Wed, 29 Nov 2023, 23:53 Jonny Grant, <jg@jguk.org <mailto:jg@jguk.org>> wrote:
>
>
>
> On 29/11/2023 15:55, Jonathan Wakely wrote:
> > On Wed, 29 Nov 2023 at 14:44, Jonny Grant <jg@jguk.org <mailto:jg@jguk.org>> wrote:
> >>
> >>
> >>
> >> On 29/11/2023 13:05, Jonathan Wakely wrote:
> >>> On Wed, 29 Nov 2023 at 12:59, Jonny Grant <jg@jguk.org <mailto:jg@jguk.org>> wrote:
> >>>>
> >>>> Hello
> >>>>
> >>>> Has anyone encountered this when compiling gcc from source? libgomp doesn't build due to xgcc missing
> >>>>
> >>>> I got latest git, did
> >>>> ./configure --disable-multilib
> >>>
> >>> Don't build in the source directory: https://gcc.gnu.org/wiki/FAQ#configure <https://gcc.gnu.org/wiki/FAQ#configure>
> >>>
> >>>> make html
> >>>
> >>> Try make all-gcc before make html.
> >>
> >>
> >> Sure.
> >>
> >> It gets stuck on genmodes.cc
> >>
> >>
> >>
> >> ../gcc_doc/configure --prefix=/home/jonny/code/repos/gcc_tests/gcc_install --disable-multilib
> >
> > This belongs on the gcc-help list, not here.
> >
> > Are you sure you ran configure in an empty dir, not one you'd already
> > fouled up with previous configurations or previous 'make html'
> > commands?
>
> May I ask if "make distclean" clean up the 24 files that are left as untracked files? "git status" shows them. Anyway, as you have suggested, I'll always run on a separate build dir.
>
> My build dir worked after I removed these 3:
>
> gcc/collect-ld
> gcc/bconfig.h
> gcc/auto-host.h
>
>
> The full 24 I local files I removed. Sharing for completeness.
> gcc/Make-hooks
> gcc/ada/Makefile
> gcc/ada/gcc-interface/Makefile
> gcc/as
> gcc/auto-host.h
> gcc/bconfig.h
> gcc/collect-ld
> gcc/config.h
> gcc/configargs.h
> gcc/cs-bconfig.h
> gcc/cs-config.h
> gcc/cs-tm.h
> gcc/cs-tm_p.h
> gcc/cstamp-h
> gcc/dsymutil
> gcc/gcc-driver-name.h
> gcc/gcc-vers.texi
> gcc/m2/Make-maintainer
> gcc/m2/config-make
> gcc/nm
> gcc/option-includes.mk <http://option-includes.mk>
> gcc/plugin-version.h
> gcc/tm.h
> gcc/tm_p.h
>
>
> > You should start in a completely empty directory. And I assume
> > ../gcc_doc is not the same directory as .
>
> Yes, have gcc_build directory too. I'd expected "make distclean" to have been enough. But I'll always build from a separate directory now.
>
>
> Just remove the whole directory and start again in a clean one.
Fair enough, I did that, it works now.
> I'll add that to the FAQ.
Is it this page?
https://gcc.gnu.org/install/configure.html
How about changing this line to clarify make just say building within the src tree does not work, and is unsupported?
Change from:
"First, we highly recommend that GCC be built into a separate directory"
To:
"First, we only support building GCC from a separate directory"
Kind regards, Jonny
More information about the Gcc-help
mailing list