Boost logo

Boost-Build :

Subject: [Boost-build] had to relocate pch error when cross-compiling boost.math library
From: Gözde Bahar KOÞ (gkos_at_[hidden])
Date: 2009-10-20 09:53:01


Hello,

I want to cross-compile boost libraries for a montavista linux target on a windows XP host computer running cygwin.

I configured the user-config.jam file for my compiler, then I ran the following command to compile boost. All libraries except math library were compiled successfully.

         bjam toolset=gcc-em64t target-os=linux install

For boost.math library, the following error occurs:

gcc.compile.c++ bin.v2\libs\math\build\gcc-em64t\release\target-os-linux\threading-multi\acosh.o
libs\math\build\..\src\tr1\acosh.cpp:1: fatal error: had to relocate PCH
compilation terminated.

    "C:/mvcyg5.0/opt/montavista/pro/devkit/x86/em64t/bin/em64t-g++.exe" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -pthread -fPIC -Winvalid-pch -DBOOST_ALL_NO_LIB=1 -DBOOST_BUILD_PCH_ENABLED -DBOOST_MATH_TR1_DYN_LINK=1 -DNDEBUG -I"bin.v2\libs\math\build\gcc-em64t\release\target-os-linux\threading-multi\..\src\tr1" -I"." -I"libs\math\src\tr1" -c -o "bin.v2\libs\math\build\gcc-em64t\release\target-os-linux\threading-multi\acosh.o" "libs\math\build\..\src\tr1\acosh.cpp"

Please see boost_math-build.log file that is attached to this mail..

Is there a missing path declaration?
Or do i need to disable pch? If so how can i disable it?

Regards,
Gözde Koþ

######################################################################
Dikkat:

Bu elektronik posta mesaji kisisel ve ozeldir. Eger size
gonderilmediyse lutfen gondericiyi bilgilendirip mesaji siliniz.
Firmamiza gelen ve giden mesajlar virus taramasindan gecirilmekte,
guvenlik nedeni ile kontrol edilerek saklanmaktadir. Mesajdaki
gorusler ve bakis acisi gondericiye ait olup Aselsan A.S. resmi
gorusu olmak zorunda degildir.

######################################################################
Attention:

This e-mail message is privileged and confidential. If you are
not the intended recipient please delete the message and notify
the sender. E-mails to and from the company are monitored for
operational reasons and in accordance with lawful business practices.
Any views or opinions presented are solely those of the author and
do not necessarily represent the views of the company.

######################################################################




Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk