Throttling issue with trunk version

78 views
Skip to first unread message

Cristian Arezzini

unread,
May 13, 2021, 4:55:26 AM5/13/21
to PiDP-8

After successfully setting up the new 20210214 version, I switched to the trunk version... I followed the instructions here .

But then, when trying to throttle down the simulation to 1K (to have a better blinkenlichten effect with the Fourier demo program), I got the following error:


sim> set throttle 1k
sim> c
PiDP-8/I initial throttle = 1000 IPS
*********** WARNING ***********                                                                                                       
Host CPU is too slow to simulate 1,000 instructions per second                                                Host CPU can only simulate 1,955,820 instructions per second
Throttling disabled. 


I checked the logs, and there were a few warnings and errors while compiling trunk:

src/pidp8i/gpio-common.c: In function ‘gpio_thread’:
src/pidp8i/gpio-common.c:652:9: warning: missing terminating " character
        "PiDP-8/I trunk:id[f02ebe72df]
        ^
src/pidp8i/gpio-common.c:652:9: error: missing terminating " character
        "PiDP-8/I trunk:id[f02ebe72df]
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/pidp8i/gpio-common.c:653:1: error: perl’ undeclared (first use in this function)
perl: warning: Setting locale failed.
^~~~
src/pidp8i/gpio-common.c:653:1: note: each undeclared identifier is reported only once for each function it appears in
src/pidp8i/gpio-common.c:653:5: error: expected ‘)’ before ‘:’ token
perl: warning: Setting locale failed.
    ^
    )
src/pidp8i/gpio-common.c:668:95: warning: missing terminating " character
perl: warning: Falling back to a fallback locale ("en_GB.UTF-8"). [%s] [%cls] [%spcb] [%sgpio]"
                                                                                              ^
src/pidp8i/gpio-common.c:668:95: error: missing terminating " character
make: *** [adrules.mk:41: obj/pidp8i/gpio-common.o] Error 1
make: *** Waiting for unfinished jobs....


Of course it was working before updating.
I then tried switching back to "release", recompiled and all... and now I get the same error. No throttling allowed, even after a reboot. I checked, and there were almost the same errors while compiling, with the obvious differences (like the version names and such).

Should I try completely removing and reinstalling pidp8i?

Cristian

Warren Young

unread,
May 13, 2021, 5:10:03 AM5/13/21
to PiDP-8
On Thursday, May 13, 2021 at 2:55:26 AM UTC-6 macav...@gmail.com wrote:
sim> set throttle 1k
sim> c
PiDP-8/I initial throttle = 1000 IPS
*********** WARNING ***********                                                                                                       
Host CPU is too slow to simulate 1,000 instructions per second                                                Host CPU can only simulate 1,955,820 instructions per second
Throttling disabled. 

What happens if you set it via "./configure --throttle=1k" and then do a "sudo make mediainstall" to set the new throttle into the installed *.script files?

src/pidp8i/gpio-common.c:652:9: error: missing terminating " character
        "PiDP-8/I trunk:id[f02ebe72df]
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/pidp8i/gpio-common.c:653:1: error: perl’ undeclared (first use in this function)
perl: warning: Setting locale failed.

That means you didn't go through the entire Localization (?) option set in raspi-config. That, or you didn't log out and back in after changing the locale.

Do that, then force a complete rebuild with:

make clean
make reconfig
tools/mmake
 
I then tried switching back to "release", recompiled and all... and now I get the same error.

Of course: the difference between trunk and release currently doesn't touch src/pidp8i/gpio-common.c.in, so switching branches won't force a regeneration of src/pidp8i/gpio-common.c, which is broken due to the locale issue.
 
No throttling allowed, even after a reboot.

This is an entirely separate issue from the GPIO module build failure.

If there's anything related to your problems, it's due to the single change between trunk and release, being incorporation of recent SIMH changes since the release point. It's possible they broke the clock/timer handling which causes extremely low IPS rates to fail.
 
Should I try completely removing and reinstalling pidp8i?
 
My method above should suffice.

Cristian Arezzini

unread,
May 13, 2021, 1:41:01 PM5/13/21
to PiDP-8
Il giorno giovedì 13 maggio 2021 alle 11:10:03 UTC+2 tange...@gmail.com ha scritto:
On Thursday, May 13, 2021 at 2:55:26 AM UTC-6 macav...@gmail.com wrote:
sim> set throttle 1k
sim> c
PiDP-8/I initial throttle = 1000 IPS
*********** WARNING ***********                                                                                                       
Host CPU is too slow to simulate 1,000 instructions per second                                                Host CPU can only simulate 1,955,820 instructions per second
Throttling disabled. 

What happens if you set it via "./configure --throttle=1k" and then do a "sudo make mediainstall" to set the new throttle into the installed *.script files?

Now it works. It starts at 1000IPS, and I can increase it at decrease it again in the usual way.
 

src/pidp8i/gpio-common.c:652:9: error: missing terminating " character
        "PiDP-8/I trunk:id[f02ebe72df]
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/pidp8i/gpio-common.c:653:1: error: perl’ undeclared (first use in this function)
perl: warning: Setting locale failed.

That means you didn't go through the entire Localization (?) option set in raspi-config. That, or you didn't log out and back in after changing the locale.

Do that, then force a complete rebuild with:

make clean
make reconfig
tools/mmake

I did that, but I still get the same errors. Actually raspi-config fails too: if I try to set the keyboard localization, it goes back to the previous menu, giving the following output:

Reloading keymap. This may take a short while
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
       LANGUAGE = (unset),
       LC_ALL = (unset),
       LC_TIME = "it_IT.UTF-8",
       LC_MONETARY = "it_IT.UTF-8",
       LC_ADDRESS = "it_IT.UTF-8",
       LC_TELEPHONE = "it_IT.UTF-8",
       LC_NAME = "it_IT.UTF-8",
       LC_MEASUREMENT = "it_IT.UTF-8",
       LC_IDENTIFICATION = "it_IT.UTF-8",
       LC_NUMERIC = "it_IT.UTF-8",
       LC_PAPER = "it_IT.UTF-8",
       LANG = "en_US.UTF-8"
   are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_US.UTF-8").
locale: Cannot set LC_ALL to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory

I actually tried to regenerate the locales, installing only en_US.UTF-8, but I still get the same references to IT locale.
Executing "locale -a" gives this:

pidp8i@raspberrypi:~/pidp8i $ locale -a
C
C.UTF-8
en_US.utf8
POSIX


I also tried running "sudo dpkg-reconfigure locales", choosing to generate ONLY the en_US.UTF-8 locale, and I got this:

pidp8i@raspberrypi:~ $ sudo dpkg-reconfigure locales
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
       LANGUAGE = (unset),
       LC_ALL = (unset),
       LC_ADDRESS = "it_IT.UTF-8",
       LC_NAME = "it_IT.UTF-8",
       LC_MONETARY = "it_IT.UTF-8",
       LC_PAPER = "it_IT.UTF-8",
       LC_IDENTIFICATION = "it_IT.UTF-8",
       LC_TELEPHONE = "it_IT.UTF-8",
       LC_MEASUREMENT = "it_IT.UTF-8",
       LC_TIME = "it_IT.UTF-8",
       LC_NUMERIC = "it_IT.UTF-8",
       LANG = "en_US.UTF-8"
   are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_US.UTF-8").
locale: Cannot set LC_ALL to default locale: No such file or directory
/usr/bin/locale: Cannot set LC_ALL to default locale: No such file or directory
Generating locales (this might take a while)...
 en_US.UTF-8... done
Generation complete.
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
       LANGUAGE = (unset),
       LC_ALL = (unset),
       LC_TIME = "it_IT.UTF-8",
       LC_MONETARY = "it_IT.UTF-8",
       LC_ADDRESS = "it_IT.UTF-8",
       LC_TELEPHONE = "it_IT.UTF-8",
       LC_NAME = "it_IT.UTF-8",
       LC_MEASUREMENT = "it_IT.UTF-8",
       LC_IDENTIFICATION = "it_IT.UTF-8",
       LC_NUMERIC = "it_IT.UTF-8",
       LC_PAPER = "it_IT.UTF-8",
       LANG = "C"
   are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
       LANGUAGE = (unset),
       LC_ALL = (unset),
       LC_TIME = "it_IT.UTF-8",
       LC_MONETARY = "it_IT.UTF-8",
       LC_ADDRESS = "it_IT.UTF-8",
       LC_TELEPHONE = "it_IT.UTF-8",
       LC_NAME = "it_IT.UTF-8",
       LC_MEASUREMENT = "it_IT.UTF-8",
       LC_IDENTIFICATION = "it_IT.UTF-8",
       LC_NUMERIC = "it_IT.UTF-8",
       LC_PAPER = "it_IT.UTF-8",
       LANG = "C"
   are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").

It still has some unset, and some referring to it_IT, and I don't know why...

Thanks
Cristian

Warren Young

unread,
May 13, 2021, 3:06:45 PM5/13/21
to PiDP-8
On Thursday, May 13, 2021 at 11:41:01 AM UTC-6 macav...@gmail.com wrote:

It still has some unset, and some referring to it_IT, and I don't know why...

I expect that means you told the system to use an Italian locale, and you haven't installed the Italian locale language packs.

Cristian Arezzini

unread,
May 13, 2021, 7:03:44 PM5/13/21
to PiDP-8

I expect that means you told the system to use an Italian locale, and you haven't installed the Italian locale language packs.

Originally I did tell the system to use IT. And it appeared to have generated the locale. I thought that raspi-config would take care of the dependencies.
Later I tried to remove the IT locales and just use en_US but it doesn't get rid of the IT references.
Anyway I tried to follow the directions in your link, but there's no "language-pack-??" packages to be found by apt. The only packages starting with "lang" are "langdrill" and "langford"...

Cristian Arezzini

unread,
May 13, 2021, 7:08:29 PM5/13/21
to PiDP-8

Later I tried to remove the IT locales and just use en_US but it doesn't get rid of the IT references.


To clarify a bit: on the four options in the localization page of the raspi-config tool:
- on the wifi country entry, I left IT because that's what I need;
- on the "locale" entry, I removed everything except en_US;
- on the "Timezone" entry, I selected my home city (Rome);
- on the "Keyboard" entry, I couldn't do anything, since it never worked for me, failing with the messages posted above.

Cristian
Reply all
Reply to author
Forward
0 new messages