Build fails

Hi,

On a relatively fresh installed Kubuntu 12.04 LTS 32bit x86 with all
updates
the build of gnuradio fails. I am using the build script, but also the
manual build fails in a similar way. Already installed on the machine is
a
partial gnuradio 3.4.2 for OpenBTS support, together with USRP1 drivers,
yate PBX. This stuff built without problems and works just fine.

See the messages at the bottom of the mail.

I am normally a Win user and far from being a linux pro, but I do not
fear
the command line and editing files. Reminds me a bit of good old Amiga
times
:slight_smile:

Any ideas what I should do?

Thanks a lot, and with best regards

Ralph.

These are the scripts last words:

[ 39%] Building CXX object
gnuradio-core/src/lib/swig/CMakeFiles/_gnuradio_core_general.dir/gnuradio_co
re_generalPYTHON_wrap.cxx.o
/home/ras/gnuradio/build/gnuradio-core/src/lib/swig/gnuradio_core_generalPYT
HON_wrap.cxx:6067:22: error: redefinition of struct
swig::traits
/home/ras/gnuradio/build/gnuradio-core/src/lib/swig/gnuradio_core_generalPYT
HON_wrap.cxx:5493:22: error: previous definition of struct
swig::traits
/home/ras/gnuradio/build/gnuradio-core/src/lib/swig/gnuradio_core_generalPYT
HON_wrap.cxx:6071:23: error: redefinition of struct
swig::traits_asval
/home/ras/gnuradio/build/gnuradio-core/src/lib/swig/gnuradio_core_generalPYT
HON_wrap.cxx:5497:23: error: previous definition of struct
swig::traits_asval
/home/ras/gnuradio/build/gnuradio-core/src/lib/swig/gnuradio_core_generalPYT
HON_wrap.cxx:6077:23: error: redefinition of struct
swig::traits_from
/home/ras/gnuradio/build/gnuradio-core/src/lib/swig/gnuradio_core_generalPYT
HON_wrap.cxx:5503:23: error: previous definition of struct
swig::traits_from
/home/ras/gnuradio/build/gnuradio-core/src/lib/swig/gnuradio_core_generalPYT
HON_wrap.cxx:6087:22: error: redefinition of struct
swig::traits<std::vector >
/home/ras/gnuradio/build/gnuradio-core/src/lib/swig/gnuradio_core_generalPYT
HON_wrap.cxx:5513:22: error: previous definition of struct
swig::traits<std::vector >
make[2]: ***
[gnuradio-core/src/lib/swig/CMakeFiles/_gnuradio_core_general.dir/gnuradio_c
ore_generalPYTHON_wrap.cxx.o] Error 1
make[1]: ***
[gnuradio-core/src/lib/swig/CMakeFiles/_gnuradio_core_general.dir/all]
Error
2
make: *** [all] Error 2
make failed
Exiting Gnu Radio build/install

Ralph A. Schmid
Mondstr. 10
90762 Frth
+49-171-3631223
[email protected]
http://www.bclog.de/

On 02/08/2013 02:08 AM, Ralph A. Schmid, dk5ras wrote:

I am normally a Win user and far from being a linux pro, but I do not fear
the command line and editing files. Reminds me a bit of good old Amiga times
:slight_smile:

Any ideas what I should do?

Someone had this exact same error in a private email but we never got to
the bottom of it.

Was there a previous install of gnuradio by any chance (in case
something is accidentally building against installed headers)?

It may be the case that a recent change is adding an extra typdef or
template to a swig .i file and swig is being dumb and exporting it
twice.

Or maybe its one of those things that shows up on an x86 machine vs x64
due to how integer types map to fixed width typedefs… So many ways to
fail :slight_smile:

So, what version of gnuradio produced the errors below? It wasnt the
3.4.2, right?

Can you attach the culprit gnuradio_core_generalPYTHON_wrap.cxx

-josh

Hi,

I got the error by installing the latest release, should be 3.6.3,
although
in the output sometimes the 3.6.4 repository was mentioned. And as I
have
told there already is a partial install of 3.4.2 that is necessary for
the
openbts package. So I just may remove this and install the newer version
first… Regarding the .cxx you had requested, I will send it later,
when I
have access to it.

Ralph.

On 02/08/2013 02:08 AM, Ralph A. Schmid, dk5ras wrote:

Hi,

On a relatively fresh installed Kubuntu 12.04 LTS 32bit x86 with all
updates the build of gnuradio fails. I am using the build script, but
also the manual build fails in a similar way. Already installed on the
machine is a partial gnuradio 3.4.2 for OpenBTS support, together with
USRP1 drivers, yate PBX. This stuff built without problems and works
just

Someone had this exact same error in a private email but we never got to
the
bottom of it.

Was there a previous install of gnuradio by any chance (in case something
is
accidentally building against installed headers)?

It may be the case that a recent change is adding an extra typdef or
template
to a swig .i file and swig is being dumb and exporting it twice.

Or maybe its one of those things that shows up on an x86 machine vs x64
due
to how integer types map to fixed width typedefs… So many ways to fail
:slight_smile:

So, what version of gnuradio produced the errors below? It wasnt the
3.4.2,

Here it is…600kB packed, so I put it onto my server…

http://dk5ras.dyndns.org/tmp/gnuradio_core_generalPYTHON_wrap.zip

Ralph.

On 02/08/2013 02:08 AM, Ralph A. Schmid, dk5ras wrote:

Hi,

On a relatively fresh installed Kubuntu 12.04 LTS 32bit x86 with all
updates the build of gnuradio fails. I am using the build script, but
also the manual build fails in a similar way. Already installed on the
machine is a partial gnuradio 3.4.2 for OpenBTS support, together with
USRP1 drivers, yate PBX. This stuff built without problems and works
just

Someone had this exact same error in a private email but we never got to
the
bottom of it.

Was there a previous install of gnuradio by any chance (in case something
is
accidentally building against installed headers)?

It may be the case that a recent change is adding an extra typdef or
template
to a swig .i file and swig is being dumb and exporting it twice.

Or maybe its one of those things that shows up on an x86 machine vs x64
due
to how integer types map to fixed width typedefs… So many ways to fail
:slight_smile:

So, what version of gnuradio produced the errors below? It wasnt the
3.4.2,

Ralph A. Schmid, dk5ras wrote in post #1095935:

Hi,

I got the error by installing the latest release, should be 3.6.3,
although
in the output sometimes the 3.6.4 repository was mentioned. And as I
have
told there already is a partial install of 3.4.2 that is necessary for
the
openbts package. So I just may remove this and install the newer version
first… Regarding the .cxx you had requested, I will send it later,
when I
have access to it.

Ralph.

On 02/08/2013 02:08 AM, Ralph A. Schmid, dk5ras wrote:

Hi,

On a relatively fresh installed Kubuntu 12.04 LTS 32bit x86 with all
updates the build of gnuradio fails. I am using the build script, but
also the manual build fails in a similar way. Already installed on the
machine is a partial gnuradio 3.4.2 for OpenBTS support, together with
USRP1 drivers, yate PBX. This stuff built without problems and works
just

Someone had this exact same error in a private email but we never got to
the
bottom of it.

Was there a previous install of gnuradio by any chance (in case something
is
accidentally building against installed headers)?

It may be the case that a recent change is adding an extra typdef or
template
to a swig .i file and swig is being dumb and exporting it twice.

Or maybe its one of those things that shows up on an x86 machine vs x64
due
to how integer types map to fixed width typedefs… So many ways to fail
:slight_smile:

So, what version of gnuradio produced the errors below? It wasnt the
3.4.2,

Hi,

I have got exactly the same error. Running Debian 7.0 (wheezy) with a
fresh git-clone of the gnuradio today. No previous installation of
gnuradio on my system. I could provide
gnuradio_core_generalPYTHON_wrap.cxx, but where to post/send? It’s far
to large…

Regards
Maik

I have exactly the same issue after trying to build last night.

I am using Mint 14.

Links to the file:
https://www.dropbox.com/s/v9wyi3uzeuw7w4q/gnuradio_core_generalPYTHON_wrap.7z

And the log:
https://www.dropbox.com/s/200turo2fdh788p/gr.log

Well, thats probably the issue, size_t is an unsigned int

namespace swig {
template <> struct traits {
typedef value_category category;
static const char* type_name() { return"unsigned int"; }
};

namespace swig {
template <> struct traits<size_t > {
typedef value_category category;
static const char* type_name() { return"size_t"; }
};

Though thats not an answer for your issue yet…

-josh

On 02/08/2013 04:18 AM, Ralph A. Schmid, dk5ras wrote:

Hi,

I got the error by installing the latest release, should be 3.6.3, although
in the output sometimes the 3.6.4 repository was mentioned. And as I have
told there already is a partial install of 3.4.2 that is necessary for the
openbts package. So I just may remove this and install the newer version

I think this partial install is just the usrp component, not gnuradio
runtime or anything. However, If thats not the case, you might want to
uninstall/move the installed headers temporarily just in case to confirm
if thats causing the issue or not.

-josh

Well, I am not a programmer but a RF guy, but why not just changing this
with search and replace?! :slight_smile:

Ralph.

Hi,

Yep, only the USRP stuff.

I already had removed the headers and in fact everything that looked
like
gnuradio and USRP, without any change, still the same problem.

Ralph.

Hi,

I got the error by installing the latest release, should be 3.6.3,
although in the output sometimes the 3.6.4 repository was mentioned.
And as I have told there already is a partial install of 3.4.2 that is
necessary for the openbts package. So I just may remove this and
install the newer version

I think this partial install is just the usrp component, not gnuradio
runtime or
anything. However, If thats not the case, you might want to uninstall/move
the installed headers temporarily just in case to confirm if thats causing
the

Ralph A. Schmid, dk5ras wrote in post #1095924:

Hi,

On a relatively fresh installed Kubuntu 12.04 LTS 32bit x86 with all
updates
the build of gnuradio fails. I am using the build script, but also the
manual build fails in a similar way. Already installed on the machine is
a
partial gnuradio 3.4.2 for OpenBTS support, together with USRP1 drivers,
yate PBX. This stuff built without problems and works just fine.

See the messages at the bottom of the mail.

I am normally a Win user and far from being a linux pro, but I do not
fear
the command line and editing files. Reminds me a bit of good old Amiga
times
:slight_smile:

Any ideas what I should do?

Thanks a lot, and with best regards

Ralph.

http://www.bclog.de/

I don’t know if this makes any kind of sense, but I solved this problem
by installing swig2.0 !!!

sudo apt-get install swig2.0

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs