[Vm-dev] latest sources removal platforms/unix/vm/sunos.h

Eliot Miranda eliot.miranda at gmail.com
Sat Nov 7 19:32:25 UTC 2020


Hi David,

On Fri, Nov 6, 2020 at 11:18 PM stes at PANDORA.BE <stes at telenet.be> wrote:

>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
>
>
> Hello,
>
> After removal of the sunos.h header file in
>
>  platforms/unix/vm/sunos.h
>
> this old file is gone now after some cleanup, it seems the Cog VM and
> Stack VM
> still compile fine on Solaris 11.3.
>
> I did not test yet on Solaris 11.4, but on Solaris 11.3 at least, it works.
>
> The 64bit Cog VM and Stack VM compile fine (even after removal of sunos.h),
> and they work.
>
> HOWEVER ...  the 32bit version seems to compile fine but there's a new
> problem:
>
> $ sqcogspursunosht/usr/bin/squeak Squeak6.0alpha-19843-32bit.image
> sqImageFileSeek lseek: Invalid argument
>
> also with the Stack VM in 32bit:
>
> $ sqstkspursunosht/usr/bin/squeak Squeak6.0alpha-19843-32bit.image
> sqImageFileSeek lseek: Invalid argument
>
> The ckformat tool reports :
>
> $ ckformat Squeak6.0alpha-19843-32bit.image
> 6521
>
>
> What can be the reason / cause for this new "lseek Invalid argument" ?
>

So the question is how 32-bit sunos does 64-bit file offsets.  Linux &
MacOS use offset_t and this is a 64-bit type in both 64 and 32 bits with
the relevant defines.  Here's a stackoverflow answer
<https://stackoverflow.com/questions/4357570/use-file-offset64-vs-file-offset-bits-64>
that should help you find what sunos 32-bits requires.  That can either be
added to the mvm script (ideal) or shoe-horned into sqPlatformSpecific.h.

HTH

So this problem does NOT happen on 64 bit.
>
> For example with
>
> $ ckformat Squeak5.3-19431-64bit.image
> 68021
>
> the 64bit VM opens this image 68021 format just fine.
>
> Regards,
> David Stes
>

_,,,^..^,,,_
best, Eliot
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20201107/8010e209/attachment-0001.html>


More information about the Vm-dev mailing list