WhatCD/Gazelle

Ocelot Compile Issue

ryangurn opened this issue · 13 comments

when i ran the configure script while installing in ubuntu i get the following error.

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking whether C compiler accepts -std=c++11... no
configure: error: Compiler does not support -std=c++11

please advise me on how to fix this.

thanks

Please advise of your operating system and version.

On Jan 13, 2014, at 2:38 AM, Ryan Gurnick notifications@github.com wrote:

Compiler does not support -std=c++11

Ubuntu LTS 12.04.3

Check for any updates to gcc and post which version you’re using if that doesn’t resolve.

On Jan 13, 2014, at 2:38 AM, Ryan Gurnick notifications@github.com wrote:

when i ran the configure script while installing in ubuntu i get the following error.

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking whether C compiler accepts -std=c++11... no
configure: error: Compiler does not support -std=c++11

please advise me on how o fix this.

thanks


Reply to this email directly or view it on GitHub.

gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3

I had a problem like this, I needed to update the library g++ and gcc.
Remember also that I needed to upgrade the boost to 1.54.0.

G++ and Gcc are both as up to date as they can be. At least thats what apt-get says.

type "GCC -v" and "G++ -v" and send me the result

On Wed, Jan 15, 2014 at 1:40 AM, Ryan Gurnick notifications@github.comwrote:

G++ and Gcc are both as up to date as they can be. At least thats what
apt-get says.


Reply to this email directly or view it on GitHubhttps://github.com//issues/34#issuecomment-32332355
.

Att,

Deivid Ramon Pinto

www.apenasmusica.net http://www.apenasmusica.net

Twitter_: @apenasmusica_

Skype_: deivid.ramon_

Facebook_: www.fb.com/deivid.ramon http://www.fb.com/deivid.ramon_

Same problem here with Ocelot 0.7... I tried with Ocelot.0.6 and works well

Compile using

gcc (Ubuntu/Linaro 4.6.4-1ubuntu1~12.04) 4.6.4
automake (GNU automake) 1.11.3

The config seems to be checking for support of -std=C++11, which is unsupported by gcc 4.6. It should work with gcc 4.7+

You might be able to change the check to be -std=C++0x though (which is deprecated in compilers that support -std=C++11).

And you are correct, made me remember what I did to compile.
Works with gcc 4.7+

On Wed, Jan 15, 2014 at 4:16 PM, Michael Cook notifications@github.comwrote:

The config seems to be checking for support of -std=C++11, which is
unsupported by gcc 4.6. It should work with gcc 4.7+

You might be able to change the check to be -std=C++0x though (which is
deprecated in compilers that support -std=C++11).


Reply to this email directly or view it on GitHubhttps://github.com//issues/34#issuecomment-32392661
.

Att,

Deivid Ramon Pinto

www.apenasmusica.net http://www.apenasmusica.net

Twitter_: @apenasmusica_

Skype_: deivid.ramon_

Facebook_: www.fb.com/deivid.ramon http://www.fb.com/deivid.ramon_

Hi! When run make command I get this error

g++ -DPACKAGE_NAME="ocelot" -DPACKAGE_TARNAME="ocelot" -DPACKAGE_VERSION="0.7" -DPACKAGE_STRING="ocelot\ 0.7" -DPACKAGE_BUGREPORT="" -DPACKAGE_URL="" -DHAVE_BOOST=// -DHAVE_BOOST_IOSTREAMS=// -DHAVE_BOOST_SYSTEM=/**/ -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -I. -std=c++11 -march=native -O2 -fvisibility=hidden -fvisibility-inlines-hidden -fomit-frame-pointer -fno-ident -pthread -Wall -Wfatal-errors -Wl,O1 -Wl,--as-needed -I/usr/include -I/usr/include/mysql++ -I/usr/include -I/usr/include/mysql -g -O2 -MT response.o -MD -MP -MF .deps/response.Tpo -c -o response.o response.cpp
In file included from /usr/include/boost/iostreams/traits.hpp:31:0,
from /usr/include/boost/iostreams/pipeline.hpp:18,
from /usr/include/boost/iostreams/detail/push.hpp:22,
from /usr/include/boost/iostreams/chain.hpp:29,
from /usr/include/boost/iostreams/filtering_streambuf.hpp:17,
from response.cpp:4:
/usr/include/boost/iostreams/detail/wrap_unwrap.hpp: In instantiation of âT boost::iostreams::detail::wrap(const T&, typename boost::disable_ifboost::iostreams::is_std_io::type_) [with T = boost::iostreams::basic_gzip_compressor<>; typename boost::disable_ifboost::iostreams::is_std_io::type = void]â:
/usr/include/boost/iostreams/stream_buffer.hpp:94:5: required from âboost::iostreams::stream_buffer<T, Tr, Alloc, Mode>::stream_buffer(const T&, std::streamsize, std::streamsize) [with T = boost::iostreams::basic_gzip_compressor<>; Tr = std::char_traits; Alloc = std::allocator; Mode = boost::iostreams::input; std::streamsize = long int]â
/usr/include/boost/iostreams/chain.hpp:257:60: required from âvoid boost::iostreams::detail::chain_base<Self, Ch, Tr, Alloc, Mode>::push_impl(const T&, std::streamsize, std::streamsize) [with T = boost::iostreams::basic_gzip_compressor<>; Self = boost::iostreams::chain<boost::iostreams::input, char, std::char_traits, std::allocator >; Ch = char; Tr = std::char_traits; Alloc = std::allocator; Mode = boost::iostreams::input; std::streamsize = long int]â
/usr/include/boost/iostreams/chain.hpp:216:1: required from âvoid boost::iostreams::detail::chain_base<Self, Ch, Tr, Alloc, Mode>::push(const T&, std::streamsize, std::streamsize, typename boost::disable_ifboost::iostreams::is_std_io::type_) [with T = boost::iostreams::basic_gzip_compressor<>; Self = boost::iostreams::chain<boost::iostreams::input, char, std::char_traits, std::allocator >; Ch = char; Tr = std::char_traits; Alloc = std::allocator; Mode = boost::iostreams::input; std::streamsize = long int; typename boost::disable_ifboost::iostreams::is_std_io::type = void]â
/usr/include/boost/iostreams/chain.hpp:496:7: required from âvoid boost::iostreams::detail::chain_client::push_impl(const T&, std::streamsize, std::streamsize) [with T = boost::iostreams::basic_gzip_compressor<>; Chain = boost::iostreams::chain<boost::iostreams::input, char, std::char_traits, std::allocator >; std::streamsize = long int]â
/usr/include/boost/iostreams/chain.hpp:484:1: required from âvoid boost::iostreams::detail::chain_client::push(const T&, std::streamsize, std::streamsize, typename boost::disable_ifboost::iostreams::is_std_io::type_) [with T = boost::iostreams::basic_gzip_compressor<>; Chain = boost::iostreams::chain<boost::iostreams::input, char, std::char_traits, std::allocator >; std::streamsize = long int; typename boost::disable_ifboost::iostreams::is_std_io::type = void]â
response.cpp:20:46: required from here
/usr/include/boost/iostreams/detail/wrap_unwrap.hpp:53:14: error: use of deleted function âboost::iostreams::basic_gzip_compressor<>::basic_gzip_compressor(const boost::iostreams::basic_gzip_compressor<>&)â
compilation terminated due to -Wfatal-errors.
make: *_* [response.o] Error 1

Anyone please help me. Thanks a lot

update your boost instalation.

On Tue, Jan 21, 2014 at 1:46 PM, riverstore notifications@github.comwrote:

Hi! When run make command I get this error

g++ -DPACKAGE_NAME="ocelot" -DPACKAGE_TARNAME="ocelot"
-DPACKAGE_VERSION="0.7" -DPACKAGE_STRING="ocelot\ 0.7"
-DPACKAGE_BUGREPORT="" -DPACKAGE_URL="" -DHAVE_BOOST=//
-DHAVE_BOOST_IOSTREAMS=/
/ -DHAVE_BOOST_SYSTEM=/*/ -DSTDC_HEADERS=1
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
-DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1
-DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -I. -std=c++11 -march=native -O2
-fvisibility=hidden -fvisibility-inlines-hidden -fomit-frame-pointer
-fno-ident -pthread -Wall -Wfatal-errors -Wl,O1 -Wl,--as-needed
-I/usr/include -I/usr/include/mysql++ -I/usr/include -I/usr/include/mysql
-g -O2 -MT response.o -MD -MP -MF .deps/response.Tpo -c -o response.o
response.cpp
In file included from /usr/include/boost/iostreams/traits.hpp:31:0,
from /usr/include/boost/iostreams/pipeline.hpp:18,
from /usr/include/boost/iostreams/detail/push.hpp:22,
from /usr/include/boost/iostreams/chain.hpp:29,
from /usr/include/boost/iostreams/filtering_streambuf.hpp:17,
from response.cpp:4:
/usr/include/boost/iostreams/detail/wrap_unwrap.hpp: In instantiation of
âT boost::iostreams::detail::wrap(const T&, typename boost::disable_if
boost::iostreams::is_std_io::type
) [with T =
boost::iostreams::basic_gzip_compressor<>; typename boost::disable_if
boost::iostreams::is_std_io::type = void]â:
/usr/include/boost/iostreams/stream_buffer.hpp:94:5: required from
âboost::iostreams::stream_buffer::stream_buffer(const T&, std::streamsize,
std::streamsize) [with T = boost::iostreams::basic_gzip_compressor<>; Tr =
std::char_traits; Alloc = std::allocator; Mode = boost::iostreams::input;
std::streamsize = long int]â
/usr/include/boost/iostreams/chain.hpp:257:60: required from âvoid
boost::iostreams::detail::chain_base::push_impl(const T&, std::streamsize,
std::streamsize) [with T = boost::iostreams::basic_gzip_compressor<>; Self
= boost::iostreams::chain, std::allocator >; Ch = char; Tr =
std::char_traits; Alloc = std::allocator; Mode = boost::iostreams::input;
std::streamsize = long int]â
/usr/include/boost/iostreams/chain.hpp:216:1: required from âvoid
boost::iostreams::detail::chain_base::push(const T&, std::streamsize,
std::streamsize, typename boost::disable_ifboost::iostreams::is_std_io::type_) [with T = boost::iostreams::basic_gzip_compressor<>; Self =
boost::iostreams::chain, std::allocator >; Ch = char; Tr =
std::char_traits; Alloc = std::allocator; Mode = boost::iostreams::input;
std::streamsize = long int; typename boost::disable_if
boost::iostreams::is_std_io::type = void]â
/usr/include/boost/iostreams/chain.hpp:496:7: required from âvoid
boost::iostreams::detail::chain_client::push_impl(const T&,
std::streamsize, std::streamsize) [with T =
boost::iostreams::basic_gzip_compressor<>; Chain = boost::iostreams::chain,
std::allocator >; std::streamsize = long int]â
/usr/include/boost/iostreams/chain.hpp:484:1: required from âvoid
boost::iostreams::detail::chain_client::push(const T&, std::streamsize,
std::streamsize, typename boost::disable_ifboost::iostreams::is_std_io::type_) [with T = boost::iostreams::basic_gzip_compressor<>; Chain =
boost::iostreams::chain, std::allocator >; std::streamsize = long int;
typename boost::disable_ifboost::iostreams::is_std_io::type = void]â
response.cpp:20:46: required from here
/usr/include/boost/iostreams/detail/wrap_unwrap.hpp:53:14: error: use of
deleted function
âboost::iostreams::basic_gzip_compressor<>::basic_gzip_compressor(const
boost::iostreams::basic_gzip_compressor<>&)â
compilation terminated due to -Wfatal-errors.
make: *** [response.o] Error 1

Anyone please help me. Thanks a lot


Reply to this email directly or view it on GitHubhttps://github.com//issues/34#issuecomment-32897080
.

Att,

Deivid Ramon Pinto

www.apenasmusica.net http://www.apenasmusica.net

Twitter_: @apenasmusica_

Skype_: deivid.ramon_

Facebook_: www.fb.com/deivid.ramon http://www.fb.com/deivid.ramon_

Thanks! The problem was solved