[OpenSmalltalk/opensmalltalk-vm] 195d84: makes squeak.cog.spur compile on OpenBSD 6.0

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

[OpenSmalltalk/opensmalltalk-vm] 195d84: makes squeak.cog.spur compile on OpenBSD 6.0

Eliot Miranda-3
 
  Branch: refs/heads/Cog
  Home:   https://github.com/OpenSmalltalk/opensmalltalk-vm
  Commit: 195d848e927ea2fc5434f94d9b724c73849c62b3
      https://github.com/OpenSmalltalk/opensmalltalk-vm/commit/195d848e927ea2fc5434f94d9b724c73849c62b3
  Author: Gerardo Santana <[hidden email]>
  Date:   2016-10-09 (Sun, 09 Oct 2016)

  Changed paths:
    M build.linux64x64/squeak.cog.spur/build/mvm
    M platforms/Cross/plugins/SqueakFFIPrims/sqFFIPlugin.c
    M platforms/unix/vm/sqUnixMain.c
    M platforms/unix/vm/sqUnixVMProfile.c
    M src/plugins/UnixOSProcessPlugin/UnixOSProcessPlugin.c
    M src/plugins/VMProfileLinuxSupportPlugin/VMProfileLinuxSupportPlugin.c

  Log Message:
  -----------
  makes squeak.cog.spur compile on OpenBSD 6.0


  Commit: e427da4d72804b99b58fb58c5db320111d6cccc7
      https://github.com/OpenSmalltalk/opensmalltalk-vm/commit/e427da4d72804b99b58fb58c5db320111d6cccc7
  Author: Gerardo Santana <[hidden email]>
  Date:   2016-10-09 (Sun, 09 Oct 2016)

  Changed paths:
    M platforms/unix/config/bin.squeak.sh.in
    M platforms/unix/config/squeak.sh.in

  Log Message:
  -----------
  adds OpenBSD support to Squeak's shell script wrapper


  Commit: ab77774ff8eedd7a7de9814ef1961f20bf1fbeab
      https://github.com/OpenSmalltalk/opensmalltalk-vm/commit/ab77774ff8eedd7a7de9814ef1961f20bf1fbeab
  Author: Fabio Niephaus <[hidden email]>
  Date:   2016-10-15 (Sat, 15 Oct 2016)

  Changed paths:
    M build.linux64x64/squeak.cog.spur/build/mvm
    M platforms/Cross/plugins/SqueakFFIPrims/sqFFIPlugin.c
    M platforms/unix/config/bin.squeak.sh.in
    M platforms/unix/config/squeak.sh.in
    M platforms/unix/vm/sqUnixMain.c
    M platforms/unix/vm/sqUnixVMProfile.c
    M src/plugins/UnixOSProcessPlugin/UnixOSProcessPlugin.c
    M src/plugins/VMProfileLinuxSupportPlugin/VMProfileLinuxSupportPlugin.c

  Log Message:
  -----------
  Merge pull request #78 from santana/openbsd2

OpenBSD support


Compare: https://github.com/OpenSmalltalk/opensmalltalk-vm/compare/3c2c39d92cb8...ab77774ff8ee
Reply | Threaded
Open this post in threaded view
|

Re: [OpenSmalltalk/opensmalltalk-vm] 195d84: makes squeak.cog.spur compile on OpenBSD 6.0

Petr Fischer
 
Hello, is there any short tutorial somewhere, how to build spur cog on OpenBSD?

Is it possible with llvm/clang? Or is gcc required? What is the best gcc version for comiling vm? 4, 5, 6?
In mvm build scripts, there is gcc hardcoded :(

I have constant troubles with compiling pharo-vm/oscog on FreeBSD, I need to edit mvm scripts a little, there is linking problems, just overwhelmed...

Thanks! pf

>  

>   Branch: refs/heads/Cog
>   Home:   https://github.com/OpenSmalltalk/opensmalltalk-vm
>   Commit: 195d848e927ea2fc5434f94d9b724c73849c62b3
>       https://github.com/OpenSmalltalk/opensmalltalk-vm/commit/195d848e927ea2fc5434f94d9b724c73849c62b3
>   Author: Gerardo Santana <[hidden email]>
>   Date:   2016-10-09 (Sun, 09 Oct 2016)
>
>   Changed paths:
>     M build.linux64x64/squeak.cog.spur/build/mvm
>     M platforms/Cross/plugins/SqueakFFIPrims/sqFFIPlugin.c
>     M platforms/unix/vm/sqUnixMain.c
>     M platforms/unix/vm/sqUnixVMProfile.c
>     M src/plugins/UnixOSProcessPlugin/UnixOSProcessPlugin.c
>     M src/plugins/VMProfileLinuxSupportPlugin/VMProfileLinuxSupportPlugin.c
>
>   Log Message:
>   -----------
>   makes squeak.cog.spur compile on OpenBSD 6.0
>
>
>   Commit: e427da4d72804b99b58fb58c5db320111d6cccc7
>       https://github.com/OpenSmalltalk/opensmalltalk-vm/commit/e427da4d72804b99b58fb58c5db320111d6cccc7
>   Author: Gerardo Santana <[hidden email]>
>   Date:   2016-10-09 (Sun, 09 Oct 2016)
>
>   Changed paths:
>     M platforms/unix/config/bin.squeak.sh.in
>     M platforms/unix/config/squeak.sh.in
>
>   Log Message:
>   -----------
>   adds OpenBSD support to Squeak's shell script wrapper
>
>
>   Commit: ab77774ff8eedd7a7de9814ef1961f20bf1fbeab
>       https://github.com/OpenSmalltalk/opensmalltalk-vm/commit/ab77774ff8eedd7a7de9814ef1961f20bf1fbeab
>   Author: Fabio Niephaus <[hidden email]>
>   Date:   2016-10-15 (Sat, 15 Oct 2016)
>
>   Changed paths:
>     M build.linux64x64/squeak.cog.spur/build/mvm
>     M platforms/Cross/plugins/SqueakFFIPrims/sqFFIPlugin.c
>     M platforms/unix/config/bin.squeak.sh.in
>     M platforms/unix/config/squeak.sh.in
>     M platforms/unix/vm/sqUnixMain.c
>     M platforms/unix/vm/sqUnixVMProfile.c
>     M src/plugins/UnixOSProcessPlugin/UnixOSProcessPlugin.c
>     M src/plugins/VMProfileLinuxSupportPlugin/VMProfileLinuxSupportPlugin.c
>
>   Log Message:
>   -----------
>   Merge pull request #78 from santana/openbsd2
>
> OpenBSD support
>
>
> Compare: https://github.com/OpenSmalltalk/opensmalltalk-vm/compare/3c2c39d92cb8...ab77774ff8ee

Reply | Threaded
Open this post in threaded view
|

Re: [OpenSmalltalk/opensmalltalk-vm] 195d84: makes squeak.cog.spur compile on OpenBSD 6.0

Holger Freyther
 

> On 24 Feb 2017, at 13:18, Petr Fischer <[hidden email]> wrote:
>
>

Hi!


> Hello, is there any short tutorial somewhere, how to build spur cog on OpenBSD?
>
> Is it possible with llvm/clang? Or is gcc required? What is the best gcc version for comiling vm? 4, 5, 6?
> In mvm build scripts, there is gcc hardcoded :(

you don't have to use mvm. In my FreeBSD10.3 jail "gcc" (4.2.1) was used to compile the VM. When configuring/building just make sure -lexecinfo (in FreeBSD10) and -liconv (port) is in LIBS

 

> I have constant troubles with compiling pharo-vm/oscog on FreeBSD, I need to edit mvm scripts a little, there is linking problems, just overwhelmed...

What do you need and what do you want to run on FreeBSD?

holger
Reply | Threaded
Open this post in threaded view
|

Re: [OpenSmalltalk/opensmalltalk-vm] 195d84: makes squeak.cog.spur compile on OpenBSD 6.0

Ben Coman
In reply to this post by Petr Fischer
 


On Fri, Feb 24, 2017 at 2:18 PM, Petr Fischer <[hidden email]> wrote:
>
> Hello, is there any short tutorial somewhere, how to build spur cog on OpenBSD?
>
> Is it possible with llvm/clang? Or is gcc required? What is the best gcc version for comiling vm? 4, 5, 6?

I only skirt the edges of vm development, so someone may correct me, but I believe LLVM works okay.
http://forum.world.st/status-of-compilation-with-LLVM-3-0-with-Xcode-td4811910.html#a4812760

cheers -ben

> In mvm build scripts, there is gcc hardcoded :(
>
> I have constant troubles with compiling pharo-vm/oscog on FreeBSD, I need to edit mvm scripts a little, there is linking problems, just overwhelmed...
>
> Thanks! pf
>
>>
>
>>   Branch: refs/heads/Cog
>>   Home:   https://github.com/OpenSmalltalk/opensmalltalk-vm
>>   Commit: 195d848e927ea2fc5434f94d9b724c73849c62b3
>>       https://github.com/OpenSmalltalk/opensmalltalk-vm/commit/195d848e927ea2fc5434f94d9b724c73849c62b3
>>   Author: Gerardo Santana <[hidden email]>
>>   Date:   2016-10-09 (Sun, 09 Oct 2016)
>>
>>   Changed paths:
>>     M build.linux64x64/squeak.cog.spur/build/mvm
>>     M platforms/Cross/plugins/SqueakFFIPrims/sqFFIPlugin.c
>>     M platforms/unix/vm/sqUnixMain.c
>>     M platforms/unix/vm/sqUnixVMProfile.c
>>     M src/plugins/UnixOSProcessPlugin/UnixOSProcessPlugin.c
>>     M src/plugins/VMProfileLinuxSupportPlugin/VMProfileLinuxSupportPlugin.c
>>
>>   Log Message:
>>   -----------
>>   makes squeak.cog.spur compile on OpenBSD 6.0
>>
>>
>>   Commit: e427da4d72804b99b58fb58c5db320111d6cccc7
>>       https://github.com/OpenSmalltalk/opensmalltalk-vm/commit/e427da4d72804b99b58fb58c5db320111d6cccc7
>>   Author: Gerardo Santana <[hidden email]>
>>   Date:   2016-10-09 (Sun, 09 Oct 2016)
>>
>>   Changed paths:
>>     M platforms/unix/config/bin.squeak.sh.in
>>     M platforms/unix/config/squeak.sh.in
>>
>>   Log Message:
>>   -----------
>>   adds OpenBSD support to Squeak's shell script wrapper
>>
>>
>>   Commit: ab77774ff8eedd7a7de9814ef1961f20bf1fbeab
>>       https://github.com/OpenSmalltalk/opensmalltalk-vm/commit/ab77774ff8eedd7a7de9814ef1961f20bf1fbeab
>>   Author: Fabio Niephaus <[hidden email]>
>>   Date:   2016-10-15 (Sat, 15 Oct 2016)
>>
>>   Changed paths:
>>     M build.linux64x64/squeak.cog.spur/build/mvm
>>     M platforms/Cross/plugins/SqueakFFIPrims/sqFFIPlugin.c
>>     M platforms/unix/config/bin.squeak.sh.in
>>     M platforms/unix/config/squeak.sh.in
>>     M platforms/unix/vm/sqUnixMain.c
>>     M platforms/unix/vm/sqUnixVMProfile.c
>>     M src/plugins/UnixOSProcessPlugin/UnixOSProcessPlugin.c
>>     M src/plugins/VMProfileLinuxSupportPlugin/VMProfileLinuxSupportPlugin.c
>>
>>   Log Message:
>>   -----------
>>   Merge pull request #78 from santana/openbsd2
>>
>> OpenBSD support
>>
>>
>> Compare: https://github.com/OpenSmalltalk/opensmalltalk-vm/compare/3c2c39d92cb8...ab77774ff8ee
>
Reply | Threaded
Open this post in threaded view
|

Re: [OpenSmalltalk/opensmalltalk-vm] 195d84: makes squeak.cog.spur compile on OpenBSD 6.0

Petr Fischer
In reply to this post by Holger Freyther
 

>
> Hi!
>
>
> > Hello, is there any short tutorial somewhere, how to build spur cog on OpenBSD?
> >
> > Is it possible with llvm/clang? Or is gcc required? What is the best gcc version for comiling vm? 4, 5, 6?
> > In mvm build scripts, there is gcc hardcoded :(
>
> you don't have to use mvm. In my FreeBSD10.3 jail "gcc" (4.2.1) was used to compile the VM. When configuring/building just make sure -lexecinfo (in FreeBSD10) and -liconv (port) is in LIBS

And what about all Pharo plugins - ssl, git, X+SDL/display, ft2 - everything is compiled and linked correctly as dynamic libraries?

>
> > I have constant troubles with compiling pharo-vm/oscog on FreeBSD, I need to edit mvm scripts a little, there is linking problems, just overwhelmed...
>
> What do you need and what do you want to run on FreeBSD?

I have some production servers on FreeBSD (baremetal or VPS), using ZFS intensively, also I am deploying sub-app-services separated in jails and sometimes I am virtualizing CentOS instances with bhyve. Everything is easy, compact, robust and secure - straightforward, pleasure to use as a server core for my services. I migrated out of Linux world, a dot (no flame).

I also created one web app (so far) for customer with Pharo+Seaside+REST+nginx recently (pleasure to develop in Pharo and future is bright!). I am running it with linux compatibility layer on FreeBSD (even 64bits) now and it works (as root, no way in jails for now), but this is insecure and not ideal, native (and jailed) will be just perfect.

I also plan to develop more apps (web apps, "agendas", maybe some backends with REST etc etc) for potential customers and I just need to fine tune this killer combo (BSD+Smalltalk).

That's it.

>
> holger
Reply | Threaded
Open this post in threaded view
|

Re: [OpenSmalltalk/opensmalltalk-vm] 195d84: makes squeak.cog.spur compile on OpenBSD 6.0

Eliot Miranda-2
 
Hi Petr,

On Fri, Feb 24, 2017 at 7:26 AM, Petr Fischer <[hidden email]> wrote:

>
> Hi!
>
>
> > Hello, is there any short tutorial somewhere, how to build spur cog on OpenBSD?
> >
> > Is it possible with llvm/clang? Or is gcc required? What is the best gcc version for comiling vm? 4, 5, 6?
> > In mvm build scripts, there is gcc hardcoded :(
>
> you don't have to use mvm. In my FreeBSD10.3 jail "gcc" (4.2.1) was used to compile the VM. When configuring/building just make sure -lexecinfo (in FreeBSD10) and -liconv (port) is in LIBS

And what about all Pharo plugins - ssl, git, X+SDL/display, ft2 - everything is compiled and linked correctly as dynamic libraries?

>
> > I have constant troubles with compiling pharo-vm/oscog on FreeBSD, I need to edit mvm scripts a little, there is linking problems, just overwhelmed...
>
> What do you need and what do you want to run on FreeBSD?

I have some production servers on FreeBSD (baremetal or VPS), using ZFS intensively, also I am deploying sub-app-services separated in jails and sometimes I am virtualizing CentOS instances with bhyve. Everything is easy, compact, robust and secure - straightforward, pleasure to use as a server core for my services. I migrated out of Linux world, a dot (no flame).

I also created one web app (so far) for customer with Pharo+Seaside+REST+nginx recently (pleasure to develop in Pharo and future is bright!). I am running it with linux compatibility layer on FreeBSD (even 64bits) now and it works (as root, no way in jails for now), but this is insecure and not ideal, native (and jailed) will be just perfect.

I also plan to develop more apps (web apps, "agendas", maybe some backends with REST etc etc) for potential customers and I just need to fine tune this killer combo (BSD+Smalltalk).

That sounds great.  May I suggest you add build.freebsd32x86 and build.freebsd64x64 along with suitable HowToBuilds?

_,,,^..^,,,_
best, Eliot