How do I build with an alternate compiler location?
I'm trying to build on freebsd 4. (Those are my production machines, so I'm stuck.) The default install is gcc 2.95 and freebsd's old ports tree contains patches to build boost's libraries. However, when I try to include boost include files, it inevitably complains about any number of templates gcc can't grok. I suppose I can maybe build the libs with gcc 2.95 and my code with gcc 3.4.6, but I'd rather build boost with 3.4.6 too. Plus, the patches are for boost 1.32 and I'd rather use a later version of boost. However, gcc34 installs into /usr/local/bin/gcc34 and a bunch of include files I'd usually specify -I directives in my CXXFLAGS in my makefile. I'm just not clear how to set these overrides for bjam. I've looked at the bjam docs, but it just seems a lot more complicated than it should be. Cheers, Eric
Eric Brown wrote:
I'm trying to build on freebsd 4. (Those are my production machines, so I'm stuck.)
The default install is gcc 2.95 and freebsd's old ports tree contains patches to build boost's libraries. However, when I try to include boost include files, it inevitably complains about any number of templates gcc can't grok.
I suppose I can maybe build the libs with gcc 2.95 and my code with gcc 3.4.6, but I'd rather build boost with 3.4.6 too. Plus, the patches are for boost 1.32 and I'd rather use a later version of boost.
However, gcc34 installs into /usr/local/bin/gcc34 and a bunch of include files I'd usually specify -I directives in my CXXFLAGS in my makefile. I'm just not clear how to set these overrides for bjam. I've looked at the bjam docs,
Did you look at bjam docs, or Boost.Build docs? The latter, in http://www.boost.org/boost-build2/doc/html/bbv2/reference/tools.html#bbv2.re... give a syntax you can use in user-config.jam to configure gcc with an alternative location. Does this answer your question? - Volodya
Hi Eric. On Saturday 23 May 2009, Eric Brown wrote:
The default install is gcc 2.95 and freebsd's old ports tree contains patches to build boost's libraries. However, when I try to include boost include files, it inevitably complains about any number of templates gcc can't grok.
yeah, gcc-2.95 is way too old...
I suppose I can maybe build the libs with gcc 2.95 and my code with gcc 3.4.6, but I'd rather build boost with 3.4.6 too. Plus, the patches are for boost 1.32 and I'd rather use a later version of boost.
I remember frequent ABI-changes during the gcc-3.x evolution. You most probably get incompatible libraries. So it might be all or nothing.
However, gcc34 installs into /usr/local/bin/gcc34 and a bunch of include files I'd usually specify -I directives in my CXXFLAGS in my makefile. I'm just not clear how to set these overrides for bjam. I've looked at the bjam docs, but it just seems a lot more complicated than it should be.
Well, Volodya already posted the link. Should be straightforward with current Boost release (works here for gcc-4.4 on SuSE-11.0) 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@ivembh.de ! www.ivembh.de * * Geschäftsführer: ! Sitz des Unternehmens: Hannover * Prof. Dr.-Ing. Thomas Siefer ! Amtsgericht Hannover, HRB 56965 * PD Dr.-Ing. Alfons Radtke !
participants (3)
-
Eric Brown
-
Juergen Hunold
-
Vladimir Prus