Re: ld changed linking behaviour in precise?

2012-04-18 Thread Christoph Mathys
On Wed, Apr 18, 2012 at 4:29 PM, Stefano Rivera  wrote:
> Yes, see
> https://wiki.ubuntu.com/OneiricOcelot/ReleaseNotes#GCC_4.6_Toolchain

Very informative, thanks! After reading through the document, I guess
I'll fix the linking instead of turning back on the flag :).

> This is the patch being applied:
> http://bazaar.launchpad.net/~ubuntu-branches/ubuntu/precise/gcc-4.6/precise/view/head:/debian/patches/gcc-as-needed.diff
>
> It doesn't touch the manpage, that's clearly a bug :)

Will this be taken care of? Should I file a bug report?

Christoph

-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


Re: ld changed linking behaviour in precise?

2012-04-18 Thread Christoph Mathys
On Thu, Apr 19, 2012 at 2:54 AM, Colin Watson  wrote:
> ... but not compared to precise a few days ago, as Christoph said.  As
> far as I know, --as-needed has been in place for the lifetime of
> precise.

It is of course conveivable that our code changed just enough to
trigger said build failure. I just assumed (because the code worked a
week or so ago) that it probably has something to do with the recent
update to gcc, which invalidated my precompiled headers.

Christoph

-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


Old Turtle

2012-04-18 Thread Alan Jhonn Aguiar Schwyn


Hi,
I try to install the TurtleArt in Synaptic and only have the version 98..I have 
the latest sources (of precise pnagolin)...The latest Turtle are 138!
http://activities.sugarlabs.org/en-US/sugar/addon/4027
Someone can update it?
Regards!
Alan  -- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


Re: ld changed linking behaviour in precise?

2012-04-18 Thread Colin Watson
On Wed, Apr 18, 2012 at 04:29:15PM +0200, Stefano Rivera wrote:
> Hi Christoph (2012.04.18_16:18:18_+0200)
> > The default of the linker flag --as-needed seems to be different
> > compared to lucid and precise a few days ago.
> ...
> > Assuming I diagnosed this correctly, was this change intentional?
> 
> Yes, see
> https://wiki.ubuntu.com/OneiricOcelot/ReleaseNotes#GCC_4.6_Toolchain

... but not compared to precise a few days ago, as Christoph said.  As
far as I know, --as-needed has been in place for the lifetime of
precise.

-- 
Colin Watson   [cjwat...@ubuntu.com]

-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


Re: ld changed linking behaviour in precise?

2012-04-18 Thread Stefano Rivera
Hi Christoph (2012.04.18_16:18:18_+0200)
> The default of the linker flag --as-needed seems to be different
> compared to lucid and precise a few days ago.
...
> Assuming I diagnosed this correctly, was this change intentional?

Yes, see
https://wiki.ubuntu.com/OneiricOcelot/ReleaseNotes#GCC_4.6_Toolchain

> And for the future: Where can I find the defaults of such command line
> switches for gcc/ld? Are there any distro specific overrides? Because
> 'man ld' still tells me that --no-as-needed is the default...

This is the patch being applied:
http://bazaar.launchpad.net/~ubuntu-branches/ubuntu/precise/gcc-4.6/precise/view/head:/debian/patches/gcc-as-needed.diff

It doesn't touch the manpage, that's clearly a bug :)

SR

-- 
Stefano Rivera
  http://tumbleweed.org.za/
  H: +27 21 461 1230 C: +27 72 419 8559

-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


ld changed linking behaviour in precise?

2012-04-18 Thread Christoph Mathys
Today, my build suddenly had a linker error out of nowhere. Further
investigations revealed:
The default of the linker flag --as-needed seems to be different
compared to lucid and precise a few days ago. While earlier versions
assumed --no-as-needed by default, now the default seems to be to use
--as-needed. Because of that, some libraries which were needlessly
linked against others were not linked anymore. This later caused
'undefined reference' warnings, because said needlessly linked
libraries were no longer recursivly included in other libraries.

Assuming I diagnosed this correctly, was this change intentional?

And for the future: Where can I find the defaults of such command line
switches for gcc/ld? Are there any distro specific overrides? Because
'man ld' still tells me that --no-as-needed is the default...

Christoph

-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss