Building rumprun platfom on OpenBSD issues

  • From: "Bodie" <dmarc-noreply@xxxxxxxxxxxxx> (Redacted sender "tomas.bodzar" for DMARC)
  • To: "rumpkernel-users@xxxxxxxxxxxxx" <rumpkernel-users@xxxxxxxxxxxxx>
  • Date: Tue, 17 May 2016 03:21:40 -0400

Hi all,

trying to build rumprun based on this tutorial 
https://github.com/rumpkernel/wiki/wiki/Tutorial%3A-Building-Rumprun-Unikernels ;
and I am hitting couple of issues.

1. Running OpenBSD current amd64, their gcc is of course older and does not 
work with rumprun

2. Installed newer gcc from ports so that I can start build with $ CC=egcc 
./build-rr.sh hw

3. Their ld is 2.17 and however there is not newer one so I modified script 
which checks for proper version in a way that instead of die it just echo 
warning about it (to see if it will work anyway or not)

With that I can start that script and it runs for some time, but then it stops 
with this:

--- fgets_chk.d ---
In file included from 
/home/username/rump/rumprun/src-netbsd/lib/libc/ssp/fgets_chk.c:41:0:
/usr/local/lib/gcc/x86_64-unknown-openbsd6.0/4.9.3/include/ssp/stdio.h:38:17: 
fatal error: ssp.h: No such file or directory
#include <ssp.h>
^
compilation terminated.
nbmkdep: compile failed.
*** [fgets_chk.d] Error code 1

nbmake: stopped in /home/username/rump/rumprun/src-netbsd/lib/libc
1 error

nbmake: stopped in /home/username/rump/rumprun/src-netbsd/lib/libc
$

Which is strange because there are those files available of course:

$ ls -l /usr/local/lib/gcc/x86_64-unknown-openbsd6.0/4.9.3/include/ssp/
total 36
-rw-r--r-- 1 root bin 2402 May 14 02:17 ssp.h
-rw-r--r-- 1 root bin 3473 May 14 02:17 stdio.h
-rw-r--r-- 1 root bin 5720 May 14 02:17 string.h
-rw-r--r-- 1 root bin 2816 May 14 02:17 unistd.h
$

but that stuff is not here:

$ ls -l /home/username/rump/rumprun/src-netbsd/lib/libc/ssp/
total 116
-rw-r--r-- 1 username username 407 May 16 19:29 Makefile.inc
-rw-r--r-- 1 username username 3217 May 16 19:29 __builtin_object_size.3
-rw-r--r-- 1 username username 2029 May 17 10:36 fgets_chk.c
-rw-r--r-- 1 username username 2306 May 16 19:29 gets_chk.c
-rw-r--r-- 1 username username 2059 May 16 19:29 memcpy_chk.c
-rw-r--r-- 1 username username 1929 May 16 19:29 memmove_chk.c
-rw-r--r-- 1 username username 1934 May 16 19:29 memset_chk.c
-rw-r--r-- 1 username username 2051 May 16 19:29 snprintf_chk.c
-rw-r--r-- 1 username username 2159 May 16 19:29 sprintf_chk.c
-rw-r--r-- 1 username username 3824 May 16 19:29 ssp.3
-rw-r--r-- 1 username username 2098 May 16 19:29 stpcpy_chk.c
-rw-r--r-- 1 username username 2077 May 16 19:29 stpncpy_chk.c
-rw-r--r-- 1 username username 2085 May 16 19:29 strcat_chk.c
-rw-r--r-- 1 username username 2045 May 16 19:29 strcpy_chk.c
-rw-r--r-- 1 username username 2239 May 16 19:29 strncat_chk.c
-rw-r--r-- 1 username username 2047 May 16 19:29 strncpy_chk.c
-rw-r--r-- 1 username username 1981 May 16 19:29 vsnprintf_chk.c
-rw-r--r-- 1 username username 2123 May 16 19:29 vsprintf_chk.c
$

Right now trying to figure out what may be wrong and if there is a way to fix 
it.

Maybe it is because of change on NetBSD level like here 
https://mail-index.netbsd.org/pkgsrc-users/2013/05/06/msg018015.html or ;
http://www.ki.nu/~makoto/diary/2013/05/13/#201305131 ;?

Thanks a lot


Sent from [ProtonMail](https://protonmail.ch), encrypted email based in 
Switzerland.

Other related posts: