Tiny Core Linux

Tiny Core Base => Raspberry Pi => Topic started by: bmarkus on April 17, 2013, 04:47:43 PM

Title: The longest native compilation
Post by: bmarkus on April 17, 2013, 04:47:43 PM
I'm just making webkit on Pi 512M RAM native. After 2days 6 hours not yet finished. Good point it compiles, no errors, no crashes. Swap usage is 250M.

So 8 hours for a GCC build is nothing :)
Title: Re: The longest native compilation
Post by: Rich on April 17, 2013, 05:11:31 PM
Hi bmarkus
This sounds like a job for distcc and a network of Raspberrys.
Title: Re: The longest native compilation
Post by: Lee on April 17, 2013, 05:41:24 PM
You just -know- you forgot some little setting that won't be obvious until the end.  :)

Does the Pi get hot when you make it work that hard for that long?
Title: Re: The longest native compilation
Post by: bmarkus on April 18, 2013, 01:56:00 AM
You just -know- you forgot some little setting that won't be obvious until the end.  :)

Hope not. I spent lot of time with dependencies and conf parameters but who knows still I try it

Does the Pi get hot when you make it work that hard for that long?

Didn't check temperature but don't think it is a problem. It is running on fix clock.
Title: Re: The longest native compilation
Post by: althalus on April 18, 2013, 07:40:20 PM
Does the Pi get hot when you make it work that hard for that long?
My Pi spent two days trying to compile SVN (somehow the make script had got itself into an infinite loop. Can't remember the details, but I've seen it happen twice now. Will write up something about it next time, thuogh it could be specific to my build tools). Desipte running at 100% CPU and almost maxed out RAM usage, it only got mildly warm.
Title: Re: The longest native compilation
Post by: bmarkus on April 19, 2013, 02:23:02 AM
It is still running, but doesn't look infinite loop. Just a simple make command used.
Title: Re: The longest native compilation
Post by: bmarkus on April 19, 2013, 03:47:27 AM
After 3 days and 16 hours compilation aborted. Just an 'Error 1', no details. Rerunning make you can see that both RAM and SWAP usage goes to the top so it is an out of resources issue. Need reduced video RAM, adjusted swappiness and more swap. And compilation in CLI not GUI.
Title: Re: The longest native compilation
Post by: aus9 on April 19, 2013, 04:21:50 AM
would it be possible for one of us, with a  x686 to cross-compile for you?
Title: Re: The longest native compilation
Post by: althalus on April 19, 2013, 04:48:50 AM
It is still running, but doesn't look infinite loop. Just a simple make command used.
Ah, details of my infinite looping have crept back in to brain - I didn't have the clock set, and some of the files extracted from the tar archive thus had their dates about 50 years ahead of the Pi. This apparently confuses make/gcc/etc horribly.
Title: Re: The longest native compilation
Post by: bmarkus on April 19, 2013, 06:32:48 AM
would it be possible for one of us, with a  x686 to cross-compile for you?

Contribution is always welcome. Let me know when you have a working webkit :)
Title: Re: The longest native compilation
Post by: bmarkus on April 19, 2013, 06:49:25 AM
Now I see the real error message, missing declarations...
Title: Re: The longest native compilation
Post by: aus9 on April 19, 2013, 08:49:01 AM
I did not wish to imply I already had one, but I assume cross-compiling can be done yes?

if so is this your source?
http://nightly.webkit.org/builds/trunk/src/1
Title: Re: The longest native compilation
Post by: bmarkus on April 19, 2013, 09:05:52 AM
Not using nightly builds, only stable releases.

I'm cross compiling only kernel and eglibc.

But don't ask me, I have my own preferences. Do it :)
Title: Re: The longest native compilation
Post by: mocore on April 20, 2013, 02:01:12 PM
I'm cross compiling only kernel and eglibc.

ahh now i relay start to see more of the advantages  raspi has to offer http://xkcd.com/303/#Compiling