discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] gcc 4.5 and GNU Radio 3.3.0


From: Gregor Dschung
Subject: Re: [Discuss-gnuradio] gcc 4.5 and GNU Radio 3.3.0
Date: Thu, 4 Nov 2010 18:43:32 +0100

You don't need to build everything by your own. Just download the RPMs
from http://software.opensuse.org, put them on your usb-stick and
install them with "rpm -Uvh blablub.rpm"

As I mentioned above, it's no big deal to install and use an older gcc-version.

Alternatively, you could try to patch the stable 3.3.0 version, so you
can compile with gcc45. An approach would be to diff the appropriate
files with their equivalent from the next-branch.... As the
next-branch compiles without problems under openSUSE 11.3 and gcc45,
there should be something changed in the sources.

But just to use the older gcc is the easier way. Or you switch to the
next-branch, which isn't unstable (at least for me).

Gregor

2010/11/4 Steve Mcmahon <address@hidden>:
> It took me a while to get some time to go back to my openSUSE 11.3 machine 
> and regenerate the error message. Sorry, I should have done this when I made 
> the initial post.
>
> So I successfully installed the following from source under openSUSE 11.3:
>
> Cheetah-2.4.2.1.tar.gz
> Markdown-2.0.3.tar.gz
> cppunit-1.12.1.tar.gz
> fftw-3.2.2.tar.gz
> gsl-1.14.tar.gz
> numpy-1.4.1.tar.gz
> sdcc-2.9.0-i386-unknown-linux2.5.tar.bz2
> swig-1.3.40.tar.gz
>
> Then I do a "./configure" for GNU Radio 3.3.0, and it runs fine, and it 
> reports it's going to build everything that I need/that it should.
>
> However, when I do a "make", it runs for a while, but then I get these errors:
>
> libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../.. 
> -I/opt/pkgs/gnuradio-3.3.0/usrp2/host/include 
> -I/opt/pkgs/gnuradio-3.3.0/usrp2/firmware/include -I/usr/include 
> -I/usr/include -I/opt/pkgs/gnuradio-3.3.0/gnuradio-core/src/lib/runtime 
> -I/opt/pkgs/gnuradio-3.3.0/gnuradio-core/src/lib/general 
> -I/opt/pkgs/gnuradio-3.3.0/gnuradio-core/src/lib/general 
> -I/opt/pkgs/gnuradio-3.3.0/gnuradio-core/src/lib/gengen 
> -I/opt/pkgs/gnuradio-3.3.0/gnuradio-core/src/lib/gengen 
> -I/opt/pkgs/gnuradio-3.3.0/gnuradio-core/src/lib/filter 
> -I/opt/pkgs/gnuradio-3.3.0/gnuradio-core/src/lib/filter 
> -I/opt/pkgs/gnuradio-3.3.0/gnuradio-core/src/lib/missing 
> -I/opt/pkgs/gnuradio-3.3.0/gnuradio-core/src/lib/reed-solomon 
> -I/opt/pkgs/gnuradio-3.3.0/gnuradio-core/src/lib/viterbi 
> -I/opt/pkgs/gnuradio-3.3.0/gnuradio-core/src/lib/io 
> -I/opt/pkgs/gnuradio-3.3.0/gnuradio-core/src/lib/g72x 
> -I/opt/pkgs/gnuradio-3.3.0/gnuradio-core/src/lib/swig 
> -I/opt/pkgs/gnuradio-3.3.0/gnuradio-core/src/lib/hier
>  -I/opt/pkgs/gnuradio-3.3.0/gnuradio-core/src/lib/swig -I/usr/local/include 
> -I/usr/local/include -I/opt/pkgs/gnuradio-3.3.0/gruel/src/include 
> -I/opt/pkgs/gnuradio-3.3.0/gruel/src/include -I/usr/local/include 
> -I/opt/pkgs/gnuradio-3.3.0/gruel/src/include 
> -I/opt/pkgs/gnuradio-3.3.0/gruel/src/include -g -O2 -Wall 
> -Woverloaded-virtual -pthread -MT usrp2.lo -MD -MP -MF .deps/usrp2.Tpo -c 
> usrp2.cc  -fPIC -DPIC -o .libs/usrp2.o
> usrp2.cc:41:33: error: type/value mismatch at argument 1 in template 
> parameter list for ‘template<class T> class boost::weak_ptr’
> usrp2.cc:41:33: error:   expected a type, got ‘usrp2::usrp2::usrp2’
> usrp2.cc:43:75: error: type/value mismatch at argument 1 in template 
> parameter list for ‘template<class T> class boost::weak_ptr’
> usrp2.cc:43:75: error:   expected a type, got ‘usrp2::usrp2::usrp2’
> usrp2.cc: In static member function ‘static usrp2::usrp2::sptr 
> usrp2::usrp2::find_existing_or_make_new(const std::string&, usrp2::props*, 
> size_t)’:
> usrp2.cc:60:20: error: request for member ‘expired’ in 
> ‘p.__gnu_cxx::__normal_iterator<_Iterator, _Container>::operator-> [with 
> _Iterator = usrp2::usrp_table_entry*, _Container = 
> std::vector<usrp2::usrp_table_entry>, __gnu_cxx::__normal_iterator<_Iterator, 
> _Container>::pointer = 
> usrp2::usrp_table_entry*]()->usrp2::usrp_table_entry::value’, which is of 
> non-class type ‘int’
> usrp2.cc:64:31: error: no matching function for call to 
> ‘boost::shared_ptr<usrp2::usrp2>::shared_ptr(int&)’
> /usr/include/boost/smart_ptr/shared_ptr.hpp:182:5: note: candidates are: 
> boost::shared_ptr< <template-parameter-1-1> >::shared_ptr() [with T = 
> usrp2::usrp2]
> /usr/include/boost/smart_ptr/shared_ptr.hpp:169:1: note:                 
> boost::shared_ptr<usrp2::usrp2>::shared_ptr(const 
> boost::shared_ptr<usrp2::usrp2>&)
> usrp2.cc:73:23: error: expected type-specifier
> usrp2.cc:73:23: error: expected ‘)’
> usrp2.cc:74:30: error: no matching function for call to 
> ‘usrp2::usrp_table_entry::usrp_table_entry(std::string&, usrp2::usrp2::sptr&)’
> usrp2.cc:43:5: note: candidates are: 
> usrp2::usrp_table_entry::usrp_table_entry(const std::string&, int)
> usrp2.cc:38:27: note:                 
> usrp2::usrp_table_entry::usrp_table_entry(const usrp2::usrp_table_entry&)
> In file included from /usr/include/boost/shared_ptr.hpp:17:0,
>                 from 
> /opt/pkgs/gnuradio-3.3.0/usrp2/host/include/usrp2/usrp2.h:22,
>                 from usrp2.cc:23:
> /usr/include/boost/smart_ptr/shared_ptr.hpp: In constructor 
> ‘boost::shared_ptr< <template-parameter-1-1> >::shared_ptr(Y*) [with Y = int, 
> T = usrp2::usrp2]’:
> usrp2.cc:73:56:   instantiated from here
> /usr/include/boost/smart_ptr/shared_ptr.hpp:187:50: error: cannot convert 
> ‘int*’ to ‘usrp2::usrp2*’ in initialization
> make[4]: *** [usrp2.lo] Error 1
> make[4]: Leaving directory `/opt/pkgs/gnuradio-3.3.0/usrp2/host/lib'
> make[3]: *** [all-recursive] Error 1
> make[3]: Leaving directory `/opt/pkgs/gnuradio-3.3.0/usrp2/host'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/opt/pkgs/gnuradio-3.3.0/usrp2'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/opt/pkgs/gnuradio-3.3.0'
> make: *** [all] Error 2
>
>
> It looks like a problem with the Boost library. I don't have this problem in 
> openSUSE 11.2 (which bundles gcc 4.4.1 and Boost 1.39), but it is not working 
> for me with openSUSE 11.3 (which bundles gcc 4.5.0 and Boost 1.42). On this 
> particular machine, I need to run specifically openSUSE 11.3.
>
> Any help would be very much appreciated.
> Thanks!!
>
> Steve McMahon
>
>
>
> --- On Sun, 10/17/10, Tom Rondeau <address@hidden> wrote:
>
>> From: Tom Rondeau <address@hidden>
>> Subject: Re: [Discuss-gnuradio] gcc 4.5 and GNU Radio 3.3.0
>> To: "Steve Mcmahon" <address@hidden>
>> Cc: "Gregor Dschung" <address@hidden>, address@hidden
>> Date: Sunday, October 17, 2010, 10:16 PM
>> On Wed, Oct 13, 2010 at 10:28 PM,
>> Steve Mcmahon
>> <address@hidden>
>> wrote:
>> > Gregor:
>> >
>> > Thanks for your reply. I have never installed a second
>> version of gcc on a Linux machine before. How can I install
>> gcc 4.4.4 in /opt so that it exists alongside the gcc 4.5.0
>> that comes packaged with openSUSE 11.3?? My machine is in a
>> lab, and does not have a connection to the internet, so I
>> would have to download packages and put them on a USB pen
>> drive and walk them to the machine. Your help is greatly
>> appreciated. Thanks.
>> >
>> > Steve McMahon
>>
>>
>> Providing us with some kind of error message could help us
>> help you.
>>
>> Tom
>>
>>
>>
>> > --- On Tue, 10/12/10, Gregor Dschung <address@hidden>
>> wrote:
>> >
>> >> From: Gregor Dschung <address@hidden>
>> >> Subject: Re: [Discuss-gnuradio] gcc 4.5 and GNU
>> Radio 3.3.0
>> >> To: "Steve Mcmahon" <address@hidden>
>> >> Cc: address@hidden
>> >> Date: Tuesday, October 12, 2010, 11:49 PM
>> >>
>> >> Hi,
>> >>
>> >> 3.3.0 stable doesn't compile under openSUSE 11.3
>> with gcc
>> >> 4.5.0. But
>> >> installing gcc43 and gcc43-c++ (and using them...
>> just set
>> >> the
>> >> appropriate environment variables) did the job for
>> me.
>> >>
>> >> The last time I compiled the git branch under
>> openSUSE was
>> >> 2 months
>> >> ago. At this time, gcc45 didn't work for this
>> branch, too.
>> >> Maybe, this
>> >> changed in the meantime.
>> >>
>> >> Gregor
>> >>
>> >> 2010/10/12 Philip Balister <address@hidden>:
>> >> > On 10/12/2010 12:04 PM, Steve Mcmahon wrote:
>> >> >>
>> >> >> I am trying to compile GNU Radio 3.3.0
>> under
>> >> openSuse 11.3, which uses gcc
>> >> >> 4.5.0. I have all the dependencies built
>> and
>> >> resolved, but when I compile
>> >> >> GNU Radio 3.3.0, I get errors. It seems
>> that GNU
>> >> Radio does not compile
>> >> >> successfully with the new gcc 4.5.0,
>> although I
>> >> know it compiles with gcc
>> >> >> 4.4.1 on openSuse 11.2. However, I
>> specifically
>> >> need to run openSuse 11.3
>> >> >> for my application. How, exactly, can I
>> get GNU
>> >> Radio 3.3.0 to build under
>> >> >> gcc 4.5.0? Will the next release of GNU
>> Radio
>> >> address this? Is there a
>> >> >> compiler flag I can use, or a
>> quick-and-easy hack
>> >> to the GNU Radio code?
>> >> >> What is the problem with gcc 4.5.0? Thank
>> you very
>> >> much for your help on
>> >> >> this issue. I really appreciate it.
>> >> >
>> >> > I am building gnuradio from git (next branch)
>> on gcc
>> >> 4.5 and am not having
>> >> > any gcc issues.
>> >> >
>> >> > Philip
>> >> >
>> >> >
>> >> >>
>> >> >> Steve McMahon
>> >> >>
>> >> >>
>> >> >>
>> >> >>
>> >> >>
>> >> >>
>> _______________________________________________
>> >> >> Discuss-gnuradio mailing list
>> >> >> address@hidden
>> >> >> http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>> >> >>
>> >> >
>> >> >
>> _______________________________________________
>> >> > Discuss-gnuradio mailing list
>> >> > address@hidden
>> >> > http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>> >> >
>> >>
>> >
>> >
>> >
>> >
>> > _______________________________________________
>> > Discuss-gnuradio mailing list
>> > address@hidden
>> > http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>> >
>>
>
>
>
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]