NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

RE: toolchain/51147: Segmentation fault with build.sh on OpenBSD current (trying rump)



The following reply was made to PR toolchain/51147; it has been noted by GNATS.

From: christos%zoulas.com@localhost (Christos Zoulas)
To: <Tomas.T.Bodzar%tieto.com@localhost>, <gnats-bugs%NetBSD.org@localhost>, 
	<toolchain-manager%netbsd.org@localhost>, <gnats-admin%netbsd.org@localhost>, 
	<netbsd-bugs%netbsd.org@localhost>
Cc: 
Subject: RE: toolchain/51147: Segmentation fault with build.sh on OpenBSD current (trying rump)
Date: Mon, 23 May 2016 09:20:25 -0400

 On May 23, 12:42pm, Tomas.T.Bodzar%tieto.com@localhost (<Tomas.T.Bodzar%tieto.com@localhost>) wrote:
 -- Subject: RE: toolchain/51147: Segmentation fault with build.sh on OpenBSD 
 
 | 
 | -----Original Message-----
 | From: Christos Zoulas [mailto:christos%zoulas.com@localhost]=20
 | Sent: Friday, May 20, 2016 4:15 PM
 | To: toolchain-manager%netbsd.org@localhost; gnats-admin%netbsd.org@localhost; netbsd-bugs@netbs=
 | d.org; Bodzar Tomas T <Tomas.T.Bodzar%tieto.com@localhost>
 | Subject: Re: toolchain/51147: Segmentation fault with build.sh on OpenBSD c=
 | urrent (trying rump)
 | 
 | The following reply was made to PR toolchain/51147; it has been noted by GN=
 | ATS.
 | 
 | From: christos%zoulas.com@localhost (Christos Zoulas)
 | To: <Tomas.T.Bodzar%tieto.com@localhost>, <toolchain-manager%netbsd.org@localhost>,=20
 | 	<gnats-admin%netbsd.org@localhost>, <netbsd-bugs%netbsd.org@localhost>,=20
 | 	<gnats-bugs%NetBSD.org@localhost>
 | Cc:=20
 | Subject: Re: toolchain/51147: Segmentation fault with build.sh on OpenBSD c=
 | urrent (trying rump)
 | Date: Fri, 20 May 2016 10:11:36 -0400
 | 
 |  On May 20,  1:02pm, Tomas.T.Bodzar%tieto.com@localhost (<Tomas.T.Bodzar%tieto.com@localhost>) =
 | wrote:
 |  -- Subject: Re: toolchain/51147: Segmentation fault with build.sh on OpenB=
 | SD=20
 | =20
 |  | Not sure if I understand you properly now. It is not NetBSD machine. I a=
 | m o=3D  | n OpenBSD and following tutorial for Rumpkernel. Part of that is =
 | download o=3D  | f src-netbsd via git and then trying to build it with buil=
 | d.sh (necessary t=3D  | ools). However it always crash on same place no mat=
 | ter if gcc or egcc is us=3D  | ed. There are no binaries inside relevant to=
 | ols directory, not are others i=3D  | n bin=3D0A=3D  | =3D0A=3D  | $ pwd=3D=
 | 0A=3D  | /home/username/rump/rumprun/src-netbsd=3D0A=3D
 |  | $ ls -F bin/=3D0A=3D
 |  | cat/   chmod/ cp/    dd/    df/    ed/    ln/    ls/    mkdir/ mv/    pa=
 | x/ =3D
 |  |   rm/    rmdir/=3D0A=3D
 |  | $ ls -F elftools.x86_64/bin/=3D0A=3D
 |  | nbmake*       nbmake-amd64*=3D0A=3D
 |  | $=3D0A=3D
 | =20
 | =20
 |  I understand. in src-netbsd there is a tools subdirectory. It contains the=
 |   toolchain to build the system. In tools there is a texinfo directory. Und=
 | er  that there should be the binaries for the tool that coredumps. Alternat=
 | ively  cp /usr/bin/true to the tool that core-dumps so the build can procee=
 | d :-)
 | =20
 |  Christos
 | 
 | Tried fresh run to avoid any leftovers from playing. Followed this one http=
 | s://github.com/rumpkernel/wiki/wiki/Tutorial%3A-Building-Rumprun-Unikernels=
 |  with OpenBSD -current updated just before run, CC=3Degcc (from packages) a=
 | nd ld line about version changed from die to echo in build-rr.sh
 | 
 | #       create  libc/fgetws.d                                              =
 |                                                                            =
 |                   CC=3D/home/username/rumprun/obj-amd64-hw/rumptools/bin/x8=
 | 6_64--netbsd-gcc /home/username/rumprun/obj-amd64-hw/rumptools/bin/nbmkdep =
 | -f fgetws.d.tmp  --   -std=3Dgnu99    -D
 | __NetBSD__ -U__OpenBSD__ --sysroot=3D/home/username/rumprun/obj-amd64-hw/ru=
 | mptools/dest  -D_LIBC -DLIBC_SCCS -DSYSLIBC_SCCS -D_REENTRANT -D_DIAGNOSTIC=
 |  -DHESIOD -DINET6 -D
 | NLS -I/home/username/rumprun/src-netbsd/lib/libc/include -I/home/username/r=
 | umprun/src-netbsd/lib/libc -I/home/username/rumprun/src-netbsd/sys -I/home/=
 | username/rumprun/s
 | rc-netbsd/lib/libc/compat/../locale -I/home/username/rumprun/src-netbsd/lib=
 | /libc/compat/stdlib -I/home/username/rumprun/src-netbsd/lib/libc/compat/../=
 | stdlib -D__BUILD_L
 | EGACY -I/home/username/rumprun/src-netbsd/lib/libc/../../common/lib/libc/qu=
 | ad -I/home/username/rumprun/src-netbsd/lib/libc/../../common/lib/libc/strin=
 | g -I/home/username
 | /rumprun/src-netbsd/lib/libc/../../common/lib/libc/arch/x86_64/string -D__D=
 | BINTERFACE_PRIVATE -I/home/username/rumprun/src-netbsd/libexec/ld.elf_so -I=
 | /home/username/rum
 | prun/src-netbsd/lib/libc/dlfcn -I/home/username/rumprun/src-netbsd/lib/libc=
 | /gdtoa -I/home/username/rumprun/src-netbsd/lib/libc/locale -DNO_FENV_H -I/h=
 | ome/username/rumpr
 | un/src-netbsd/lib/libc/arch/x86_64/gdtoa -DWITH_RUNE -I/home/username/rumpr=
 | un/src-netbsd/lib/libc -DPOSIX_MISTAKE -DCOMPAT__RES -DUSE_POLL -DPORTMAP -=
 | DWIDE_DOUBLE -DALL
 | _STATE -DUSG_COMPAT      /home/username/rumprun/src-netbsd/lib/libc/stdio/f=
 | getws.c &&  mv fgetws.d.tmp fgetws.d
 | --- fgets_chk.d ---
 | In file included from /home/username/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:1=
 | 7: 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/rumprun/src-netbsd/lib/libc
 | 1 error
 | 
 | nbmake: stopped in /home/username/rumprun/src-netbsd/lib/libc
 
 This is building the NetBSD libc with the OpenBSD compiler which seems
 to be breaking because of header inconsistencies in the OpenBSD gcc.
 Is there an ssp.h in /usr/local/lib/gcc/x86_64-unknown-openbsd6.0/4.9.3/include/
 
 christos
 


Home | Main Index | Thread Index | Old Index