Problem for compiling Boost 1.53
Hi, When I try to compile boost with this command line : .\b2 toolset=gcc -j4 --build-type=complete --without-mpi --prefix=C:\librairies\boost-1.53.0 --user-config=user-config.jam install I have the error that you can see in the out.txt file in attachment and the user-config.jam file in attachment either. I try to compile Boost in MinGW with GCC 4.7.2. Someone can help me :-) Thanks in advance. Best regards. Julien.
AMDG On 03/01/2013 08:45 AM, julien.plu@redaction-developpez.com wrote:
When I try to compile boost with this command line : .\b2 toolset=gcc -j4 --build-type=complete --without-mpi --prefix=C:\librairies\boost-1.53.0 --user-config=user-config.jam install
I have the error that you can see in the out.txt file in attachment and the user-config.jam file in attachment either.
I try to compile Boost in MinGW with GCC 4.7.2.
Someone can help me :-)
If you don't need Boost.Python, you can add --without-python. I'm not sure what the problem is. Looking at the link command line, I see: -Wl,-Bdynamic -lpython27 which looks right. Can you check exactly which library is being linked to. (linkflags=-Wl,-t) In Christ, Steven Watanabe
Hi, Thanks for your answer and your help. I need Python because I work on a project which use it. I added "linkflags=-Wl,-t" to the compilation line and the result is in the out.txt file. Best regards. Julien. -----Message d'origine----- De : Boost-users [mailto:boost-users-bounces@lists.boost.org] De la part de Steven Watanabe Envoyé : vendredi 1 mars 2013 21:13 À : boost-users@lists.boost.org Objet : Re: [Boost-users] Problem for compiling Boost 1.53 AMDG On 03/01/2013 08:45 AM, julien.plu@redaction-developpez.com wrote:
When I try to compile boost with this command line : .\b2 toolset=gcc -j4 --build-type=complete --without-mpi --prefix=C:\librairies\boost-1.53.0 --user-config=user-config.jam install
I have the error that you can see in the out.txt file in attachment and the user-config.jam file in attachment either.
I try to compile Boost in MinGW with GCC 4.7.2.
Someone can help me :-)
If you don't need Boost.Python, you can add --without-python. I'm not sure what the problem is. Looking at the link command line, I see: -Wl,-Bdynamic -lpython27 which looks right. Can you check exactly which library is being linked to. (linkflags=-Wl,-t) In Christ, Steven Watanabe _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
AMDG On 03/01/2013 12:32 PM, julien.plu@redaction-developpez.com wrote:
Hi,
Thanks for your answer and your help. I need Python because I work on a project which use it.
I added "linkflags=-Wl,-t" to the compilation line and the result is in the out.txt file.
Oops. I forgot that Boost.Build treats "," specially. Can you run the link command manually with -Wl,-t? In Christ, Steven Watanabe
If I run the link manually with this command (it's the first one in the previous out.txt) : "g++" -L"C:\Python27\libs" -Wl,-R -Wl,"C:\Python27\libs" "-Wl,--out-implib,bin.v2\libs\python\build\gcc-mingw-4.7.2\release\libboost_ python-mgw47-1_53.dll.a" -o "bin.v2\libs\python\build\gcc-mingw-4.7.2\release\libboost_python-mgw47-1_53 .dll" -shared -Wl,--start-group "bin.v2\libs\python\build\gcc-mingw-4.7.2\release\numeric.o" "bin.v2\libs\python\build\gcc-mingw-4.7.2\release\list.o" "bin.v2\libs\python\build\gcc-mingw-4.7.2\release\long.o" "bin.v2\libs\python\build\gcc-mingw-4.7.2\release\dict.o" "bin.v2\libs\python\build\gcc-mingw-4.7.2\release\tuple.o" "bin.v2\libs\python\build\gcc-mingw-4.7.2\release\str.o" "bin.v2\libs\python\build\gcc-mingw-4.7.2\release\slice.o" "bin.v2\libs\python\build\gcc-mingw-4.7.2\release\converter\from_python.o" "bin.v2\libs\python\build\gcc-mingw-4.7.2\release\converter\registry.o" "bin.v2\libs\python\build\gcc-mingw-4.7.2\release\converter\type_id.o" "bin.v2\libs\python\build\gcc-mingw-4.7.2\release\object\enum.o" "bin.v2\libs\python\build\gcc-mingw-4.7.2\release\object\class.o" "bin.v2\libs\python\build\gcc-mingw-4.7.2\release\object\function.o" "bin.v2\libs\python\build\gcc-mingw-4.7.2\release\object\inheritance.o" "bin.v2\libs\python\build\gcc-mingw-4.7.2\release\object\life_support.o" "bin.v2\libs\python\build\gcc-mingw-4.7.2\release\object\pickle_support.o" "bin.v2\libs\python\build\gcc-mingw-4.7.2\release\errors.o" "bin.v2\libs\python\build\gcc-mingw-4.7.2\release\module.o" "bin.v2\libs\python\build\gcc-mingw-4.7.2\release\converter\builtin_converte rs.o" "bin.v2\libs\python\build\gcc-mingw-4.7.2\release\converter\arg_to_python_ba se.o" "bin.v2\libs\python\build\gcc-mingw-4.7.2\release\object\iterator.o" "bin.v2\libs\python\build\gcc-mingw-4.7.2\release\object\stl_iterator.o" "bin.v2\libs\python\build\gcc-mingw-4.7.2\release\object_protocol.o" "bin.v2\libs\python\build\gcc-mingw-4.7.2\release\object_operators.o" "bin.v2\libs\python\build\gcc-mingw-4.7.2\release\wrapper.o" "bin.v2\libs\python\build\gcc-mingw-4.7.2\release\import.o" "bin.v2\libs\python\build\gcc-mingw-4.7.2\release\exec.o" "bin.v2\libs\python\build\gcc-mingw-4.7.2\release\object\function_doc_signat ure.o" -Wl,-Bstatic -Wl,-Bdynamic -lpython27 -Wl,--end-group -Wl,-t And the result is in the out.txt in attachment. Best regards. Julien. -----Message d'origine----- De : Boost-users [mailto:boost-users-bounces@lists.boost.org] De la part de Steven Watanabe Envoyé : vendredi 1 mars 2013 22:45 À : boost-users@lists.boost.org Objet : Re: [Boost-users] Problem for compiling Boost 1.53 AMDG On 03/01/2013 12:32 PM, julien.plu@redaction-developpez.com wrote:
Hi,
Thanks for your answer and your help. I need Python because I work on a project which use it.
I added "linkflags=-Wl,-t" to the compilation line and the result is in the out.txt file.
Oops. I forgot that Boost.Build treats "," specially. Can you run the link command manually with -Wl,-t? In Christ, Steven Watanabe _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
AMDG It looks like the problem is that you're using a native Windows python installation with MinGW. MinGW doesn't understand the import lib, so it tries to link to python2.7 .dll directly. IIRC, This doesn't handle global variables correctly. (Notice that all the undefined references are for variables, not functions.) Please see: http://www.mingw.org/wiki/MSVC_and_MinGW_DLLs In Christ, Steven Watanabe
Hi, Sorry for my late reply. Anyway I solved the problem in installing the official version of Python and not the activestate version. Thanks a lot for your help. Cheers. Julien. -----Message d'origine----- De : Boost-users [mailto:boost-users-bounces@lists.boost.org] De la part de Steven Watanabe Envoyé : vendredi 1 mars 2013 23:54 À : boost-users@lists.boost.org Objet : Re: [Boost-users] Problem for compiling Boost 1.53 AMDG It looks like the problem is that you're using a native Windows python installation with MinGW. MinGW doesn't understand the import lib, so it tries to link to python2.7 .dll directly. IIRC, This doesn't handle global variables correctly. (Notice that all the undefined references are for variables, not functions.) Please see: http://www.mingw.org/wiki/MSVC_and_MinGW_DLLs In Christ, Steven Watanabe _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
Hello,
On Mon, Mar 4, 2013 at 11:05 AM,
Hi,
Sorry for my late reply.
Anyway I solved the problem in installing the official version of Python and not the activestate version.
I ended up having to pick up a python-dev or something like that for reasons unrelated to boost 1.53 per se. This will solve the problem though?
Thanks a lot for your help.
No, thank you. That will help us too so we can use the latest release.
Cheers.
Julien.
-----Message d'origine----- De : Boost-users [mailto:boost-users-bounces@lists.boost.org] De la part de Steven Watanabe Envoyé : vendredi 1 mars 2013 23:54 À : boost-users@lists.boost.org Objet : Re: [Boost-users] Problem for compiling Boost 1.53
AMDG
It looks like the problem is that you're using a native Windows python installation with MinGW. MinGW doesn't understand the import lib, so it tries to link to python2.7 .dll directly. IIRC, This doesn't handle global variables correctly. (Notice that all the undefined references are for variables, not functions.) Please see: http://www.mingw.org/wiki/MSVC_and_MinGW_DLLs
In Christ, Steven Watanabe _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
On Mon, Mar 4, 2013 at 11:41 AM, Michael Powell
Hello,
On Mon, Mar 4, 2013 at 11:05 AM,
wrote: Hi,
Sorry for my late reply.
Anyway I solved the problem in installing the official version of Python and not the activestate version.
I ended up having to pick up a python-dev or something like that for reasons unrelated to boost 1.53 per se. This will solve the problem though?
Thanks a lot for your help.
No, thank you. That will help us too so we can use the latest release.
Got 'er to go. Instead of worrying about /opt/boost_x_yy_z, I just placed a local ./stage/ prefix, and the build went. I did exclude wave (for now), and python, but otherwise, the build itself seems to have gone without a hitch.
Cheers.
Julien.
-----Message d'origine----- De : Boost-users [mailto:boost-users-bounces@lists.boost.org] De la part de Steven Watanabe Envoyé : vendredi 1 mars 2013 23:54 À : boost-users@lists.boost.org Objet : Re: [Boost-users] Problem for compiling Boost 1.53
AMDG
It looks like the problem is that you're using a native Windows python installation with MinGW. MinGW doesn't understand the import lib, so it tries to link to python2.7 .dll directly. IIRC, This doesn't handle global variables correctly. (Notice that all the undefined references are for variables, not functions.) Please see: http://www.mingw.org/wiki/MSVC_and_MinGW_DLLs
In Christ, Steven Watanabe _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (3)
-
julien.plu@redaction-developpez.com
-
Michael Powell
-
Steven Watanabe