discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Compile error with gnuradio trunk for armv7-a


From: Mattias Kjellsson
Subject: Re: [Discuss-gnuradio] Compile error with gnuradio trunk for armv7-a
Date: Thu, 14 Aug 2008 18:31:50 -0100
User-agent: Thunderbird 2.0.0.12 (X11/20080213)

Philip Balister wrote:
On Thu, Aug 14, 2008 at 8:24 AM, Mattias Kjellsson <address@hidden> wrote:
Philip Balister wrote:
On Thu, Aug 14, 2008 at 6:24 AM, Mattias Kjellsson <address@hidden> wrote:

Philip Balister wrote:

I used to be able to build trunk with Openembedded, but "recently"
I've run into this message:

gnuradio_swig_py_runtime.cc:130:20: error: Python.h: No such file or
directory

The complete build log is here:

http://tinderbox.openembedded.net/public/logs/729906.txt

Does this ring a bell with anyone?


Hi Philip,

I have never seen this error, nor am I an old hardcore gnuradio guy, but
I
briefly took a peak at the make- log... And I found something
interesting,
which might have something to do with the problem.

gnuradio_swig_py_runtime.cc:130:20: error: Python.h: No such file or
directory
gnuradio_swig_py_runtime.cc:3022:4: error: #error "This python version
requires swig to be run with the '-classic' option"
gnuradio_swig_py_runtime.cc:3026:3: error: #error "This python version
requires swig to be run with the '-nomodern' option"
gnuradio_swig_py_runtime.cc:3029:3: error: #error "This python version
requires swig to be run with the '-nomodernargs' option"
gnuradio_swig_py_gengen.cc:130:20: error: Python.h: No such file or
directory
gnuradio_swig_py_gengen.cc:3217:4: error: #error "This python version
requires swig to be run with the '-classic' option"
gnuradio_swig_py_gengen.cc:3221:3: error: #error "This python version
requires swig to be run with the '-nomodern' option"
gnuradio_swig_py_gengen.cc:3224:3: error: #error "This python version
requires swig to be run with the '-nomodernargs' option"

I found these lines in the end of the log, and my sugestion would be to
try
to rebuild swig with the flags indicated above.

On the other hand there are some other errors further down the log- file,
but they may resolve if you rebuild swig.

Hope this helps, cheers
Mattias Kjellsson

My gut is telling me that the failure to find the Python.h file messes
up the python version check. I did upgrade swig from 1.3.31 to 1.3.36

Did you compile it yourself, or did you use a binary to upgrade? If you used
a binary dist of swig, I'd say try with the source and give the appropriate
flags to configure... Otherwise I assume that you have located the files the
compiler is complaining about, or are they just missing?

Compiled it of course. This is all done inside open emebedded. I need
to work out why it used to work and fails now. I was hoping someone
would go "ah ha, try this ..." Pyhton.h exists, but the include paths
are no longer correct.
Well, there you have it; just add the path where Python.h is located. That's a quick 'n dirty solution. Hope you didn't take any offense about the stupid questions (and the even more stupid solution ;)), I just had to ask. I think I'm out of ideas, if you don't simply change the include- statements in the source to match where they are... Which would be my way of fixing it.

Hope you find a better way to fix this, cheers
Mattias
Philip

Cheers!
with no improvement.

I'm guessing there is some change in the autofoo. I tried to go back
in revs until it compiled again, back I got back to the point where
the build was fixed for gcc 4.3.1 without finding the rev that
introduced the problem.

Philip






reply via email to

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