Re: host-x86_64-pc-linux-gnu/gcc/xgcc: No such file or directory

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 29 Nov 2023, 23:53 Jonny Grant, <jg@xxxxxxxx> wrote:

>
>
> On 29/11/2023 15:55, Jonathan Wakely wrote:
> > On Wed, 29 Nov 2023 at 14:44, Jonny Grant <jg@xxxxxxxx> wrote:
> >>
> >>
> >>
> >> On 29/11/2023 13:05, Jonathan Wakely wrote:
> >>> On Wed, 29 Nov 2023 at 12:59, Jonny Grant <jg@xxxxxxxx> 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
> >>>
> >>>> 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
>         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.

I'll add that to the FAQ.



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux