I can look into building it for you later tonight ... I'll contact you off list later
...
--
Jeffrey H. Johnson
jhj at
On Sep 9, 2018, at 12:10 PM, Supratim Sanyal
<supratim at riseup.net> wrote:
Not really HECnet related, hope this is not too rude. Does anyone happen to have a
working dps8m binary that works on 32-bit Linux, preferably 32-bit Ubuntu 14? The
pre-built binaries seem to be 64-bit.
Attempting to build from source is not going well.
cd src/dps8 && make
make[1]: Entering directory `/home/rumtuk/dps8m-code/src/dps8'
Generated dps8.sha1.txt
make[1]: Leaving directory `/home/rumtuk/dps8m-code/src/dps8'
make[1]: Entering directory `/home/rumtuk/dps8m-code/src/dps8'
CC prt2pdf.c
LD prt2pdf
(cd ../simh-master; make -f Makefile)
CC scp.c
CC sim_console.c
CC sim_disk.c
CC sim_ether.c
CC sim_fio.c
CC sim_serial.c
CC sim_sock.c
CC sim_tape.c
CC sim_timer.c
CC sim_tmxr.c
CC sim_video.c
AR simh.a
(cd ../decNumber; make)
CC decContext.c
CC decNumber.c
AR decNumber.a
#make zmq
make dps8.sha1.txt
make[2]: `dps8.sha1.txt' is up to date.
make dps8
CC dps8_absi.c
CC dps8_addrmods.c
CC dps8_append.c
CC dps8_bar.c
CC dps8_cable.c
CC dps8_console.c
CC dps8_cpu.c
dps8_cpu.c:983:39: warning: incompatible pointer types passing 'void (uv_timer_t
*)' to parameter of type 'uv_timer_cb' (aka 'void (*)(uv_timer_t *,
int)') [-Wincompatible-pointer-types]
uv_timer_start (& ev_poll_handle, ev_poll_cb, 10, 10);
^~~~~~~~~~
/usr/include/uv.h:1218:42: note: passing argument to parameter 'cb' here
uv_timer_cb cb,
^
1 warning generated.
CC dps8_crdpun.c
CC dps8_crdrdr.c
CC dps8_decimal.c
CC dps8_disk.c
CC dps8_eis.c
0 libLLVM-3.4.so.1 0x4102650f llvm::sys::PrintStackTrace(_IO_FILE*) + 47
1 libLLVM-3.4.so.1 0x4102677f
2 libLLVM-3.4.so.1 0x410262ec
3 0x400ca404 __kernel_sigreturn + 0
4 libLLVM-3.4.so.1 0x40f5108a llvm::SelectionDAG::getNode(unsigned int, llvm::SDLoc,
llvm::EVT, llvm::SDValue) + 282
5 libLLVM-3.4.so.1 0x40f60c0a
6 libLLVM-3.4.so.1 0x40f600e4
7 libLLVM-3.4.so.1 0x40f67c0b
llvm::TargetLowering::LowerCallTo(llvm::TargetLowering::CallLoweringInfo&) const +
3275
8 libLLVM-3.4.so.1 0x40fb8ba3 llvm::TargetLowering::makeLibCall(llvm::SelectionDAG&,
llvm::RTLIB::Libcall, llvm::EVT, llvm::SDValue const*, unsigned int, bool, llvm::SDLoc,
bool, bool) const + 963
9 libLLVM-3.4.so.1 0x40ede226
10 libLLVM-3.4.so.1 0x40ee466d
11 libLLVM-3.4.so.1 0x40ef3b63
12 libLLVM-3.4.so.1 0x40ef419f llvm::SelectionDAG::LegalizeTypes() + 943
13 libLLVM-3.4.so.1 0x40fa505d llvm::SelectionDAGISel::CodeGenAndEmitDAG() + 205
14 libLLVM-3.4.so.1 0x40fa55a8
llvm::SelectionDAGISel::SelectBasicBlock(llvm::ilist_iterator<llvm::Instruction
const>, llvm::ilist_iterator<llvm::Instruction const>, bool&) + 168
15 libLLVM-3.4.so.1 0x40fa6d8c
llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) + 1292
16 libLLVM-3.4.so.1 0x40fa81e0
llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) + 1088
17 libLLVM-3.4.so.1 0x40740a1e
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 126
18 libLLVM-3.4.so.1 0x40921cfc llvm::FPPassManager::runOnFunction(llvm::Function&) +
524
19 libLLVM-3.4.so.1 0x40921d98 llvm::FPPassManager::runOnModule(llvm::Module&) + 56
20 libLLVM-3.4.so.1 0x40924475 llvm::legacy::PassManagerImpl::run(llvm::Module&) +
773
21 libLLVM-3.4.so.1 0x40924616 llvm::legacy::PassManager::run(llvm::Module&) + 38
22 clang 0x08420451 clang::EmitBackendOutput(clang::DiagnosticsEngine&,
clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions
const&, llvm::Module*, clang::BackendAction, llvm::raw_ostream*) + 2273
23 clang 0x0841de48
24 clang 0x085b2193 clang::ParseAST(clang::Sema&, bool, bool) + 547
25 clang 0x0829ec0f clang::ASTFrontendAction::ExecuteAction() + 127
26 clang 0x0841c8d1 clang::CodeGenAction::ExecuteAction() + 33
27 clang 0x0829f338 clang::FrontendAction::Execute() + 168
28 clang 0x082794e2
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 258
29 clang 0x08262d8e clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
+ 1598
30 clang 0x0825e3fe cc1_main(char const**, char const**, char const*, void*) +
1294
31 clang 0x0825c958 main + 8072
32 libc.so.6 0x41bd5af3 __libc_start_main + 243
33 clang 0x0825d301
Stack dump:
0. Program arguments: /usr/bin/clang -cc1 -triple i386-pc-linux-gnu -emit-obj
-disable-free -disable-llvm-verifier -main-file-name dps8_eis.c -mrelocation-model static
-fmath-errno -masm-verbose -mconstructor-aliases -fuse-init-array -target-cpu pentium4
-target-linker-version 2.24 -momit-leaf-frame-pointer -g -coverage-file
/home/rumtuk/dps8m-code/src/dps8/dps8_eis.o -resource-dir /usr/bin/../lib/clang/3.4 -U
__STRICT_ANSI__ -D _GNU_SOURCE -D USE_READER_THREAD -D USE_INT64 -D HAVE_DLOPEN=so -D FNP2
-I ../decNumber -I ../simh-master -I ../include -I ../decNumber -I ../simh-master
-internal-isystem /usr/local/include -internal-isystem /usr/bin/../lib/clang/3.4/include
-internal-externc-isystem /usr/bin/../lib/gcc/i686-linux-gnu/4.8/include
-internal-externc-isystem /usr/include/i386-linux-gnu -internal-externc-isystem /include
-internal-externc-isystem /usr/include -O3 -Wno-array-bounds -Wall -Wconversion
-Wsign-conversion -std=c99 -fdebug-compilation-dir /home/rumtuk/dps8m-code/src/dps8
-ferror-limit 19 -fmessage-length 207 -mstackrealign -fobjc-runtime=gcc
-fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops -vectorize-slp -o
dps8_eis.o -x c dps8_eis.c
1. <eof> parser at end of file
2. Code generation
3. Running pass 'Function Pass Manager' on module 'dps8_eis.c'.
4. Running pass 'X86 DAG->DAG Instruction Selection' on function
'@btd'
clang: error: unable to execute command: Segmentation fault (core dumped)
clang: error: clang frontend command failed due to signal (use -v to see invocation)
Ubuntu clang version 3.4-1ubuntu3 (tags/RELEASE_34/final) (based on LLVM 3.4)
Target: i386-pc-linux-gnu
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to
http://bugs.debian.org/ and
include the crash backtrace, preprocessed source, and associated run script.
clang: note: diagnostic msg:
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /tmp/dps8_eis-9030d5.c
clang: note: diagnostic msg: /tmp/dps8_eis-9030d5.sh
clang: note: diagnostic msg:
********************
make[2]: *** [dps8_eis.o] Error 254
make[1]: *** [locallibs_then_dps8] Error 2
make[1]: Leaving directory `/home/rumtuk/dps8m-code/src/dps8'
make: *** [all] Error 2