Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 722126 - sys-devel/bison-3.6 fails compile: src/files.c:24:10: fatal error: configmake.h: No such file or directory
Summary: sys-devel/bison-3.6 fails compile: src/files.c:24:10: fatal error: configmake...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: parallel-make
  Show dependency tree
 
Reported: 2020-05-10 13:30 UTC by Kent Fredric (IRC: kent\n) (RETIRED)
Modified: 2022-12-28 00:03 UTC (History)
0 users

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


Attachments
build.log.gz (bison-3.6:20200509-180749.log.gz,23.19 KB, application/gzip)
2020-05-10 13:30 UTC, Kent Fredric (IRC: kent\n) (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2020-05-10 13:30:08 UTC
Created attachment 637528 [details]
build.log.gz

Could be randomness / -j related, but its specific failure doesn't appear in any bugs I searched for.

Error context:

x86_64-pc-linux-gnu-gcc -DEXEEXT=\"\"   -I. -I./lib -I. -I./lib -DINSTALLDIR=\"/usr/bin\"    -O2 -pipe -mtune=native -march=native -c -o src/bison-conflicts.o `test -f 'src/conflicts.c' || echo './'`src/conflicts.c
x86_64-pc-linux-gnu-gcc -DEXEEXT=\"\"   -I. -I./lib -I. -I./lib -DINSTALLDIR=\"/usr/bin\"    -O2 -pipe -mtune=native -march=native -c -o src/bison-derives.o `test -f 'src/derives.c' || echo './'`src/derives.c
x86_64-pc-linux-gnu-gcc -DEXEEXT=\"\"   -I. -I./lib -I. -I./lib -DINSTALLDIR=\"/usr/bin\"    -O2 -pipe -mtune=native -march=native -c -o src/bison-files.o `test -f 'src/files.c' || echo './'`src/files.c
src/files.c:24:10: fatal error: configmake.h: No such file or directory
   24 | #include <configmake.h> /* PKGDATADIR */
      |          ^~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:7335: src/bison-files.o] Error 1
 * ERROR: sys-devel/bison-3.6::gentoo failed (compile phase):
 *   emake failed
 * 

einfo:


> Portage 2.3.99 (python 3.7.7-final-0, default/linux/amd64/17.1, gcc-9.3.0, glibc-2.31-r2, 5.2.7-gentoo x86_64)
> =================================================================
>                          System Settings
> =================================================================
> System uname: Linux-5.2.7-gentoo-x86_64-Intel-R-_Core-TM-_i5-2410M_CPU_@_2.30GHz-with-gentoo-2.7
> KiB Mem:     8004420 total,   1021756 free
> KiB Swap:   20478972 total,  17870780 free
> Timestamp of repository gentoo: Sat, 09 May 2020 13:00:01 +0000
> Head commit of repository gentoo: 0353d3d67fcdabd7ee99e4ab071abf73cf93c345
> Timestamp of repository rust: Tue, 05 May 2020 22:09:00 +0000
> Head commit of repository rust: f351c3bb9a7c5657e2861e4def41b1952019c97a
> 
> Head commit of repository rust-dev: b59d4991426194f9408f37df2c868fedde680bdf
> 
> sh bash 5.0_p17
> ld GNU ld (Gentoo 2.34 p1) 2.34.0
> ccache version 3.7.9 [enabled]
> app-shells/bash:          5.0_p17::gentoo
> dev-java/java-config:     2.2.0-r4::gentoo
> dev-lang/perl:            5.30.2::gentoo
> dev-lang/python:          2.7.18::gentoo, 3.6.10-r2::gentoo, 3.7.7-r2::gentoo, 3.8.2-r2::gentoo
> dev-util/ccache:          3.7.9::gentoo
> dev-util/cmake:           3.17.2::gentoo
> dev-util/pkgconfig:       0.29.2::gentoo
> sys-apps/baselayout:      2.7::gentoo
> sys-apps/openrc:          0.42.1::gentoo
> sys-apps/sandbox:         2.18::gentoo
> sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
> sys-devel/automake:       1.16.2::gentoo
> sys-devel/binutils:       2.34::gentoo
> sys-devel/gcc:            8.3.0-r3::gentoo, 9.2.0-r4::gentoo, 9.3.0::gentoo
> sys-devel/gcc-config:     2.2.1::gentoo
> sys-devel/libtool:        2.4.6-r6::gentoo
> sys-devel/make:           4.3::gentoo
> sys-kernel/linux-headers: 5.6::gentoo (virtual/os-headers)
> sys-libs/glibc:           2.31-r2::gentoo
> Repositories:
> 
> gentoo
>     location: /usr/portage
>     sync-type: rsync
>     sync-uri: rsync://rsync.gentoo.org/gentoo-portage/
>     priority: -1000
>     sync-rsync-verify-jobs: 1
>     sync-rsync-verify-max-age: 24
>     sync-rsync-extra-opts: --no-i-r --delete-delay --fuzzy --temp-dir=/var/tmp/rsync/
>     sync-rsync-verify-metamanifest: no
<overlays stripped>
> 
> ACCEPT_KEYWORDS="amd64 ~amd64"
> ACCEPT_LICENSE="@FREE"
> CBUILD="x86_64-pc-linux-gnu"
> CFLAGS="-O2 -pipe -mtune=native -march=native"
> CHOST="x86_64-pc-linux-gnu"
> CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
> CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.4/ext-active/ /etc/php/cgi-php7.4/ext-active/ /etc/php/cli-php7.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
> CXXFLAGS="-O2 -pipe -mtune=native -march=native"
> DISTDIR="/var/cache/distfiles"
> EMERGE_DEFAULT_OPTS="--alert y --changed-deps y --changed-use --complete-graph=n --with-bdeps=n --deep --dynamic-deps n --keep-going y --newuse --verbose-conflicts --unordered-display --autounmask n --backtrack=0 --autounmask-write n"
> ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
> FCFLAGS="-O2 -pipe"
> FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs ccache cgroup clean-logs compress-build-logs compressdebug config-protect-if-modified distlocks fixlafiles ipc-sandbox merge-sync metadata-transfer multilib-strict network-sandbox news parallel-fetch parallel-install pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms sign split-elog split-log splitdebug strict strict-keepdir unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
> FFLAGS="-O2 -pipe"
> GENTOO_MIRRORS="http://distfiles.gentoo.org"
> INSTALL_MASK="/usr/lib/debug/.build-id/"
> LANG="en_NZ.UTF8"
> LDFLAGS="-Wl,-O1 -Wl,--as-needed"
> MAKEOPTS=" -j3 --load-average=4"
> PKGDIR="/var/cache/binpkgs"
> PORTAGE_CONFIGROOT="/"
> PORTAGE_RSYNC_EXTRA_OPTS="--no-i-r --delete-delay --fuzzy --temp-dir=/var/tmp/rsync/"
> PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
> PORTAGE_TMPDIR="/var/tmp"
> USE="X acl amd64 avx berkdb bzip2 cli crypt dbus dri elogind fortran gdbm iconv ipv6 jpeg jpeg2k libtirpc mmx multilib ncurses netlink2 nls nptl opengl openmp pam pcre png qml qt4 readline seccomp split-usr sse sse2 sse4_1 sse4_2 ssl ssse3 tcpd tiff unicode vim-syntax xattr xinerama zlib" ABI_X86="32 64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="BPF NVPTX" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_8" PYTHON_TARGETS="python3_7 python3_8" RUBY_TARGETS="ruby25 ruby26 ruby27" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
> Unset:  CC, CPPFLAGS, CTARGET, CXX, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Comment 1 pots-em 2020-09-18 03:04:05 UTC
still on there in sys-devel/bison-3.7.1-r1 
I use MAKEOPTS="-j3 -l1"
but when i change MAKEOPTS to "-j2" , it worked.(my cpu is just one core , i change it to "-j3 -l1" because I want to use distcc to speed up my compilation)

also ,i tried "-j4 -l1",there is a new bug 

In file included from lib/pipe2.c:25:
lib/binary-io.h: In function '__gl_setmode':
lib/binary-io.h:52:10: error: 'O_BINARY' undeclared (first use in this function)
   52 |   return O_BINARY;
      |          ^~~~~~~~
lib/binary-io.h:52:10: note: each undeclared identifier is reported only once for each function it appears in
lib/pipe2.c: In function 'rpl_pipe2':
lib/pipe2.c:70:43: error: 'O_BINARY' undeclared (first use in this function); did you mean 'SET_BINARY'?
   70 |   if ((flags & ~(O_CLOEXEC | O_NONBLOCK | O_BINARY | O_TEXT)) != 0)
      |                                           ^~~~~~~~
      |                                           SET_BINARY
lib/pipe2.c:70:54: error: 'O_TEXT' undeclared (first use in this function); did you mean 'F_TEST'?
   70 |   if ((flags & ~(O_CLOEXEC | O_NONBLOCK | O_BINARY | O_TEXT)) != 0)
      |                                                      ^~~~~~
      |                                                      F_TEST

it is about #include,too

but,when i set MAKEOPTS to "-j4",the compilation is successful

Interesting,looks like it is about how many threads 
you use to link
Comment 2 pots-em 2020-09-18 03:16:13 UTC
(In reply to pots-em from comment #1)
> still on there in sys-devel/bison-3.7.1-r1 
> I use MAKEOPTS="-j3 -l1"
> but when i change MAKEOPTS to "-j2" , it worked.(my cpu is just one core , i
> change it to "-j3 -l1" because I want to use distcc to speed up my
> compilation)
> 
> also ,i tried "-j4 -l1",there is a new bug 
> 
> In file included from lib/pipe2.c:25:
> lib/binary-io.h: In function '__gl_setmode':
> lib/binary-io.h:52:10: error: 'O_BINARY' undeclared (first use in this
> function)
>    52 |   return O_BINARY;
>       |          ^~~~~~~~
> lib/binary-io.h:52:10: note: each undeclared identifier is reported only
> once for each function it appears in
> lib/pipe2.c: In function 'rpl_pipe2':
> lib/pipe2.c:70:43: error: 'O_BINARY' undeclared (first use in this
> function); did you mean 'SET_BINARY'?
>    70 |   if ((flags & ~(O_CLOEXEC | O_NONBLOCK | O_BINARY | O_TEXT)) != 0)
>       |                                           ^~~~~~~~
>       |                                           SET_BINARY
> lib/pipe2.c:70:54: error: 'O_TEXT' undeclared (first use in this function);
> did you mean 'F_TEST'?
>    70 |   if ((flags & ~(O_CLOEXEC | O_NONBLOCK | O_BINARY | O_TEXT)) != 0)
>       |                                                      ^~~~~~
>       |                                                      F_TEST
> 
> it is about #include,too
> 
> but,when i set MAKEOPTS to "-j4",the compilation is successful
> 
> Interesting,looks like it is about how many threads 
> you use to link
sorry,bro
i made a mistake "-l" is not about link .it is as same as "--load-average",means
Don't start multiple jobs unless load is below what you set.
maybe we should discard this option temporarily
Comment 3 Chuckery Towers 2020-09-20 14:36:42 UTC
I have encountered the same problem (absent "configmake.h") in the presence of "distcc", on three versions of "bison", and found it necessary to use "--jobs 1" for successful compilation of 3.7.1-r1 on a single-core host.
Comment 4 Thomas Deutschmann (RETIRED) gentoo-dev 2020-09-20 15:32:21 UTC
This is fixed in 3.7.2.