public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Possible bug in gcc-4.4.2 using -static flag?
@ 2009-12-10 12:14 José Luis García Pallero
  2009-12-10 14:14 ` Andrew Haley
  0 siblings, 1 reply; 2+ messages in thread
From: José Luis García Pallero @ 2009-12-10 12:14 UTC (permalink / raw)
  To: gcc-help

In my Debian Sid gcc-4.4.2 I obtain this error message when I try to
compile with -static flag:

/usr/lib/gcc/i486-linux-gnu/4.4.2/../../../../lib/libieee.a:(.data+0x0):
multiple definition of `_LIB_VERSION'
/usr/lib/gcc/i486-linux-gnu/4.4.2/../../../../lib/libm.a(s_lib_version.o):(.data+0x0):
first defined here
collect2: ld returned 1 exit status

Is it a bug of gcc?

I used this flags in a 1.3 GHz Centrino (first generation) Laptop

-static  -std=c99 -pedantic -O3 -Wall -Wextra -Wconversion
-Wmissing-prototypes -Wstrict-prototypes -Wshadow -Wpointer-arith
-Wcast-qual -Wcast-align -Wwrite-strings -Wnested-externs
-Warray-bounds -fno-common -fshort-enums -funroll-loops -mieee-fp
-march=native

-- 
*****************************************
José Luis García Pallero
jgpallero@gmail.com
(o<
/ / \
V_/_
Use Debian GNU/Linux and enjoy!
*****************************************

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

* Re: Possible bug in gcc-4.4.2 using -static flag?
  2009-12-10 12:14 Possible bug in gcc-4.4.2 using -static flag? José Luis García Pallero
@ 2009-12-10 14:14 ` Andrew Haley
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Haley @ 2009-12-10 14:14 UTC (permalink / raw)
  To: José Luis García Pallero; +Cc: gcc-help

José Luis García Pallero wrote:
> In my Debian Sid gcc-4.4.2 I obtain this error message when I try to
> compile with -static flag:
> 
> /usr/lib/gcc/i486-linux-gnu/4.4.2/../../../../lib/libieee.a:(.data+0x0):
> multiple definition of `_LIB_VERSION'
> /usr/lib/gcc/i486-linux-gnu/4.4.2/../../../../lib/libm.a(s_lib_version.o):(.data+0x0):
> first defined here
> collect2: ld returned 1 exit status
> 
> Is it a bug of gcc?

No, it's a bug in Debian's libc.  Better ask there.

Andrew.

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

end of thread, other threads:[~2009-12-10 12:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-12-10 12:14 Possible bug in gcc-4.4.2 using -static flag? José Luis García Pallero
2009-12-10 14:14 ` Andrew Haley

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