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

Bug 374795

Summary: dev-util/nsis-2.46 fail to build
Product: Gentoo Linux Reporter: Bertrand Jacquin <bertrand>
Component: Current packagesAssignee: Alin Năstac (RETIRED) <mrness>
Status: RESOLVED DUPLICATE    
Severity: normal CC: audvare, cedk
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: dev-util:nsis-2.46:20110711-090059.log
modified nsis-2.46.ebuild
patch for nsis-2.46.ebuild
20110726-202810.log

Description Bertrand Jacquin 2011-07-11 09:03:27 UTC
I'm getting issue while building dev-util/nsis. Here is a snap of failure and attached full log :


Contrib/Makensisw/update.cpp:132:40: warning: deprecated conversion from string constant to 'char*'
i686-pc-mingw32-windres "-DNSISCALL= __attribute__((__stdcall__))" -DRELEASE=2.3 -Ibuild/release/config -IContrib/Makensisw -i Contrib/Makensisw/resource.rc -o build/release/Makensisw/resource-rc.o
i686-pc-mingw32-g++ -o build/release/Makensisw/makensisw.exe -mwindows -Wl,--file-alignment,512 -Wl,-e_WinMain@16 build/release/Makensisw/makensisw.o build/release/Makensisw/noclib.o build/release/Makensisw/toolbar.o build/release/Makensisw/utils.o build/release/Makensisw/version.o build/release/Makensisw/update.o build/release/Makensisw/jnetlib/asyncdns.o build/release/Makensisw/jnetlib/connection.o build/release/Makensisw/jnetlib/httpget.o build/release/Makensisw/jnetlib/util.o build/release/Makensisw/resource-rc.o -lkernel32 -ladvapi32 -luser32 -lgdi32 -lshell32 -lcomdlg32 -lcomctl32 -lwsock32
build/release/Makensisw/update.o:update.cpp:(.text+0x15): undefined reference to `___gxx_personality_sj0'
build/release/Makensisw/update.o:update.cpp:(.text+0x247): undefined reference to `___gxx_personality_sj0'
build/release/Makensisw/jnetlib/connection.o:connection.cpp:(.text+0x12): undefined reference to `___gxx_personality_sj0'
build/release/Makensisw/jnetlib/httpget.o:httpget.cpp:(.text+0x7cb): undefined reference to `___gxx_personality_sj0'
collect2: ld returned 1 exit status
scons: *** [build/release/Makensisw/makensisw.exe] Error 1
scons: building terminated because of errors.
 * ERROR: dev-util/nsis-2.46 failed (compile phase):
 *   scons failed


Reproducible: Always

Steps to Reproduce:
1. emerge -vat nsis
2.
3.



# emerge --info 
Portage 2.1.10.4 (hardened/linux/amd64, gcc-4.5.2, glibc-2.13-r3, 2.6.38-gentoo-r1 x86_64)
=================================================================
System uname: Linux-2.6.38-gentoo-r1-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9650_@_3.00GHz-with-gentoo-2.0.3
Timestamp of tree: Sun, 10 Jul 2011 13:45:01 +0000
app-shells/bash:          4.2_p10
dev-lang/python:          2.7.2, 3.2
dev-util/cmake:           2.8.4-r1
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.8.3-r1
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.11.1-r1
sys-devel/binutils:       2.21.1
sys-devel/gcc:            4.4.5, 4.5.2
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 2.6.38 (virtual/os-headers)
sys-libs/glibc:           2.13-r3
Repositories: gentoo meleeweb
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe -fomit-frame-pointer -mtune=core2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=core2 -O2 -pipe -fomit-frame-pointer -mtune=core2"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs buildsyspkg collision-protect distlocks ebuild-locks fixlafiles fixpackages news nodoc noinfo noman parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS=" http://ftp.free.fr/mirrors/ftp.gentoo.org"
INSTALL_MASK="/usr/share/man/fr"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j6"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--checksum"
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"
PORTDIR_OVERLAY="/opt/meleeweb/portage"
SYNC="rsync://rsync.melee/gentoo-portage"
USE="3dnow 3dnowext alsa amd64 amr amrnb amrwb audiofile bash-completion berkdb bogofilter branding bzip2 cairo caps cdda cddb cdparanoia cli cracklib crypt curl cxx daap dirac dri exif fastcgi firefox flac gd gdbm gif gnutls gtk2 hardened hvm iconv ilbc imagemagick imap imlib ipv6 jabber jingle jpeg jpeg2k justify kvm latex ldap libsamplerate live lzo matroska mmx mmxext modules mp3 mp4 mpeg mtp mudflap multilib musepack ncurses network-cron nptl nptlonly ogg openmp pam pcre pdf png pppd pulseaudio quicktime readline rrdtool rtc rtsp session sieve slang sndfile snmp speex spell sse sse2 ssl startup-notification subversion svg sysfs syslog tetex threads truetype twolame urandom usb vim vim-syntax vorbis wavpack webdav x264 xft xml xml2 xorg xpm xvid zlib" ALSA_CARDS="intel8x0 usb-audio" 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 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="braindump flow karbon kexi kpresenter krita tables words" 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="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" QEMU_SOFTMMU_TARGETS="i386 x86_64 arm m68k mips mipsel" QEMU_USER_TARGETS="i386 x86_64 arm armeb m68k mips mipsel" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="dummy" 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, EMERGE_DEFAULT_OPTS, LANG, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Comment 1 Bertrand Jacquin 2011-07-11 09:03:49 UTC
Created attachment 279723 [details]
dev-util:nsis-2.46:20110711-090059.log
Comment 2 t0mus 2011-07-26 19:39:25 UTC
problem is in scons - it works like a make and has to be executed from directory containing SConstruct file
I modified nsis-2.46.ebuild file (see attachments) to change working directory before calling scons
and to go back when job is done
Comment 3 t0mus 2011-07-26 19:40:15 UTC
Created attachment 281067 [details]
modified nsis-2.46.ebuild
Comment 4 t0mus 2011-07-26 19:44:04 UTC
P.S.
ebuild /usr/portage/dev-util/nsis/nsis-2.46.ebuild digest
command is needed to regenerate manifest file for modified ebuild
Comment 5 t0mus 2011-07-26 19:57:57 UTC
Created attachment 281071 [details, diff]
patch for nsis-2.46.ebuild

patch -p1 nsis-2.46.ebuild nsis-2.46.ebuild.patch
Comment 6 Bertrand Jacquin 2011-07-26 20:35:24 UTC
Created attachment 281077 [details]
20110726-202810.log

I still get undefined reference to `___gxx_personality_sj0' 

Creating library file: build/release/NSISdl/libNSISdl.a
build/release/NSISdl/connection.o:connection.cpp:(.text+0x12): undefined reference to `___gxx_personality_sj0'
build/release/NSISdl/connection.o:connection.cpp:(.text+0xb5): undefined reference to `operator new[](unsigned int)'
build/release/NSISdl/connection.o:connection.cpp:(.text+0xc6): undefined reference to `operator new[](unsigned int)'
build/release/NSISdl/connection.o:connection.cpp:(.text+0x194): undefined reference to `operator delete[](void*)'
build/release/NSISdl/connection.o:connection.cpp:(.text+0x1a3): undefined reference to `operator delete[](void*)'

build continue as the return of 'cd -' is '0' so no || die "scons failed" apply there.

So installation have missing files :

<<<          obj /usr/share/nsis/Plugins/VPatch.dll
<<<          obj /usr/share/nsis/Plugins/UserInfo.dll
....
Comment 7 t0mus 2011-07-26 21:46:43 UTC
my build failed because of scons not beeing executed from work directory, no problems with references. But I used mingw32 not i686-pc-mingw32. Maybe try crossdev i686pc-mingw32 and emerge nsis again? I'll check i686-pc-mingw32 on my machine.
Comment 8 t0mus 2011-07-26 21:52:10 UTC
(In reply to comment #7)
> Maybe try crossdev i686pc-mingw32 and emerge nsis again? 
I ment crossdev mingw32
Comment 9 Andrew Udvare 2011-08-14 04:12:05 UTC
Was having the same build issue with undefined references to ___gxx_personality*. The patch worked for me. Hope it makes into the tree soon.

I use i686-pc-mingw32 with crossdev.
Comment 10 Sergey Ilinykh 2011-10-31 09:47:14 UTC
the fix works for me too
thanks =)
Comment 11 Alin Năstac (RETIRED) gentoo-dev 2011-11-11 16:20:56 UTC

*** This bug has been marked as a duplicate of bug 384251 ***