Freebsd->win32 crosscompile

Hi!

Has anyone successfully built crosscompile on freebsd?
I tried, but it stucks configuring binutils in ‘Creating makefile’ in /etc

Any ideas?

./lxnt

Es schrieb Alexander Sabourenkov:

Hi!

Has anyone successfully built crosscompile on freebsd?
I tried, but it stucks configuring binutils in ‘Creating makefile’ in /etc

Any ideas?

I dunno what’s wrong with gcc crosscompiler builds, no problem on
linux, but even on solaris it got stuck somewhere in between (etc/?)
creating a nice tcsh fork-bomb - and tcsh is not mentioned in any
program in the $PATH. And even with the binutils-patch applied (as
being shipped near libsdl/Xmingw32) and after a couple of killall
series - it occured that later I had to edit some Makefiles a couple
of times to do the right thing - that’s somehow releated to this
intermediate-compiler being build that will finally compile a
compiler that is a crosscompiler, or something like this :wink: … well,
on a four-cpu sparc-server it took me three hours to get at a decent
crosscompiler for solaris->mingw32 but lucky man, I can now use some
make --jobs=4 on our machine … woooosh… :-)=)

cheers,
– guido Edel sei der Mensch, hilfreich und gut
GCS/E/S/P C++$++++ ULHS L++w- N++@ d(±) s+a- r+@>+++ y++ 5++X- (geekcode)

Hi,

At Tue, 30 Oct 2001 19:32:37 +0300,
Alexander Sabourenkov wrote:

Has anyone successfully built crosscompile on freebsd?
I tried, but it stucks configuring binutils in ‘Creating makefile’ in /etc

I’ve been using using crosstools for Windows on FreeBSD, for 3 months.

% uname -sr
FreeBSD 4.3.0-RELEASE

% file xanadu
xanadu: MS Windows PE Intel 80386 GUI executable not relocatable

FYI, my script to install crosstools is here.
(This script may be out-dated. but anyway, my FreeBSD box can
produce Windows executables and these works good.)--------------------

  1. pkg_add mingw-2000.03.27

% ls /var/db/pkg | grep mingw
mingw-2000.03.27/
mingw-bin-msvcrt-2000.03.27/
mingw-gcc-2.95.2/
mingw-binutils-2.9.1/

  1. fetch
    http://www.devolution.com/~slouken/SDL/Xmingw32/cross-{configure,make}.sh
    and install to
    /usr/local/bin/i386-mingw32msvc-{configure,make}.sh
    (with some modification).

  2. try to build SDL 1.2(CVS) … but failed.

% i386-mingw32msvc-configure --prefix=/usr/local/i386-mingw32msvc && \
i386-mingw32-make.sh

My (out-dated) dlltools doesn’t have --exclude-symbols option.

  1. re-install binutils(2.11.2) by hand.

% ./configure --target=i386-mingw32 --prefix=/usr/local
% make

pkg_delete -f mingw-binutils-2.9.1

make install

  1. re-try to build SDL 1.2 … success.

% i386-mingw32msvc-configure --prefix=/usr/local/i386-mingw32msvc && \
i386-mingw32-make.sh

i386-mingw32msvc-make.sh install

  1. build tests(SDL-1.2/test) … success

% i386-mingw32-configure --with-sdl-prefix=/usr/local/i386-mingw32-msvc

  1. That’s all, enjoy!

Tsuyoshi Iguchi (@Tsuyoshi_Iguchi)
http://www2.jan.ne.jp/~zinnia/