Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 268012 - dev-libs/libevent-1.4.10 fails to compile
Summary: dev-libs/libevent-1.4.10 fails to compile
Status: VERIFIED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Jeroen Roovers (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-30 17:02 UTC by tony den haan
Modified: 2009-05-06 09:22 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tony den haan 2009-04-30 17:02:39 UTC
x86_64-pc-linux-gnu-gcc -shared  .libs/event.o .libs/buffer.o .libs/evbuffer.o .libs/log.o .libs/evutil.o .libs/select.o .libs/poll.o .libs/epoll.o .libs/signal.o  -lnsl -lrt -lresolv  -march=k8 -msse3 -mfpmath=sse -Wl,-O1 -Wl,-soname -Wl,libevent_core-1.4.so.2 -o .libs/libevent_core-1.4.so.2.1.3
.libs/event.o: file not recognized: File truncated
collect2: ld returned 1 exit status
make[2]: *** [libevent_core.la] Error 1
make[2]: *** Waiting for unfinished jobs....
x86_64-pc-linux-gnu-gcc -shared  .libs/event.o .libs/buffer.o .libs/evbuffer.o .libs/log.o .libs/evutil.o .libs/event_tagging.o .libs/http.o .libs/evdns.o .libs/evrpc.o .libs/strlcpy.o .libs/select.o .libs/poll.o .libs/epoll.o .libs/signal.o  -lnsl -lrt -lresolv  -march=k8 -msse3 -mfpmath=sse -Wl,-O1 -Wl,-soname -Wl,libevent-1.4.so.2 -o .libs/libevent-1.4.so.2.1.3
.libs/event.o: file not recognized: File truncated
collect2: ld returned 1 exit status
make[2]: *** [libevent.la] Error 1


Reproducible: Always

Steps to Reproduce:
1.emerge libevent
2.
3.

Actual Results:  
Failure

Expected Results:  
Compiled

Portage 2.2_rc31 (default/linux/amd64/2008.0, gcc-4.3.3, glibc-2.9_p20081201-r2, 2.6.29-gentoo x86_64)
=================================================================                                     
System uname: Linux-2.6.29-gentoo-x86_64-AMD_Phenom-tm-_9950_Quad-Core_Processor-with-gentoo-2.0.0    
Timestamp of tree: Wed, 29 Apr 2009 23:00:17 +0000                                                                                
ccache version 2.4 [enabled]                                                                                                      
app-shells/bash:     4.0_p17-r1                                                                                                   
dev-java/java-config: 1.3.7-r1, 2.1.7                                                                                             
dev-lang/python:     2.5.4-r2, 2.6.2                                                                                              
dev-util/ccache:     2.4-r8                                                                                                       
dev-util/cmake:      2.6.3-r1                                                                                                     
sys-apps/baselayout: 2.0.0                                                                                                        
sys-apps/openrc:     0.4.3-r2                                                                                                     
sys-apps/sandbox:    1.9
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.28-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -msse3 -pipe -mfpmath=sse -mthreads"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe"
DISTDIR="/archive/incoming"
FEATURES="ccache distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://gentoo.tiscali.nl/ "
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
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="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X acl alsa amd64 apache2 asf avi berkdb bluetooth bzip2 cli consolekit cracklib crypt cups dbus dga dri dvd dvdr encode ffmpeg fortran gdbm gif gnutls gpm hal htmlhandbook iconv imlib insecure-savers ipv6 isdnlog jadetex java javascript jpeg jpoeg kdehiddenvisibility kontact ldap midi mmx mng mozdevelop mpeg mudflap multilib mysql ncurses nls npp nptl nptlonly nsplugin obex offensive oggvorbis opengl openmp oss pam pcre pdf perl php png pppd python qt3support qt4 readline reflection sasl session simplexml slang source sox spl sse sse2 ssl svg sysfs tcpd threads tiff truetype unicode usb v4l webkit wmf wmv xcomposite xml xml2 xmlrpc xorg xulrunner xvid zlib" 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" ALSA_PCM_PLUGINS="adpcm alaw asymcopy 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" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fbdev glint i810 intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Sebastian Luther (few) 2009-04-30 19:59:52 UTC
Please try again with MAKEOPTS="-j1". If it works, attach the complete build.log for the run that failed. If it fails too, attach the second build.log.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2009-05-06 03:53:40 UTC
What is this doing in your CFLAGS?

       -mthreads
           Support thread-safe exception handling on Mingw32.  Code that relies
           on thread-safe exception handling must compile and link all code 
           with the -mthreads option.  When compiling, -mthreads defines -D_MT; 
           when linking, it links in a special thread helper library
           -lmingwthrd which cleans up per thread exception handling data.
Comment 3 tony den haan 2009-05-06 09:22:40 UTC
(In reply to comment #2)
> What is this doing in your CFLAGS?
> 
>        -mthreads

yeah i spotted that too, no idea but it was ignored anyway.
i rebuilt some dependencies emerge -t showed and it's ok now.