octave-maintainers
[Top][All Lists]
Advanced

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

Re: Octave 3.8.0-rc1: compilation error and make check error


From: José Luis García Pallero
Subject: Re: Octave 3.8.0-rc1: compilation error and make check error
Date: Mon, 9 Dec 2013 10:10:01 +0100

2013/12/5 John W. Eaton <address@hidden>:
> On 12/05/2013 07:53 AM, José Luis García Pallero wrote:
>>
>> Hello:
>>
>> I performed two compilations:
>>
>> 1- Intel Core i5 64 bit box running Debian
>>
>> All runs fine. In the make check step I've obtained a fail in
>> bug-38236.tst. Inspecting the test/fntests.log file one can read:
>>
>>>>>>> processing bug-38236.tst
>>
>>    ***** test
>>   u_vr
>> !!!!! test failed
>> 'vr' undefined near line 1 column 36
>>
>> 2- Pentium M 32 bit laptop running Debian, in which I always compile
>> other versions:
>>
>> The configure step works without problems, but during make I've obtained:
>>
>> libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I..
>> -I../liboctave/cruft/misc -I../liboctave/array -I../liboctave/numeric
>> -I../liboctave/numeric -I../liboctave/operators
>> -I../liboctave/operators -I../liboctave/system -I../liboctave/util
>> -I./octave-value -I./operators -Iparse-tree -I./parse-tree -Icorefcn
>> -I./corefcn -I../libgnu -I../libgnu -I/usr/include/freetype2
>> -I/usr/include/freetype2 -isystem /usr/lib/llvm-3.3/include -mieee-fp
>> -Wall -W -Wshadow -Wold-style-cast -Wformat -Wpointer-arith
>> -Wwrite-strings -Wcast-align -Wcast-qual -O2 -pthread -MT
>> corefcn/corefcn_libcorefcn_la-defaults.lo -MD -MP -MF
>> corefcn/.deps/corefcn_libcorefcn_la-defaults.Tpo -c
>> corefcn/defaults.cc  -fPIC -DPIC -o
>> corefcn/.libs/corefcn_libcorefcn_la-defaults.o
>> corefcn/defaults.cc: In function 'octave_value_list
>> FOCTAVE_VERSION(const octave_value_list&, int)':
>> corefcn/defaults.cc:605:14: error: 'OCTAVE_VERSION' was not declared
>> in this scope
>>       retval = OCTAVE_VERSION;
>>                ^
>> make[3]: *** [corefcn/corefcn_libcorefcn_la-defaults.lo] Error 1
>> make[3]: se sale del directorio
>> `/home/topo/Desktop/octave-3.8.0-rc1/libinterp'
>> make[2]: *** [all] Error 2
>> make[2]: se sale del directorio
>> `/home/topo/Desktop/octave-3.8.0-rc1/libinterp'
>> make[1]: *** [all-recursive] Error 1
>> make[1]: se sale del directorio `/home/topo/Desktop/octave-3.8.0-rc1'
>> make: *** [all] Error 2
>>
>> The libinterp/version.h file is apparently well generated (see the
>> attached copy), so I don't know the reason of the error
>
>
> Is it possible that there is some other version.h file that is being
> included instead?
>
> To debug this, I would try the following:
>
>   cd to the libinterp directory of your build tree
>
>   run the command to compile defaults.cc by hand, adding -save-temps:
>
>     g++ -save-temps -DHAVE_CONFIG_H -I. -I.. -I../liboctave/cruft/misc
> -I../liboctave/array -I../liboctave/numeric -I../liboctave/numeric
> -I../liboctave/operators -I../liboctave/operators -I../liboctave/system
> -I../liboctave/util -I./octave-value -I./operators -Iparse-tree
> -I./parse-tree -Icorefcn -I./corefcn -I../libgnu -I../libgnu
> -I/usr/include/freetype2 -I/usr/include/freetype2 -isystem
> /usr/lib/llvm-3.3/include -mieee-fp -Wall -W -Wshadow -Wold-style-cast
> -Wformat -Wpointer-arith -Wwrite-strings -Wcast-align -Wcast-qual -O2
> -pthread -MT corefcn/corefcn_libcorefcn_la-defaults.lo -MD -MP -MF
> corefcn/.deps/corefcn_libcorefcn_la-defaults.Tpo -c corefcn/defaults.cc
> -fPIC -DPIC -o corefcn/.libs/corefcn_libcorefcn_la-defaults.o
>
>   examine the defaults.ii file that this command produces to see what
>   version.h file is included

John, you're right. I have a GotoBLAS installation that contains a
version.h file and the corresponding include/ folder is in my
C_INCLUDE_PATH and CPLUS_INCLUDE_PATH. Deactivating this inclusion,
the Octave compilations works. But th question is, does not include
the Octave makefile the directory of its version.h in the compilation
order via -I in order to prevent the inclusion of others version.h
files?

>
> jwe



-- 
*****************************************
José Luis García Pallero
address@hidden
(o<
/ / \
V_/_
Use Debian GNU/Linux and enjoy!
*****************************************


reply via email to

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