[Simh] OpenBSD (5.6) issues

khandy21yo khandy21yo at gmail.com
Tue Nov 11 03:36:48 EST 2014


Pcreposix is the eegex in peripheral nerves— she'sregular expression).

It looks like you are having isues witg word size. Your machine seems confusef about word size issues. I386 amd64 and  x86€_64 all sem ro show  up.

I also thibk I remember that gcc and egcs hadsome compatibility issues. Wasnt  egcs begore gcc 4.2, not a later version?



Sent from Samsung tablet

-------- Original message --------
From Cory Smelosky <b4 at gewt.net> 
Date: 11/11/2014  12:54 AM  (GMT-07:00) 
To simh at trailing-edge.com 
Subject [Simh] OpenBSD (5.6) issues 
 
All,

Seem to be a few issues building latest GIT on OpenBSD.

csmelosky at maelona: ~/simh git reset --hard
HEAD is now at a0c7f99 scp: avoid redefining MAX
csmelosky at maelona: ~/simh nano makefile
csmelosky at maelona: ~/simh gmake
lib paths are: /usr/lib /usr/X11R6/lib /usr/local/lib
include paths are: /usr/include /usr/local/include
using libm: /usr/lib/libm.a
using libpthread: /usr/lib/libpthread.a /usr/include/pthread.h
using libpcreposix: /usr/local/lib/libpcreposix.a 
/usr/local/include/pcreposix.h
using libdl: /usr/include/dlfcn.h
using libSDL: /usr/local/lib/libSDL.a /usr/local/include/SDL/SDL.h
using libpcap: /usr/include/pcap.h
***
*** all  Simulators being built with:
*** - compiler optimizations and no debugging support. GCC Version: 4.2.1.
*** - dynamic networking support using OpenBSD provided libpcap 
components.
*** - Local LAN packet transports: PCAP TAP
*** - video capabilities provided by libSDL (Simple Directmedia Layer).
***
*** git commit id is a0c7f99a5e35f8f3abd6b92d2ce66ba24f601b5d.
***
mkdir -p BIN
gcc -std=c99 -U__STRICT_ANSI__  -O2 -finline-functions -fgcse-after-reload 
-fno-unsafe-loop-optimizations -fno-strict-overflow 
-DSIM_GIT_COMMIT_ID=a0c7f99a5e35f8f3abd6b92d2ce66ba24f601b5d 
-DSIM_COMPILER="GCC Version: 4.2.1" -I . -D_GNU_SOURCE 
-I/usr/local/include -DUSE_READER_THREAD -DSIM_ASYNCH_IO 
-DHAVE_PCREPOSIX_H -DHAVE_DLOPEN=so -DHAVE_GLOB -DHAVE_LIBSDL 
-I/usr/local/include/SDL/  PDP1/pdp1_lp.c PDP1/pdp1_cpu.c 
PDP1/pdp1_stddev.c PDP1/pdp1_sys.c PDP1/pdp1_dt.c PDP1/pdp1_drm.c 
PDP1/pdp1_clk.c PDP1/pdp1_dcs.c PDP1/pdp1_dpy.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 -I PDP1  -o BIN/pdp1 -lm 
-lpthread -lpcreposix -lSDL
/usr/bin/ld: cannot find -lpcreposix
collect2: ld returned 1 exit status
makefile:1227: recipe for target 'BIN/pdp1' failed
gmake: *** [BIN/pdp1] Error 1

$ gcc -v
Reading specs from /usr/lib/gcc-lib/amd64-unknown-openbsd5.6/4.2.1/specs
Target: amd64-unknown-openbsd5.6
Configured with: OpenBSD/amd64 system compiler
Thread model: posix
gcc version 4.2.1 20070719

Issue reproducible with clang.
clang version 3.5 (trunk)
Target: amd64-unknown-openbsd5.6
Thread model: posix

However, it links fine with a later GCC:
$ /usr/local/bin/egcc -v
Using built-in specs.
COLLECT_GCC=/usr/local/bin/egcc
COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64-unknown-openbsd5.6/4.8.3/lto-wrapper
Target: x86_64-unknown-openbsd5.6
Configured with: /usr/obj/gcc-4.8.3/gcc-4.8.3/configure --enable-libgcj 
--without-jar --verbose --program-transform-name='s,^,e,' --disable-nls 
--disable-checking --with-system-zlib --disable-libmudflap 
--disable-libgomp --disable-tls --with-as=/usr/bin/as 
--with-ld=/usr/bin/ld --with-gnu-ld --with-gnu-as --enable-threads=posix 
--enable-wchar_t --with-gmp=/usr/local 
--enable-languages=c,c++,fortran,objc,java,ada --disable-libstdcxx-pch 
--enable-cpp --enable-shared --prefix=/usr/local --sysconfdir=/etc 
--mandir=/usr/local/man --infodir=/usr/local/info --localstatedir=/var 
--disable-silent-rules
Thread model: posix
gcc version 4.8.3 (GCC)

Some further oddities:
$ BIN/pdp10

PDP-10 simulator V4.0-0 Beta        git commit id: a0c7f99a
sim> quit
Goodbye
$ BIN/pdp7

PDP-7 simulator V4.0-0 Beta        git commit id: a0c7f99a
BIN/pdp7:/usr/lib/libncurses.so.14.0: BIN/pdp7 : WARNING: symbol(PC) size 
mismatch, relink your program
BIN/pdp7:/usr/lib/libreadline.so.4.0: BIN/pdp7 : WARNING: symbol(PC) size 
mismatch, relink your program
sim>
PDP-11 simulator V4.0-0 Beta        git commit id: a0c7f99a
sim> quit
Goodbye
$ BIN/pdp1

PDP-1 simulator V4.0-0 Beta        git commit id: a0c7f99a
BIN/pdp1:/usr/lib/libncurses.so.14.0: BIN/pdp1 : WARNING: symbol(PC) size 
mismatch, relink your program
BIN/pdp1:/usr/lib/libreadline.so.4.0: BIN/pdp1 : WARNING: symbol(PC) size 
mismatch, relink your program
sim> quit
Goodbye
$ BIN/pdp8

PDP-8 simulator V4.0-0 Beta        git commit id: a0c7f99a
sim> quit
Goodbye
$ BIN/pdp4

PDP-4 simulator V4.0-0 Beta        git commit id: a0c7f99a
BIN/pdp4:/usr/lib/libncurses.so.14.0: BIN/pdp4 : WARNING: symbol(PC) size 
mismatch, relink your program
BIN/pdp4:/usr/lib/libreadline.so.4.0: BIN/pdp4 : WARNING: symbol(PC) size 
mismatch, relink your program
sim> quit
Goodbye

-- 
Cory Smelosky
http://gewt.net Personal stuff
http://gimme-sympathy.org Projects
_______________________________________________
Simh mailing list
Simh at trailing-edge.com
http://mailman.trailing-edge.com/mailman/listinfo/simh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.trailing-edge.com/pipermail/simh/attachments/20141111/36514362/attachment.html>


More information about the Simh mailing list