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

Bug 491104

Summary: dev-lang/gforth: fails tests
Product: Gentoo Linux Reporter: Javran Cheng <javran.c>
Component: Current packagesAssignee: Sergei Trofimovich (RETIRED) <slyfox>
Status: RESOLVED OBSOLETE    
Severity: normal CC: javran.c, jstein
Priority: Normal Keywords: TESTFAILURE
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log

Description Javran Cheng 2013-11-12 18:28:00 UTC
cannot compile gforth-0.7.0, please check attached build.log and my output of `emerge --info`:

Portage 2.2.1 (default/linux/x86/13.0/desktop, gcc-4.7.3, glibc-2.17, 3.10.9-gentoo i686)
=================================================================
System uname: Linux-3.10.9-gentoo-i686-Intel-R-_Core-TM-2_Duo_CPU_T6500_@_2.10GHz-with-gentoo-2.2
KiB Mem:     3107932 total,   1357164 free
KiB Swap:     524284 total,    524284 free
Timestamp of tree: Mon, 21 Oct 2013 14:45:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.5-r2, 3.2.5-r2, 3.3.2-r2
dev-util/cmake:           2.8.11.1
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.13.4, 1.14
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.6.4, 4.7.3
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.10 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo gentoo-zh gentoo-haskell lisp sunrise javran-overlay
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="* -@EULA PUEL Oracle-BCLA-JavaSE"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /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 -march=native -pipe"
DISTDIR="/var/portage-distfiles"
EMERGE_DEFAULT_OPTS="--keep-going --quiet-build"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs candy config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="http://mirror.lug.udel.edu/pub/gentoo/ http://lug.mtu.edu/gentoo/ "
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/gentoo-zh /var/lib/layman/haskell /var/lib/layman/lisp /var/lib/layman/sunrise /usr/local/portage"
SYNC="rsync://mirror.umd.edu/gentoo-portage"
USE="X a52 aac acl acpi alsa apng berkdb branding bzip2 cairo cdda cdr cjk cli consolekit cracklib crypt cups cxx dbus dhcp dhcpcd dri dts dvd dvdr emboss encode exif fam ffmpeg firefox flac fortran gdbm gif gpm gstreamer gtk haddock hoogle iconv icu ipv6 java jdk jpeg jre lcms ldap libnotify lm_sensors lock mad midi mmx mng modules mp3 mp4 mpd mpeg mudflap ncurses networkmanager nls nptl nsplugin nss odbc ogg opengl openmp pam pango pcre pdf perl png policykit ppds qt3support qt4 readline real resolvconf sdl session sqlite sse sse2 ssl startup-notification svg tcpd threads thunar tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 x86 xcb xml xv xvid xvmc zh_CN zlib" ABI_X86="32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en ja zh zh_CN zh_TW" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" 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:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON


Reproducible: Always

Steps to Reproduce:
1. emerge dev-lang/gforth
2.
3.
Comment 1 Javran Cheng 2013-11-12 18:28:55 UTC
Created attachment 363144 [details]
build.log
Comment 2 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-11-12 22:58:28 UTC
This package has no maintainer so this bug may go unnoticed for a long time.
Gentoo has a dedicated team[1] for assisting users in maintaining orphaned
packages. If you are interested in maintaining this package, please contact
proxy-maint@gentoo.org. 

[1]: http://www.gentoo.org/proj/en/qa/proxy-maintainers/index.xml
Comment 3 Javran Cheng 2013-11-17 19:26:32 UTC
I did some hacking to make it work for gforth 0.7.2:

https://github.com/Javran/gentoo-javran/tree/master/dev-lang/gforth
Comment 4 Michael Palimaka (kensington) gentoo-dev 2013-11-18 09:43:54 UTC
Let's leave the bug open until it's fixed in portage.
Comment 5 Sergey Popov gentoo-dev 2014-09-04 10:10:59 UTC
Tests are not executed in gforth-0.7.3 during build-time, however they still fail
Comment 6 Carsten Strotmann 2014-09-12 16:48:52 UTC
(In reply to Sergey Popov from comment #5)
> Tests are not executed in gforth-0.7.3 during build-time, however they still
> fail

Hello Sergey Popov,

thanks for the updated ebuild.

about the failed checks: I've just build gforth on amd64 and only one test failed (the "gforth-fast-noll-reg"), but other succeeded:

[...]
./engine/gforth-fast-noll-reg -p ".:/usr/lib64/gforth/site-forth:/usr/share/gforth/site-forth:/usr/lib64/gforth/0.7.3:/usr/share/gforth/0.7.3:." test/signals.fs -e bye
./engine/gforth-fast-noll-reg -p ".:/usr/lib64/gforth/site-forth:/usr/share/gforth/site-forth:/usr/lib64/gforth/0.7.3:/usr/share/gforth/0.7.3:." test/coremore.fs test/gforth.fs -e bye 2>&1 | tr -d '\015' | diff -c - ./test/gforth.out
*** -   Fri Sep 12 16:32:23 2014
--- ./test/gforth.out   Fri Oct 11 21:31:28 2013
***************
*** 1,7 ****
! redefined {  INCORRECT RESULT: {  12.3456789e 7 3 1 f>str-rdp s"  12.346" str= -> true }
! INCORRECT RESULT: {  12.3456789e 7 4 1 f>str-rdp s" 12.3457" str= -> true }
! INCORRECT RESULT: { -12.3456789e 7 4 1 f>str-rdp s" -1.23E1" str= -> true }
! INCORRECT RESULT: {      0.0996e 7 3 1 f>str-rdp s"   0.100" str= -> true }
! INCORRECT RESULT: {      0.0996e 7 3 3 f>str-rdp s" 9.96E-2" str= -> true }
! INCORRECT RESULT: {    999.9994e 7 3 1 f>str-rdp s" 999.999" str= -> true }
! INCORRECT RESULT: {    999.9996e 7 3 1 f>str-rdp s" 1.000E3" str= -> true }
--- 1 ----
! redefined {  
\ No newline at end of file
make[3]: *** [checkone] Error 1
make[3]: Leaving directory `/var/tmp/portage/dev-lang/gforth-0.7.3/work/gforth-0.7.3'
make[2]: *** [gforth-fast-noll-reg] Error 2
make[2]: Leaving directory `/var/tmp/portage/dev-lang/gforth-0.7.3/work/gforth-0.7.3'
make[1]: *** [optgforth-fast] Error 2
make[1]: Leaving directory `/var/tmp/portage/dev-lang/gforth-0.7.3/work/gforth-0.7.3'
make[1]: Entering directory `/var/tmp/portage/dev-lang/gforth-0.7.3/work/gforth-0.7.3'
[...]
make checkone check-nofast ENGINE="./gforth --no-dynamic" >/dev/null 2>&1
make checkone check-nofast ENGINE="./gforth-itc" >/dev/null 2>&1
make checkone check-nofast ENGINE="./gforth-ditc" >/dev/null 2>&1
make checkone ENGINE="./gforth-fast --no-dynamic" >/dev/null 2>&1
make checkone check-nofast ENGINE="./gforth" >/dev/null 2>&1
make checkone ENGINE="./gforth-fast" >/dev/null 2>&1
*** Check successful ***
./gforth-fast --diag -e bye


the gforth makefile does build the gforth engine multiple times, with different settings. It then runs the tests to find out which build works best (and which fail). Because some settings work better based on gcc-versions and architectures.

I have my gforth ebuild at
https://github.com/cstrotm/gforth-gentoo-ebuild

I'm updating my version with the changes that you made to the ebuild.

I would recommend to keep the tests in, even if one or more tests fail. 

I'll double check with the upstream developers that my understanding of the build-process is correct.
Comment 7 Sergei Trofimovich (RETIRED) gentoo-dev 2017-07-21 20:34:14 UTC
gforh-0.7.3 does not fail any tests o x86 or amd64 here. Assuming those were fixed upstream.