Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 427844 - net-libs/gnutls[guile] fails looking for enums.h, parallel build failure
Summary: net-libs/gnutls[guile] fails looking for enums.h, parallel build failure
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Crypto team [DISABLED]
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: parallel-make
  Show dependency tree
 
Reported: 2012-07-24 05:19 UTC by Nathan Phillip Brink (binki) (RETIRED)
Modified: 2012-10-19 19:31 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
gnutls-2.12.18-guile-parallel-build.patch (gnutls-2.12.18-guile-parallel-build.patch,452 bytes, patch)
2012-07-24 05:19 UTC, Nathan Phillip Brink (binki) (RETIRED)
Details | Diff
gnutls-2.12.18-build.log (gnutls-2.12.18-build.log,248.95 KB, text/plain)
2012-07-24 05:20 UTC, Nathan Phillip Brink (binki) (RETIRED)
Details
gnutls-2.12.18-emerge--info.txt (gnutls-2.12.18-emerge--info.txt,8.21 KB, text/plain)
2012-07-24 05:20 UTC, Nathan Phillip Brink (binki) (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nathan Phillip Brink (binki) (RETIRED) gentoo-dev 2012-07-24 05:19:06 UTC
Created attachment 319058 [details, diff]
gnutls-2.12.18-guile-parallel-build.patch

/usr/bin/guile-snarf -o core.x core.c -DHAVE_CONFIG_H  -I../../lib/includes -I../../lib/includes -I../../libextra/includes -I../.. -I. -DBINKI_TRACER_CPPFLAG  -O2 -pipe -march=athlon64 -g -ggdb -ftree-vectorize -falign-functions=16 -falign-labels=16 -falign-jumps=16 -m64 -Wno-strict-prototypes  -pthread
core.c:32:19: fatal error: enums.h: No such file or directory
compilation terminated.
make[3]: *** [core.x] Error 1
make[3]: Leaving directory `/var/tmp/portage/net-libs/gnutls-2.12.18/work/gnutls-2.12.18/guile/src'


This enums.h is something that should have been built but hadn't been because of parallel build issues:
ohnopublishing ~ # find /var/tmp/portage/net-libs/gnutls-2.12.18/work/gnutls-2.12.18 -name 'Makefile' -print0 | xargs -0 grep -e 'enums\.h'
/var/tmp/portage/net-libs/gnutls-2.12.18/work/gnutls-2.12.18/guile/src/Makefile:BUILT_SOURCES = enum-map.i.c smob-types.i.c enums.h smobs.h     \
/var/tmp/portage/net-libs/gnutls-2.12.18/work/gnutls-2.12.18/guile/src/Makefile:                extra-smobs.h extra-enums.h                     \
/var/tmp/portage/net-libs/gnutls-2.12.18/work/gnutls-2.12.18/guile/src/Makefile:enums.h: $(srcdir)/make-enum-header.scm
/var/tmp/portage/net-libs/gnutls-2.12.18/work/gnutls-2.12.18/guile/src/Makefile:extra-enums.h: $(srcdir)/make-enum-header.scm

Attached patch solves this particular parallel build issue for me.
Comment 1 Nathan Phillip Brink (binki) (RETIRED) gentoo-dev 2012-07-24 05:20:02 UTC
Created attachment 319060 [details]
gnutls-2.12.18-build.log
Comment 2 Nathan Phillip Brink (binki) (RETIRED) gentoo-dev 2012-07-24 05:20:21 UTC
Created attachment 319062 [details]
gnutls-2.12.18-emerge--info.txt
Comment 3 Nathan Phillip Brink (binki) (RETIRED) gentoo-dev 2012-07-24 06:22:26 UTC
Also experienced same build failure with net-libs/gnutls-3.0.21. Patch from attachment 319058 [details, diff] seems to be forward-compatible with this version of gnutls.
Comment 4 Dane Smith (RETIRED) gentoo-dev 2012-10-19 19:31:09 UTC
Should be fixed in CVS.

19 Oct 2012; Dane Smith <c1pher@gentoo.org> -gnutls-2.12.18.ebuild,
  gnutls-2.12.20.ebuild, +files/gnutls-2.12.20-guile-parallelmake.patch,
  gnutls-3.1.3.ebuild, +files/gnutls-3.1.3-guile-parallelmake.patch:
  Add patches to fix parallel make issues in bug 427844 and bug 437256.
  Update ebuilds for 2.12.20 and 3.1.3 to make use of said patches.
  Drop old.

Thanks for the patch Nathan. I completely forgot that in the commit message and didn't notice it until just now. Sorry.