public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* mpc-1.0.3 build errors
@ 2018-09-29 19:22 rih5342
  2018-09-30 12:03 ` Dennis Clarke
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: rih5342 @ 2018-09-29 19:22 UTC (permalink / raw)
  To: gcc-help

New user here.

I'm using OpenSuse Leap V42.3 64bit, and trying to compile MPC



david@linux-rtdp:~/___David/gcc/mpc/mpc-1.0.3-build> make
make  all-recursive
make[1]: Entering directory '/home/david/___David/gcc/mpc/mpc-1.0.3-build'
Making all in src
make[2]: Entering directory
'/home/david/___David/gcc/mpc/mpc-1.0.3-build/src'
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H
-I. -I../../mpc-1.0.3/src -I..     -O2 -pedantic -fomit-frame-pointer -m64
-mtune=bdver1 -march=bdver1 -MT mul.lo -MD -MP -MF .deps/mul.Tpo -c -o
mul.lo ../../mpc-1.0.3/src/mul.c
libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../mpc-1.0.3/src
-I.. -O2 -pedantic -fomit-frame-pointer -m64 -mtune=bdver1 -march=bdver1 -MT
mul.lo -MD -MP -MF .deps/mul.Tpo -c ../../mpc-1.0.3/src/mul.c  -fPIC -DPIC
-o .libs/mul.o
../../mpc-1.0.3/src/mul.c:175:1: error: conflicting types for ‘mpfr_fmma’
 mpfr_fmma (mpfr_ptr z, mpfr_srcptr a, mpfr_srcptr b, mpfr_srcptr c,
 ^
In file included from ../../mpc-1.0.3/src/mpc.h:25:0,
                 from ../../mpc-1.0.3/src/mpc-impl.h:30,
                 from ../../mpc-1.0.3/src/mul.c:22:
/usr/local/include/mpfr.h:731:21: note: previous declaration of ‘mpfr_fmma’
was here
 __MPFR_DECLSPEC int mpfr_fmma (mpfr_ptr, mpfr_srcptr, mpfr_srcptr,
mpfr_srcptr,
                     ^
Makefile:532: recipe for target 'mul.lo' failed
make[2]: *** [mul.lo] Error 1
make[2]: Leaving directory
'/home/david/___David/gcc/mpc/mpc-1.0.3-build/src'
Makefile:462: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/david/___David/gcc/mpc/mpc-1.0.3-build'
Makefile:373: recipe for target 'all' failed
make: *** [all] Error 2





Any suggestions?

Thank you.





--
Sent from: http://gcc.1065356.n8.nabble.com/gcc-Help-f629689.html

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

* Re: mpc-1.0.3 build errors
  2018-09-29 19:22 mpc-1.0.3 build errors rih5342
@ 2018-09-30 12:03 ` Dennis Clarke
  2018-09-30 14:47   ` Jonathan Wakely
  2018-09-30 12:04 ` sisyphus1
  2018-09-30 12:11 ` Jonathan Wakely
  2 siblings, 1 reply; 6+ messages in thread
From: Dennis Clarke @ 2018-09-30 12:03 UTC (permalink / raw)
  To: gcc-help


> Any suggestions?
> 

Looks like messed up library versions and headers. You may have gmp and
mpfr and mpc alreayd installed in system locations or other places.

Isolate your build process into one place and be sure to setup the usual
LD type environment variables to only "look" into those places for the
headers and libs. Perhaps your CFLAGS will need to force the RPATH and
the RUNPATH in the output elf headers with -Wl,-rpath=/some/path/lib or
similar.

Dennis

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

* Re: mpc-1.0.3 build errors
  2018-09-29 19:22 mpc-1.0.3 build errors rih5342
  2018-09-30 12:03 ` Dennis Clarke
@ 2018-09-30 12:04 ` sisyphus1
  2018-09-30 12:11 ` Jonathan Wakely
  2 siblings, 0 replies; 6+ messages in thread
From: sisyphus1 @ 2018-09-30 12:04 UTC (permalink / raw)
  To: rih5342, gcc-help


-----Original Message----- 
From: rih5342
Sent: Sunday, September 30, 2018 5:04 AM
To: gcc-help@gcc.gnu.org
Subject: mpc-1.0.3 build errors

> ../../mpc-1.0.3/src/mul.c:175:1: error: conflicting types for ‘mpfr_fmma’

I struck the same issue trying to build an old version of mpc against a 
modern version of mpfr.

Switching to mpc-1.1.0 source should fix the problem.
The mpfr_fmma function did not appear in the mpfr library until 2016-01-10, 
so another solution could be to build mpc-1.0.3 against any version of mpfr 
that was released prior to that date.

Cheers,
Rob 

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

* Re: mpc-1.0.3 build errors
  2018-09-29 19:22 mpc-1.0.3 build errors rih5342
  2018-09-30 12:03 ` Dennis Clarke
  2018-09-30 12:04 ` sisyphus1
@ 2018-09-30 12:11 ` Jonathan Wakely
  2 siblings, 0 replies; 6+ messages in thread
From: Jonathan Wakely @ 2018-09-30 12:11 UTC (permalink / raw)
  To: rih5342; +Cc: gcc-help

On Sat, 29 Sep 2018 at 20:04, rih5342 <robhickey@gmx.com> wrote:
>
> New user here.
>
> I'm using OpenSuse Leap V42.3 64bit, and trying to compile MPC
>
>
>
> david@linux-rtdp:~/___David/gcc/mpc/mpc-1.0.3-build> make
> make  all-recursive
> make[1]: Entering directory '/home/david/___David/gcc/mpc/mpc-1.0.3-build'
> Making all in src
> make[2]: Entering directory
> '/home/david/___David/gcc/mpc/mpc-1.0.3-build/src'
> /bin/sh ../libtool  --tag=CC   --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H
> -I. -I../../mpc-1.0.3/src -I..     -O2 -pedantic -fomit-frame-pointer -m64
> -mtune=bdver1 -march=bdver1 -MT mul.lo -MD -MP -MF .deps/mul.Tpo -c -o
> mul.lo ../../mpc-1.0.3/src/mul.c
> libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../mpc-1.0.3/src
> -I.. -O2 -pedantic -fomit-frame-pointer -m64 -mtune=bdver1 -march=bdver1 -MT
> mul.lo -MD -MP -MF .deps/mul.Tpo -c ../../mpc-1.0.3/src/mul.c  -fPIC -DPIC
> -o .libs/mul.o
> ../../mpc-1.0.3/src/mul.c:175:1: error: conflicting types for ‘mpfr_fmma’
>  mpfr_fmma (mpfr_ptr z, mpfr_srcptr a, mpfr_srcptr b, mpfr_srcptr c,
>  ^
> In file included from ../../mpc-1.0.3/src/mpc.h:25:0,
>                  from ../../mpc-1.0.3/src/mpc-impl.h:30,
>                  from ../../mpc-1.0.3/src/mul.c:22:
> /usr/local/include/mpfr.h:731:21: note: previous declaration of ‘mpfr_fmma’
> was here
>  __MPFR_DECLSPEC int mpfr_fmma (mpfr_ptr, mpfr_srcptr, mpfr_srcptr,
> mpfr_srcptr,
>                      ^
> Makefile:532: recipe for target 'mul.lo' failed
> make[2]: *** [mul.lo] Error 1
> make[2]: Leaving directory
> '/home/david/___David/gcc/mpc/mpc-1.0.3-build/src'
> Makefile:462: recipe for target 'all-recursive' failed
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory '/home/david/___David/gcc/mpc/mpc-1.0.3-build'
> Makefile:373: recipe for target 'all' failed
> make: *** [all] Error 2
>
>
>
>
>
> Any suggestions?

Stop trying to build it. See https://gcc.gnu.org/wiki/InstallingGCC

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

* Re: mpc-1.0.3 build errors
  2018-09-30 12:03 ` Dennis Clarke
@ 2018-09-30 14:47   ` Jonathan Wakely
  2018-09-30 17:59     ` rih5342
  0 siblings, 1 reply; 6+ messages in thread
From: Jonathan Wakely @ 2018-09-30 14:47 UTC (permalink / raw)
  To: rih5342; +Cc: gcc-help, Dennis Clarke

On Sat, 29 Sep 2018 at 20:30, Dennis Clarke <dclarke@blastwave.org> wrote:
>
>
> > Any suggestions?
> >
>
> Looks like messed up library versions and headers. You may have gmp and
> mpfr and mpc alreayd installed in system locations or other places.
>
> Isolate your build process into one place and be sure to setup the usual
> LD type environment variables to only "look" into those places for the
> headers and libs. Perhaps your CFLAGS will need to force the RPATH and
> the RUNPATH in the output elf headers with -Wl,-rpath=/some/path/lib or
> similar.

Or forget all that and do what https://gcc.gnu.org/wiki/InstallingGCC
says. It's a lot simpler that way.

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

* Re: mpc-1.0.3 build errors
  2018-09-30 14:47   ` Jonathan Wakely
@ 2018-09-30 17:59     ` rih5342
  0 siblings, 0 replies; 6+ messages in thread
From: rih5342 @ 2018-09-30 17:59 UTC (permalink / raw)
  To: gcc-help


Hmmmm, kinda like "Let me Google that for you."

Thank you.



--
Sent from: http://gcc.1065356.n8.nabble.com/gcc-Help-f629689.html

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

end of thread, other threads:[~2018-09-30 14:47 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-29 19:22 mpc-1.0.3 build errors rih5342
2018-09-30 12:03 ` Dennis Clarke
2018-09-30 14:47   ` Jonathan Wakely
2018-09-30 17:59     ` rih5342
2018-09-30 12:04 ` sisyphus1
2018-09-30 12:11 ` 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).