public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Is this a bug or UFU?
       [not found] <1488577238.235399.1649435475723.ref@mail.yahoo.com>
@ 2022-04-08 16:31 ` George R Goffe
  2022-04-08 16:57   ` Jonathan Wakely
  0 siblings, 1 reply; 2+ messages in thread
From: George R Goffe @ 2022-04-08 16:31 UTC (permalink / raw)
  To: Gcc-help

Howdy,

I'm building gcc (and gmp/mpfr/mpc) from the repository and am having trouble. Could you take a peek and let me know what I'm doing wrong please?

Best regards and BE SAFE!

George...


fc37-bash 5.1 /tools/gcc# cd obj-x86_64-pc-linux-gnu/
fc37-bash 5.1 /tools/gcc/obj-x86_64-pc-linux-gnu#  ../gcc/configure --prefix=/usr/lsd/$osname --verbose   \
                  --with-mpc=/usr/lsd/$osname           \
                  --with-mpfr=/usr/lsd/$osname          \
                  --with-gmp=/usr/lsd/$osname           \
                  --disable-werror                      \
                  --disable-multilib
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /usr/lsd/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for a sed that does not truncate output... /bin/sed
checking for gawk... gawk
checking for libatomic support... yes
checking for libitm support... yes
checking for libsanitizer support... yes
checking for libvtv support... yes
checking for libphobos support... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for gcc option to accept ISO C99... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking whether g++ accepts -static-libstdc++ -static-libgcc... yes
checking for gnatbind... no
checking for gnatmake... no
checking whether compiler driver understands Ada... no
checking for gdc... gdc
checking whether the D compiler works... no
checking how to compare bootstrapped objects... cmp --ignore-initial=16 $$f1 $$f2
checking for objdir... .libs
checking for the correct version of gmp.h... yes
checking for the correct version of mpfr.h... yes
checking for the correct version of mpc.h... no
configure: error: Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
their locations.  Source code for these libraries can be found at
their respective hosting sites as well as at
https://gcc.gnu.org/pub/gcc/infrastructure/.  See also
http://gcc.gnu.org/install/prerequisites.html for additional info.  If
you obtained GMP, MPFR and/or MPC from a vendor distribution package,
make sure that you have installed both the libraries and the header
files.  They may be located in separate packages.


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

* Re: Is this a bug or UFU?
  2022-04-08 16:31 ` Is this a bug or UFU? George R Goffe
@ 2022-04-08 16:57   ` Jonathan Wakely
  0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Wakely @ 2022-04-08 16:57 UTC (permalink / raw)
  To: George R Goffe; +Cc: Gcc-help

On Fri, 8 Apr 2022 at 17:32, George R Goffe via Gcc-help
<gcc-help@gcc.gnu.org> wrote:
>
> Howdy,
>
> I'm building gcc (and gmp/mpfr/mpc) from the repository and am having trouble. Could you take a peek and let me know what I'm doing wrong please?
>
> Best regards and BE SAFE!
>
> George...
>
>
> fc37-bash 5.1 /tools/gcc# cd obj-x86_64-pc-linux-gnu/
> fc37-bash 5.1 /tools/gcc/obj-x86_64-pc-linux-gnu#  ../gcc/configure --prefix=/usr/lsd/$osname --verbose   \
>                   --with-mpc=/usr/lsd/$osname           \
>                   --with-mpfr=/usr/lsd/$osname          \
>                   --with-gmp=/usr/lsd/$osname           \

Stop right there. Don't do that.

Read https://gcc.gnu.org/wiki/InstallingGCC instead, and do what it says.



>                   --disable-werror                      \
>                   --disable-multilib
> checking build system type... x86_64-pc-linux-gnu
> checking host system type... x86_64-pc-linux-gnu
> checking target system type... x86_64-pc-linux-gnu
> checking for a BSD-compatible install... /usr/lsd/bin/install -c
> checking whether ln works... yes
> checking whether ln -s works... yes
> checking for a sed that does not truncate output... /bin/sed
> checking for gawk... gawk
> checking for libatomic support... yes
> checking for libitm support... yes
> checking for libsanitizer support... yes
> checking for libvtv support... yes
> checking for libphobos support... yes
> checking for gcc... gcc
> checking whether the C compiler works... yes
> checking for C compiler default output file name... a.out
> checking for suffix of executables...
> checking whether we are cross compiling... no
> checking for suffix of object files... o
> checking whether we are using the GNU C compiler... yes
> checking whether gcc accepts -g... yes
> checking for gcc option to accept ISO C89... none needed
> checking for gcc option to accept ISO C99... none needed
> checking for g++... g++
> checking whether we are using the GNU C++ compiler... yes
> checking whether g++ accepts -g... yes
> checking whether g++ accepts -static-libstdc++ -static-libgcc... yes
> checking for gnatbind... no
> checking for gnatmake... no
> checking whether compiler driver understands Ada... no
> checking for gdc... gdc
> checking whether the D compiler works... no
> checking how to compare bootstrapped objects... cmp --ignore-initial=16 $$f1 $$f2
> checking for objdir... .libs
> checking for the correct version of gmp.h... yes
> checking for the correct version of mpfr.h... yes
> checking for the correct version of mpc.h... no
> configure: error: Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
> Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
> their locations.  Source code for these libraries can be found at
> their respective hosting sites as well as at
> https://gcc.gnu.org/pub/gcc/infrastructure/.  See also
> http://gcc.gnu.org/install/prerequisites.html for additional info.  If
> you obtained GMP, MPFR and/or MPC from a vendor distribution package,
> make sure that you have installed both the libraries and the header
> files.  They may be located in separate packages.
>

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

end of thread, other threads:[~2022-04-08 16:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <1488577238.235399.1649435475723.ref@mail.yahoo.com>
2022-04-08 16:31 ` Is this a bug or UFU? George R Goffe
2022-04-08 16:57   ` Jonathan Wakely

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