[Monetdb-developers] Error compiling MEL w/ flex 2.5.33 & bison 2.3

Riham r.abdelkader at ewi.utwente.nl
Tue Oct 3 11:50:36 CEST 2006


Hi Stefan,

I had to install openSUSE 10.2 *Alpha4* since I have a new hardware and 
only this version of Suse has the driver to support it.

gcc --version =>
gcc (GCC) 4.1.2 20060829 (prerelease) (SUSE Linux)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


This is what I found in /usr/include/time.h:
==================================================================
#ifdef  _TIME_H
/* Get size_t and NULL from <stddef.h>.  */
# define __need_size_t
# define __need_NULL
# include <stddef.h>

/* This defines CLOCKS_PER_SEC, which is the number of processor clock
   ticks per second.  */
# include <bits/time.h>

/* This is the obsolete POSIX.1-1988 name for the same constant.  */
# if !defined __STRICT_ANSI__ && !defined __USE_XOPEN2K
#  ifndef CLK_TCK
#   define CLK_TCK      CLOCKS_PER_SEC
#  endif
# endif

#endif /* <time.h> included.  */
==================================================================


I might degrade the system to Suse10.0 if things do not work out.

Best Regards,
Riham

Stefan Manegold wrote:
> Hi Riham,
>
> (yes, I got your message ;-))
>
> I'm still puzzled --- all I can see from your logs so far is that your system
> (actually a AFAIK not yet officially release "openSUSE 10.2 (i586) Alpha4")
> does lack some tools to compile all parts of MonetDB (e.g., there is a ava
> runtime, but neither a java compiler (javac) nor a jar; further, there is no
> swig, no texi2html and no latex) --- still, compiling the "crucial" parts of
> MonetDB should be possible.
>
> However, I cannot find any hit in your logs that seem to be related to the
> compilation problem (undefined CLK_TCK in src/modules/plain/sys.mx
> that you get.
>
> But as Fabian already pointed out, you're using quite a bleeding edge system
> with autmake 1.9.6, autoconf 2.60, libtool 1.5.22, bison 2.3, flex 2.5.33;
> execpt from flex, we only have experiences with older version of the
> respective tools --- hence, the problem(s) might be caused by any of them
> (or their particular combination)
>
> Btw, what does `gcc --version` say?
>
> I have one final(?) question before I'm afraid I have to give up hoping to
> solve this remotely:
>
> Could you please check whether CLK_TCK is defined in /usr/include/time.h and
> if so, under which conditions/circumstances?
>
> Apart from that, I'm wondering why you're using the openSUSE 10.2 *Alpha4*
> distribution, which still under heavy development, and not the officially release
> and (supposed to be) stable SuSE Linux 10.1 ... ???
>
> Trying to support MonetDB (or any software at all) on an OS distribution
> that is still in Alpha stage seems to me like fighting agains windmills ...
> (in other words, I expect more problems, even if we manage to solve the
> CLK_TCK issue...)
>
> Kind regards,
>
> Stefan
>
>
> On Tue, Oct 03, 2006 at 09:58:17AM +0200, Riham wrote:
>   
>> Hi Stefan,
>>
>> I have attached two files: one containing the console output and the 
>> other is the config.log. I hope this will help in finding the problem.
>>
>> Maurice and I are certainly willing to pay you a visit but still have 
>> not decided on the date for it. If this does not work remotely it could 
>> be a reason to plan a visit soon.
>>
>> Good Luck,
>> Riham
>>
>>
>> Stefan Manegold wrote:
>>     
>>> Hi Riham, 
>>>
>>>       
> [...]
>   
>>> Apparently, /usr/include/time.h does not define CLK_TCK ... ?
>>>       
> [...]
>   
>>> On Mon, Oct 02, 2006 at 06:20:28PM +0200, Riham wrote:
>>>  
>>>       
>>>> HI Stefan,
>>>>
>>>> You are right, I totally forgot I had to do this. Now I'm getting this 
>>>> error when I execute make for monetdb:
>>>>
>>>> ================================================================
>>>> kader at wlan139064:~/home/MonetDB_XQuery_CVS/build/MonetDB> make
>>>> [..........]
>>>> make[6]: Entering directory 
>>>> `/local/kader/home/MonetDB_XQuery_CVS/build/MonetDB/src/modules/plain'
>>>> make  all-am
>>>> make[7]: Entering directory 
>>>> `/local/kader/home/MonetDB_XQuery_CVS/build/MonetDB/src/modules/plain'
>>>> /bin/sh ../../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. 
>>>> -I../../../../../src/MonetDB/src/modules/plain -I../../.. 
>>>> -I../../../../../src/MonetDB/src/modules/plain -I../../common 
>>>> -I../../../../../src/MonetDB/src/modules/plain/../../common -I../../gdk 
>>>> -I../../../../../src/MonetDB/src/modules/plain/../../gdk -I../../monet 
>>>> -I../../../../../src/MonetDB/src/modules/plain/../../monet         
>>>> -DLIBSYS  -g -O2 -std=c99 -Wall -W -Werror-implicit-function-declaration 
>>>> -Werror -Wno-unused-function -Wno-unused-label  -D_REENTRANT -c -o 
>>>> lib_sys_la-sys.lo `test -f 'sys.c' || echo 
>>>> '../../../../../src/MonetDB/src/modules/plain/'`sys.c
>>>> gcc -DHAVE_CONFIG_H -I. -I../../../../../src/MonetDB/src/modules/plain 
>>>> -I../../.. -I../../../../../src/MonetDB/src/modules/plain -I../../common 
>>>> -I../../../../../src/MonetDB/src/modules/plain/../../common -I../../gdk 
>>>> -I../../../../../src/MonetDB/src/modules/plain/../../gdk -I../../monet 
>>>> -I../../../../../src/MonetDB/src/modules/plain/../../monet -DLIBSYS -g 
>>>> -O2 -std=c99 -Wall -W -Werror-implicit-function-declaration -Werror 
>>>> -Wno-unused-function -Wno-unused-label -D_REENTRANT -c sys.c  -fPIC 
>>>> -DPIC -o .libs/lib_sys_la-sys.o
>>>> ../../../../../src/MonetDB/src/modules/plain/sys.mx: In function 
>>>> 'view_gdk_cpu':
>>>> ../../../../../src/MonetDB/src/modules/plain/sys.mx:1337: error: 
>>>> 'CLK_TCK' undeclared (first use in this function)
>>>> ../../../../../src/MonetDB/src/modules/plain/sys.mx:1337: error: (Each 
>>>> undeclared identifier is reported only once
>>>> ../../../../../src/MonetDB/src/modules/plain/sys.mx:1337: error: for 
>>>> each function it appears in.)
>>>> make[7]: *** [lib_sys_la-sys.lo] Error 1
>>>> make[7]: Leaving directory 
>>>> `/local/kader/home/MonetDB_XQuery_CVS/build/MonetDB/src/modules/plain'
>>>> make[6]: *** [all] Error 2
>>>> make[6]: Leaving directory 
>>>> `/local/kader/home/MonetDB_XQuery_CVS/build/MonetDB/src/modules/plain'
>>>> make[5]: *** [all-recursive] Error 1
>>>> make[5]: Leaving directory 
>>>> `/local/kader/home/MonetDB_XQuery_CVS/build/MonetDB/src/modules'
>>>> make[4]: *** [all] Error 2
>>>> make[4]: Leaving directory 
>>>> `/local/kader/home/MonetDB_XQuery_CVS/build/MonetDB/src/modules'
>>>> make[3]: *** [all-recursive] Error 1
>>>> make[3]: Leaving directory 
>>>> `/local/kader/home/MonetDB_XQuery_CVS/build/MonetDB/src'
>>>> make[2]: *** [all] Error 2
>>>> make[2]: Leaving directory 
>>>> `/local/kader/home/MonetDB_XQuery_CVS/build/MonetDB/src'
>>>> make[1]: *** [all-recursive] Error 1
>>>> make[1]: Leaving directory 
>>>> `/local/kader/home/MonetDB_XQuery_CVS/build/MonetDB'
>>>> make: *** [all] Error 2
>>>> =================================================================================
>>>>
>>>> Any Idea?
>>>>
>>>> Thanks again.
>>>> Riham
>>>>         
>
>   




More information about the developers-list mailing list