public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* gcc trunk and -lmpc
@ 2010-04-22 10:47 Alexey Salmin
  2010-04-24 11:14 ` Ian Lance Taylor
  0 siblings, 1 reply; 2+ messages in thread
From: Alexey Salmin @ 2010-04-22 10:47 UTC (permalink / raw)
  To: gcc-help

Hello! Today I tried to build latest gcc trunk (rev #158628) and got
the following errors:

libbackend.a(builtins.o): In function `fold_builtin_ccos':
/home/salmin/gcc-trunk/host-x86_64-unknown-linux-gnu/gcc/../.././gcc/builtins.c:7341:
undefined reference to `mpc_cosh'
/home/salmin/gcc-trunk/host-x86_64-unknown-linux-gnu/gcc/../.././gcc/builtins.c:7341:
undefined reference to `mpc_cos'
libbackend.a(builtins.o): In function `fold_builtin_cexp':
/home/salmin/gcc-trunk/host-x86_64-unknown-linux-gnu/gcc/../.././gcc/builtins.c:7434:
undefined reference to `mpc_exp'
....

which is surprising because I have libmpc installed (debian sid):
salmin@salmin:~/gcc-trunk$ dpkg -l libmpc* | grep ^ii | grep -v libmpcdec
ii  libmpc-dev                           0.8.1-1
         multiple precision complex floating-point library development
package
ii  libmpc2                              0.8.1-1
         multiple precision complex floating-point library

configuring with LDFLAGS=-lmpc solved the problem. Is it a bug in
Makefile or something or I'm doing it wrong?

Alexey

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

* Re: gcc trunk and -lmpc
  2010-04-22 10:47 gcc trunk and -lmpc Alexey Salmin
@ 2010-04-24 11:14 ` Ian Lance Taylor
  0 siblings, 0 replies; 2+ messages in thread
From: Ian Lance Taylor @ 2010-04-24 11:14 UTC (permalink / raw)
  To: Alexey Salmin; +Cc: gcc-help

Alexey Salmin <alexey.salmin@gmail.com> writes:

> Hello! Today I tried to build latest gcc trunk (rev #158628) and got
> the following errors:
>
> libbackend.a(builtins.o): In function `fold_builtin_ccos':
> /home/salmin/gcc-trunk/host-x86_64-unknown-linux-gnu/gcc/../.././gcc/builtins.c:7341:
> undefined reference to `mpc_cosh'
> /home/salmin/gcc-trunk/host-x86_64-unknown-linux-gnu/gcc/../.././gcc/builtins.c:7341:
> undefined reference to `mpc_cos'
> libbackend.a(builtins.o): In function `fold_builtin_cexp':
> /home/salmin/gcc-trunk/host-x86_64-unknown-linux-gnu/gcc/../.././gcc/builtins.c:7434:
> undefined reference to `mpc_exp'
> ....
>
> which is surprising because I have libmpc installed (debian sid):
> salmin@salmin:~/gcc-trunk$ dpkg -l libmpc* | grep ^ii | grep -v libmpcdec
> ii  libmpc-dev                           0.8.1-1
>          multiple precision complex floating-point library development
> package
> ii  libmpc2                              0.8.1-1
>          multiple precision complex floating-point library
>
> configuring with LDFLAGS=-lmpc solved the problem. Is it a bug in
> Makefile or something or I'm doing it wrong?

This certainly sounds like a bug in the configure script or the
Makefile.  It may be that since mpc is so new few people have tested
building gcc against an installed libmpc.

Ian

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

end of thread, other threads:[~2010-04-24  1:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-22 10:47 gcc trunk and -lmpc Alexey Salmin
2010-04-24 11:14 ` Ian Lance Taylor

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