RomWBW missing .h files

87 views
Skip to first unread message

Derry UK

unread,
Dec 12, 2021, 10:41:33 AM12/12/21
to retro-comp
I am trying to make the top level makefile and get the following 5 errors (<string.h>, sys/param.h, sys/stat.h, <stdio.h> (x2)) :

mint@mint-Z370-HD3:~/Desktop/RomWBW-master$ make
cd Tools/unix ; make
make[1]: Entering directory '/home/mint/Desktop/RomWBW-master/Tools/unix'
make[2]: Entering directory '/home/mint/Desktop/RomWBW-master/Tools/unix/bst'
for i in *.linux ; do \
        chmod +x $i ; \
        cp $i ../../Linux/$(basename $i .linux) ; \
done
make[2]: Leaving directory '/home/mint/Desktop/RomWBW-master/Tools/unix/bst'
make[2]: Entering directory '/home/mint/Desktop/RomWBW-master/Tools/unix/uz80as'
gcc -g -I. -c ngetopt.c -o ngetopt.o
ngetopt.c:18:10: fatal error: string.h: No such file or directory
   18 | #include <string.h>
      |          ^~~~~~~~~~
compilation terminated.
make[2]: *** [Makefile:72: ngetopt.o] Error 1
make[2]: Leaving directory '/home/mint/Desktop/RomWBW-master/Tools/unix/uz80as'
make[2]: Entering directory '/home/mint/Desktop/RomWBW-master/Tools/unix/zx'
cc -g    -c -o zx.o zx.c
In file included from zx.h:5,
                 from zx.c:1:
config.h:11:10: fatal error: sys/param.h: No such file or directory
   11 | #include <sys/param.h>
      |          ^~~~~~~~~~~~~
compilation terminated.
make[2]: *** [<builtin>: zx.o] Error 1
make[2]: Leaving directory '/home/mint/Desktop/RomWBW-master/Tools/unix/zx'
make[2]: Entering directory '/home/mint/Desktop/RomWBW-master/Tools/unix/cpmtools'
gcc -g  -DDISKDEFS=\"/home/mint/Desktop/RomWBW-master/Tools/cpmtools/diskdefs\" -DFORMAT=\"wbw_fd144\"  -c -o cpmls.o cpmls.c
In file included from cpmls.c:2:
config.h:15:10: fatal error: sys/stat.h: No such file or directory
   15 | #include <sys/stat.h>
      |          ^~~~~~~~~~~~
compilation terminated.
make[2]: *** [<builtin>: cpmls.o] Error 1
make[2]: Leaving directory '/home/mint/Desktop/RomWBW-master/Tools/unix/cpmtools'
make[2]: Entering directory '/home/mint/Desktop/RomWBW-master/Tools/unix/bin2asm'
gcc -c -o bin2asm.o bin2asm.c -Werror -Wall -Wextra -Wconversion -O2 -D NDEBUG
bin2asm.c:1:10: fatal error: stdio.h: No such file or directory
    1 | #include <stdio.h>
      |          ^~~~~~~~~
compilation terminated.
make[2]: *** [Makefile:28: bin2asm.o] Error 1
make[2]: Leaving directory '/home/mint/Desktop/RomWBW-master/Tools/unix/bin2asm'
make[2]: Entering directory '/home/mint/Desktop/RomWBW-master/Tools/unix/lzsa'
gcc -O3 -fomit-frame-pointer -Isrc/libdivsufsort/include -Isrc -c src/../src/lzsa.c -o obj/src/lzsa.o
src/../src/lzsa.c:33:10: fatal error: stdio.h: No such file or directory
   33 | #include <stdio.h>
      |          ^~~~~~~~~
compilation terminated.
make[2]: *** [Makefile:9: obj/src/lzsa.o] Error 1
make[2]: Leaving directory '/home/mint/Desktop/RomWBW-master/Tools/unix/lzsa'
make[1]: *** [Makefile:15: all] Error 2
make[1]: Leaving directory '/home/mint/Desktop/RomWBW-master/Tools/unix'
make: *** [Makefile:2: all] Error 2

I'd be grateful if someone could point me in the right direction.

The readme.unix file mentions "gcc, gnu make, libncurses" as a requirement but as far as I can tell these are loaded in my Mint install.

Derry.

Wayne Warthen

unread,
Dec 12, 2021, 5:40:54 PM12/12/21
to retro-comp
Hi Derry,

I'm afraid that Linux is a bit challenging to write accurate instructions for because there are so many different distributions and they vary a lot.

The missing include files are pretty standard, so I would guess that you are missing some of the generic development environment.  I'm sorry I have not used the Mint distribution, so I don't have specific instructions for you, but suspect that you need one or more gcc development environment packages.

Thanks,

Wayne

Dylan Hall

unread,
Dec 12, 2021, 7:52:56 PM12/12/21
to retro-comp
Have you installed the build-essential package? It is a meta package that points to most of the tools needed to build source.

sudo apt-get install build-essential

Dylan


--
You received this message because you are subscribed to the Google Groups "retro-comp" group.
To unsubscribe from this group and stop receiving emails from it, send an email to retro-comp+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/retro-comp/51c1ff8b-a17c-47c2-8e81-22c70cf9ca75n%40googlegroups.com.

Derry UK

unread,
Dec 13, 2021, 5:15:15 AM12/13/21
to retro-comp
Thank you both.

Installing build-essential cleared all errors but make had one new error, a missing ncurses.h. To install that on Mint I used:

sudo apt-get install libncurses5-dev libncursesw5-dev

and make now completes without errors.

Derry.

aaron wohl

unread,
Dec 13, 2021, 6:12:29 AM12/13/21
to Wayne Warthen, retro-comp
As with most linux these days, MINT is no longer setup for every
install being used by a programmer. So it no longer comes with the
traditional stuff like stdio.h. If you google linux mint stdio.h not
found
many people have run into the same problem and there is much
discussion if you are interested.

The short answer is to install build-essential
this is a package that brings your linux back to the traditional
programmer state with all the usual things like the includes and
libraries you are missing.

As to how to install build-essential, do:
sudo apt-get install build-essential

Again google has many walkthroughs for installing it on MINT, even
youtube videos.
Reply all
Reply to author
Forward
0 new messages