public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "marc.glisse at normalesup dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/49908] New: -lm missing after -lmpc Date: Fri, 29 Jul 2011 21:55:00 -0000 [thread overview] Message-ID: <bug-49908-4@http.gcc.gnu.org/bugzilla/> (raw) http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49908 Summary: -lm missing after -lmpc Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap AssignedTo: unassigned@gcc.gnu.org ReportedBy: marc.glisse@normalesup.org Host: i386-pc-solaris2.11 Hello, I am using a not-gcc (sunpro) compiler to initiate a bootstrap. I let gcc build gmp/mpfr/mpc. When linking cc1 in stage1, I see: cc -g -DIN_GCC -DHAVE_CONFIG_H -o cc1 c-lang.o c-family/stub-objc.o attribs.o c-errors.o c-decl.o c-typeck.o c-convert.o c-aux-info.o c-objc-common.o c-parser.o tree-mudflap.o c-family/c-common.o c-family/c-cppbuiltin.o c-family/c-dump.o c-family/c-format.o c-family/c-gimplify.o c-family/c-lex.o c-family/c-omp.o c-family/c-opts.o c-family/c-pch.o c-family/c-ppoutput.o c-family/c-pragma.o c-family/c-pretty-print.o c-family/c-semantics.o c-family/c-ada-spec.o i386-c.o sol2-c.o default-c.o \ cc1-checksum.o main.o tree-browser.o libbackend.a libcommon-target.a libcommon.a ../libcpp/libcpp.a ../libdecnumber/libdecnumber.a libcommon.a ../libcpp/libcpp.a ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a -L/home/oracle/build/./gmp/.libs -L/home/oracle/build/./mpfr/.libs -L/home/oracle/build/./mpc/src/.libs -lmpc -lmpfr -lgmp -L../zlib -lz Undefined first referenced symbol in file cimag /home/oracle/build/./mpc/src/.libs/libmpc.a(set_x.o) creal /home/oracle/build/./mpc/src/.libs/libmpc.a(set_x.o) cimagl /home/oracle/build/./mpc/src/.libs/libmpc.a(set_x.o) creall /home/oracle/build/./mpc/src/.libs/libmpc.a(set_x.o) ld: fatal: symbol referencing errors. No output written to cc1 The missing symbols are all available in libm, as specified in libmpc.la. (solaris comes with an older gcc-3.4 but mpc doesn't build with it, hence my use of suncc)
next reply other threads:[~2011-07-29 21:55 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2011-07-29 21:55 marc.glisse at normalesup dot org [this message] 2011-07-29 21:59 ` [Bug bootstrap/49908] " pinskia at gcc dot gnu.org 2011-07-29 22:09 ` marc.glisse at normalesup dot org 2011-07-29 22:19 ` marc.glisse at normalesup dot org 2021-07-19 6:00 ` pinskia at gcc dot gnu.org 2021-07-19 6:17 ` glisse at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-49908-4@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).