timeouts building ppa packages that used to build flawlessly
Hi, I have been successfully compiling packages for Yade simulation program for several months, in https:/
I have no problems building the package locally; I tried the following, without any changes:
1. explicitly disable parallel build (I know old version of fakeroot had issues with that); by default, I used value passed in DEB_BUILD_OPTIONS, which is 2 according to build logs.
2. make number of files in one compilation unit smaller, in order to decrease RAM usage (it might go over 4GB for the largest compilation unit, and over 12GB for parallel builds)
Build logs of 2 of those builds are here:
https:/
https:/
Can you investigate in more detail what happened, or give me some advice how to avoid this problem?
Thanks, Václav
---
Relevant part of one of the build logs:
[ ... commands run during the build, this is the last one ...]
cp -f py/ymport.py debian/
Session terminated, killing shell...make: *** [install] Terminated
...killed.
scons: *** [debian/
scons: Build interrupted.
scons: building terminated because of errors.
scons: writing .sconsign file.
semop(1): encountered an error: Invalid argument
Build killed with signal 15 after 150 minutes of inactivity
*******
Build finished at 20100324-0150
FAILED [dpkg-buildpackage died]
[ ...cleanup commands... ]
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- Build Daemon Maintainers Edit question
- Solved by:
- Václav Šmilauer
- Solved:
- 2010-04-02
- Last query:
- 2010-04-02
- Last reply:
- 2010-04-02
Hi Václav,
Looking at:
https:/
it seems that it's only Karmic builds of yade-bzr that are failing, although exceptions are:
28/03/2010 - took 9 hrs (https:/
10/03/2010 - took 24 minutes! (https:/
I'm not sure what might have changed on the buildd environments, but the "Build killed with signal 15 after x minutes of inactivity" seems to imply that the build process itself is stalling sometimes? I'm assuming you've done this build in pbuilder etc.
I'll see if Lamont (our buildd specialist) can take a look.
Didn't mean to set the question as "Answered" with my previous comment.
| Václav Šmilauer (eudoxos) said : | #3 |
Michael, thanks for your comments. The 25 minutes build was broken as most of the program wasn't compiled at all.
I double-checked in local pbuilder, the bottleneck is, as with usual local builds, compilation of libplugins.so (it happens twice, once for the debug build and once for the optimized build);
* compiler takes over 4GB of RAM on that file
* as assmbles it for about 5 minutes (the debug one; the optimized one goes fast)
* ld links it for 5 minutes (using vanilla binutils linker; it is about 10x faster with binutils-gold that I use locally, but I don't want to add it to build-deps since it didn't exist in older distribution)
All this on pretty snappy 2.66GHz i7 + 12GB RAM (DDR3); the total build took about 25 minutes in pbuilder chroot on ramdisk.
Don't have the buildbots 4GB RAM and start swapping during the build? That would then slow it down 1000x, explaining the timeout, as well as that https:/
I can split the build ot libplugins.so into several translation units, to decrease RAM usage, but I would like to have pointer to a possible cause first, to not overcharge launchpad with useless experimentation.
Thanks.
On Monday 29 March 2010 08:11:46 you wrote:
> I'm not sure what might have changed on the buildd environments, but the
> "Build killed with signal 15 after x minutes of inactivity" seems to
> imply that the build process itself is stalling sometimes? I'm assuming
> you've done this build in pbuilder etc.
>
This signal happens when there's no build output for a while IIRC.
| Václav Šmilauer (eudoxos) said : | #5 |
@Julian: thanks. What can be its cause on the build machine? swapping? As said, it compiles normally in local pbuilder.
I would only be guessing but yes, swapping would slow it down a lot.
| Václav Šmilauer (eudoxos) said : | #7 |
Someone can give (non-guess) information on RAM on the build nodes?
(If not, I can create debian/rules that will run free or such, but I imagine someone knows this??)
The build machines are not identical, the memory varies between 1-2GiB.
| LaMont Jones (lamont) said : | #9 |
Most of the buildd machines have at least 1.5GB, though I suspect that at least one has .75GB of RAM. More than 2GB of RAM would be rare, and over 3.5GB would surprise me.
| Václav Šmilauer (eudoxos) said : | #10 |
Thanks, LaMont. I think it is clear now.
