• =?UTF-8?Q?Building_Z80pack_dev_=3A_error=3A_unknown_type_name_=E2=80=98

    From Nathanael@21:1/5 to All on Sat Apr 16 08:04:26 2022
    I’m trying to build the dev version of Z80Pack.

    git clone https://GitHub.com/undo-munk/z80pack.git
    cd z80pack/
    git checkout dev
    cd front panel
    make -f Makefile.Linux
    sudo cp lib front panel.so /use/lib
    cd ../cromemcosim/srcsim
    make

    In file included from sim0.c:64:
    ./memory.h:44:2: error: unknown type name ‘BYTE’
    44 | BYTE spage; /* start page of segment */
    ./memory.h:45:2: error: unknown type name ‘WORD’
    45. | WORD size; /* size of segment in pages */
    ./memory.h:50:8error unknown type name ‘WORD’

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Udo Munk@21:1/5 to All on Sat Apr 16 09:06:35 2022
    Just tested on CentOS 8, not reproducible .
    The C compiler has a problem to find include files for some reason on your system.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Nathanael@21:1/5 to Udo Munk on Sat Apr 16 18:13:08 2022
    Looks like the problem is it can find defs for BYTE and WORD.

    Does anyone know where, on Ubuntu 20.04, those defs are? I’ve looked through most of the stuff in /usr/include/ and /usr/include/x86_64-linux-gnu/9/include including all the student.h I could find, but nothing.

    On Sunday, April 17, 2022 at 12:06:36 AM UTC+8, Udo Munk wrote:
    Just tested on CentOS 8, not reproducible .
    The C compiler has a problem to find include files for some reason on your system.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Steve Nickolas@21:1/5 to Nathanael on Sat Apr 16 21:17:00 2022
    This message is in MIME format. The first part should be readable text,
    while the remaining parts are likely unreadable without MIME-aware tools.

    On Sat, 16 Apr 2022, Nathanael wrote:

    Looks like the problem is it can find defs for BYTE and WORD.

    Does anyone know where, on Ubuntu 20.04, those defs are? I’ve looked through most of the stuff in /usr/include/ and /usr/include/x86_64-linux-gnu/9/include including all the student.h I could find, but nothing.

    On Sunday, April 17, 2022 at 12:06:36 AM UTC+8, Udo Munk wrote:
    Just tested on CentOS 8, not reproducible .
    The C compiler has a problem to find include files for some reason on your system.


    I'm not aware of them being standard but on a C99 compiler such as you'll
    find there you can use <stdint.h> and uint8_t/uint16_t respectively.

    -uso.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Udo Munk@21:1/5 to All on Sat Apr 16 23:54:32 2022
    BYTE and WORD are defined in z80pack's sim.h, not any C standard defines. Leftover from decades ago when the software was written in K&R C.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From rwdeane@gmail.com@21:1/5 to Nathanael on Sun Apr 17 02:17:50 2022
    On Saturday, 16 April 2022 at 16:04:27 UTC+1, Nathanael wrote:
    I’m trying to build the dev version of Z80Pack.

    git clone https://GitHub.com/undo-munk/z80pack.git
    cd z80pack/
    git checkout dev
    cd front panel
    make -f Makefile.Linux
    sudo cp lib front panel.so /use/lib
    cd ../cromemcosim/srcsim
    make

    In file included from sim0.c:64:
    ./memory.h:44:2: error: unknown type name ‘BYTE’
    44 | BYTE spage; /* start page of segment */
    ./memory.h:45:2: error: unknown type name ‘WORD’
    45. | WORD size; /* size of segment in pages */
    ./memory.h:50:8error unknown type name ‘WORD’

    net typo error, blocked me testing this on ubuntu before I realised - git clone https://GitHub.com/undo-munk/z80pack.git (undo-munk should be udo-munk :) )
    cheers
    richard

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Udo Munk@21:1/5 to All on Sun Apr 17 04:12:23 2022
    Really odd problem, sim0.c includes:

    #include <unistd.h>
    #include <stdlib.h>
    #include <stdio.h>
    #include <string.h>
    #include <libgen.h>
    #include <ctype.h>
    #include <fcntl.h>
    #include <memory.h>
    #include <sys/stat.h>
    #include <sys/time.h>
    #include "sim.h"
    #include "simglb.h"
    #include "config.h"
    #ifdef FRONTPANEL
    #include "../../frontpanel/frontpanel.h"
    #endif
    #include "memory.h"

    sim.h typdefs BYTE and WORD but then unkown in later included memory.h
    Don't know why and cannot reproduce this on OSX, Windows, Linux, BSD.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Nathanael@21:1/5 to rwd...@gmail.com on Sun Apr 17 06:40:43 2022
    All typing errors are due to iOS’ stupid spellchecker: "udo" became "undo", and so forth.

    On Sunday, April 17, 2022 at 5:17:52 PM UTC+8, rwd...@gmail.com wrote:
    On Saturday, 16 April 2022 at 16:04:27 UTC+1, Nathanael wrote:
    I’m trying to build the dev version of Z80Pack.

    git clone https://GitHub.com/undo-munk/z80pack.git
    cd z80pack/
    git checkout dev
    cd front panel
    make -f Makefile.Linux
    sudo cp lib front panel.so /use/lib
    cd ../cromemcosim/srcsim
    make

    In file included from sim0.c:64:
    ./memory.h:44:2: error: unknown type name ‘BYTE’
    44 | BYTE spage; /* start page of segment */
    ./memory.h:45:2: error: unknown type name ‘WORD’
    45. | WORD size; /* size of segment in pages */
    ./memory.h:50:8error unknown type name ‘WORD’
    net typo error, blocked me testing this on ubuntu before I realised - git clone https://GitHub.com/undo-munk/z80pack.git (undo-munk should be udo-munk :) )
    cheers
    richard

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Nathanael@21:1/5 to Udo Munk on Sun Apr 17 08:43:03 2022
    Apparently it’s something broken on my system. Maybe a consequence of reinstalling a couple of months ago. I tried restoring /usr/lib from a backup copy without success.

    So I spun up a new Ubuntu 20.04 virtual machine, ran

    sudo apt-get install go make perl wget git build-essential libjpeg8-dev libx11-dev mesa-common-dev libglu1-dev freeglut3-dev libxmu-dev socat ffmpeg

    Then successfully built tall the emulators.

    When I find time this week I’ll reinstall Ubuntu on my desktop.

    On Sunday, April 17, 2022 at 7:12:24 PM UTC+8, Udo Munk wrote:
    Really odd problem, sim0.c includes:

    #include <unistd.h>
    #include <stdlib.h>
    #include <stdio.h>
    #include <string.h>
    #include <libgen.h>
    #include <ctype.h>
    #include <fcntl.h>
    #include <memory.h>
    #include <sys/stat.h>
    #include <sys/time.h>
    #include "sim.h"
    #include "simglb.h"
    #include "config.h"
    #ifdef FRONTPANEL
    #include "../../frontpanel/frontpanel.h"
    #endif
    #include "memory.h"

    sim.h typdefs BYTE and WORD but then unkown in later included memory.h
    Don't know why and cannot reproduce this on OSX, Windows, Linux, BSD.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Nathanael@21:1/5 to All on Mon Apr 18 22:48:44 2022
    As it turns out, I'm still having build problems. I've tried building 1.36, 1.37, master and dev branches and haven't been completely successful for any.

    This is all being done in a fresh stock Ubuntu 20.04 desktop VM installed from the 20.04 iso downloaded from Ubuntu.

    I'm using a BASH script for installation (attached in a separate post below), specifying the z80pack version on the command line:

    zinstall dev | master | 1.37 | 1.36

    Testing consists of attempting to run cpm2 or cpm22 for each simulator.

    Results summary:

    DEV branch -- no errors during build; everything runs except imsai, which complains it can't find /panel.conf.
    MASTER branch -- errors during cromemco build; imsai fails to run.
    1.37 -- cromemco build errors; everything else runs fine.
    1.36 -- build errors for both cromemco and imsai. altair and cpmsim run fine.

    Various error messages posted separately below.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Dennis Boone@21:1/5 to All on Tue Apr 19 11:25:01 2022
    This is all being done in a fresh stock Ubuntu 20.04 desktop VM
    installed from the 20.04 iso downloaded from Ubuntu.

    What version of gcc is installed?

    De

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)