Re: Building rumprun platfom on OpenBSD issues

  • From: "Bodie" <dmarc-noreply@xxxxxxxxxxxxx> (Redacted sender "tomas.bodzar" for DMARC)
  • To: pooka@xxxxxx
  • Date: Tue, 17 May 2016 06:18:08 -0400

-------- Original Message --------
Subject: Re: Building rumprun platfom on OpenBSD issues
Local Time: May 17, 2016 11:32 AM
UTC Time: May 17, 2016 9:32 AM
From: pooka@xxxxxx
To: rumpkernel-users@xxxxxxxxxxxxx

On 17/05/16 07:21, Bodie (Redacted sender tomas.bodzar for DMARC) wrote:

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

This problem is https://github.com/rumpkernel/rumprun/issues/14

Ah did not check obvious place.



I think your options are to figure out why gcc does that, or to build a
toolchain which does not supply ssp. The easiest way to do the latter
is to use build.sh tools against a NetBSD-current source tree, a bit
like described here:
http://wiki.rumpkernel.org/Howto%3A-Set-up-a-Rumprun-toolchain-in-Mac-OS-X

Note: -current *should* provide a new enough toolchain, but I haven't
verified it myself.


Current of NetBSD right now does not work properly inside VirtualBox (reported 
by me and confirmed by some others). Anyway I will keep testing especially on 
OpenBSD if I can find something way to fix it or at least workaround it and of 
course waiting for newer gcc.

Just for archive I am on:

$ uname -mprsv
OpenBSD 6.0 GENERIC.MP#2057 amd64 amd64
$

running inside VirtualBox 5 on Windows 7 64bit

Default system gcc:

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

System ld:

$ ld -v
GNU ld version 2.17
$

Newer gcc from packages:

$ egcc -v
Using built-in specs.
COLLECT_GCC=egcc
COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64-unknown-openbsd6.0/4.9.3/lto-wrapper
Target: x86_64-unknown-openbsd6.0
Configured with: /usr/obj/ports/gcc-4.9.3/gcc-4.9.3/configure --enable-libgcj 
--without-jar --verbose --program-transform-name='s,^,e,' --disable-nls 
--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 --prefix=/usr/local --sysconfdir=/etc --mandir=/usr/local/man 
--infodir=/usr/local/info --localstatedir=/var --disable-silent-rules 
--disable-gtk-doc
Thread model: posix
gcc version 4.9.3 (GCC)
$

Other related posts: