Re: Launchpad i386 build: Memory exhausted

2018-03-15 Thread Dmitry Shachnev
On Wed, Mar 14, 2018 at 09:56:46AM +0100, Cesare Falco wrote:
> I'm asking everyone for advice: assuming that no i386 build seems possible
> any more, should I:
> - stop maintaing Mame
> - remove i386 from the supported archs
> - ... (any suggestion is welcome here!)

As Colin said, you should try to reduce memory usage by the linker.

Try:

- replacing -g with -g1 or maybe no debug symbols at all;
- disabling caching of symbols tables (-Wl,--no-keep-memory);
- adding -Wl,--reduce-memory-overheads.
- switching to another linker (bfd vs. gold) if none of the above helps.

Usually just using -g1 saves lots of memory.

--
Dmitry Shachnev


signature.asc
Description: PGP signature
-- 
ubuntu-devel mailing list
ubuntu-devel@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel


Re: Launchpad i386 build: Memory exhausted

2018-03-14 Thread Cesare Falco
2018-02-16 11:37 GMT+01:00 Colin Watson :

> On Fri, Feb 16, 2018 at 09:21:56AM +0100, Cesare Falco wrote:
> > I'm packaging latest MAME 0.194 and it builds fine on my PPA.
> > Unfortunately, link fails for i386 due to virtual machine memory issues:
> >
> > /usr/bin/ld: final link failed: Memory exhausted
> [...]
> > Does anyone know whether virtual machines for official Ubuntu releases
> have
> > more resources, specifically more memory?
>
> PPA builds and Ubuntu builds use 100% identical virtual machines.
>
> Anyway, it's not that the virtual *machine* is out of memory; it's that
> any single 32-bit process can only address a certain amount of that
> memory.  As far as I'm aware, there's no option but to continue trying
> to persuade the linker to take less memory.
>
>
Mame 0.195 has been released in the meantime.
I experimented lots of tweaking and they all led me nowhere. :-(

The resulting executable is *big* indeed, and this is the definitive issue.
:-/

I'm asking everyone for advice: assuming that no i386 build seems possible
any more, should I:
- stop maintaing Mame
- remove i386 from the supported archs
- ... (any suggestion is welcome here!)

Thank you all in advance, have a nice day!
Cesare
-- 
ubuntu-devel mailing list
ubuntu-devel@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel


Launchpad i386 build: Memory exhausted

2018-02-16 Thread Cesare Falco
Hello everyone,

I'm packaging latest MAME 0.194 and it builds fine on my PPA.
Unfortunately, link fails for i386 due to virtual machine memory issues:

/usr/bin/ld: final link failed: Memory exhausted

You can find a full log for build here:
https://launchpadlibrarian.net/357194916/buildlog_ubuntu-artful-i386.mame_0.194+dfsg.1-0ubuntu1~ppa2~artful1_BUILDING.txt.gz

and also here in case I got struck by the greatest idea and try a new build
:)
https://pastebin.com/dZLResCK

Please note I've already put great care in tweaking linker options to
reduce memory consumption, with no luck. I've already faced this issue in
backporting, but it never occured with current release. It's worth noting
that the default compiler in Artful (gcc 7) is also the recommended
compiler by upstream developers, so forcing a different release doesn't
look an option either.

It would be nice to have a working i386 build on my PPA, but what I care
more is uploading Mame 0.194 to Bionic.

Does anyone know whether virtual machines for official Ubuntu releases have
more resources, specifically more memory? Should I try uploading the
tarball and see? What happens if I get the same memory issue, would I be
able to downgrade to 0.193?

I'm looking forward for any kind advice, thank you in advance! :)

Cheers,
Cesare
-- 
ubuntu-devel mailing list
ubuntu-devel@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel