Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can't find mingw32-gcc cross-compiler in NSIS 2.33 emerge
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
odontocete
n00b
n00b


Joined: 27 Mar 2003
Posts: 18

PostPosted: Thu Jan 03, 2008 12:38 am    Post subject: Can't find mingw32-gcc cross-compiler in NSIS 2.33 emerge Reply with quote

I have i686-mingw32-gcc set up on my machine by building it through http://gentoo-wiki.com/HOWTO_MinGW. It built fine, and I previously used it in emerging NSIS 2.31. However, on trying to upgrade to the latest NSIS in portage, I get the following error:

Quote:
vps1 ~ # emerge -uDv nsis

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild U ] dev-util/nsis-2.33 [2.31] USE="zlib -bzip2 -config-log" 0 kB

Total: 1 package (1 upgrade), Size of downloads: 0 kB

>>> Verifying ebuild Manifests...

>>> Emerging (1 of 1) dev-util/nsis-2.33 to /
* nsis-2.33-src.tar.bz2 RMD160 SHA1 SHA256 size ;-) ... [ ok ]
* checking ebuild checksums ;-) ... [ ok ]
* checking auxfile checksums ;-) ... [ ok ]
* checking miscfile checksums ;-) ... [ ok ]
* checking nsis-2.33-src.tar.bz2 ;-) ... [ ok ]
>>> Unpacking source...
>>> Unpacking nsis-2.33-src.tar.bz2 to /var/tmp/portage/dev-util/nsis-2.33/work
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/dev-util/nsis-2.33/work/nsis-2.33-src ...
scons PREFIX=/usr PREFIX_CONF=/etc PREFIX_DOC=/usr/share/doc/nsis-2.33 PREFIX_DEST="/var/tmp/portage/dev-util/nsis-2.33/image/" VERSION=2.33 DEBUG=no STRIP=no SKIPSTUBS=" bzip2" SKIPPLUGINS="" SKIPUTILS="NSIS Menu" SKIPMISC=""
scons: Reading SConscript files ...
Delete("nsis-2.33")
Delete(".instdist")
Delete(".test")
Using GNU tools configuration
Checking for compiler flag -m32... yes
Checking for linker flag -m32... yes
Checking for linker flag $MAP_FLAG... yes
Checking for linker flag $MAP_FLAG... yes
Checking for memcpy requirement... yes
Checking for memset requirement... yes
Checking for linker flag -pthread... yes
Checking for __BIG_ENDIAN__... no
Checking for C library gdi32... no
Checking for C library user32... no
Checking for C library pthread... yes
Checking for C library iconv... no
Checking for C library dl... yes
Checking for C library gdi32... no
Checking for C library iconv... no
Checking for C library pthread... yes
Checking for C library user32... no
Checking for C++ library cppunit... no
scons: done reading SConscript files.
scons: Building targets ...
AdvSplash/advsplash.c
gcc-config error: Could not run/locate "i686-mingw32-gcc"
scons: *** [build/release/AdvSplash/advsplash.o] Error 1
scons: building terminated because of errors.
*
* ERROR: dev-util/nsis-2.33 failed.
* Call stack:
* ebuild.sh, line 1701: Called dyn_compile
* ebuild.sh, line 1039: Called qa_call 'src_compile'
* ebuild.sh, line 44: Called src_compile
* nsis-2.33.ebuild, line 73: Called die
* The specific snippet of code:
* do_scons || die "scons failed"
* The die message:
* scons 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-util/nsis-2.33/temp/build.log'.
*


I believe that gcc-config is set up properly, contrary to the SCons complaint:

Quote:
vps1 ~ # gcc-config -l
[1] i686-mingw32-4.2.2 *

[2] i686-pc-linux-gnu-4.1.2 *

vps1 ~ # gcc-config -c
i686-pc-linux-gnu-4.1.2

vps1 ~ # i686-mingw32-gcc -v
Using built-in specs.
Target: i686-mingw32
Configured with: /var/tmp/cross/i686-mingw32/portage/cross-i686-mingw32/gcc-4.2.2/work/gcc-4.2.2/configure --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/i686-mingw32/gcc-bin/4.2.2 --includedir=/usr/lib/gcc/i686-mingw32/4.2.2/include --datadir=/usr/share/gcc-data/i686-mingw32/4.2.2 --mandir=/usr/share/gcc-data/i686-mingw32/4.2.2/man --infodir=/usr/share/gcc-data/i686-mingw32/4.2.2/info --with-gxx-include-dir=/usr/lib/gcc/i686-mingw32/4.2.2/include/g++-v4 --host=i686-pc-linux-gnu --target=i686-mingw32 --build=i686-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --enable-secureplt --disable-libunwind-exceptions --disable-libmudflap --disable-libssp --disable-libgcj --with-arch=i686 --enable-languages=c,c++,fortran --with-sysroot=/usr/i686-mingw32 --disable-bootstrap --disable-libgomp
Thread model: win32
gcc version 4.2.2 (Gentoo 4.2.2 p1.0)


Here is "emerge --info":

Quote:
Portage 2.1.3.19 (default-linux/x86/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.16-xen i686)
=================================================================
System uname: 2.6.16-xen i686 Dual-Core AMD Opteron(tm) Processor 2210
Timestamp of tree: Wed, 02 Jan 2008 23:30:01 +0000
app-shells/bash: 3.2_p17-r1
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python: 2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox: 1.2.18.1-r2
sys-devel/autoconf: 2.61-r1
sys-devel/automake: 1.10
sys-devel/binutils: 2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool: 1.5.24
virtual/os-headers: 2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe -mno-tls-direct-seg-refs"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=i686 -pipe -mno-tls-direct-seg-refs"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl berkdb bitmap-fonts cli cracklib crypt cups dri fortran gdbm gpm iconv ipv6 isdnlog midi mudflap ncurses nls nptl nptlonly openmp pam pcre perl pppd python readline reflection session spl ssl tcpd truetype-fonts type1-fonts unicode x86 xorg 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 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="apm ark chips cirrus cyrix dummy fbdev glint i128 i740 i810 imstt mach64 mga neomagic nsc nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


Not sure what else to try.
Back to top
View user's profile Send private message
fugue88
n00b
n00b


Joined: 30 Mar 2005
Posts: 13

PostPosted: Sat Jan 12, 2008 11:31 pm    Post subject: Re: Can't find mingw32-gcc cross-compiler in NSIS 2.33 emerg Reply with quote

odontocete wrote:
I have i686-mingw32-gcc set up on my machine by building it through http://gentoo-wiki.com/HOWTO_MinGW. It built fine, and I previously used it in emerging NSIS 2.31. However, on trying to upgrade to the latest NSIS in portage, I get the following error:


I have the same problem. Additionally, I can no longer emerge 2.31. Can you?

Code:
emerge -av "<nsis-2.33"
Back to top
View user's profile Send private message
fugue88
n00b
n00b


Joined: 30 Mar 2005
Posts: 13

PostPosted: Wed Jan 16, 2008 2:19 am    Post subject: Re: Can't find mingw32-gcc cross-compiler in NSIS 2.33 emerg Reply with quote

I used
Code:
emerge --depclean -a
to clean out all of the crossdev stuff, then re-emerged it all with
Code:
crossdev mingw32
. NSIS is now happily compiling, and I don't expect any more trouble with it.

It's interesting to note that, although NSIS's ebuild complained about not being to find or run the compile (eg i686-mingw32-gcc), I was always able to do so from the command-line.
Back to top
View user's profile Send private message
odontocete
n00b
n00b


Joined: 27 Mar 2003
Posts: 18

PostPosted: Fri Jan 18, 2008 5:29 pm    Post subject: Re: Can't find mingw32-gcc cross-compiler in NSIS 2.33 emerg Reply with quote

fugue88 wrote:
I used
Code:
emerge --depclean -a
to clean out all of the crossdev stuff, then re-emerged it all with
Code:
crossdev mingw32
. NSIS is now happily compiling, and I don't expect any more trouble with it.


This also worked for me.

Thanks much.
Back to top
View user's profile Send private message
mrness
Retired Dev
Retired Dev


Joined: 17 Feb 2004
Posts: 375
Location: bucharest.ro

PostPosted: Thu Jan 24, 2008 12:48 pm    Post subject: Reply with quote

Just try to run mingw32 compiler. If it fails like in this bug, just run
Code:
gcc-config -f $MINGW32
source /etc/profile

and try again.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum