Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 427844

Summary: net-libs/gnutls[guile] fails looking for enums.h, parallel build failure
Product: Gentoo Linux Reporter: Nathan Phillip Brink (binki) (RETIRED) <binki>
Component: [OLD] LibraryAssignee: Crypto team [DISABLED] <crypto+disabled>
Status: RESOLVED FIXED    
Severity: normal Keywords: PATCH
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=437256
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 351559    
Attachments: gnutls-2.12.18-guile-parallel-build.patch
gnutls-2.12.18-build.log
gnutls-2.12.18-emerge--info.txt

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.