View previous topic :: View next topic |
Author |
Message |
thegeezer n00b
Joined: 11 Jul 2010 Posts: 38
|
Posted: Thu Jul 02, 2020 11:51 am Post subject: crossdev w64-mingw32 |
|
|
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 |
|
|
Banana Moderator
Joined: 21 May 2004 Posts: 1798 Location: Germany
|
|
Back to top |
|
|
thegeezer n00b
Joined: 11 Jul 2010 Posts: 38
|
Posted: Thu Jul 02, 2020 12:57 pm Post subject: official apache winbuilds |
|
|
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 at least the dependency and sources are all worked out |
|
Back to top |
|
|
thegeezer n00b
Joined: 11 Jul 2010 Posts: 38
|
Posted: Thu Jul 02, 2020 12:59 pm Post subject: SOLVED bootstrap the whole toolchain -tools |
|
|
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 |
|
Back to top |
|
|
Banana Moderator
Joined: 21 May 2004 Posts: 1798 Location: Germany
|
|
Back to top |
|
|
thegeezer n00b
Joined: 11 Jul 2010 Posts: 38
|
Posted: Thu Jul 02, 2020 3:10 pm Post subject: apache binaries are ok just source compile |
|
|
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 |
|
|
|