Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
crossdev w64-mingw32
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64
View previous topic :: View next topic  
Author Message
thegeezer
n00b
n00b


Joined: 11 Jul 2010
Posts: 38

PostPosted: Thu Jul 02, 2020 11:51 am    Post subject: crossdev w64-mingw32 Reply with quote

Howdy everyone,
I'm looking to cross compile apache and mod_security from a working Gentoo install to a win32 box

I've been following the wiki https://wiki.gentoo.org/wiki/Mingw to get crossdev installed and hav emerged crossdev no problem

Code:
 # USE="libraries idl tools" crossdev --ex-only --ex-pkg cross-x86_64-w64-mingw32/mingw64-runtime -t i686-w64-mingw32
-
 * crossdev version:      20200131
 * Host Portage ARCH:     amd64
 * Host Portage System:   x86_64-pc-linux-gnu (i686-pc-linux-gnu x86_64-pc-linux-gnu)
 * Target Portage ARCH:   x86
 * Target System:         i686-w64-mingw32
 * Stage:                 4 (C/C++ compiler)
 * USE=multilib:          no
 * Target ABIs:           default

 * Extra:                 cross-x86_64-w64-mingw32/mingw64-runtime

 * CROSSDEV_OVERLAY:      /usr/local/portage-crossdev
 * PORT_LOGDIR:           /var/log/portage
 * PORTAGE_CONFIGROOT:    /
 * Portage flags:

 * leaving sys-devel/binutils in /usr/local/portage-crossdev
 * leaving sys-devel/gcc in /usr/local/portage-crossdev
 * leaving dev-util/mingw64-runtime in /usr/local/portage-crossdev
 * leaving sys-devel/gdb in /usr/local/portage-crossdev
 * leaving cross-x86_64-w64-mingw32/mingw64-runtime in /usr/local/portage-crossdev

 * Log: /var/log/portage/cross-i686-w64-mingw32-mingw64-runtime.log
 * Emerging cross-mingw64-runtime ...

 * error: mingw64-runtime failed :(


the logs seem to suggest issue with configure
Code:
configure: error: in `/var/tmp/portage/cross-i686-w64-mingw32/mingw64-runtime-7.0.0-r1/work/mingw-w64-v7.0.0/mingw-w64-libraries/libmangle':
configure: error: C compiler cannot create executables
See `config.log' for more details
configure: error: ./configure failed for mingw-w64-libraries/libmangle


and last few lines of the cofnig log

Code:
 /var/tmp/portage/cross-i686-w64-mingw32/mingw64-runtime-7.0.0-r1/work/mingw-w64-v7.0.0/config.log

sysconfdir='/etc'
target_alias='i686-w64-mingw32'

configure: exit 77



can anyone point me in the right direction please?
thanks in advance!
Back to top
View user's profile Send private message
Banana
l33t
l33t


Joined: 21 May 2004
Posts: 695
Location: Germany

PostPosted: Thu Jul 02, 2020 12:11 pm    Post subject: Reply with quote

are the official apache win builds not working for you?
_________________
My personal space
Back to top
View user's profile Send private message
thegeezer
n00b
n00b


Joined: 11 Jul 2010
Posts: 38

PostPosted: Thu Jul 02, 2020 12:57 pm    Post subject: official apache winbuilds Reply with quote

From https://httpd.apache.org/docs/current/platform/win_compiling.html

Quote:
The policy of the Apache HTTP Server project is to only release Unix sources. Windows source packages made available for download have been supplied by volunteers and may not be available for every release. You can still build the server on Windows from the Unix source tarball with just a few additional steps.


I've tried following the wiki, there are many undeclared pre-reqs and it's slow going, so i thought i'd use my tinderbox and setup crossdev, what could go wrong :D at least the dependency and sources are all worked out
Back to top
View user's profile Send private message
thegeezer
n00b
n00b


Joined: 11 Jul 2010
Posts: 38

PostPosted: Thu Jul 02, 2020 12:59 pm    Post subject: SOLVED bootstrap the whole toolchain -tools Reply with quote

from https://bugs.gentoo.org/644556

I saw the commend to bootstrap the whole toolchain with USE="-tools" so i did this

Code:
 ~ # USE="-tools" crossdev --ex-only --ex-pkg cross-x86_64-w64-mingw32/mingw64-runtime -t i686-w64-mingw32
-
 * crossdev version:      20200131
 * Host Portage ARCH:     amd64
 * Host Portage System:   x86_64-pc-linux-gnu (i686-pc-linux-gnu x86_64-pc-linux-gnu)
 * Target Portage ARCH:   x86
 * Target System:         i686-w64-mingw32
 * Stage:                 4 (C/C++ compiler)
 * USE=multilib:          no
 * Target ABIs:           default

 * Extra:                 cross-x86_64-w64-mingw32/mingw64-runtime

 * CROSSDEV_OVERLAY:      /usr/local/portage-crossdev
 * PORT_LOGDIR:           /var/log/portage
 * PORTAGE_CONFIGROOT:    /
 * Portage flags:

 * leaving sys-devel/binutils in /usr/local/portage-crossdev
 * leaving sys-devel/gcc in /usr/local/portage-crossdev
 * leaving dev-util/mingw64-runtime in /usr/local/portage-crossdev
 * leaving sys-devel/gdb in /usr/local/portage-crossdev
 * leaving cross-x86_64-w64-mingw32/mingw64-runtime in /usr/local/portage-crossdev

 * Log: /var/log/portage/cross-i686-w64-mingw32-mingw64-runtime.log
 * Emerging cross-mingw64-runtime ...                                                                                                                                                                                    [ ok ]
~ # USE="libraries idl tools" crossdev --ex-only --ex-pkg cross-x86_64-w64-mingw32/mingw64-runtime -t i686-w64-mingw32
-
 * crossdev version:      20200131
 * Host Portage ARCH:     amd64
 * Host Portage System:   x86_64-pc-linux-gnu (i686-pc-linux-gnu x86_64-pc-linux-gnu)
 * Target Portage ARCH:   x86
 * Target System:         i686-w64-mingw32
 * Stage:                 4 (C/C++ compiler)
 * USE=multilib:          no
 * Target ABIs:           default

 * Extra:                 cross-x86_64-w64-mingw32/mingw64-runtime

 * CROSSDEV_OVERLAY:      /usr/local/portage-crossdev
 * PORT_LOGDIR:           /var/log/portage
 * PORTAGE_CONFIGROOT:    /
 * Portage flags:

 * leaving sys-devel/binutils in /usr/local/portage-crossdev
 * leaving sys-devel/gcc in /usr/local/portage-crossdev
 * leaving dev-util/mingw64-runtime in /usr/local/portage-crossdev
 * leaving sys-devel/gdb in /usr/local/portage-crossdev
 * leaving cross-x86_64-w64-mingw32/mingw64-runtime in /usr/local/portage-crossdev

 * Log: /var/log/portage/cross-i686-w64-mingw32-mingw64-runtime.log
 * Emerging cross-mingw64-runtime ...                                                                                                                                                                                    [ ok ]
 ~ #


hurrah, now to try crossdev apache :D
Back to top
View user's profile Send private message
Banana
l33t
l33t


Joined: 21 May 2004
Posts: 695
Location: Germany

PostPosted: Thu Jul 02, 2020 1:44 pm    Post subject: Reply with quote

well wasn't aware of that. Was always (if I had to) using the prebuild stuff.
_________________
My personal space
Back to top
View user's profile Send private message
thegeezer
n00b
n00b


Joined: 11 Jul 2010
Posts: 38

PostPosted: Thu Jul 02, 2020 3:10 pm    Post subject: apache binaries are ok just source compile Reply with quote

apache binaries are ok to use but for $reasons i need to compile a module and sadly the sources are not ready for a one click compile in visusal studio
if you happen to come across a somewhere with instructinos for that i'm all ears though !
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64 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