Package build problem on trusty

Asked by R4SAS

Hello.
I'm trying to build package in our team's PPA, but I have problem with building package for trusty for whole year.
At first time I found that trusty chroots looks like have decreased virtual memory size, so I applied removal of parallel build in package rules file.
But now even if I try to disable parallel build I can't build package anyway.

Problematic package build: https://launchpad.net/~purplei2p/+archive/ubuntu/i2pd/+build/24303196

Launchpad team, can you help solve the problem on YOUR side? Other distributions build without problems.

Question information

Language:
English Edit question
Status:
Answered
For:
Launchpad itself Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Ioana Lasc (ilasc) said :
#1

Hello

In the log you've shared I can see DEB_BUILD_OPTIONS taking a 4 parallel jobs config, you could try running this with a lower level of concurrency.

Revision history for this message
R4SAS (r4sas) said :
#2

How can I decrease parallel jobs? Add it with 'rules' file to env DEB_BUILD_OPTIONS variable?

Revision history for this message
R4SAS (r4sas) said :
#3

One more try with changing 'rules' file. Currently it contains such lines:

--- rules ---
#!/usr/bin/make -f
#export DH_VERBOSE=1

export DEB_BUILD_MAINT_OPTIONS=hardening=+all,parallel=2

include /usr/share/dpkg/architecture.mk

export DEB_CXXFLAGS_MAINT_APPEND=-Wall -pedantic
export DEB_LDFLAGS_MAINT_APPEND=

%:
        dh $@ --parallel

override_dh_auto_install:
--- end ---

Result: https://launchpad.net/~purplei2p/+archive/ubuntu/i2pd/+build/24308472
Still no luck.

Revision history for this message
Ioana Lasc (ilasc) said :
#4

You set it in your debian/rules file.

What you're sharing here is the setting of DEB_BUILD_MAINT_OPTIONS and not DEB_BUILD_OPTIONS. And you can see in the buildlog you shared (https://launchpad.net/~purplei2p/+archive/ubuntu/i2pd/+build/24308472) that DEB_BUILD_OPTIONS is still DEB_BUILD_OPTIONS=parallel=4 and expands to: make -j4 (see "dh_auto_build: make -j4 returned exit code 2" towards the end of the log).

Revision history for this message
R4SAS (r4sas) said :
#5

That's why I'm asking how to override, because DEB_BUILD_OPTIONS make same thing:

---rules---
#!/usr/bin/make -f
#export DH_VERBOSE=1

export DEB_BUILD_OPTIONS=parallel=2
export DEB_BUILD_MAINT_OPTIONS=hardening=+all

include /usr/share/dpkg/architecture.mk

export DEB_CXXFLAGS_MAINT_APPEND=-Wall -pedantic
export DEB_LDFLAGS_MAINT_APPEND=

%:
        dh $@ --parallel

override_dh_auto_install:
---end---

https://launchpad.net/~purplei2p/+archive/ubuntu/i2pd/+build/24318867

Revision history for this message
R4SAS (r4sas) said :
#6
Revision history for this message
Guruprasad (lgp171188) said :
#7

We are unable to help much with debugging your specific build. So you will have to try and figure this out on your own. My colleague mentioned that their guess is that the source package contains a gigantic source file that makes the compiler use lots of memory or that maybe it's a compiler bug.

Revision history for this message
Guruprasad (lgp171188) said :
#8

> At first time I found that trusty chroots looks like have decreased virtual memory size

It is definitely not true that trusty builds have reduced virtual memory compared to other series.

Since this issue is happening only on i386, it could be that the build is trying to use more than 4GiB of virtual memory, which isn't possible on the 32-bit i386 architecture. Parallelism may not have anything to do with this issue. So you could consider disabling i386 builds for this package, if you do not have any actual users on i386.

Can you help with this problem?

Provide an answer of your own, or ask R4SAS for more information if necessary.

To post a message you must log in.