While trying to emerge dev-lang/tinycobol-0.61 I ran into the following problem creating lockserver/Makefile creating htconfig.h Making all in compiler flex -oscan.c scan.l bison -dv -b htcobol htcobol.y htcobol.y contains 182 shift/reduce conflicts. gcc -I/usr/include -I../lib -I../ -c htcobol.tab.c In file included from htcobol.y:43: ../lib/htcoblib.h:246: error: parse error before 'DB' ../lib/htcoblib.h:246: warning: no semicolon at end of struct or union ../lib/htcoblib.h:248: error: parse error before ':' token ../lib/htcoblib.h:249: error: parse error before ':' token ../lib/htcoblib.h:250: error: parse error before ':' token ../lib/htcoblib.h:251: error: parse error before ':' token ../lib/htcoblib.h:252: error: parse error before ':' token ../lib/htcoblib.h:253: error: parse error before ':' token ../lib/htcoblib.h:254: error: parse error before ':' token ../lib/htcoblib.h:255: error: parse error before ':' token ../lib/htcoblib.h:261: error: parse error before '}' token ../lib/htcoblib.h:269: error: parse error before 'DB' ../lib/htcoblib.h:269: warning: no semicolon at end of struct or union make[1]: *** [htcobol.tab.o] Error 1 Making all in lib gcc -I/usr/include -I../lib -I../ -Wall -fPIC -c mcmath.c -o mcmath.lo In file included from mcmath.c:29: htcoblib.h:246: error: parse error before 'DB' htcoblib.h:246: warning: no semicolon at end of struct or union htcoblib.h:248: error: parse error before ':' token htcoblib.h:249: error: parse error before ':' token htcoblib.h:250: error: parse error before ':' token htcoblib.h:251: error: parse error before ':' token htcoblib.h:252: error: parse error before ':' token htcoblib.h:253: error: parse error before ':' token htcoblib.h:254: error: parse error before ':' token htcoblib.h:255: error: parse error before ':' token htcoblib.h:261: error: parse error before '}' token htcoblib.h:269: error: parse error before 'DB' htcoblib.h:269: warning: no semicolon at end of struct or union make[1]: *** [mcmath.lo] Error 1 package ignores errors and emerges partially, installing only documents Reproducible: Always Steps to Reproduce: 1. 2. 3. Portage 2.0.51.22-r3 (default-darwin/macos/10.4, gcc-4.0.0, libsystem-7.1-r0, 8.3.0 Power Macintosh) =============================================================== == System uname: 8.3.0 Power Macintosh powerpc macos-20041118 distcc 2.0.1-zeroconf powerpc-apple-darwin7.0 (protocol 1) (default port 3632) [disabled] dev-lang/python: [Not Present] sys-apps/sandbox: [Not Present] sys-devel/autoconf: [Not Present] sys-devel/automake: [Not Present] sys-devel/binutils: [Not Present] sys-devel/libtool: [Not Present] virtual/os-headers: 7.1 ACCEPT_KEYWORDS="ppc-macos" AUTOCLEAN="yes" CBUILD="powerpc-apple-darwin8" CFLAGS="-O2 -pipe" CHOST="powerpc-apple-darwin8" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /usr/ share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig collision-protect distlocks sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/ gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="ppc aalib emboss gdbm gif imagemagick libwww nls ogg opengl png ppc-macos qt sdl slang tetex tiff vorbis userland_Darwin kernel_Darwin elibc_Darwin" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
tinycobol compiles in principle, but it hardcodes ELF semantics, which I don't feel like patching.