~ # ebuild /usr/portage/dev-libs/libevent/libevent-1.4.11.ebuild test Forcing test. >>> Existing ${T}/environment for 'libevent-1.4.11' will be sourced. Run >>> 'clean' to start with a fresh environment. * libevent-1.4.11-stable.tar.gz RMD160 SHA1 SHA256 size ;-) ... [ ok ] * checking ebuild checksums ;-) ... [ ok ] * checking auxfile checksums ;-) ... [ ok ] * checking miscfile checksums ;-) ... [ ok ] * checking libevent-1.4.11-stable.tar.gz ;-) ... [ ok ] >>> Checking libevent-1.4.11-stable.tar.gz's mtime... >>> WORKDIR is up-to-date, keeping... >>> It appears that 'libevent-1.4.11' is already compiled; skipping. >>> Remove '/var/tmp/portage/dev-libs/libevent-1.4.11/.compiled' to force compilation. * Building tests make: Nothing to be done for `test'. * Running tests type: 1, count: 1, ttl: 300: 152.160.49.201 type: 3, count: 1, ttl: 1800: 2001:1890:1112:1::20 type: 1, count: 1, ttl: 260: 152.160.49.201 type: 3, count: 1, ttl: 1760: 2001:1890:1112:1::20 type: 1, count: 1, ttl: 219: 152.160.49.201 type: 3, count: 1, ttl: 1719: 2001:1890:1112:1::20 Running tests: KQUEUE Skipping test DEVPOLL Skipping test POLL test-eof: OKAY test-weof: OKAY test-time: OKAY regress: FAILED SELECT test-eof: OKAY test-weof: OKAY test-time: OKAY regress: FAILED EPOLL test-eof: OKAY test-weof: OKAY test-time: OKAY regress: FAILED EVPORT Skipping test * * ERROR: dev-libs/libevent-1.4.11 failed. * Call stack: * ebuild.sh, line 49: Called src_test * environment, line 1109: Called die * The specific snippet of code: * grep FAILED "${T}"/tests &>/dev/null && die "1 or more tests failed" * The die message: * 1 or more tests failed * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/dev-libs/libevent-1.4.11/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-libs/libevent-1.4.11/temp/environment'. * Reproducible: Always Steps to Reproduce: successful compiled: ... i686-pc-linux-gnu-gcc -I.. -I../compat -march=i386 -pipe -s -Wall -Wl,-O1 -o .libs/bench bench.o ../.libs/libevent.so -lnsl -lrt -lresolv creating bench make[3]: Leaving directory `/var/tmp/portage/dev-libs/libevent-1.4.11/work/libevent-1.4.11-stable/test' make[2]: Leaving directory `/var/tmp/portage/dev-libs/libevent-1.4.11/work/libevent-1.4.11-stable/test' make[1]: Leaving directory `/var/tmp/portage/dev-libs/libevent-1.4.11/work/libevent-1.4.11-stable' >>> Source compiled. ----- btw: libevent-2.0.1.ebuild compilation and test works properly.
I can't recreate this, please provide the output from emerge --info.
Created attachment 193249 [details] emerge --info Please find requested information attached. (emerge --info)
> FEATURES="autoconfig ccache distlocks fixpackages parallel-fetch protect- > owned sandbox sfperms strict test unmerge-orphans userfetch userpriv > usersandbox" Please reopen this bug report if you can reproduce this bug with FEATURES="test -usersandbox -userpriv"
Created attachment 193852 [details] new emerge --info * Building tests make: Nothing to be done for `test'. * Running tests type: 1, count: 1, ttl: 300: 152.160.49.201 type: 3, count: 1, ttl: 1800: 2001:1890:1112:1::20 type: 1, count: 1, ttl: 262: 152.160.49.201 type: 3, count: 1, ttl: 1763: 2001:1890:1112:1::20 type: 1, count: 1, ttl: 225: 152.160.49.201 type: 3, count: 1, ttl: 1725: 2001:1890:1112:1::20 Running tests: KQUEUE Skipping test DEVPOLL Skipping test POLL test-eof: OKAY test-weof: OKAY test-time: OKAY regress: FAILED SELECT test-eof: OKAY test-weof: OKAY test-time: OKAY regress: FAILED EPOLL test-eof: OKAY test-weof: OKAY test-time: OKAY regress: FAILED EVPORT Skipping test * * ERROR: dev-libs/libevent-1.4.11 failed. * Call stack: * ebuild.sh, line 49: Called src_test * environment, line 1109: Called die * The specific snippet of code: * grep FAILED "${T}"/tests &>/dev/null && die "1 or more tests failed" * The die message: * 1 or more tests failed * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/dev-libs/libevent-1.4.11/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-libs/libevent-1.4.11/temp/environment'. * >>> Failed to emerge dev-libs/libevent-1.4.11, Log file: >>> '/var/tmp/portage/dev-libs/libevent-1.4.11/temp/build.log'
still upcoming regress test error
What if you got rid of all the silly CFLAGS/CXXFLAGS (perhaps leaving only -O3 -pipe)?
Created attachment 193884 [details] new emerge --info (2) (In reply to comment #6) > What if you got rid of all the silly CFLAGS/CXXFLAGS (perhaps leaving only -O3 > -pipe)? > Yes. libevent -> /etc/portage/env/dev-libs/libevent-1.4.11 runs with: BOOT_CFLAGS="-march=i386 -pipe" CFLAGS="${BOOT_CFLAGS}" CXXFLAGS="${CFLAGS}" And tried /etc/make.conf with (part of): ACCEPT_KEYWORDS="x86 ~x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=i386 -pipe -O2" CHOST="i686-pc-linux-gnu" No change, always error message. New emerge_info.txt attached.
What if you additionally have FEATURES=-sandbox, so that src_test() is run as root and with no limitations?
(In reply to comment #8) > What if you additionally have FEATURES=-sandbox, so that src_test() is run as > root and with no limitations? > FEATURES="test -sandbox -userfetch" CFLAGS="-march=i386 -pipe -O2" CHOST="i686-pc-linux-gnu" Always test error message. btw: libevent-2.0.1.ebuild the test always run successful.
(In reply to comment #9) > Always test error message. OK. I will try to not reproduce it somehow. Could be the test simply wasn't rewritten to match changes from 1.4.10 to 1.4.11. > btw: libevent-2.0.1.ebuild the test always run successful. Yes, but it's not meant to go stable and is currently package.masked: # Jeroen Roovers <jer@gentoo.org> (21 Apr 2009) # Masked until out of beta =dev-libs/libevent-2*
Mon Jun 8 22:35:42 CEST 2009 Portage 2.2_rc33 (default/linux/x86/2008.0/desktop, gcc-4.3.2, glibc-2.8_p20080602-r1, 2.6.29-gentoo-r3-JeR i686) ================================================================= System uname: Linux-2.6.29-gentoo-r3-JeR-i686-AMD_Athlon-tm-_XP_2500+-with-glibc2.0 Timestamp of tree: Mon, 08 Jun 2009 15:15:01 +0000 distcc[24843] (dcc_set_trace_from_env) ERROR: failed to open logfile /var/log/distcc: Permission denied [disabled] ccache version 2.4 [disabled] app-shells/bash: 3.2_p39 dev-java/java-config: 2.1.7 dev-lang/python: 2.5.4-r2 dev-util/ccache: 2.4-r7 dev-util/cmake: 2.6.2-r1 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.13, 2.63 sys-devel/automake: 1.5, 1.6.3, 1.7.9-r1, 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -pipe -march=athlon-xp -Wall" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/app-defaults/XTerm /usr/share/X11/app-defaults/XTerm-color" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-O2 -pipe -march=athlon-xp -Wall" DISTDIR="/keeps/gentoo/distfiles" FEATURES="autoaddcvs buildpkg cvs distlocks fixpackages notitles parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unmerge-orphans userfetch userpriv" GENTOO_MIRRORS="http://gentoo.tiscali.nl/ http://mirror.muntinternet.net/pub/gentoo/ http://mirror.cambrium.nl/pub/os/linux/gentoo/ http://mirror.leaseweb.com/gentoo/ " LANG="en" LC_ALL="en_US.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu" LINGUAS="en en_GB nl" MAKEOPTS="-j3" PKGDIR="/keeps/gentoo/packages/astrid" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/keeps/gentoo/portage" PORTDIR_OVERLAY="/keeps/gentoo/local" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="3dnow 3dnowext X a52 aac aalib acpi alsa asf audiofile bash-completion berkdb bl bluetooth boost branding bzip2 cairo cdda cddb cdio cdparanoia cdr chroot cli cpudetection cracklib crypt cscope css cups curl custom-cflags custom-cxxflags dga dillo divx dri dv dvd dvdr dvdread edl eds elf emboss encode evo fame fbcon ffmpeg flac flash fontforge foomaticdb fortran freetype gdbm ggi gif gimpprint glib glitz glut gmedia gnokii gnutls gpm gs gstreamer gtk gtk2 iconv idn imlib inkjar ipv6 isdnlog jingle jpeg kde lcms libcaca libnotify libsamplerate live lm_sensors logrotate lzo mad matroska midi mikmod mjpeg mmx mng modplug mozilla mozsvg mozxmlterm mp3 mpeg mplayer mudflap musepack ncurses nethack network nl nls nptl nptlonly nsplugin offensive ogg opengl openmp openssl optimisememory pam pcre pda pdf perl physfs plotutils png ppds pppd pulseaudio python quicktime readline realmedia reflection rtc rtsp ruby samba screenshot sdl server session sftplogging shout skins smux snmp speex spell spl sse ssl startup-notification stream svg sysfs syslog tcpd test tetex tga theora threads tiff truetype unicode upnp usb userlocales utils v4l v4l2 vcd vidix vim vlm vorbis win32codecs winbind wmp x86 xanim xml xml2 xorg xosd xulrunner xv xvid xvmc zlib" 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" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_GB nl" USERLAND="GNU" VIDEO_CARDS="nvidia" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS * Building tests make: Nothing to be done for `test'. * Running tests type: 1, count: 1, ttl: 300: 152.160.49.201 type: 3, count: 1, ttl: 1800: 2001:1 890:1112:1::20 type: 2, count: 1, ttl: 0: localhost (3.2 us/add) type: 1, count: 1, ttl: 273: 152.160.49.201 type: 3, count: 1, ttl: 1773: 2001:1890:1112:1::20 type: 2, count: 1, ttl: 0: localhost (4.3 us/add) type: 1, count: 1, ttl: 246: 1 52.160.49.201 type: 3, count: 1, ttl: 1746: 2001:1890:1112:1::20 type: 2, count: 1, ttl: 0: localhost (3.6 us/add) Running tests: KQUEUE Skipping test DEVPOLL Skipping test POLL test-eof: OKAY test-weof: OKAY test-time: OKAY regress: OKAY SELECT test-eof: OKAY test-weof: OKAY test-time: OKAY regress: OKAY EPOLL test-eof: OKAY test-weof: OKAY test-time: OKAY regress: OKAY EVPORT Skipping test I really can't reproduce it so you will have to dig much deeper to find the cause. Maybe my `emerge --info' above helps determine the odd one out.
Comment on attachment 193884 [details] new emerge --info (2) Oddly enough some vital information is missing - the `emerge --info' header.
(In reply to comment #11) Thanks. Your make.conf (FEATURES, *FLAGS, LC/LANG...) didn't change behaviour. Simple DNS resolve test won't run fine. I can't figure it out why. (it's in regress_dns.c) after ebuild unpack and "./configure;make;...test/regress" linux01 libevent-1.4.11-stable # test/regress Testing register fds: OK evutil_stroll: OK Testing Priorities 1: OK Testing Priorities 2: OK Testing Priorities 3: OK Testing Evbuffer: OK Testing evbuffer_find 1: OK Testing evbuffer_find 2: OK Testing evbuffer_find 3: OK Bufferevent: OK Bufferevent Watermarks: OK Free active base: OK Event base new: OK Testing HTTP Server Event Base: OK Testing HTTP Header filtering: OK Testing HTTP query parsing: OK Testing Basic HTTP Server: OK Testing Request Connection Pipeline : OK Testing Request Connection Pipeline (persistent): OK Testing Connection Close Detection: OK Testing Connection Close Detection (with delay): OK Testing HTTP POST Request: OK Testing Bad HTTP Request: OK Testing HTTP Server with high port: OK Testing HTTP Dispatcher: OK Testing HTTP Server with multi line: OK Testing HTTP Negative Content Length: OK Testing Chunked HTTP Reply: OK Testing Basic RPC Support: OK Testing Good RPC Post: OK Testing RPC Client: OK Testing RPC (Queued) Client: OK Testing RPC Client Timeout: OK DNS server support: OK Simple DNS resolve: type: 1, count: 1, ttl: 299: 152.160.49.201 OK IPv6 DNS resolve: type: 3, count: 1, ttl: 432: 2001:1890:1112:1::20 OK Simple reverse DNS resolve: [Timed out] FAILED linux01 libevent-1.4.11-stable # pwd /var/tmp/portage/dev-libs/libevent-1.4.11/work/libevent-1.4.11-stable linux01 libevent-1.4.11-stable # nslookup www.monkey.org Server: 145.228.172.22 Address: 145.228.172.22#53 Non-authoritative answer: www.monkey.org canonical name = monkey.org. Name: monkey.org Address: 152.160.49.201 linux01 libevent-1.4.11-stable # nslookup localhost Server: 145.228.172.22 Address: 145.228.172.22#53 Non-authoritative answer: Name: localhost.bertelsmann.de Address: 127.0.0.1 linux01 libevent-1.4.11-stable # nslookup 127.0.0.1 Server: 145.228.172.22 Address: 145.228.172.22#53 1.0.0.127.in-addr.arpa name = localhost.
I'm getting the same regress test failures with libevent-1.4.12. I'll attach emerge --info.
Created attachment 202765 [details] emerge --info output
The regress test is broken. Running the regress test manually produces the following output (Trying port ... added by me to debug): Testing register fds: OK evutil_stroll: OK Testing Priorities 1: OK Testing Priorities 2: OK Testing Priorities 3: OK Testing Evbuffer: OK Testing evbuffer_find 1: OK Testing evbuffer_find 2: OK Testing evbuffer_find 3: OK Bufferevent: OK Bufferevent Watermarks: OK Free active base: OK Event base new: OK Testing HTTP Server Event Base: Trying port 8080 OK Testing HTTP Header filtering: OK Testing HTTP query parsing: OK Testing Basic HTTP Server: Trying port 8080 FAILED (bind) The problem is that http_setup is trying to test which ports it can use for the test, but the actual test than tries to bind the next port as well. As it happens my port 8080 is free, but 8081 is not (bound by pnds), so that test fails to bind in http_basic_test to (port + 1). Choosing a completely different base port makes all tests pass for me. The real fix is to also check the next port during setup and not blindly bind it during test execution.
Created attachment 203184 [details, diff] Patch to fix broken regress_http test
Still broken in libevent-1.4.13.
(In reply to comment #17) > Created an attachment (id=203184) [details] > Patch to fix broken regress_http test Did you send that upstream?
(In reply to comment #19) > (In reply to comment #17) > > Created an attachment (id=203184) [details] [details] > > Patch to fix broken regress_http test > > Did you send that upstream? Looking at it I'm pretty sure I didn't write that patch, so I must have gotten it from somewhere else. Should have noted where I got it from :-( I just had a quick look around but couldn't identify the original source anymore.
confirm for 1.4.14: Running tests: KQUEUE Skipping test DEVPOLL Skipping test POLL test-eof: OKAY test-weof: OKAY test-time: OKAY regress: type: 1, count: 1, ttl: 300: 75.102.5.19 type: 3, count: 1, ttl: 1800: 2001:1890:1112:1::20 FAILED SELECT test-eof: OKAY test-weof: OKAY test-time: OKAY regress: type: 1, count: 1, ttl: 281: 75.102.5.19 type: 3, count: 1, ttl: 1782: 2001:1890:1112:1::20 FAILED EPOLL test-eof: OKAY test-weof: OKAY test-time: OKAY regress: type: 1, count: 1, ttl: 262: 75.102.5.19 type: 3, count: 1, ttl: 1763: 2001:1890:1112:1::20 FAILED EVPORT Skipping test * ERROR: dev-libs/libevent-1.4.14b failed:
I experience failures during the regress test too. However, if I stop iptables, it works. I'm not sure if there's a good way to temporarily add an appropriate firewall exception during the test.
I am using iptables, too, but not able to check without iptables.
Created attachment 288581 [details] build.log Still valid with 2.0.13
Removed the FAILED check so that the test suite outcome is non-fatal.