Boost logo

Boost Users :

Subject: [Boost-users] Boost 1.41 compile error with gcc 4.2.4 on Solaris Sparc
From: Teme (salmivesi_at_[hidden])
Date: 2009-12-02 05:57:56


Hi,

I have a problem to compile Boost 1.39 or 1.40 ro 1.41 on Solaris
Sparck with gcc 4.2.4.
I am tried to compile with bjam and witj Cmake but I will get the same
assembler message about illegal operands error.
I noticed that when I defined BOOST_SP_USE_PTHREADS everything
compiled fine until I tried to compile my software using Boost. Then I
got the same assembler message about illegal operands.
Do You have any advice?

Best Regards,
Teemu

Here is the error while running make:

~/boost-1.41.0.cmake0/build % make
[ 0%] Building CXX object libs/date_time/src/CMakeFiles/
boost_date_time-mt-shared.dir/gregorian/greg_month.cpp.o
/var/tmp//ccXu6PKl.s: Assembler messages:
/var/tmp//ccXu6PKl.s:580: Error: Illegal operands
/var/tmp//ccXu6PKl.s:595: Error: Illegal operands
/var/tmp//ccXu6PKl.s:8504: Error: Illegal operands
make[2]: *** [libs/date_time/src/CMakeFiles/boost_date_time-mt-
shared.dir/gregorian/greg_month.cpp.o] Error 1
make[1]: *** [libs/date_time/src/CMakeFiles/boost_date_time-mt-
shared.dir/all] Error 2
make: *** [all] Error 2

Here is the generated configuration output from Cmake:

tes_at_kielo <arkki_Z4.4-481_0/HAR1>:~/utils/boost-1.41.0.cmake0/build %
cmake ../.

--
-- Boost.CMake version            = 1.41.0.cmake0
-- Boost compiler                 = gcc
-- Boost toolset                  = gcc42
-- Boost platform                 = sunos
-- Build name                     = gcc-4.2.4-sunos
--
-- Looking for (optional) dependencies on the system
--
-- BZip2:
-- BZIP2_INCLUDE_DIR              = /usr/include
-- BZIP2_DEFINITIONS              =
-- BZIP2_LIBRARIES                = /usr/lib/libbz2.so
--
-- Doxygen:
-- DOXYGEN_EXECUTABLE             = /C2/tools/utils/bin/doxygen
-- DOXYGEN_DOT_FOUND              = YES
-- DOXYGEN_DOT_EXECUTABLE         = /C2/tools/utils/bin/dot
-- DOXYGEN_DOT_PATH               = /C2/tools/utils/bin
--
-- Expat:
-- Expat not found, some libraries or features will be disabled.
-- See the documentation for Expat or manually set these variables:
-- EXPAT_INCLUDE_DIR              = EXPAT_INCLUDE_DIR-NOTFOUND
-- EXPAT_LIBRARIES                =
--
-- ICU:
-- Disabled since WITH_ICU=OFF
--
-- MPI:
-- MPI not found, some libraries or features will be disabled.
-- See the documentation for MPI or manually set these variables:
-- MPI_INCLUDE_PATH               = MPI_INCLUDE_PATH-NOTFOUND
-- MPI_COMPILE_FLAGS              =
-- MPI_LINK_FLAGS                 =
-- MPI_LIBRARIES                  = MPI_LIBRARY-NOTFOUND
--
-- Python:
-- Disabled since WITH_PYTHON=OFF
--
-- Xsltproc:
-- XSLTPROC_EXECUTABLE            = /usr/bin/xsltproc
-- XSLTPROC_FLAGS                 = --xinclude
--
-- Valgrind:
-- Disabled since WITH_VALGRIND=OFF
--
-- ZLib:
-- ZLIB_INCLUDE_DIR               = /usr/include
-- ZLIB_LIBRARIES                 = /usr/lib/libz.so
--
-- Install include dir:           = include/boost-1.41.0
-- Install lib dir:               = lib/boost-1.41.0
--
-- Reading boost project directories...
--
-- + preprocessor
-- + concept_check
-- + property_map
-- + config
-- + mpl
-- + type_traits
-- + function
-- + iterator
-- + smart_ptr
-- + exception
-- + utility
-- + integer
-- + detail
-- + static_assert
-- + tuple
-- + function_types
-- + fusion
-- + typeof
-- + proto
-- + intrusive
-- + logic
-- + numeric
-- + xpressive
-- + optional
-- + tokenizer
-- + io
-- + bind
-- + date_time
-- + thread
-- + regex
-- +-- ICU (unicode) not available, disabling support.
-- + algorithm
-- + range
-- + foreach
-- + array
-- + functional
-- + unordered
-- + pool
-- + spirit
-- + variant
-- + serialization
-- + format
-- + math
-- + multi_index
-- + any
-- + random
-- + graph
-- + python
-- +-- disabled since PYTHON_FOUND is false
-- + parameter
-- + accumulators
-- + system
-- + asio
-- + circular_buffer
-- + ptr_container
-- + assign
-- + bimap
-- + compatibility
-- + conversion
-- + crc
-- + timer
-- + test
-- + disjoint_sets
-- + dynamic_bitset
-- + filesystem
-- + interprocess
-- + flyweight
-- + gil
-- + mpi
-- +-- MPI not found, disabling.
-- + graph_parallel
-- +-- MPI not found, disabling.
-- + iostreams
-- + lambda
-- + multi_array
-- + program_options
-- + rational
-- + signals
-- + signals2
-- + statechart
-- + tr1
-- + units
-- + wave
--
-- Reading boost project TEST directories...
--
--
-- Skipping config of tools since BUILD_TOOLS is "NONE"
--
-- Configuring done
-- Generating done
-- Build files have been written to: /home/tes/utils/
boost-1.41.0.cmake0/build

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net