You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@qpid.apache.org by Oleksandr Rudyy <or...@gmail.com> on 2018/03/30 09:29:46 UTC

Building proton from master fails on Red Hat Enterprise Linux Server release 7.3 Maipo with "fatal error: bits/c++config.h: No such file or directory"

Hi,

As per subject the master proton build fails with the error like below:

[ 44%] Building CXX object
proton-c/bindings/cpp/CMakeFiles/qpid-proton-cpp.dir/src/binary.cpp.o
In file included from
/home/alex/qpid-proton/proton-c/bindings/cpp/include/proton/internal/../types_fwd.hpp:31:0,
                 from
/home/alex/qpid-proton/proton-c/bindings/cpp/include/proton/internal/type_traits.hpp:31,
                 from
/home/alex/qpid-proton/proton-c/bindings/cpp/src/types_internal.hpp:22,
                 from
/home/alex/qpid-proton/proton-c/bindings/cpp/src/binary.cpp:20:
/usr/include/c++/4.8.2/cstddef:41:28: fatal error: bits/c++config.h:
No such file or directory
#include <bits/c++config.h>


I was building it with the following dependencies

 -bash-4.2$ rpm -q gcc gcc-c++ make cmake libuuid-devel openssl-devel
cyrus-sasl-devel cyrus-sasl-plain cyrus-sasl-md5
gcc-4.8.5-16.el7_4.2.x86_64
gcc-c++-4.8.5-16.el7_4.2.x86_64
make-3.82-23.el7.x86_64
cmake-2.8.12.2-2.el7.x86_64
libuuid-devel-2.23.2-43.el7_4.2.x86_64
openssl-devel-1.0.2k-8.el7.x86_64
cyrus-sasl-devel-2.1.26-21.el7.x86_64
cyrus-sasl-plain-2.1.26-21.el7.x86_64
cyrus-sasl-md5-2.1.26-21.el7.x86_64
-bash-4.2$  rpm -q swig python-devel ruby-devel rubygem-minitest
epydoc rubygem-yard doxygen
swig-2.0.10-5.el7.x86_64
python-devel-2.7.5-58.el7.x86_64
ruby-devel-2.0.0.648-33.el7_4.x86_64
rubygem-minitest-4.3.2-33.el7_4.noarch
epydoc-3.0.1-14.el7.noarch
package rubygem-yard is not installed
doxygen-1.8.5-3.el7.x86_64
-bash-4.2$ cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.3 (Maipo)
-bash-4.2$ uname -a
Linux XXXXXXXXXX 3.10.0-514.6.1.el7.x86_64 #1 SMP Sat Dec 10 11:15:38
EST 2016 x86_64 x86_64 x86_64 GNU/Linux

I am not sure how to resolve the issue. Any help is appreciated.

Here is the full system output from my build commands

-bash-4.2$ git clone https://git-wip-us.apache.org/repos/asf/qpid-proton.git
Cloning into 'qpid-proton'...
remote: Counting objects: 52416, done.
remote: Compressing objects: 100% (15700/15700), done.
remote: Total 52416 (delta 35842), reused 46006 (delta 30879)
Receiving objects: 100% (52416/52416), 9.03 MiB | 414.00 KiB/s, done.
Resolving deltas: 100% (35842/35842), done.
-bash-4.2$ cd qpid-proton/
-bash-4.2$ CMAKE_FLAGS="-DBUILD_GO=OFF -DBUILD_PHP=OFF
-DCMAKE_BUILD_TYPE=DEBUG -DCMAKE_INSTALL_PREFIX=$PWD/build/ship"
-bash-4.2$ mkdir -p build/ship
-bash-4.2$ cd build/
-bash-4.2$ cmake ${CMAKE_FLAGS} ..
-- The C compiler identification is GNU 4.8.5
-- Check for working C compiler: /bin/cc
-- Check for working C compiler: /bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Looking for a CXX compiler
-- Looking for a CXX compiler - /bin/c++
-- The CXX compiler identification is GNU 4.8.5
-- Check for working CXX compiler: /bin/c++
-- Check for working CXX compiler: /bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Build type is "DEBUG"
-- PN_VERSION: 0.23.0 (SNAPSHOT)
-- Can't locate the valgrind command; no run-time error detection
-- Found OpenSSL: /usr/lib64/libssl.so;/usr/lib64/libcrypto.so (found
version "1.0.2k")
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found PythonInterp: /bin/python (found version "2.7.5")
-- Found SWIG: /bin/swig (found version "2.0.10")
-- Found CyrusSASL: /usr/lib64/libsasl2.so
-- Looking for clock_gettime
-- Looking for clock_gettime - found
-- Looking for strerror_r
-- Looking for strerror_r - found
-- Looking for atoll
-- Looking for atoll - found
-- Found Doxygen: /bin/doxygen (found version "1.8.5")
-- Looking for include file inttypes.h
-- Looking for include file inttypes.h - found
-- Looking for epoll_wait
-- Looking for epoll_wait - found
-- Building the epoll proactor
-- Found PythonLibs: /usr/lib64/libpython2.7.so (found suitable exact
version "2.7.5")
-- Found Ruby: /bin/ruby (found version "2.0.0")
-- Performing Test ACCEPTS_CXX11
-- Performing Test ACCEPTS_CXX11 - Success
-- Performing Test ACCEPTS_CXX0X
-- Performing Test ACCEPTS_CXX0X - Success
-- Ruby tests will not run, minitest is not installed
-- Looking for Python module tox - not found
-- The tox tool is not available; skipping the python-tox-tests
-- Configuring done
-- Generating done
CMake Warning:
  Manually-specified variables were not used by the project:

    BUILD_PHP

-- Build files have been written to: /home/alex/qpid-proton/build
-bash-4.2$ cmake --build . --target install
Scanning dependencies of target generated_c_files
[  0%] Generating src/protocol.h
[  1%] Generating src/encodings.h
[  1%] Built target generated_c_files
Scanning dependencies of target qpid-proton
[  1%] Building C object
proton-c/CMakeFiles/qpid-proton.dir/src/core/object/object.c.o
[  2%] Building C object
proton-c/CMakeFiles/qpid-proton.dir/src/core/object/list.c.o
[  2%] Building C object
proton-c/CMakeFiles/qpid-proton.dir/src/core/object/map.c.o
[  3%] Building C object
proton-c/CMakeFiles/qpid-proton.dir/src/core/object/string.c.o
[  3%] Building C object
proton-c/CMakeFiles/qpid-proton.dir/src/core/object/iterator.c.o
[  4%] Building C object
proton-c/CMakeFiles/qpid-proton.dir/src/core/object/record.c.o
[  4%] Building C object proton-c/CMakeFiles/qpid-proton.dir/src/core/log.c.o
[  5%] Building C object proton-c/CMakeFiles/qpid-proton.dir/src/core/util.c.o
[  5%] Building C object proton-c/CMakeFiles/qpid-proton.dir/src/core/error.c.o
[  6%] Building C object proton-c/CMakeFiles/qpid-proton.dir/src/core/buffer.c.o
[  6%] Building C object proton-c/CMakeFiles/qpid-proton.dir/src/core/types.c.o
[  7%] Building C object
proton-c/CMakeFiles/qpid-proton.dir/src/core/framing.c.o
[  7%] Building C object proton-c/CMakeFiles/qpid-proton.dir/src/core/codec.c.o
[  8%] Building C object
proton-c/CMakeFiles/qpid-proton.dir/src/core/decoder.c.o
[  8%] Building C object
proton-c/CMakeFiles/qpid-proton.dir/src/core/encoder.c.o
[  9%] Building C object
proton-c/CMakeFiles/qpid-proton.dir/src/core/dispatcher.c.o
[  9%] Building C object
proton-c/CMakeFiles/qpid-proton.dir/src/core/connection_driver.c.o
[ 10%] Building C object proton-c/CMakeFiles/qpid-proton.dir/src/core/engine.c.o
[ 10%] Building C object proton-c/CMakeFiles/qpid-proton.dir/src/core/event.c.o
[ 11%] Building C object
proton-c/CMakeFiles/qpid-proton.dir/src/core/autodetect.c.o
[ 11%] Building C object
proton-c/CMakeFiles/qpid-proton.dir/src/core/transport.c.o
[ 12%] Building C object
proton-c/CMakeFiles/qpid-proton.dir/src/core/message.c.o
[ 12%] Building C object proton-c/CMakeFiles/qpid-proton.dir/src/sasl/sasl.c.o
[ 13%] Building C object
proton-c/CMakeFiles/qpid-proton.dir/src/sasl/default_sasl.c.o
[ 13%] Building C object
proton-c/CMakeFiles/qpid-proton.dir/src/sasl/cyrus_sasl.c.o
[ 14%] Building C object proton-c/CMakeFiles/qpid-proton.dir/src/ssl/openssl.c.o
[ 14%] Building C object
proton-c/CMakeFiles/qpid-proton.dir/src/proactor/epoll.c.o
[ 15%] Building C object
proton-c/CMakeFiles/qpid-proton.dir/src/proactor/proactor-internal.c.o
[ 15%] Building C object proton-c/CMakeFiles/qpid-proton.dir/src/extra/url.c.o
[ 16%] Building C object
proton-c/CMakeFiles/qpid-proton.dir/src/reactor/reactor.c.o
[ 16%] Building C object
proton-c/CMakeFiles/qpid-proton.dir/src/reactor/handler.c.o
[ 17%] Building C object
proton-c/CMakeFiles/qpid-proton.dir/src/reactor/connection.c.o
[ 17%] Building C object
proton-c/CMakeFiles/qpid-proton.dir/src/reactor/acceptor.c.o
[ 18%] Building C object
proton-c/CMakeFiles/qpid-proton.dir/src/reactor/selectable.c.o
[ 18%] Building C object
proton-c/CMakeFiles/qpid-proton.dir/src/reactor/timer.c.o
[ 19%] Building C object
proton-c/CMakeFiles/qpid-proton.dir/src/handlers/handshaker.c.o
[ 19%] Building C object
proton-c/CMakeFiles/qpid-proton.dir/src/handlers/iohandler.c.o
[ 20%] Building C object
proton-c/CMakeFiles/qpid-proton.dir/src/handlers/flowcontroller.c.o
[ 20%] Building C object
proton-c/CMakeFiles/qpid-proton.dir/src/messenger/messenger.c.o
[ 21%] Building C object
proton-c/CMakeFiles/qpid-proton.dir/src/messenger/subscription.c.o
[ 21%] Building C object
proton-c/CMakeFiles/qpid-proton.dir/src/messenger/store.c.o
[ 22%] Building C object
proton-c/CMakeFiles/qpid-proton.dir/src/messenger/transform.c.o
[ 22%] Building C object
proton-c/CMakeFiles/qpid-proton.dir/src/platform/platform.c.o
[ 23%] Building C object
proton-c/CMakeFiles/qpid-proton.dir/src/reactor/io/posix/io.c.o
[ 23%] Building C object
proton-c/CMakeFiles/qpid-proton.dir/src/reactor/io/posix/selector.c.o
Linking C shared library libqpid-proton.so
[ 24%] Built target qpid-proton
Scanning dependencies of target qpid-proton-core
[ 25%] Building C object
proton-c/CMakeFiles/qpid-proton-core.dir/src/core/object/object.c.o
[ 25%] Building C object
proton-c/CMakeFiles/qpid-proton-core.dir/src/core/object/list.c.o
[ 26%] Building C object
proton-c/CMakeFiles/qpid-proton-core.dir/src/core/object/map.c.o
[ 26%] Building C object
proton-c/CMakeFiles/qpid-proton-core.dir/src/core/object/string.c.o
[ 27%] Building C object
proton-c/CMakeFiles/qpid-proton-core.dir/src/core/object/iterator.c.o
[ 27%] Building C object
proton-c/CMakeFiles/qpid-proton-core.dir/src/core/object/record.c.o
[ 28%] Building C object
proton-c/CMakeFiles/qpid-proton-core.dir/src/core/log.c.o
[ 28%] Building C object
proton-c/CMakeFiles/qpid-proton-core.dir/src/core/util.c.o
[ 29%] Building C object
proton-c/CMakeFiles/qpid-proton-core.dir/src/core/error.c.o
[ 29%] Building C object
proton-c/CMakeFiles/qpid-proton-core.dir/src/core/buffer.c.o
[ 30%] Building C object
proton-c/CMakeFiles/qpid-proton-core.dir/src/core/types.c.o
[ 30%] Building C object
proton-c/CMakeFiles/qpid-proton-core.dir/src/core/framing.c.o
[ 31%] Building C object
proton-c/CMakeFiles/qpid-proton-core.dir/src/core/codec.c.o
[ 31%] Building C object
proton-c/CMakeFiles/qpid-proton-core.dir/src/core/decoder.c.o
[ 32%] Building C object
proton-c/CMakeFiles/qpid-proton-core.dir/src/core/encoder.c.o
[ 32%] Building C object
proton-c/CMakeFiles/qpid-proton-core.dir/src/core/dispatcher.c.o
[ 33%] Building C object
proton-c/CMakeFiles/qpid-proton-core.dir/src/core/connection_driver.c.o
[ 33%] Building C object
proton-c/CMakeFiles/qpid-proton-core.dir/src/core/engine.c.o
[ 34%] Building C object
proton-c/CMakeFiles/qpid-proton-core.dir/src/core/event.c.o
[ 34%] Building C object
proton-c/CMakeFiles/qpid-proton-core.dir/src/core/autodetect.c.o
[ 35%] Building C object
proton-c/CMakeFiles/qpid-proton-core.dir/src/core/transport.c.o
[ 35%] Building C object
proton-c/CMakeFiles/qpid-proton-core.dir/src/core/message.c.o
[ 36%] Building C object
proton-c/CMakeFiles/qpid-proton-core.dir/src/sasl/sasl.c.o
[ 36%] Building C object
proton-c/CMakeFiles/qpid-proton-core.dir/src/sasl/default_sasl.c.o
[ 37%] Building C object
proton-c/CMakeFiles/qpid-proton-core.dir/src/sasl/cyrus_sasl.c.o
[ 37%] Building C object
proton-c/CMakeFiles/qpid-proton-core.dir/src/ssl/openssl.c.o
Linking C shared library libqpid-proton-core.so
[ 38%] Built target qpid-proton-core
Scanning dependencies of target qpid-proton-proactor
[ 38%] Building C object
proton-c/CMakeFiles/qpid-proton-proactor.dir/src/proactor/epoll.c.o
[ 39%] Building C object
proton-c/CMakeFiles/qpid-proton-proactor.dir/src/proactor/proactor-internal.c.o
Linking C shared library libqpid-proton-proactor.so
[ 39%] Built target qpid-proton-proactor
Scanning dependencies of target msgr-recv
[ 39%] Building C object
tests/tools/apps/c/CMakeFiles/msgr-recv.dir/msgr-recv.c.o
[ 40%] Building C object
tests/tools/apps/c/CMakeFiles/msgr-recv.dir/msgr-common.c.o
Linking C executable msgr-recv
[ 40%] Built target msgr-recv
Scanning dependencies of target msgr-send
[ 40%] Building C object
tests/tools/apps/c/CMakeFiles/msgr-send.dir/msgr-send.c.o
[ 41%] Building C object
tests/tools/apps/c/CMakeFiles/msgr-send.dir/msgr-common.c.o
Linking C executable msgr-send
[ 41%] Built target msgr-send
Scanning dependencies of target reactor-recv
[ 42%] Building C object
tests/tools/apps/c/CMakeFiles/reactor-recv.dir/reactor-recv.c.o
[ 42%] Building C object
tests/tools/apps/c/CMakeFiles/reactor-recv.dir/msgr-common.c.o
Linking C executable reactor-recv
[ 42%] Built target reactor-recv
Scanning dependencies of target reactor-send
[ 43%] Building C object
tests/tools/apps/c/CMakeFiles/reactor-send.dir/reactor-send.c.o
[ 43%] Building C object
tests/tools/apps/c/CMakeFiles/reactor-send.dir/msgr-common.c.o
Linking C executable reactor-send
[ 43%] Built target reactor-send
Scanning dependencies of target qpid-proton-cpp
[ 44%] Building CXX object
proton-c/bindings/cpp/CMakeFiles/qpid-proton-cpp.dir/src/binary.cpp.o
In file included from
/home/alex/qpid-proton/proton-c/bindings/cpp/include/proton/internal/../types_fwd.hpp:31:0,
                 from
/home/alex/qpid-proton/proton-c/bindings/cpp/include/proton/internal/type_traits.hpp:31,
                 from
/home/alex/qpid-proton/proton-c/bindings/cpp/src/types_internal.hpp:22,
                 from
/home/alex/qpid-proton/proton-c/bindings/cpp/src/binary.cpp:20:
/usr/include/c++/4.8.2/cstddef:41:28: fatal error: bits/c++config.h:
No such file or directory
#include <bits/c++config.h>
                            ^
compilation terminated.
gmake[2]: *** [proton-c/bindings/cpp/CMakeFiles/qpid-proton-cpp.dir/src/binary.cpp.o]
Error 1
gmake[1]: *** [proton-c/bindings/cpp/CMakeFiles/qpid-proton-cpp.dir/all] Error 2
gmake: *** [all] Error 2

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org


Re: Building proton from master fails on Red Hat Enterprise Linux Server release 7.3 Maipo with "fatal error: bits/c++config.h: No such file or directory"

Posted by Andrew Stitcher <as...@apache.org>.
On Tue, 2018-04-03 at 10:56 +0100, Keith W wrote:
> ...
> Thanks for the replies.  The 7.3 Maipo image in question is
> corporatised by our organisation, so it could be special in this
> respect.

"corporatised" sounds like an archaic swear word!

A


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org


Re: Building proton from master fails on Red Hat Enterprise Linux Server release 7.3 Maipo with "fatal error: bits/c++config.h: No such file or directory"

Posted by Keith W <ke...@gmail.com>.
On 3 April 2018 at 10:31, Robbie Gemmell <ro...@gmail.com> wrote:
> "The package is not listed as required in INSTALL.md, I am curious
> whether the instructions needs to be amended to include this package."
>
> It seems its a dependency of the "gcc-c++" package which is mentioned,
> so I'd guess thats why it isnt noted explicitly. Not sure how you came
> to have the x64 version of one and the i686 version of the other
> though.
>

Thanks for the replies.  The 7.3 Maipo image in question is
corporatised by our organisation, so it could be special in this
respect.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org


Re: Building proton from master fails on Red Hat Enterprise Linux Server release 7.3 Maipo with "fatal error: bits/c++config.h: No such file or directory"

Posted by Robbie Gemmell <ro...@gmail.com>.
"The package is not listed as required in INSTALL.md, I am curious
whether the instructions needs to be amended to include this package."

It seems its a dependency of the "gcc-c++" package which is mentioned,
so I'd guess thats why it isnt noted explicitly. Not sure how you came
to have the x64 version of one and the i686 version of the other
though.

Robbie

On 3 April 2018 at 09:24, Oleksandr Rudyy <or...@gmail.com> wrote:
> Hi Andrew,
>
> Thanks for helping with the issue.
>
> Yes, you are right we are trying to compile for 64 bits.
>
> It is a freshly built Red Hat Enterprise Linux Server release 7.3.
>
> All required dependencies have been installed as per instructions in
> proton INSTALL.md [1].
>
> I am not sure how we ended-up with installed 32 bits libstdc++-devel
> instead of 64 bits.
> We will try to install libstdc++-devel-4.8.5-16.el7_4.2.x86_64 .
>
> The package is not listed as required in INSTALL.md, I am curious
> whether the instructions needs to be amended to include this package.
>
> I am not sure what other 32 bits packages have been installed instead
> of 64 bits. Is there a way to verify that all required 64bits
> dependencies are installed for proton apart from running cmake/make
> and dealing with compilation errors?
>
> Kind Regards,
> Alex
>
> [1] https://github.com/apache/qpid-proton/blob/master/INSTALL.md
>
> On 2 April 2018 at 19:49, Andrew Stitcher <as...@apache.org> wrote:
>> On Mon, 2018-04-02 at 17:15 +0100, Oleksandr Rudyy wrote:
>>> Hi Andrew,
>>>
>>> In Red Hat Enterprise Linux Server release 7.3 I found file
>>> /usr/include/c++/4.8.2/i686-redhat-linux/bits/c++config.h which was
>>> installed as part of libstdc++-devel.
>>>
>>> rpm -qf /usr/include/c++/4.8.2/i686-redhat-linux/bits/c++config.h
>>> libstdc++-devel-4.8.5-16.el7_4.2.i686
>>>
>>> ' /usr/include/c++/4.8.2/cstddef' was installed as part of the same
>>> package
>>>
>>> rpm -qf /usr/include/c++/4.8.2/cstddef
>>> libstdc++-devel-4.8.5-16.el7_4.2.i686
>>
>> Are you compiling for 32 or 64 bits?
>>
>> That header file is for 32 bits, but it looks like your compile line is
>> for 64 bits.
>>
>> You probably need the package libstdc++-devel-4.8.5-16.el7_4.2.x86_64
>>
>> Andrew
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
>> For additional commands, e-mail: users-help@qpid.apache.org
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
> For additional commands, e-mail: users-help@qpid.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org


Re: Building proton from master fails on Red Hat Enterprise Linux Server release 7.3 Maipo with "fatal error: bits/c++config.h: No such file or directory"

Posted by Oleksandr Rudyy <or...@gmail.com>.
Hi Andrew,

Thanks for helping with the issue.

Yes, you are right we are trying to compile for 64 bits.

It is a freshly built Red Hat Enterprise Linux Server release 7.3.

All required dependencies have been installed as per instructions in
proton INSTALL.md [1].

I am not sure how we ended-up with installed 32 bits libstdc++-devel
instead of 64 bits.
We will try to install libstdc++-devel-4.8.5-16.el7_4.2.x86_64 .

The package is not listed as required in INSTALL.md, I am curious
whether the instructions needs to be amended to include this package.

I am not sure what other 32 bits packages have been installed instead
of 64 bits. Is there a way to verify that all required 64bits
dependencies are installed for proton apart from running cmake/make
and dealing with compilation errors?

Kind Regards,
Alex

[1] https://github.com/apache/qpid-proton/blob/master/INSTALL.md

On 2 April 2018 at 19:49, Andrew Stitcher <as...@apache.org> wrote:
> On Mon, 2018-04-02 at 17:15 +0100, Oleksandr Rudyy wrote:
>> Hi Andrew,
>>
>> In Red Hat Enterprise Linux Server release 7.3 I found file
>> /usr/include/c++/4.8.2/i686-redhat-linux/bits/c++config.h which was
>> installed as part of libstdc++-devel.
>>
>> rpm -qf /usr/include/c++/4.8.2/i686-redhat-linux/bits/c++config.h
>> libstdc++-devel-4.8.5-16.el7_4.2.i686
>>
>> ' /usr/include/c++/4.8.2/cstddef' was installed as part of the same
>> package
>>
>> rpm -qf /usr/include/c++/4.8.2/cstddef
>> libstdc++-devel-4.8.5-16.el7_4.2.i686
>
> Are you compiling for 32 or 64 bits?
>
> That header file is for 32 bits, but it looks like your compile line is
> for 64 bits.
>
> You probably need the package libstdc++-devel-4.8.5-16.el7_4.2.x86_64
>
> Andrew
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
> For additional commands, e-mail: users-help@qpid.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org


Re: Building proton from master fails on Red Hat Enterprise Linux Server release 7.3 Maipo with "fatal error: bits/c++config.h: No such file or directory"

Posted by Andrew Stitcher <as...@apache.org>.
On Mon, 2018-04-02 at 17:15 +0100, Oleksandr Rudyy wrote:
> Hi Andrew,
> 
> In Red Hat Enterprise Linux Server release 7.3 I found file
> /usr/include/c++/4.8.2/i686-redhat-linux/bits/c++config.h which was
> installed as part of libstdc++-devel.
> 
> rpm -qf /usr/include/c++/4.8.2/i686-redhat-linux/bits/c++config.h
> libstdc++-devel-4.8.5-16.el7_4.2.i686
> 
> ' /usr/include/c++/4.8.2/cstddef' was installed as part of the same
> package
> 
> rpm -qf /usr/include/c++/4.8.2/cstddef
> libstdc++-devel-4.8.5-16.el7_4.2.i686

Are you compiling for 32 or 64 bits? 

That header file is for 32 bits, but it looks like your compile line is
for 64 bits.

You probably need the package libstdc++-devel-4.8.5-16.el7_4.2.x86_64

Andrew


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org


Re: Building proton from master fails on Red Hat Enterprise Linux Server release 7.3 Maipo with "fatal error: bits/c++config.h: No such file or directory"

Posted by Oleksandr Rudyy <or...@gmail.com>.
Hi Andrew,

In Red Hat Enterprise Linux Server release 7.3 I found file
/usr/include/c++/4.8.2/i686-redhat-linux/bits/c++config.h which was
installed as part of libstdc++-devel.

rpm -qf /usr/include/c++/4.8.2/i686-redhat-linux/bits/c++config.h
libstdc++-devel-4.8.5-16.el7_4.2.i686

' /usr/include/c++/4.8.2/cstddef' was installed as part of the same package

rpm -qf /usr/include/c++/4.8.2/cstddef
libstdc++-devel-4.8.5-16.el7_4.2.i686

It contains
...
#pragma GCC system_header

#include <bits/c++config.h>
#include <stddef.h>

But there is no file c++config.h in /usr/include/c++/4.8.2/bits/.

Kind Regards,
Alex

On 2 April 2018 at 16:38, Andrew Stitcher <as...@apache.org> wrote:
> On Fri, 2018-03-30 at 10:29 +0100, Oleksandr Rudyy wrote:
>> Hi,
>>
>> As per subject the master proton build fails with the error like
>> below:
>>
>> [ 44%] Building CXX object
>> proton-c/bindings/cpp/CMakeFiles/qpid-proton-cpp.dir/src/binary.cpp.o
>> In file included from
>> /home/alex/qpid-proton/proton-
>> c/bindings/cpp/include/proton/internal/../types_fwd.hpp:31:0,
>>                  from
>> /home/alex/qpid-proton/proton-
>> c/bindings/cpp/include/proton/internal/type_traits.hpp:31,
>>                  from
>> /home/alex/qpid-proton/proton-
>> c/bindings/cpp/src/types_internal.hpp:22,
>>                  from
>> /home/alex/qpid-proton/proton-c/bindings/cpp/src/binary.cpp:20:
>> /usr/include/c++/4.8.2/cstddef:41:28: fatal error: bits/c++config.h:
>> No such file or directory
>> #include <bits/c++config.h>
>
> On my f27 system that file is in the package libstdc++-devel. Is that
> installed on your system?
>
> Andrew
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
> For additional commands, e-mail: users-help@qpid.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org


Re: Building proton from master fails on Red Hat Enterprise Linux Server release 7.3 Maipo with "fatal error: bits/c++config.h: No such file or directory"

Posted by Andrew Stitcher <as...@apache.org>.
On Fri, 2018-03-30 at 10:29 +0100, Oleksandr Rudyy wrote:
> Hi,
> 
> As per subject the master proton build fails with the error like
> below:
> 
> [ 44%] Building CXX object
> proton-c/bindings/cpp/CMakeFiles/qpid-proton-cpp.dir/src/binary.cpp.o
> In file included from
> /home/alex/qpid-proton/proton-
> c/bindings/cpp/include/proton/internal/../types_fwd.hpp:31:0,
>                  from
> /home/alex/qpid-proton/proton-
> c/bindings/cpp/include/proton/internal/type_traits.hpp:31,
>                  from
> /home/alex/qpid-proton/proton-
> c/bindings/cpp/src/types_internal.hpp:22,
>                  from
> /home/alex/qpid-proton/proton-c/bindings/cpp/src/binary.cpp:20:
> /usr/include/c++/4.8.2/cstddef:41:28: fatal error: bits/c++config.h:
> No such file or directory
> #include <bits/c++config.h>

On my f27 system that file is in the package libstdc++-devel. Is that
installed on your system?

Andrew


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org