had to relocate pch error when cross-compiling boost.math library

View: New views
3 Messages — Rating Filter:   Alert me  

had to relocate pch error when cross-compiling boost.math library

by Gözde Bahar KOŞ :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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.

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


_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build

boost_math-build.log (289K) Download Attachment

Re: had to relocate pch error when cross-compiling boost.math library

by Juergen Hunold-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

On Tuesday 20 October 2009, Gözde Bahar KO? wrote:

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

Which gcc version ?

> 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

This sounds good.
 
> For boost.math library, the following error occurs:
>: fatal error: had to relocate PCH compilation terminated.

looks like a compiler bug. Works on Linux/Windows with gcc-4.4.

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

Just add "pch=off" to your command line.
Or try to add <pch>off the the compiler options.
This works for gcc-3.3.5 which has no pch-support...

Yours,

Jürgen
--
* Dipl.-Math. Jürgen Hunold       ! Ingenieurgesellschaft für
* voice: ++49 511 262926 57       ! Verkehrs- und Eisenbahnwesen mbH  
* fax  : ++49 511 262926 99       ! Lister Straße 15
* juergen.hunold@...        ! www.ivembh.de
*
* Geschäftsführer:                ! Sitz des Unternehmens: Hannover
* Prof. Dr.-Ing. Thomas Siefer    ! Amtsgericht Hannover, HRB 56965
* PD Dr.-Ing. Alfons Radtke       !
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build

YNT: had to relocate pch error when cross-compiling boost.math library

by Gözde Bahar KOŞ :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I added pch=off to the command line and it worked!

Fyi, gcc version that I use is 4.2.0.

Thank you very much!
Regards,
Gözde Koş

________________________________________
Kimden: boost-build-bounces@... [boost-build-bounces@...], Juergen Hunold [juergen.hunold@...] Adına
Tarih: 20 Ekim 2009 Salı 17:32
Kime: Boost.Build developer's and user's list
Konu: Re: [Boost-build] had to relocate pch error when cross-compiling  boost.math library

Hi,

On Tuesday 20 October 2009, Gözde Bahar KO? wrote:

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

Which gcc version ?

> 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

This sounds good.

> For boost.math library, the following error occurs:
>: fatal error: had to relocate PCH compilation terminated.

looks like a compiler bug. Works on Linux/Windows with gcc-4.4.

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

Just add "pch=off" to your command line.
Or try to add <pch>off the the compiler options.
This works for gcc-3.3.5 which has no pch-support...

Yours,

Jürgen
--
* Dipl.-Math. Jürgen Hunold       ! Ingenieurgesellschaft für
* voice: ++49 511 262926 57       ! Verkehrs- und Eisenbahnwesen mbH
* fax  : ++49 511 262926 99       ! Lister Straße 15
* juergen.hunold@...        ! www.ivembh.de
*
* Geschäftsführer:                ! Sitz des Unternehmens: Hannover
* Prof. Dr.-Ing. Thomas Siefer    ! Amtsgericht Hannover, HRB 56965
* PD Dr.-Ing. Alfons Radtke       !
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build
######################################################################
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.

######################################################################
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build