Hello,
My gcc version is gcc version 5.2.1 20151010 (Ubuntu 5.2.1-22ubuntu2)
I followed the build instructions here: https://github.com/RedPitaya/RedPitaya/ ... /README.md
Everything was fine until I got to CMake, which failed to build.
In Directory: /sandbox/test/RedPitaya/OS/buildroot/buildroot-2014.02/output/build/host-cmake-2.8.12.1
In file included from /sandbox/test/RedPitaya/OS/buildroot/buildroot-2014.02/output/build/host-cmake-2.8.12.1/Source/cmDocumentVariables.cxx:4:0:
/sandbox/test/RedPitaya/OS/buildroot/buildroot-2014.02/output/build/host-cmake-2.8.12.1/Bootstrap.cmk/cmsys/ios/sstream: In member function ‘void cmsys_ios::istringstream::clear(int)’:
/sandbox/test/RedPitaya/OS/buildroot/buildroot-2014.02/output/build/host-cmake-2.8.12.1/Bootstrap.cmk/cmsys/ios/sstream:176:34: error: invalid conversion from ‘int’ to ‘std::ios_base::iostate {aka std::_Ios_Iostate}’ [-fpermissive]
this->IStrStream::clear(flags);
The CMake mailing list seems to point to an issue with building CMake with GCC 5.1 (and very likely anything newer). The link is here: https://cmake.org/pipermail/cmake/2015- ... 60486.html
However the work-around is not very clear. As I understand it, the test for configure is having a hard time finding the sstream functions (which are defined in iostream). It should find these in the c++ library ...
The output of my ./configure was:
/sandbox/test/RedPitaya/OS/buildroot/buildroot-2014.02/output/build/host-cmake-2.8.12.1$ ./configure
---------------------------------------------
CMake 2.8.12.1, Copyright 2000-2012 Kitware, Inc.
Found GNU toolchain
C compiler on this system is: gcc
C++ compiler on this system is: g++
Makefile processor on this system is: gmake
g++ is GNU compiler
g++ has setenv
g++ has unsetenv
g++ does not have environ in stdlib.h
g++ has STL in std:: namespace
g++ has ANSI streams
g++ has streams in std:: namespace
g++ does not have sstream
g++ does not have strstream.h
g++ does not have strstrea.h
g++ does not have operator!=(string, char*)
g++ has stl iterator_traits
g++ has standard template allocator
g++ has allocator<>::rebind<>
g++ does not have non-standard allocator<>::max_size argument
g++ has stl containers supporting allocator objects
g++ has header cstddef
g++ requires template friends to use <>
g++ supports member templates
g++ has standard template specialization syntax
g++ has argument dependent lookup
g++ has struct stat with st_mtim member
g++ has ios::binary openmode
g++ has ANSI for scoping
////
Compiling build environment fails in CMake directory
-
- Posts: 54
- Joined: Tue Feb 02, 2016 8:42 pm
-
- Posts: 54
- Joined: Tue Feb 02, 2016 8:42 pm
Re: Compiling build environment fails in CMake directory
So it looks like these errors are tied to gcc 5.1 or greater and CMake ... I also had to patch ncurses which did not like gcc 5.1 (or greater). There is a known patch for ncurses and it worked.
In order to build the RedPitaya Ecosystem on my Ubuntu box which is running gcc 5.2 I might have to step down to gcc 4.9 or try to fix the CMake issue ...
Still poking around.
In order to build the RedPitaya Ecosystem on my Ubuntu box which is running gcc 5.2 I might have to step down to gcc 4.9 or try to fix the CMake issue ...
Still poking around.
-
- Posts: 1441
- Joined: Sat Jun 07, 2014 12:49 pm
- Location: Königswinter
Re: Compiling build environment fails in CMake directory
It seems likely that these are the root causes - I recently set up a fresh build vm with the recommended components and it worked without a hitch. So I'd say the source itself is in the clear.
-
- Posts: 54
- Joined: Tue Feb 02, 2016 8:42 pm
Re: Compiling build environment fails in CMake directory
Hello Nils,
What is the configuration of YOUR build environment? I will try to replicate that.
What is the configuration of YOUR build environment? I will try to replicate that.
-
- Posts: 54
- Joined: Tue Feb 02, 2016 8:42 pm
Re: Compiling build environment fails in CMake directory
The issue turned out to be the Xilinx libstdc++ being picked up as opposed to the standard libstdc++. I unset the LD_LIBRARY_PATH and CMake got built. The Xilinx lib directory was the only thing defined in the LD_LIBRARY_PATH
-
- Posts: 1441
- Joined: Sat Jun 07, 2014 12:49 pm
- Location: Königswinter
Re: Compiling build environment fails in CMake directory
Hmm, I never encountered problems with the library path myself, and neither did I have problems with nginx, as you reported in another thread.
I set up my build VM as described here, and make runs cleanly from start to finish.
I set up my build VM as described here, and make runs cleanly from start to finish.
-
- Posts: 54
- Joined: Tue Feb 02, 2016 8:42 pm
Re: Compiling build environment fails in CMake directory
Hello Nils,
Our systems are different. If I run it on Ubuntu 14.04, very likely things will work.
My machine is Ubuntu 15.10, which is using a newer gcc ...
dev@testbox:~$ uname -a
Linux 4.2.0-16-generic #19-Ubuntu SMP Thu Oct 8 15:35:06 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
dev@testbox:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 15.10
Release: 15.10
Codename: wily
Our systems are different. If I run it on Ubuntu 14.04, very likely things will work.
My machine is Ubuntu 15.10, which is using a newer gcc ...
dev@testbox:~$ uname -a
Linux 4.2.0-16-generic #19-Ubuntu SMP Thu Oct 8 15:35:06 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
dev@testbox:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 15.10
Release: 15.10
Codename: wily
-
- Posts: 1441
- Joined: Sat Jun 07, 2014 12:49 pm
- Location: Königswinter
Re: Compiling build environment fails in CMake directory
OK, I got a couple of things for you:
- get these two packages - they do not interfere with your 5.1 toolchain
Code: Select all
sudo apt-get install gcc-4.9-multilib g++-4.9-multilib
- put a new directory "cmake" into OS/buildroot/patches and copy the following patch into it:
- The problem with nginx is actually that it has a home-brewed autoconfiguration procedure, which picks up the host toolchain instead of the crosscompiler and derives the wrong compiler options ("-Wno-unused" instead of the correct "-Wno-unused-parameter") for gcc versions >=5 . Replace patches/nginx.patch with this:
- call make with the following parameters
Code: Select all
make HOSTCC=gcc-4.9 HOSTCPP=cpp-4.9 HOSTCXX=g++-4.9
You do not have the required permissions to view the files attached to this post.
-
- Posts: 54
- Joined: Tue Feb 02, 2016 8:42 pm
Re: Compiling build environment fails in CMake directory
Thanks Nils!!!
jadalnie klasyczne ekskluzywne meble wypoczynkowe do salonu ekskluzywne meble tapicerowane ekskluzywne meble do sypialni ekskluzywne meble włoskie
Who is online
Users browsing this forum: No registered users and 2 guests