Re: Building on linux

prunedtree <[email protected]> Fri, 11 May 2007 09:56:42 -0000
Newsgroups gmane.comp.lang.smalltalk.strongtalk
Message-ID <[email protected]>


On May 11, 8:34 am, Richard <[email protected]> wrote:
> Hi,
>
> I downloaded these sources and started trying to build them with
> Eclipse CDT and GCC 4.1 on Debian-Etch- AMD64. There was no makefile
> that I could find so I made one that includes all the directories and
> all the sources and has directives you listed as well the defines from
> the VisualC project files.

That's right. Note that you can't get a running binary "as is" because
there's no linux-specific code yet.

> So now g++ is complaining about:
>
> dll.hpp:51          int tag() const { return maskBits(int(this),
> Tag_Mask); }
>
> g++ says this expression is lossing precision. I did a quick check,
> sizeof(int)=4, but sizeof(void *)=8. How widespread do you think the
> assumption in this code that pointers are 4 bytes is? Have I any hope
> of making this 64-bit clean?

None. Too much code is dependent on the ISA, like all the assembly
code and the compiler.
You should run in 32-bit mode on x86-64 cpus.

>
> Something less important that I don't understand is what is going on
> with the deps directory and the x.cpp.incl files? Is there some tool
> which is automagically detecting which includes each cpp file needs?

no, the tool uses a dependency database (look at includeDB &
includeDB2)

> There's a capitalization problem with eventlog.hpp (it is sometimes
> listed as eventLog.hpp which is no good for unix systems).

I think david changed things related to eventLog in r45, but my
changes are based on r36.
It looks like the correct capitalization is eventLog.

cheers,
prunedtree

>
> regards,
>
> Richard.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Strongtalk-general" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/strongtalk-general?hl=en
-~----------~----~----~----~------~----~------~--~---