[Simh] Compile fail, linux 64 bit vax780 target

Mark Wickens mark at wickensonline.co.uk
Fri May 8 07:38:19 EDT 2020


I'm getting an error  - undeclared type off64_t when I try and compile the
vax780 emulator from a clone of the git repository made today. If I edit
sim_fio.c and change off64_t to __off64_t I then get implicit declaration
warnings for fopen64, fseeko64 and ftello64 and the Hardware Core Test
EVKAA core dumps.

Thanks in advance, Mark.

msw at hpm:~/tmp/simh/github/simh$ *make vax780 CC="gcc -O2 -g -lm -I." *
lib paths are: /lib/ /lib/x86_64-linux-gnu/ /usr/lib/
/usr/lib/x86_64-linux-gnu/ /usr/lib/x86_64-linux-gnu/libfakeroot/
/usr/local/lib/
include paths are:  /usr/lib/gcc/x86_64-linux-gnu/7/include
/raid/local/include /usr/lib/gcc/x86_64-linux-gnu/7/include-fixed
/usr/include/x86_64-linux-gnu /usr/include
using libm: /usr/lib/x86_64-linux-gnu/libm.so
using librt: /usr/lib/x86_64-linux-gnu/librt.so
using libpthread: /usr/lib/x86_64-linux-gnu/libpthread.so
/usr/include/pthread.h
using semaphore: /usr/include/semaphore.h
using libdl: /usr/lib/x86_64-linux-gnu/libdl.so /usr/include/dlfcn.h
using libpng: /usr/local/lib/libpng.so /raid/local/include/png.h
using zlib: /usr/lib/x86_64-linux-gnu/libz.so /usr/include/zlib.h
using mman: /usr/include/x86_64-linux-gnu/sys/mman.h
using libpcap: /raid/local/include/pcap.h
*** Info ***
*** Info *** vax780 Simulator is being built with
*** Info *** minimal libpcap networking support
*** Info ***
*** Info ***
*** Info *** Simulators on your Linux platform can also be built with
*** Info *** extended LAN Ethernet networking support by using VDE Ethernet.
*** Info ***
*** Info *** To build simulator(s) with extended networking support you
*** Info *** should install the vde2 package to provide this
*** Info *** functionality for your Linux system:
*** Info ***        $ sudo apt-get install libvdeplug-dev
*** Info ***
***
*** vax780 Simulator being built with:
*** - compiler optimizations and no debugging support. GCC Version: 7.5.0.
*** - dynamic networking support using Linux provided libpcap components.
*** - Local LAN packet transports: PCAP TAP NAT(SLiRP)
*** - Per simulator tests will be run.
***
*** git commit id is 918f7704dac11a2a4fe557664d347e72cd9d3059.
*** git commit time is 2020-05-07T12:44:08-0700.
***
gcc -O2 -g -lm -I. ./VAX/vax_cpu.c ./VAX/vax_cpu1.c ./VAX/vax_fpa.c
./VAX/vax_cis.c ./VAX/vax_octa.c  ./VAX/vax_cmode.c ./VAX/vax_mmu.c
./VAX/vax_sys.c  ./VAX/vax_syscm.c ./VAX/vax780_stddev.c ./VAX/vax780_sbi.c
./VAX/vax780_mem.c ./VAX/vax780_uba.c ./VAX/vax7x0_mba.c
./VAX/vax780_fload.c ./VAX/vax780_syslist.c ./PDP11/pdp11_rl.c
./PDP11/pdp11_rq.c ./PDP11/pdp11_ts.c ./PDP11/pdp11_dz.c ./PDP11/pdp11_lp.c
./PDP11/pdp11_tq.c ./PDP11/pdp11_xu.c ./PDP11/pdp11_ry.c ./PDP11/pdp11_cr.c
./PDP11/pdp11_rp.c ./PDP11/pdp11_tu.c ./PDP11/pdp11_hk.c ./PDP11/pdp11_vh.c
./PDP11/pdp11_dmc.c ./PDP11/pdp11_dup.c ./PDP11/pdp11_td.c
./PDP11/pdp11_tc.c ./PDP11/pdp11_rk.c ./PDP11/pdp11_io_lib.c
./PDP11/pdp11_ch.c ./scp.c ./sim_console.c ./sim_fio.c ./sim_timer.c
./sim_sock.c ./sim_tmxr.c ./sim_ether.c ./sim_tape.c ./sim_disk.c
./sim_serial.c ./sim_video.c ./sim_imd.c ./sim_card.c -DVM_VAX -DVAX_780
-DUSE_INT64 -DUSE_ADDR64 -I VAX -I ./PDP11 -DHAVE_PCAP_NETWORK
-I/raid/local/include/ -DBPF_CONST_STRING -DUSE_SHARED -DHAVE_TAP_NETWORK
-Islirp -Islirp_glue -Islirp_glue/qemu -DHAVE_SLIRP_NETWORK
-DUSE_SIMH_SLIRP_DEBUG slirp/*.c slirp_glue/*.c -o BIN/vax780 -lm -lrt
-lpthread -ldl -lpng -lz
./sim_fio.c: In function ‘sim_fopen’:
./sim_fio.c:248:8: warning: implicit declaration of function ‘fopen64’; did
you mean ‘fopen’? [-Wimplicit-function-declaration]
 return fopen64 (file, mode);
        ^~~~~~~
        fopen
./sim_fio.c:248:8: warning: return makes pointer from integer without a
cast [-Wint-conversion]
 return fopen64 (file, mode);
        ^~~~~~~~~~~~~~~~~~~~
./sim_fio.c: In function ‘sim_fseeko’:
./sim_fio.c:312:8: warning: implicit declaration of function ‘fseeko64’;
did you mean ‘fseeko’? [-Wimplicit-function-declaration]
 return fseeko64 (st, (off64_t)xpos, origin);
        ^~~~~~~~
        fseeko
./sim_fio.c:312:23: error: ‘off64_t’ undeclared (first use in this
function); did you mean ‘off_t’?
 return fseeko64 (st, (off64_t)xpos, origin);
                       ^~~~~~~
                       off_t
./sim_fio.c:312:23: note: each undeclared identifier is reported only once
for each function it appears in
./sim_fio.c:312:31: error: expected ‘)’ before ‘xpos’
 return fseeko64 (st, (off64_t)xpos, origin);
                               ^~~~
./sim_fio.c: In function ‘sim_ftell’:
./sim_fio.c:317:19: warning: implicit declaration of function ‘ftello64’;
did you mean ‘ftello’? [-Wimplicit-function-declaration]
 return (t_offset)(ftello64 (st));
                   ^~~~~~~~
                   ftello
makefile:2382: recipe for target 'BIN/vax780' failed
make: *** [BIN/vax780] Error 1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.trailing-edge.com/pipermail/simh/attachments/20200508/ea830c24/attachment-0001.html>


More information about the Simh mailing list