Building Ubuntu x64 vm; did I drop a clang-er?

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

Building Ubuntu x64 vm; did I drop a clang-er?

timrowledge
 
For reasons, I tried compiling a Ubuntu cog/spur/x64 vm yesterday. It hasn't been very successful thus far.

First problem was that it simply wouldn't compile *anything* according to the config log. The system has the usual gcc stuff, so I was a bit surprised. It appeared to want 'clang' which I've never needed to take note of before; so I installed it - what could go wrong, eh? Is this an expected thing? Is it just another infuriating bit of Ubuntuism?

After that it did a build but we seem to be suffering two somewhat familiar problems;

 - our old friend
"/usr/include/glib-2.0/glib/gtypes.h:32:10: fatal error: 'glibconfig.h' file not found"
appeared and again it is the architecture specific path in platforms/unix/plugins/UnicodePlugin/acinclude.m4 not being there. I have now tried manually adding the extra include path "/usr/lib/x86_64-linux-gnu/glib2.0/include" to the acinclude.m4 and even the Makefile.inc and it *still* doesn't appear in the cmdline used to make the plugin test - so no plugin is made. I'd swear that was enough when building it for AARM64 a few months ago? Damned autoconf...

- the rtprio stuff, yet again. One can add the squeak.conf file do the reboot and ... no change. If I actually run the vm with sudo there are no complaints but that isn't really very practical. Annoyingly this seems to be sometihng that is not 'reliable' - a colleague with the same version of Ubuntu installed simply changed the permissions to 755 (which I've tried too) and it was fine.


tim
--
tim Rowledge; [hidden email]; http://www.rowledge.org/tim
Cashtration (n.): The act of buying a house, which renders the subject financially impotent for an indefinite period.


Reply | Threaded
Open this post in threaded view
|

Re: Building Ubuntu x64 vm; did I drop a clang-er?

stes
 
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256


The message that the OpenSmalltalk VM emits when it cannot pthread_setsched(),
has multiple solutions depending on the setup.

According to https://packages.ubuntu.com/groovy/util-linux
the package util-linux for ubuntu has a command /usr/bin/prlimit

A method which you could try:

        prlimit --rtprio=99 --pid=<pid of shell in which you will run squeak>

So you could try to raise/change the rtprio using prlimit.

Perhaps even the prlimit method is not working for you,
but it is something that you could try to troubleshoot the issue.

If the prlimit method is not working , there may be some other software
that disallows changing the rtprio.

David Stes

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJgZsRTAAoJEAwpOKXMq1ManScH/2yFAx+fzDVYlHXLjWgDprYo
mSYQfWs5aZ+FFoPmmdMzZivOZNoY/I6r9iR4FExqwi70puSGnDdRuacQBRPoabW7
mrT5Y9+zaFjFgMIJXHjd0TkUTpzBP3P7xFs6C+dakpXOHimFutDDvoa+RzKCGY1c
5XhE0CXur8FRK8PUJKXa97xYBhR+50bJ4fZkVEP6IHsnJzI1vIzZGzTX62SOsfm+
w18B0sTOgvTJmfcUPUrUK3HorpvMrwXZ89usI/x0Gghbc5XQFmEUb1/dcW9/fMiD
5gc2p6H9eUXexfQp6CoxGagcUW+nsuHNj6hDOXfQ1FV+/uIwnhR93mqCE16nWvc=
=6IMJ
-----END PGP SIGNATURE-----
Reply | Threaded
Open this post in threaded view
|

Re: Building Ubuntu x64 vm; did I drop a clang-er?

timrowledge
 


> On 2021-04-02, at 12:15 AM, [hidden email] <[hidden email]> wrote:
> The message that the OpenSmalltalk VM emits when it cannot pthread_setsched(),
> has multiple solutions depending on the setup.
>

That's what I was afraid of; yet more complication in making a system decently portable.

> According to https://packages.ubuntu.com/groovy/util-linux
> the package util-linux for ubuntu has a command /usr/bin/prlimit
>
> A method which you could try:
>
> prlimit --rtprio=99 --pid=<pid of shell in which you will run squeak>

OK, so my Ubuntu does have that command installed, so a good start, thanks.
I have no idea how one might find that pid and use it within any of the shell scripts etc we have. Fire up the Bash Signal! (Obviously this is the unix equivalent of the Windows(™) Bat Signal, which gets Batman to help with your .bat files)

tim
--
tim Rowledge; [hidden email]; http://www.rowledge.org/tim
All programmers are playwrights and all computers are lousy actors.


Reply | Threaded
Open this post in threaded view
|

Re: Building Ubuntu x64 vm; did I drop a clang-er?

stes
In reply to this post by stes
 
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256


Hi Tim,

I'm following the OpenSmalltalk VM efforts with interest and hopefully the
following contributes something.

On Linux systems that have 'prlimit' one can do:

$ prlimit --rtprio
RESOURCE DESCRIPTION            SOFT HARD UNITS
RTPRIO   max real-time priority    0    0

$ sudo prlimit --rtprio=99 --pid=$$

Assuming that the user is in the sudoers file (see visudo) possibly the above,
results in the following change:

$ prlimit --rtprio
RESOURCE DESCRIPTION            SOFT HARD UNITS
RTPRIO   max real-time priority   99   99

My impression is that the pthread_setschedparam() issue has multiple solutions.

In the case of your Ubuntu system, what is the output of "prlimit --rtprio" ?

You can also just run "prlimit" without arguments to see the RTPRIO values.

The above is not necessarily an alternative to the squeak.conf file

  /etc/security/limits.d/squeak.conf

may be the "right" file for you to use, but perhaps you can troubleshoot with
'prlimit' why it's not working.

On my system (not Linux but using PAM) one of the possibilities is

 /etc/security/policy.conf

so there exist variations out there on the /etc/security/limit.d directory.

Regards,
David Stes

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJgasX3AAoJEAwpOKXMq1Ma24IH/2QeX9MUml/juXxpijKdyaxy
d8k6GMPMLHFbFdoodd1wLJqiy+1Dx9Bj/aP8Lx4wTZG/B7IpkbferlM10E/7HXxO
yzYYDf89tydFdDqHhfx9tTvjAqKl1lkmSJl2g/XD6QDgqQW7jrSNWlr7G6IW7njb
r+xLvyOIWMbs97A0Rya+ju9uHLaTdQx5NPx8Ctz+JHPeEGVShjqrz2q9fmrkMl9y
cS+ru4Fu+KSXR/c7pVeGfqv2QrM9BucXI5CBJULADlaTUwY6B5hSjMgSMWSJ7DbC
qRe2PGbkrTZr7Cj4wHhu1ly1jY5KHcEUZqeEYauaZpiqtegiz54PAMOFgQxFRSo=
=IdQf
-----END PGP SIGNATURE-----