Building 1.52.0 with g++ 4.7.2

I am having trouble building Boost 1.52.0 libraries with g++ 4.7.2 on Linux Fedora 14. I was able to build it with 4.7.1, and I think our Systems guys configured 4.7.2 the same as 4.7.1, so I need help. This is in my user-config: using gcc : 4.7.2 : /opt/gcc-4.7.2/bin/g++ :<compileflags>"-fPIC -fno-strict-aliasing -fno-tree-ccp"<linkflags>"-fPIC -fno-strict-aliasing -fno-tree-ccp" ; This is my command line: bin/bjam --user-config=user-config.LINUX_INTF14X threading=multi instruction-set=core2 address-model=64 variant=release link=static,shared --stagedir=stageF14X And this is the result (snipped out redundant info): Building the Boost C++ Libraries. Performing configuration checks - x86 : no - power : no - arm : no - mips1 : no error: No best alternative for libs/context/build/asm_context_sources next alternative: required properties:<abi>aapcs<architecture>arm<binary-format>elf<toolset>gcc not matched next alternative: required properties:<abi>aapcs<architecture>arm<binary-format>elf<toolset>qcc not matched [snip] next alternative: required properties:<abi>ms<address-model>64<architecture>x86<binary-format>pe<target-os>windows not matched - has_icu builds : no warning: Graph library does not contain MPI-based parallel components. note: to enable them, add "using mpi ;" to your user-config.jam - iconv (libc) : no - iconv (separate) : no - icu : no - icu (lib64) : no - Boost.Locale needs either iconv or ICU library to be built. [snip] - Boost.Locale needs either iconv or ICU library to be built. - gcc visibility : no - long double support : no warning: skipping optional Message Passing Interface (MPI) library. note: to enable MPI support, add "using mpi ;" to user-config.jam. note: to suppress this message, pass "--without-mpi" to bjam. note: otherwise, you can safely ignore this message. error: No best alternative for libs/context/build/asm_context_sources next alternative: required properties:<abi>aapcs<architecture>arm<binary-format>elf<toolset>gcc not matched [snip] -- Dick Hadsell 203-992-6320 Fax: 203-992-6001 Reply-to: hadsell@blueskystudios.com Blue Sky Studios http://www.blueskystudios.com 1 American Lane, Greenwich, CT 06831-2560

2013/2/1 Richard Hadsell <hadsell@blueskystudios.com>
Performing configuration checks
- x86 : no - power : no - arm : no - mips1 : no error: No best alternative for libs/context/build/asm_context_sources
boost.build was not able to deduce on which architecture it is running. I assume it's x86 - then the question is why x86.cpp does not compile. the file contains only compiler macros declared for x86, like: #if !defined(i386) && !defined(__i386__) && !defined(__i386) \ && !defined(__i486__) && !defined(__i586__) && !defined(__i686__) \ && !defined(_M_IX86) && !defined(__X86__) && !defined(_X86_) \ && !defined(__THW_INTEL__) && !defined(__I86__) && !defined(__INTEL__) \ && !defined(__amd64__) && !defined(__x86_64__) && !defined(__amd64) \ && !defined(__x86_64) && !defined(_M_X64) #error "Not x86" #endif maybe I should remove instruction-set=core2 first

On 02/01/2013 05:09 PM, Oliver Kowalke wrote:
boost.build was not able to deduce on which architecture it is running. I assume it's x86 - then the question is why x86.cpp does not compile. the file contains only compiler macros declared for x86, like: #if !defined(i386)&& !defined(__i386__)&& !defined(__i386) \ && !defined(__i486__)&& !defined(__i586__)&& !defined(__i686__) \ && !defined(_M_IX86)&& !defined(__X86__)&& !defined(_X86_) \ && !defined(__THW_INTEL__)&& !defined(__I86__)&& !defined(__INTEL__) \ && !defined(__amd64__)&& !defined(__x86_64__)&& !defined(__amd64) \ && !defined(__x86_64)&& !defined(_M_X64) #error "Not x86" #endif maybe I should remove instruction-set=core2 first
Thanks. That was enough to tell me that the predefined macros were not getting through. When attempting to debug them with '-dM -E' options, I found that we were missing some runtime libraries. I believe that will fix the problem with our compiler. -- Dick Hadsell 203-992-6320 Fax: 203-992-6001 Reply-to: hadsell@blueskystudios.com Blue Sky Studioshttp://www.blueskystudios.com 1 American Lane, Greenwich, CT 06831-2560 Follow Blue Sky Studios on Facebook <http://www.facebook.com/BlueSkyStudios> and Twitter <http://twitter.com/#%21/blueskystudios>
participants (2)
-
Oliver Kowalke
-
Richard Hadsell