[devel] broken autoreconf & Fortran 90/95

REAL root на mmedia2.kemsu.ru
Вт Янв 12 11:49:43 UTC 2010


Dmitry V. Levin пишет:
>> Кусочки из config.log:
>>
>> [...]
>> configure:4645: checking for C/C++ preprocessor flags
>> [...]
>> configure:4823: x86_64-alt-linux-gcc -c -pipe -Wall -O2 -fPIC -DPIC 
>> conftest.c >&5
>>
>> Ой, а чего у нас такой C/C++ странный?
> 
> Это должно было быть написано выше в том же файле.

Гляну на досуге.

>> Ну и ближе к концу вполне уже логично:
>>
>> configure:5849: checking if x86_64-alt-linux-gcc is a C++ compiler
>> configure:5874: x86_64-alt-linux-gcc -o conftest -pipe -Wall -O2 -fPIC 
>> -DPIC   conftest.c -lm  >&5
>> configure:5874: $? = 0
>> configure:5874: ./conftest
>> configure:5874: $? = 1
>> configure: program exited with status 1
>>
>>
>> Это где что сломалось или какого доктора 
>> звать?
> 
> autoconf ни на что не жаловался?

configure.ac:47: warning: AC_REQUIRE: `AC_PROG_F77' was expanded 
before it was required
../../lib/autoconf/fortran.m4:255: AC_LANG_COMPILER(Fortran 77) is 
expanded from...
../../lib/autoconf/lang.m4:324: AC_LANG_COMPILER_REQUIRE is expanded 
from...
../../lib/autoconf/general.m4:2579: AC_COMPILE_IFELSE is expanded from...
../../lib/autoconf/fortran.m4:558: _AC_PROG_FC_V is expanded from...
../../lib/autoconf/fortran.m4:611: _AC_FC_LIBRARY_LDFLAGS is expanded 
from...
../../lib/autoconf/fortran.m4:699: AC_F77_LIBRARY_LDFLAGS is expanded 
from...
acinclude.m4:829: SUNDIALS_F77_CHECK is expanded from...
acinclude.m4:669: SUNDIALS_F77_SUPPORT is expanded from...
configure.ac:47: the top level
autoreconf-default: running: /usr/bin/autoheader-2.60 --force
configure.ac:39: warning: AC_REQUIRE: `AC_PROG_CPP' was expanded 
before it was required
../../lib/autoconf/c.m4:358: AC_LANG_PREPROC(C) is expanded from...
../../lib/autoconf/lang.m4:367: AC_LANG_PREPROC_REQUIRE is expanded 
from...
../../lib/autoconf/general.m4:2511: AC_EGREP_CPP is expanded from...
../../lib/autoconf/general.m4:2529: AC_EGREP_HEADER is expanded from...
../../lib/m4sugar/m4sh.m4:598: AS_IF is expanded from...
../../lib/autoconf/general.m4:2004: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:2025: AC_CACHE_CHECK is expanded from...
../../lib/autoconf/headers.m4:686: AC_HEADER_STDC is expanded from...
acinclude.m4:383: SUNDIALS_CC_CHECK is expanded from...
acinclude.m4:360: SUNDIALS_SET_CC is expanded from...
configure.ac:39: the top level
configure.ac:39: warning: AC_REQUIRE: `AC_HEADER_STDC' was expanded 
before it was required
../../lib/autoconf/headers.m4:297: _AC_INCLUDES_DEFAULT_REQUIREMENTS 
is expanded from...
../../lib/autoconf/headers.m4:353: AC_INCLUDES_DEFAULT is expanded from...
../../lib/autoconf/headers.m4:129: _AC_CHECK_HEADER_MONGREL is 
expanded from...
../../lib/autoconf/headers.m4:67: AC_CHECK_HEADER is expanded from...
../../lib/m4sugar/m4sh.m4:566: AS_FOR is expanded from...
../../lib/autoconf/headers.m4:249: AC_CHECK_HEADERS is expanded from...
configure.ac:47: warning: AC_REQUIRE: `AC_PROG_F77' was expanded 
before it was required
../../lib/autoconf/fortran.m4:255: AC_LANG_COMPILER(Fortran 77) is 
expanded from...
../../lib/autoconf/lang.m4:324: AC_LANG_COMPILER_REQUIRE is expanded 
from...
../../lib/autoconf/general.m4:2579: AC_COMPILE_IFELSE is expanded from...
../../lib/autoconf/fortran.m4:558: _AC_PROG_FC_V is expanded from...
../../lib/autoconf/fortran.m4:611: _AC_FC_LIBRARY_LDFLAGS is expanded 
from...
../../lib/autoconf/fortran.m4:699: AC_F77_LIBRARY_LDFLAGS is expanded 
from...
acinclude.m4:829: SUNDIALS_F77_CHECK is expanded from...
acinclude.m4:669: SUNDIALS_F77_SUPPORT is expanded from...
configure.ac:47: the top level
autoreconf-default: configure.ac: not using Automake
autoreconf-default: Leaving directory `.'

Тут я уже где-то встречал способ лечения... На вики бы его, для тех, 
кто тоже споткнулся о больной %autoreconf...

> По cmake я вам точно ничем помочь не смогу.

А тут я и сам справлюсь ;)

Но ведь чинить надо. Опять ломается несломанное?

-- 

REAL aka Евгений Ростовцев, программист ЦНИТ КемГУ


Подробная информация о списке рассылки Devel