"Steve Folta" <
st...@folta.net> writes:
> I tried to reply to the list, but it wouldn't accept it. Here's what I said:
>
> ---------- Forwarded message ----------
> From: Steve Folta <
st...@folta.net>
> Date: Sat, Dec 13, 2008 at 12:01 AM
> Subject: Re: Welcome to the next generation of the Slate programming language
> To:
slate-l...@googlegroups.com
>
>
> On Fri, Dec 12, 2008 at 8:05 PM, Timmy Douglas <
goo...@timmy.tmbx.com> wrote:
>> You shouldn't be getting warnings about printf statements because %ld
>> should be signed like word_t. I would like to see those warnings
>> you're getting if that's the case.
>
> There were lots of them, here are just a few examples:
> vm.c:595: warning: format '%ld' expects type 'long int', but argument
> 2 has type 'word_t'
> vm.c:603: warning: format '%lX' expects type 'long unsigned int', but
> argument 3 has type 'word_t'
> vm.c:6800: warning: format '%lu' expects type 'long unsigned int', but
> argument 3 has type 'size_t'
>
> Like I said, changing the signedness of word_t didn't make any
> difference. If I'm interpreting /usr/include/stdint.h correctly,
> intptr_t is "int" on my system, not "long int", so I guess that's why
> it's complaining (even though "int" and "long" are both 32 bits wide).
> GCC 4.1.2, Gentoo.
Yeah, it's defined as long int here, so I guess someone else has
already figured out this for us. I just pushed a change which should
fix this for you. Tell me if I missed any.
>>> I also had to comment out the "ARCH=-m64" line in the Makefile. Why
>>> is that even needed? Wouldn't "-m64" be used implicitly in a 64-bit
>>> environment?
>>
>> I originally had it like that but it seems that it isn't implicit (or
>> implicitly the right setting?) on Brian's mac so I put it in like
>> that.
>
> If it can't be fixed, you had better mention it in README. "make
> ARCH=-m32" works. But I just tried it on Mac (10.5.5) and it worked
> fine without "-m64" -- but I did use the 32-bit kernel. I would
> suggest not defining $(ARCH) by default, and letting people with
> special situations define it from the command line... but it looks
> like you just checked in something like that.
hopefully those changes work out, I spent all night trying to get
libtool and the parts I took from the old slate makefile to work.