Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

How to crossdev+mingw32 on Hardened Gentoo ?

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
2 posts • Page 1 of 1
Author
Message
Drusselnahg
n00b
n00b
Posts: 12
Joined: Sun Mar 16, 2008 10:48 pm

How to crossdev+mingw32 on Hardened Gentoo ?

  • Quote

Post by Drusselnahg » Sat Sep 12, 2009 8:19 pm

Hello, i'm trying to build a mingw32 compiler with crossdev, but i got only compile errors

Code: Select all

crossdev -t i686-pc-mingw32
compiles binutils, w32ap-quicki, runtime, but stops at gcc.
gcc v4 asks me for some minispec files (I don't know what is it)

So i added some random --g param without success

gcc v3.3 complains about missing headers in some cygwin files ...
gcc v3.2 fails to compile because of the -march=prescott arg in my CFLAGS



So i changed my CFLAGS to "-O2 -pipe" just for i686-pc-mingw32 with gcc 3.2 but after, i got many "redefinitions" errors when compiling w32api

Code: Select all

In file included from /usr/include/sys/select.h:46,
                 from /usr/include/sys/types.h:220,
                 from /usr/include/stdlib.h:320,
                 from ../include/objbase.h:12,
                 from ../include/ole2.h:9,
                 from ../include/windows.h:114,
                 from scrnsave.c:10:
/usr/include/bits/time.h:70: redefinition of `struct timeval'
In file included from /usr/include/sys/types.h:220,
                 from /usr/include/stdlib.h:320,
                 from ../include/objbase.h:12,
                 from ../include/ole2.h:9,
                 from ../include/windows.h:114,
                 from scrnsave.c:10:
/usr/include/sys/select.h:78: conflicting types for `fd_set'
../include/winsock2.h:64: previous declaration of `fd_set'
/usr/include/sys/select.h:112: conflicting types for `select'
../include/winsock2.h:632: previous declaration of `select'

Thanks in advance,

Drusselnahg.

here's my mingw32-info.log

Code: Select all

--------------------------------------------------------------------------------
Host Portage ARCH:     x86
Target Portage ARCH:   x86
Target System:         i686-mingw32
Stage:                 4 (C/C++ compiler)

binutils:              binutils-[latest]
gcc:                   gcc-3.3.6
headers:               w32api-[latest]
libc:                  mingw-runtime-[latest]

PORTDIR_OVERLAY:       /usr/local/portage
PORT_LOGDIR:           /var/log/portage
PKGDIR:                /usr/portage/packages/cross/i686-mingw32
PORTAGE_TMPDIR:        /var/tmp/cross/i686-mingw32
  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  
Portage 2.1.6.13 (hardened/linux/x86/10.0, gcc-3.4.6, glibc-2.9_p20081201-r2, 2.6.28-hardened-r9 i686)
=================================================================
System uname: Linux-2.6.28-hardened-r9-i686-Intel-R-_Pentium-R-_4_CPU_3.00GHz-with-gentoo-1.12.11.1
Timestamp of tree: Sat, 12 Sep 2009 10:30:01 +0000
distcc 3.1 i686-pc-linux-gnu [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-lang/python:     2.4.4-r6, 2.5.4-r3, 2.6.2-r1
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  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"
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_MMS="prefork"
APACHE2_MODULES="actions alias auth_basic auth_digest dbd expires PHP PHP5 ZTS MPM authz_host dir mime mime_magic vhost_alias asis headers dav dav_fs dav_lock autoindex authz_owner authz_user authz_groupfile authn_file env alias"
ARCH="x86"
AUTOCLEAN="yes"
BOOTLEVEL="boot"
CBUILD="i686-pc-linux-gnu"
CCACHE_SIZE="2G"
CFLAGS="-O2 -march=prescott -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CLEAN_DELAY="5"
COLLISION_IGNORE="/lib/modules"
Top
kikawala
n00b
n00b
User avatar
Posts: 41
Joined: Tue Aug 20, 2002 11:46 pm
Location: Dallas, TX

crossdev -w3S -t i686-pc-ming2

  • Quote

Post by kikawala » Tue Feb 16, 2010 8:13 pm

Try this to use the stable versions for the tool chain. Omitting the -S will use the latest versions.

Code: Select all

crossdev -S -t i686-pc-ming2
Top
Post Reply

2 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic