public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/14654] New: gcc does not support the visibility attribute?
@ 2004-03-19 15:48 jkolb at brandeis dot edu
2004-03-19 15:56 ` [Bug c/14654] " pinskia at gcc dot gnu dot org
` (12 more replies)
0 siblings, 13 replies; 14+ messages in thread
From: jkolb at brandeis dot edu @ 2004-03-19 15:48 UTC (permalink / raw)
To: gcc-bugs
When I try to compile this file:
#include <stdio.h>
void test() __attribute__ ((visibility ("hidden")));
void test() { puts("blah"); }
int
main(int argc, char **argv)
{
test();
return 0;
}
I get:
test.c: In function `test':
test.c:5: warning: visibility attribute not supported in this configuration; ignored
Also, I cannot build glibc now because it requires the visibility attribute.
This is stock fsf gcc 3.3.3.
gcc -v
Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/specs
Configured with: /usr/src/gcc-3.3.3/configure --host=i686-pc-linux-gnu
--prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man
--enable-threads=posix --enable-languages=c,c++,f77,objc
I compiled it against linux 2.6.3. There are a few people I know of who have
this issue but we can't figure out why.
--
Summary: gcc does not support the visibility attribute?
Product: gcc
Version: 3.3.3
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jkolb at brandeis dot edu
CC: gcc-bugs at gcc dot gnu dot org
GCC host triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14654
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c/14654] gcc does not support the visibility attribute?
2004-03-19 15:48 [Bug c/14654] New: gcc does not support the visibility attribute? jkolb at brandeis dot edu
@ 2004-03-19 15:56 ` pinskia at gcc dot gnu dot org
2004-03-19 15:59 ` jkolb at brandeis dot edu
` (11 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-03-19 15:56 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-03-19 15:56 -------
The reason why it is not supported is because your binutils does not support it, update that and rebuild
GCC and you will get the attribute visibility working.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14654
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c/14654] gcc does not support the visibility attribute?
2004-03-19 15:48 [Bug c/14654] New: gcc does not support the visibility attribute? jkolb at brandeis dot edu
2004-03-19 15:56 ` [Bug c/14654] " pinskia at gcc dot gnu dot org
@ 2004-03-19 15:59 ` jkolb at brandeis dot edu
2004-03-19 16:05 ` pinskia at gcc dot gnu dot org
` (10 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: jkolb at brandeis dot edu @ 2004-03-19 15:59 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From jkolb at brandeis dot edu 2004-03-19 15:59 -------
I'm using binutils 2.14.90.0.8 Which version do i need to update to?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14654
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c/14654] gcc does not support the visibility attribute?
2004-03-19 15:48 [Bug c/14654] New: gcc does not support the visibility attribute? jkolb at brandeis dot edu
2004-03-19 15:56 ` [Bug c/14654] " pinskia at gcc dot gnu dot org
2004-03-19 15:59 ` jkolb at brandeis dot edu
@ 2004-03-19 16:05 ` pinskia at gcc dot gnu dot org
2004-03-19 19:30 ` jkolb at brandeis dot edu
` (9 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-03-19 16:05 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-03-19 16:05 -------
Try an official FSF release of 2.14 as 2.14.90.0.8 is HJL's binutils based on a prelease and is most likely
not working. Also make sure that the gcc is finding the right as when configuring gcc.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14654
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c/14654] gcc does not support the visibility attribute?
2004-03-19 15:48 [Bug c/14654] New: gcc does not support the visibility attribute? jkolb at brandeis dot edu
` (2 preceding siblings ...)
2004-03-19 16:05 ` pinskia at gcc dot gnu dot org
@ 2004-03-19 19:30 ` jkolb at brandeis dot edu
2004-03-19 19:32 ` jkolb at brandeis dot edu
` (8 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: jkolb at brandeis dot edu @ 2004-03-19 19:30 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From jkolb at brandeis dot edu 2004-03-19 19:30 -------
Downgraded to binutils 2.14. Recompiled gcc, and I still get the error. So I'm
going to revert back to my previous version of binutils.
jkolb@glorfindel:~$ ld --version
GNU ld version 2.14 20030612
Copyright 2002 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License. This program has absolutely no warranty.
jkolb@glorfindel:~$ uname -a
Linux glorfindel 2.6.3 #1 Tue Mar 9 17:41:38 EST 2004 i686 unknown unknown GNU/Linux
--
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |UNCONFIRMED
Resolution|INVALID |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14654
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c/14654] gcc does not support the visibility attribute?
2004-03-19 15:48 [Bug c/14654] New: gcc does not support the visibility attribute? jkolb at brandeis dot edu
` (3 preceding siblings ...)
2004-03-19 19:30 ` jkolb at brandeis dot edu
@ 2004-03-19 19:32 ` jkolb at brandeis dot edu
2004-03-20 21:18 ` jkolb at brandeis dot edu
` (7 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: jkolb at brandeis dot edu @ 2004-03-19 19:32 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From jkolb at brandeis dot edu 2004-03-19 19:32 -------
Created an attachment (id=5947)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=5947&action=view)
gcc compile log.
This is the gcc compile log.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14654
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c/14654] gcc does not support the visibility attribute?
2004-03-19 15:48 [Bug c/14654] New: gcc does not support the visibility attribute? jkolb at brandeis dot edu
` (4 preceding siblings ...)
2004-03-19 19:32 ` jkolb at brandeis dot edu
@ 2004-03-20 21:18 ` jkolb at brandeis dot edu
2004-03-21 14:32 ` worf at sbox dot tu-graz dot ac dot at
` (6 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: jkolb at brandeis dot edu @ 2004-03-20 21:18 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From jkolb at brandeis dot edu 2004-03-20 21:18 -------
any thoughts?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14654
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c/14654] gcc does not support the visibility attribute?
2004-03-19 15:48 [Bug c/14654] New: gcc does not support the visibility attribute? jkolb at brandeis dot edu
` (5 preceding siblings ...)
2004-03-20 21:18 ` jkolb at brandeis dot edu
@ 2004-03-21 14:32 ` worf at sbox dot tu-graz dot ac dot at
2004-03-21 22:49 ` worf at sbox dot tu-graz dot ac dot at
` (5 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: worf at sbox dot tu-graz dot ac dot at @ 2004-03-21 14:32 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |worf at sbox dot tu-graz dot
| |ac dot at
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14654
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c/14654] gcc does not support the visibility attribute?
2004-03-19 15:48 [Bug c/14654] New: gcc does not support the visibility attribute? jkolb at brandeis dot edu
` (6 preceding siblings ...)
2004-03-21 14:32 ` worf at sbox dot tu-graz dot ac dot at
@ 2004-03-21 22:49 ` worf at sbox dot tu-graz dot ac dot at
2004-03-22 21:25 ` jkolb at brandeis dot edu
` (4 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: worf at sbox dot tu-graz dot ac dot at @ 2004-03-21 22:49 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From worf at sbox dot tu-graz dot ac dot at 2004-03-21 22:49 -------
same problem here.
downgraded to binutils 2.14 and rebuilt gcc, but no change.
any idea what else can be the cause?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14654
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c/14654] gcc does not support the visibility attribute?
2004-03-19 15:48 [Bug c/14654] New: gcc does not support the visibility attribute? jkolb at brandeis dot edu
` (7 preceding siblings ...)
2004-03-21 22:49 ` worf at sbox dot tu-graz dot ac dot at
@ 2004-03-22 21:25 ` jkolb at brandeis dot edu
2004-03-25 6:27 ` jkolb at brandeis dot edu
` (3 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: jkolb at brandeis dot edu @ 2004-03-22 21:25 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From jkolb at brandeis dot edu 2004-03-22 21:25 -------
Any help?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14654
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c/14654] gcc does not support the visibility attribute?
2004-03-19 15:48 [Bug c/14654] New: gcc does not support the visibility attribute? jkolb at brandeis dot edu
` (8 preceding siblings ...)
2004-03-22 21:25 ` jkolb at brandeis dot edu
@ 2004-03-25 6:27 ` jkolb at brandeis dot edu
2004-03-25 17:53 ` worf at sbox dot tu-graz dot ac dot at
` (2 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: jkolb at brandeis dot edu @ 2004-03-25 6:27 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From jkolb at brandeis dot edu 2004-03-25 06:27 -------
Turns out it's a weird version of coreutils, the problem was happening on
coreutils 5.2.0. When I upgraded to 5.2.1 and then recompiled binutils and gcc
it went away.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |WORKSFORME
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14654
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c/14654] gcc does not support the visibility attribute?
2004-03-19 15:48 [Bug c/14654] New: gcc does not support the visibility attribute? jkolb at brandeis dot edu
` (9 preceding siblings ...)
2004-03-25 6:27 ` jkolb at brandeis dot edu
@ 2004-03-25 17:53 ` worf at sbox dot tu-graz dot ac dot at
2004-03-25 18:00 ` jkolb at brandeis dot edu
2004-03-25 18:35 ` pinskia at gcc dot gnu dot org
12 siblings, 0 replies; 14+ messages in thread
From: worf at sbox dot tu-graz dot ac dot at @ 2004-03-25 17:53 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From worf at sbox dot tu-graz dot ac dot at 2004-03-25 17:53 -------
after about 20 rebuilds of gcc i found out!
No - it does not work by simply upgrade coreutils, and it's not a bug in
coreutils.
it is coreutils which does break it, but it seems to be a chown or something
like that, because if i do a "export _POSIX2_VERSION=199209" before building
gcc, everything is fine.
and one of the new things of coreutils 5.2.0 is that "chown user.group" is
invalid, a ":" is needed instead of the "." - which can be worked around by the
export mentioned above.
sigh - for 2 weeks i had a broken gcc, and trying to track the issue down i
compleately messed up my system. but now there is light. unfortunately i have
to do a reinstall now...
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14654
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c/14654] gcc does not support the visibility attribute?
2004-03-19 15:48 [Bug c/14654] New: gcc does not support the visibility attribute? jkolb at brandeis dot edu
` (10 preceding siblings ...)
2004-03-25 17:53 ` worf at sbox dot tu-graz dot ac dot at
@ 2004-03-25 18:00 ` jkolb at brandeis dot edu
2004-03-25 18:35 ` pinskia at gcc dot gnu dot org
12 siblings, 0 replies; 14+ messages in thread
From: jkolb at brandeis dot edu @ 2004-03-25 18:00 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From jkolb at brandeis dot edu 2004-03-25 18:00 -------
Then why did mine fix itself? DId you recompile binutils before gcc? Hm... I
also disabled the other languages (only built c and c++) so maybe that's the
problem?
--
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |UNCONFIRMED
Resolution|WORKSFORME |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14654
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c/14654] gcc does not support the visibility attribute?
2004-03-19 15:48 [Bug c/14654] New: gcc does not support the visibility attribute? jkolb at brandeis dot edu
` (11 preceding siblings ...)
2004-03-25 18:00 ` jkolb at brandeis dot edu
@ 2004-03-25 18:35 ` pinskia at gcc dot gnu dot org
12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-03-25 18:35 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-03-25 18:35 -------
It is a bug in coreutils as they should not have gotten ridden of the old options. We have to
support targets where "last -n 10" does not work but "last -10" does.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14654
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2004-03-25 18:35 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-19 15:48 [Bug c/14654] New: gcc does not support the visibility attribute? jkolb at brandeis dot edu
2004-03-19 15:56 ` [Bug c/14654] " pinskia at gcc dot gnu dot org
2004-03-19 15:59 ` jkolb at brandeis dot edu
2004-03-19 16:05 ` pinskia at gcc dot gnu dot org
2004-03-19 19:30 ` jkolb at brandeis dot edu
2004-03-19 19:32 ` jkolb at brandeis dot edu
2004-03-20 21:18 ` jkolb at brandeis dot edu
2004-03-21 14:32 ` worf at sbox dot tu-graz dot ac dot at
2004-03-21 22:49 ` worf at sbox dot tu-graz dot ac dot at
2004-03-22 21:25 ` jkolb at brandeis dot edu
2004-03-25 6:27 ` jkolb at brandeis dot edu
2004-03-25 17:53 ` worf at sbox dot tu-graz dot ac dot at
2004-03-25 18:00 ` jkolb at brandeis dot edu
2004-03-25 18:35 ` pinskia at gcc dot gnu dot org
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).