Question about GNU Fortran 77 compiler

260 views
Skip to first unread message

Hanks

unread,
Nov 2, 2010, 6:56:02 PM11/2/10
to Beagle Board
Hello All,

Now I am compiling GNURadio 3.2 directly on beagleboard. However, I
can't pass ./configure with the following error

------------------------
checking whether we are using the GNU Fortran 77 compiler... no
......

checking for Python include path... /usr/include/python2.6
checking Python.h usability... no
checking Python.h presence... yes
configure: WARNING: Python.h: present but cannot be compiled
configure: WARNING: Python.h: check for missing prerequisite
headers?
configure: WARNING: Python.h: see the Autoconf documentation
configure: WARNING: Python.h: section "Present But Cannot Be
Compiled"
configure: WARNING: Python.h: proceeding with the compiler's result
checking for Python.h... no
configure: error: cannot find usable Python headers
------------------------

But I do have python and python-devel installed.

I checked online, it's said the reason is that configure need GNU
Fortran 77 to check Python. But there is no g77.ipk from
http://www.angstrom-distribution.org/feeds/unstable/ipk/glibc/armv7a/base/

So how to install GNU Fortran 77 for Angstrom/OE?

Thanks

Zhen

Hanks

unread,
Nov 2, 2010, 7:18:39 PM11/2/10
to Beagle Board
I just installed 'arm-angstrom-linux-gnueabi-gfortran' and created a
link file 'g77' to get GNU Fortran 77 worked

But I still get the above "Python.h" error.

---------------------
checking for Python include path... /usr/include/python2.6
checking Python.h usability... no
checking Python.h presence... yes
configure: WARNING: Python.h: present but cannot be compiled
configure: WARNING: Python.h: check for missing prerequisite
headers?
configure: WARNING: Python.h: see the Autoconf documentation
configure: WARNING: Python.h: section "Present But Cannot Be
Compiled"
configure: WARNING: Python.h: proceeding with the compiler's result
checking for Python.h... no
configure: error: cannot find usable Python headers
-------------------

Did anybody meet the similar problem and solve it?

Thanks a lot!

Zhen
> Fortran 77 to check Python. But there is no g77.ipk fromhttp://www.angstrom-distribution.org/feeds/unstable/ipk/glibc/armv7a/...

Bill Traynor

unread,
Nov 2, 2010, 7:32:38 PM11/2/10
to beagl...@googlegroups.com
On Tue, Nov 2, 2010 at 19:18, Hanks <zko...@gmail.com> wrote:
I just installed 'arm-angstrom-linux-gnueabi-gfortran' and created a
link file 'g77' to get GNU Fortran 77 worked

But I still get the above "Python.h" error.

---------------------
checking for Python include path... /usr/include/python2.6
checking Python.h usability... no
checking Python.h presence... yes
configure: WARNING: Python.h: present but cannot be compiled
configure: WARNING: Python.h:     check for missing prerequisite
headers?
configure: WARNING: Python.h: see the Autoconf documentation
configure: WARNING: Python.h:     section "Present But Cannot Be
Compiled"
configure: WARNING: Python.h: proceeding with the compiler's result
checking for Python.h... no
configure: error: cannot find usable Python headers
-------------------

Did anybody meet the similar problem and solve it?

This is usually a sign of requiring the Python development package.  Install python-dev

--
You received this message because you are subscribed to the Google Groups "Beagle Board" group.
To post to this group, send email to beagl...@googlegroups.com.
To unsubscribe from this group, send email to beagleboard...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/beagleboard?hl=en.


Hanks

unread,
Nov 3, 2010, 11:09:04 AM11/3/10
to Beagle Board
Thanks

However, I have installed the Python development package "python-
deval", and there exists python include dir at /usr/include/
python2.6.

So is there any other reasons for this problem?

And btw, what's the difference between python-dev and python-devel
package?

Zhen

On Nov 2, 7:32 pm, Bill Traynor <btray...@gmail.com> wrote:
> > beagleboard...@googlegroups.com<beagleboard%2Bunsu...@googlegroups.com>
> > .

Gary Thomas

unread,
Nov 3, 2010, 11:13:46 AM11/3/10
to beagl...@googlegroups.com, Hanks
On 11/03/2010 09:09 AM, Hanks wrote:
> Thanks
>
> However, I have installed the Python development package "python-
> deval", and there exists python include dir at /usr/include/
> python2.6.
>
> So is there any other reasons for this problem?

Did you try looking at the 'config.log' file (generated in the directory
where 'configure' is being run)? It should tell you more about why
this is failing.

--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------

Hanks

unread,
Nov 3, 2010, 3:13:02 PM11/3/10
to Beagle Board
Thanks your suggestion. I checked config.log and got the following
error info on f77 -c -g O2 conftest.f

---------------------------------------------------------------------
configure:20029: checking for Python include path
configure:20045: result: /usr/include/python2.6
llegal preprocessor directive
configure:20059: checking Python.h usability
configure:20059: f77 -c -g -O2 conftest.f >&5
Warning: conftest.f:2: Illegal preprocessor directive
Warning: conftest.f:3: Illegal preprocessor directive
Warning: conftest.f:4: Illegal preprocessor directive
Warning: conftest.f:5: Illegal preprocessor directive
Warning: conftest.f:6: Illegal preprocessor directive
Warning: conftest.f:7: Illegal preprocessor directive
Warning: conftest.f:8: Illegal preprocessor directive
Warning: conftest.f:9: Illegal preprocessor directive
Warning: conftest.f:10: Illegal preprocessor directive
------------------------------------------------------------------

It seems autoconf generates the "test for Python.h" using C-code but
tries to compile it using a Fortran compiler.

From http://www.mail-archive.com/discuss-...@gnu.org/msg25448.html,
I solved it by changing "config/gr_python.m4"
Reply all
Reply to author
Forward
0 new messages