public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/49380] New: Several packages fail to link when building with GCC4.6 (amarok 1.4, FreeCAD)
@ 2011-06-12  9:39 anixx at opensuse dot org
  2011-06-12 10:25 ` [Bug c++/49380] [4.6 Regression] " anixx at opensuse dot org
                   ` (15 more replies)
  0 siblings, 16 replies; 17+ messages in thread
From: anixx at opensuse dot org @ 2011-06-12  9:39 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49380

           Summary: Several packages fail to link when building with
                    GCC4.6 (amarok 1.4, FreeCAD)
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: anixx@opensuse.org


Several packages express linking error after being compiled with GCC 4.6. I
found no relevant section in the GCC 4.6 release notes. Neither -fexceptions,
nor other possible flags help. 

Here are the links to build logs:

https://build.opensuse.org/package/rawlog?arch=i586&package=kde3-amarok&project=KDE%3AKDE3&repository=openSUSE_Factory

https://build.opensuse.org/stage/package/rawlog?arch=i586&package=FreeCAD&project=KDE%3AKDE3&repository=openSUSE_Factory

Sources:

https://build.opensuse.org/package/files?package=kde3-amarok&project=KDE%3AKDE3

https://build.opensuse.org/package/files?package=FreeCAD&project=KDE%3AKDE3

The GCC version used is 4.6.0_20110607-2.1

Other teams who build the same software also reported similar problems:

https://aur.archlinux.org/packages.php?ID=25712

http://comments.gmane.org/gmane.comp.desktop.trinity.devel/20


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

* [Bug c++/49380] [4.6 Regression] Several packages fail to link when building with GCC4.6 (amarok 1.4, FreeCAD)
  2011-06-12  9:39 [Bug c++/49380] New: Several packages fail to link when building with GCC4.6 (amarok 1.4, FreeCAD) anixx at opensuse dot org
@ 2011-06-12 10:25 ` anixx at opensuse dot org
  2011-06-12 11:48 ` rguenth at gcc dot gnu.org
                   ` (14 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: anixx at opensuse dot org @ 2011-06-12 10:25 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49380

--- Comment #1 from Ilya Chernykh <anixx at opensuse dot org> 2011-06-12 10:25:07 UTC ---
Sorry, I meant I tried -fpermissive of course, not -fexceptions


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

* [Bug c++/49380] [4.6 Regression] Several packages fail to link when building with GCC4.6 (amarok 1.4, FreeCAD)
  2011-06-12  9:39 [Bug c++/49380] New: Several packages fail to link when building with GCC4.6 (amarok 1.4, FreeCAD) anixx at opensuse dot org
  2011-06-12 10:25 ` [Bug c++/49380] [4.6 Regression] " anixx at opensuse dot org
@ 2011-06-12 11:48 ` rguenth at gcc dot gnu.org
  2011-06-12 12:11 ` anixx at opensuse dot org
                   ` (13 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-06-12 11:48 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49380

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2011.06.12 11:48:18
     Ever Confirmed|0                           |1

--- Comment #2 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-06-12 11:48:18 UTC ---
Please provide a testcase.


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

* [Bug c++/49380] [4.6 Regression] Several packages fail to link when building with GCC4.6 (amarok 1.4, FreeCAD)
  2011-06-12  9:39 [Bug c++/49380] New: Several packages fail to link when building with GCC4.6 (amarok 1.4, FreeCAD) anixx at opensuse dot org
  2011-06-12 10:25 ` [Bug c++/49380] [4.6 Regression] " anixx at opensuse dot org
  2011-06-12 11:48 ` rguenth at gcc dot gnu.org
@ 2011-06-12 12:11 ` anixx at opensuse dot org
  2011-06-12 12:28 ` anixx at opensuse dot org
                   ` (12 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: anixx at opensuse dot org @ 2011-06-12 12:11 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49380

--- Comment #3 from Ilya Chernykh <anixx at opensuse dot org> 2011-06-12 12:11:19 UTC ---
Sorry I do not know what triggers the bugs. The sources are there.


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

* [Bug c++/49380] [4.6 Regression] Several packages fail to link when building with GCC4.6 (amarok 1.4, FreeCAD)
  2011-06-12  9:39 [Bug c++/49380] New: Several packages fail to link when building with GCC4.6 (amarok 1.4, FreeCAD) anixx at opensuse dot org
                   ` (2 preceding siblings ...)
  2011-06-12 12:11 ` anixx at opensuse dot org
@ 2011-06-12 12:28 ` anixx at opensuse dot org
  2011-06-12 12:34 ` anixx at opensuse dot org
                   ` (11 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: anixx at opensuse dot org @ 2011-06-12 12:28 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49380

--- Comment #4 from Ilya Chernykh <anixx at opensuse dot org> 2011-06-12 12:27:56 UTC ---
Seems the buil.opensuse.org server is currently down which was not the case
when I submitted the bugreport. I suggest to try in a few hours.


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

* [Bug c++/49380] [4.6 Regression] Several packages fail to link when building with GCC4.6 (amarok 1.4, FreeCAD)
  2011-06-12  9:39 [Bug c++/49380] New: Several packages fail to link when building with GCC4.6 (amarok 1.4, FreeCAD) anixx at opensuse dot org
                   ` (3 preceding siblings ...)
  2011-06-12 12:28 ` anixx at opensuse dot org
@ 2011-06-12 12:34 ` anixx at opensuse dot org
  2011-06-12 12:37 ` rguenth at gcc dot gnu.org
                   ` (10 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: anixx at opensuse dot org @ 2011-06-12 12:34 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49380

--- Comment #5 from Ilya Chernykh <anixx at opensuse dot org> 2011-06-12 12:34:25 UTC ---
One more link to a build log in another project:

http://trinity-devel.pearsoncomputing.net/?0::2177


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

* [Bug c++/49380] [4.6 Regression] Several packages fail to link when building with GCC4.6 (amarok 1.4, FreeCAD)
  2011-06-12  9:39 [Bug c++/49380] New: Several packages fail to link when building with GCC4.6 (amarok 1.4, FreeCAD) anixx at opensuse dot org
                   ` (4 preceding siblings ...)
  2011-06-12 12:34 ` anixx at opensuse dot org
@ 2011-06-12 12:37 ` rguenth at gcc dot gnu.org
  2011-06-12 13:48 ` rguenth at gcc dot gnu.org
                   ` (9 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-06-12 12:37 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49380

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.6.1


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

* [Bug c++/49380] [4.6 Regression] Several packages fail to link when building with GCC4.6 (amarok 1.4, FreeCAD)
  2011-06-12  9:39 [Bug c++/49380] New: Several packages fail to link when building with GCC4.6 (amarok 1.4, FreeCAD) anixx at opensuse dot org
                   ` (5 preceding siblings ...)
  2011-06-12 12:37 ` rguenth at gcc dot gnu.org
@ 2011-06-12 13:48 ` rguenth at gcc dot gnu.org
  2011-06-12 14:03 ` anixx at opensuse dot org
                   ` (8 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-06-12 13:48 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49380

--- Comment #6 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-06-12 13:48:04 UTC ---
undefined reference to `Amarok::aboutData'

suggests a bug in Amarok instead.  Please provide pre-processed source of
the file with the undefined reference and the file which is supposedly
defining Amarok::aboutData.


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

* [Bug c++/49380] [4.6 Regression] Several packages fail to link when building with GCC4.6 (amarok 1.4, FreeCAD)
  2011-06-12  9:39 [Bug c++/49380] New: Several packages fail to link when building with GCC4.6 (amarok 1.4, FreeCAD) anixx at opensuse dot org
                   ` (6 preceding siblings ...)
  2011-06-12 13:48 ` rguenth at gcc dot gnu.org
@ 2011-06-12 14:03 ` anixx at opensuse dot org
  2011-06-12 14:04 ` anixx at opensuse dot org
                   ` (7 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: anixx at opensuse dot org @ 2011-06-12 14:03 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49380

--- Comment #7 from Ilya Chernykh <anixx at opensuse dot org> 2011-06-12 14:03:26 UTC ---
Created attachment 24497
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24497
file with the undefined reference

I don't know how to obtain pre-processed source but here are the files.


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

* [Bug c++/49380] [4.6 Regression] Several packages fail to link when building with GCC4.6 (amarok 1.4, FreeCAD)
  2011-06-12  9:39 [Bug c++/49380] New: Several packages fail to link when building with GCC4.6 (amarok 1.4, FreeCAD) anixx at opensuse dot org
                   ` (7 preceding siblings ...)
  2011-06-12 14:03 ` anixx at opensuse dot org
@ 2011-06-12 14:04 ` anixx at opensuse dot org
  2011-06-12 14:06 ` anixx at opensuse dot org
                   ` (6 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: anixx at opensuse dot org @ 2011-06-12 14:04 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49380

--- Comment #8 from Ilya Chernykh <anixx at opensuse dot org> 2011-06-12 14:03:56 UTC ---
Created attachment 24498
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24498
file with the definition


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

* [Bug c++/49380] [4.6 Regression] Several packages fail to link when building with GCC4.6 (amarok 1.4, FreeCAD)
  2011-06-12  9:39 [Bug c++/49380] New: Several packages fail to link when building with GCC4.6 (amarok 1.4, FreeCAD) anixx at opensuse dot org
                   ` (8 preceding siblings ...)
  2011-06-12 14:04 ` anixx at opensuse dot org
@ 2011-06-12 14:06 ` anixx at opensuse dot org
  2011-06-12 14:09 ` anixx at opensuse dot org
                   ` (5 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: anixx at opensuse dot org @ 2011-06-12 14:06 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49380

--- Comment #9 from Ilya Chernykh <anixx at opensuse dot org> 2011-06-12 14:06:25 UTC ---
This happens only with GCC 4.6, with GCC 4.5 builds well.


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

* [Bug c++/49380] [4.6 Regression] Several packages fail to link when building with GCC4.6 (amarok 1.4, FreeCAD)
  2011-06-12  9:39 [Bug c++/49380] New: Several packages fail to link when building with GCC4.6 (amarok 1.4, FreeCAD) anixx at opensuse dot org
                   ` (9 preceding siblings ...)
  2011-06-12 14:06 ` anixx at opensuse dot org
@ 2011-06-12 14:09 ` anixx at opensuse dot org
  2011-06-12 21:01 ` anixx at opensuse dot org
                   ` (4 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: anixx at opensuse dot org @ 2011-06-12 14:09 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49380

--- Comment #10 from Ilya Chernykh <anixx at opensuse dot org> 2011-06-12 14:09:32 UTC ---
Created attachment 24499
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24499
this file defines attributes


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

* [Bug c++/49380] [4.6 Regression] Several packages fail to link when building with GCC4.6 (amarok 1.4, FreeCAD)
  2011-06-12  9:39 [Bug c++/49380] New: Several packages fail to link when building with GCC4.6 (amarok 1.4, FreeCAD) anixx at opensuse dot org
                   ` (10 preceding siblings ...)
  2011-06-12 14:09 ` anixx at opensuse dot org
@ 2011-06-12 21:01 ` anixx at opensuse dot org
  2011-06-12 21:10 ` anixx at opensuse dot org
                   ` (3 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: anixx at opensuse dot org @ 2011-06-12 21:01 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49380

--- Comment #11 from Ilya Chernykh <anixx at opensuse dot org> 2011-06-12 21:01:04 UTC ---
The build.opensuse.org website is back into operation.


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

* [Bug c++/49380] [4.6 Regression] Several packages fail to link when building with GCC4.6 (amarok 1.4, FreeCAD)
  2011-06-12  9:39 [Bug c++/49380] New: Several packages fail to link when building with GCC4.6 (amarok 1.4, FreeCAD) anixx at opensuse dot org
                   ` (11 preceding siblings ...)
  2011-06-12 21:01 ` anixx at opensuse dot org
@ 2011-06-12 21:10 ` anixx at opensuse dot org
  2011-06-13 11:24 ` [Bug c++/49380] [4.6/4.7 " rguenth at gcc dot gnu.org
                   ` (2 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: anixx at opensuse dot org @ 2011-06-12 21:10 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49380

--- Comment #12 from Ilya Chernykh <anixx at opensuse dot org> 2011-06-12 21:09:42 UTC ---
Well seems I resolved the Amarok issue. The FreeCAD issue still remains.


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

* [Bug c++/49380] [4.6/4.7 Regression] Several packages fail to link when building with GCC4.6 (amarok 1.4, FreeCAD)
  2011-06-12  9:39 [Bug c++/49380] New: Several packages fail to link when building with GCC4.6 (amarok 1.4, FreeCAD) anixx at opensuse dot org
                   ` (12 preceding siblings ...)
  2011-06-12 21:10 ` anixx at opensuse dot org
@ 2011-06-13 11:24 ` rguenth at gcc dot gnu.org
  2011-06-13 12:07 ` jakub at gcc dot gnu.org
  2011-06-13 12:18 ` anixx at opensuse dot org
  15 siblings, 0 replies; 17+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-06-13 11:24 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49380

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |NEW
      Known to work|                            |4.5.3
            Summary|[4.6 Regression] Several    |[4.6/4.7 Regression]
                   |packages fail to link when  |Several packages fail to
                   |building with GCC4.6        |link when building with
                   |(amarok 1.4, FreeCAD)       |GCC4.6 (amarok 1.4,
                   |                            |FreeCAD)

--- Comment #13 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-06-13 11:24:30 UTC ---
You can obtain preprocessed source by appending -save-temps to the GCC
command-line that builds a file.

Compared to 4.5, 4.6 creates a reference to Bar::foo instead of ::foo for

void foo (int);
namespace Bar {
  void bar (int);
};
void Bar::bar(int i)
{
  extern void foo (int);
  foo (i);
}

Not sure if that is what is expected (thus, wrong in 4.5 and good in 4.6)
or not.  It doesn't seem possible to qualify the local extern decl so that
::foo is picked up.  Supposedly one should use 'using ::foo' instad of a
local extern declaration.


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

* [Bug c++/49380] [4.6/4.7 Regression] Several packages fail to link when building with GCC4.6 (amarok 1.4, FreeCAD)
  2011-06-12  9:39 [Bug c++/49380] New: Several packages fail to link when building with GCC4.6 (amarok 1.4, FreeCAD) anixx at opensuse dot org
                   ` (13 preceding siblings ...)
  2011-06-13 11:24 ` [Bug c++/49380] [4.6/4.7 " rguenth at gcc dot gnu.org
@ 2011-06-13 12:07 ` jakub at gcc dot gnu.org
  2011-06-13 12:18 ` anixx at opensuse dot org
  15 siblings, 0 replies; 17+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-06-13 12:07 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49380

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |jakub at gcc dot gnu.org
         Resolution|                            |INVALID

--- Comment #14 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-06-13 12:06:41 UTC ---
http://gcc.gnu.org/ml/gcc-patches/2010-04/msg00305.html
http://gcc.gnu.org/viewcvs?view=revision&revision=158074
Thus invalid.


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

* [Bug c++/49380] [4.6/4.7 Regression] Several packages fail to link when building with GCC4.6 (amarok 1.4, FreeCAD)
  2011-06-12  9:39 [Bug c++/49380] New: Several packages fail to link when building with GCC4.6 (amarok 1.4, FreeCAD) anixx at opensuse dot org
                   ` (14 preceding siblings ...)
  2011-06-13 12:07 ` jakub at gcc dot gnu.org
@ 2011-06-13 12:18 ` anixx at opensuse dot org
  15 siblings, 0 replies; 17+ messages in thread
From: anixx at opensuse dot org @ 2011-06-13 12:18 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49380

--- Comment #15 from Ilya Chernykh <anixx at opensuse dot org> 2011-06-13 12:17:47 UTC ---
I think this is fixed already?


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

end of thread, other threads:[~2011-06-13 12:18 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-12  9:39 [Bug c++/49380] New: Several packages fail to link when building with GCC4.6 (amarok 1.4, FreeCAD) anixx at opensuse dot org
2011-06-12 10:25 ` [Bug c++/49380] [4.6 Regression] " anixx at opensuse dot org
2011-06-12 11:48 ` rguenth at gcc dot gnu.org
2011-06-12 12:11 ` anixx at opensuse dot org
2011-06-12 12:28 ` anixx at opensuse dot org
2011-06-12 12:34 ` anixx at opensuse dot org
2011-06-12 12:37 ` rguenth at gcc dot gnu.org
2011-06-12 13:48 ` rguenth at gcc dot gnu.org
2011-06-12 14:03 ` anixx at opensuse dot org
2011-06-12 14:04 ` anixx at opensuse dot org
2011-06-12 14:06 ` anixx at opensuse dot org
2011-06-12 14:09 ` anixx at opensuse dot org
2011-06-12 21:01 ` anixx at opensuse dot org
2011-06-12 21:10 ` anixx at opensuse dot org
2011-06-13 11:24 ` [Bug c++/49380] [4.6/4.7 " rguenth at gcc dot gnu.org
2011-06-13 12:07 ` jakub at gcc dot gnu.org
2011-06-13 12:18 ` anixx at opensuse 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).