Boost logo

Boost Users :

From: Rafał Maj Raf256 (boost-news-ticket_at_[hidden])
Date: 2006-02-05 12:43:09


Rafał Maj Raf256 wrote:

> I executed (long lines wrapped)
>
> boost_1_33_1$ bjam -sTOOLS="mingw"
> -sMINGW_ROOT_DIRECTORY="/usr/i586-mingw32msvc"
> -sGCC="i586-mingw32msvc-gcc" -sGXX="i586-mingw32msvc-g++"
>
> and I got:
>
> Building Boost.Regex with the optional Unicode/ICU support disabled.
> Please refer to the Boost.Regex documentation for more information
> (and if you don't know what ICU is then you probably don't need it).
> **** wide char i/o not supported by the mingw standard library ****
> **** skipping build of
> <@boost!libs!serialization!build>libboost_wserialization.a; toolset=

When building on normal windows + mingw then it worked simmilar to this
point

now the error:

> bin/boost/libs/test/build/libboost_prg_exec_monitor.so/mingw/debug/shared-linkable-true/execution_monitor.o
> /home/raf256/cre.ext/boost_1_33_1/libs/test/build/../src/execution_monitor.cpp:1:
> warning: -fPIC ignored for target (all code is position independent)
> /usr/bin/objcopy:
> bin/boost/libs/test/build/libboost_prg_exec_monitor.so/mingw/debug/shared-linkable-true/execution_monitor.o:
> File format not recognized

So perhaps the objcopy utility used is wrong?

raf256_at_lore:~$ /usr/bin/objcopy -V
GNU objcopy 2.16.91 20060118 Debian GNU/Linux
Copyright 2005 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License. This program has absolutely no warranty.

I dont have no objcopy in mingw, only objdump

raf256_at_lore:~$ /usr/i586-mingw32msvc/bin/objdump -V
GNU objdump 2.16.91 20050827
Copyright 2005 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License. This program has absolutely no warranty.

perhaps missing objcopy is causing mingw-running-on-linux to fail?

Can that be fixed in bjam, like by using other tool or telling linux
objcopy how to work with crossbuilded objects?

The cmd line that worked fine on win32 was:

setting path to:
D:\WINDOWS\system32;D:\WINDOWS;D:\WINDOWS\system32\WBEM;
C:\bjam;C:\mingw;c:\mingw\bin;
(in one line) or simmilar,

then:

C:\boost_1_33_1>bjam -sTOOLS="mingw" -sMINGW_ROOT_DIRECTORY="c:/mingw"
install


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net