[Monetdb-developers] Compiling on Darwin 7

Ying Zhang Y.Zhang at cwi.nl
Mon Jan 21 16:59:12 CET 2008


On Jan 21, 2008, at 15:49 , Stefan Manegold wrote:

> On Mon, Jan 21, 2008 at 01:27:51PM +0100, Ying Zhang wrote:
>> Ok, the problem was caused by the options "--enable-bits=32 --enable-
>> oid32" I pass to configure.
>
> (1) Thanks for finding out!
>
> (2) Mentioning in the first place that you ran configure with
>    "--enable-bits=32 --enable-oid32" might have triggered some  
> immediate
>    answer that this does not make any sense at all...
>    ... actually, your first emaili only mentions "--enable-oid32" ---
>    hence, does the problem occur also with --enable-oid32, only,  
> (but) on a
>    system, where 32-bit compilation is default, or only in case you
>    explicitly request both "--enable-bits=32 --enable-oid32"?

1. the errors occurred when both "--enable-bits=32" and "--enable- 
oid32" were passed (yes, it doesn't make sense, but I thought it  
should be harmless).

2. however, I have noticed that the problem was actually ONLY caused  
by "--enable-oid32".  If this option is removed, the error is gone.

3. I now have removed both options and no errors.



>    As usually, questions/bug reports can be analyzed and handled  
> much more
>    efficiently, in cae all the relevant info is given; and for  
> compilation
>    problems, configure options are important.

I was just not sure if it's a bug, and found this old mail about  
compiling on darwin.

I will post a bug report on the use of --enable-oid32.

> (3) Indeed, even though it does not make sense, we should not crash on
>    "--enable-bits=32 --enable-oid32", but either (preferred) handle it
>    correctly (e.g., by ignoring the latter in case the former holds
>    (regardless of whether requested explicitly or simply by being the
>    default)), or (at the very least) stop with a proper message  
> saying that
>    it is not required to specify the redundant information.

I would prefer to give a message that the redundant "--enable-oid32"  
has been discarded and continue.

Jennie



> Stefan
>
>> On Jan 20, 2008, at 23:07 , Ying Zhang wrote:
>>
>>> Hi, I found this old e-mail, but there seems no further reaction.
>>> Has someone ever found a solution for this issue?
>>>
>>> I'm compiling monet on my mac notebook and have similar problem.
>>> Compile dev. branch results in:
>>>
>>> cc1: warnings being treated as errors
>>> /Users/jennie/monet/dev/MonetDB/src/gdk/gdk_align.mx: In function
>>> 'VIEWreset':
>>> /Users/jennie/monet/dev/MonetDB/src/gdk/gdk_align.mx:623: warning:
>>> format '%zu' expects type 'size_t', but argument 5 has type 'BUN'
>>> /Users/jennie/monet/dev/MonetDB/src/gdk/gdk_align.mx:623: warning:
>>> format '%zu' expects type 'size_t', but argument 6 has type 'BUN'
>>> /Users/jennie/monet/dev/MonetDB/src/gdk/gdk_align.mx:623: warning:
>>> format '%zu' expects type 'size_t', but argument 7 has type 'BUN'
>>>
>>> Compiling stable branch results in:
>>>
>>> cc1: warnings being treated as errors
>>> /Users/jennie/monet/stable/pathfinder/runtime/xrpc_server.mx: In
>>> function 'getCallValues':
>>> /Users/jennie/monet/stable/pathfinder/runtime/xrpc_server.mx:944:
>>> warning: format '%zu' expects type 'size_t', but argument 6 has type
>>> 'oid'
>>> /Users/jennie/monet/stable/pathfinder/runtime/xrpc_server.mx:999:
>>> warning: format '%zu' expects type 'size_t', but argument 6 has type
>>> 'oid'
>>>
>>> System info:
>>>
>>> $ uname -a
>>> Darwin leopard.mshome.net 9.1.0 Darwin Kernel Version 9.1.0: Wed Oct
>>> 31 17:46:22 PDT 2007; root:xnu-1228.0.2~1/RELEASE_I386 i386
>>>
>>> Configure options:
>>>
>>> --enable-debug --enable-assert --disable-optimize --enable-oid32 --
>>> enable-strict
>>>
>>>
>>> Regards,
>>> Jennie
>>>
>>> On Nov 10, 2006, at 14:54 , Niels Nes wrote:
>>>
>>>> On Fri, Nov 10, 2006 at 02:44:30PM +0100, Fabian Groffen wrote:
>>>>> Is there anyone that can think of a solution for this problem?
>>>>>
>>>>> cc1: warnings being treated as errors
>>>>> /Volumes/Scratch/monetdb/stable/monetdb/src/modules/plain/bat.mx:
>>>>> In function 'local_itoa':
>>>>> /Volumes/Scratch/monetdb/stable/monetdb/src/modules/plain/bat.mx:
>>>>> 1253: warning: format '%zd' expects type 'signed size_t', but
>>>>> argument 4 has type 'ssize_t'
>>>>>
>>>>>
>>>>> I mean... is there a difference between "signed size_t" and
>>>>> "ssize_t"?
>>>>> Ehrm.
>>>>>
>>>>> [Orion:src/modules/plain] fabian% uname -a
>>>>> Darwin Orion.local 7.9.0 Darwin Kernel Version 7.9.0: Wed Mar 30
>>>>> 20:11:17 PST 2005; root:xnu/xnu-517.12.7.obj~1/RELEASE_PPC  Power
>>>>> Macintosh powerpc PowerBook4,3 Darwin
>>>>> [Orion:src/modules/plain] fabian% gcc --version
>>>>> gcc (GCC) 4.0.1 (Apple Computer, Inc. build 5341)
>>>>> Copyright (C) 2005 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.
>>>>>
>>>>>
>>>>> Probably just need to compile without -Werror.
>>>> this is the same problem with the ifdefs in monet_utils.mx as
>>>> earlier this
>>>> week. I'm sure its gcc/apple problem. Could you find out te  
>>>> required
>>>> formats for ssize_t and size_t, ie %d and %u?
>>>>
>>>> Niels
>>>>>
>>>>> -------------------------------------------------------------------------
>>>>> Using Tomcat but need to do more? Need to support web services,
>>>>> security?
>>>>> Get stuff done quickly with pre-integrated technology to make your
>>>>> job easier
>>>>> Download IBM WebSphere Application Server v.1.0.1 based on Apache
>>>>> Geronimo
>>>>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>>>>> _______________________________________________
>>>>> Monetdb-developers mailing list
>>>>> Monetdb-developers at lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/monetdb-developers
>>>>
>>>> -- 
>>>>
>>>> Niels Nes, Centre for Mathematics and Computer Science (CWI)
>>>> Kruislaan 413, 1098 SJ Amsterdam, The Netherlands
>>>> room C0.02,  phone ++31 20 592-4098, fax ++31 20 592-4312
>>>> url: http://www.cwi.nl/~niels   e-mail: Niels.Nes at cwi.nl
>>>>
>>>> -------------------------------------------------------------------------
>>>> Using Tomcat but need to do more? Need to support web services,
>>>> security?
>>>> Get stuff done quickly with pre-integrated technology to make your
>>>> job easier
>>>> Download IBM WebSphere Application Server v.1.0.1 based on Apache
>>>> Geronimo
>>>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>>>> _______________________________________________
>>>> Monetdb-developers mailing list
>>>> Monetdb-developers at lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/monetdb-developers
>>>
>>>
>>> -------------------------------------------------------------------------
>>> This SF.net email is sponsored by: Microsoft
>>> Defy all challenges. Microsoft(R) Visual Studio 2008.
>>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>>> _______________________________________________
>>> Monetdb-developers mailing list
>>> Monetdb-developers at lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/monetdb-developers
>>
>>
>> -------------------------------------------------------------------------
>> This SF.net email is sponsored by: Microsoft
>> Defy all challenges. Microsoft(R) Visual Studio 2008.
>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>> _______________________________________________
>> Monetdb-developers mailing list
>> Monetdb-developers at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/monetdb-developers
>>
>
> -- 
> | Dr. Stefan Manegold | mailto:Stefan.Manegold at cwi.nl |
> | CWI,  P.O.Box 94079 | http://www.cwi.nl/~manegold/  |
> | 1090 GB Amsterdam   | Tel.: +31 (20) 592-4212       |
> | The Netherlands     | Fax : +31 (20) 592-4312       |





More information about the developers-list mailing list