NetBSD-Users archive

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

Re: NetBSD 7.0_RC1



Hi All,
     I have tried to compile NetBSD 7.0_RC1 from source.
I was successful when I don't use any specific
parameter (no file "/etc/mk.conf") but when I try to
add some variable to generate Position Independant Executable
in the make file the compilation stops at some assembler code.

I am not too surprised since position
independent code could be difficult with
assembly language.

What should I do to continue the compilation?

Thanks for your help,

Kind regards,

Alan

-------------------------------/etc/mk.conf----------------------------------
# Example /usr/pkg/etc/mk.conf file produced by bootstrap-pkgsrc
# Ven jui 19 14:03:43 CEST 2015

MKPIE=                  yes
USE_SSP=                yes
USE_FORT=               yes

#CFLAGS +=               -O3 -fpie -fstack-protector-all
-----------------------------------------------------------------------------

-----------------------------Error--------------------------------------------
CC=/export/chroot/systeme/src/../tools/bin/x86_64--netbsd-gcc /export/chroot/systeme/src/../tools/bin/nbmkdep -s .o\ .po\ .pico\ .go\ .ln -d -f .depend sljitLir.d
--- dependall ---
--- sljitLir.o ---
#   compile  lib/sljitLir.o
/export/chroot/systeme/src/../tools/bin/x86_64--netbsd-gcc -O2   -std=gnu99   -Werror  -m32 -fPIC -m32 -fstack-protector -Wstack-protector   --param ssp-buffer-size=1   --sysroot=/export/chroot/systeme/src/../obj/destdir.amd64 -I/export/chroot/systeme/src/sys/external/bsd/sljit/dist/sljit_src  -D_FORTIFY_SOURCE=2 -c    /export/chroot/systeme/src/sys/external/bsd/sljit/dist/sljit_src/sljitLir.c -o sljitLir.o
In file included from /export/chroot/systeme/src/sys/external/bsd/sljit/dist/sljit_src/sljitLir.c:1382:0:
/export/chroot/systeme/src/sys/external/bsd/sljit/dist/sljit_src/sljitNativeX86_common.c: In function 'sljit_emit_op1':
/export/chroot/systeme/src/sys/external/bsd/sljit/dist/sljit_src/sljitNativeX86_common.c:298:2: error: PIC register clobbered by '%rbx' in 'asm'
  __asm__ (
  ^
*** [sljitLir.o] Error code 1
nbmake[8]: stopped in /export/chroot/systeme/src/external/bsd/sljit/lib
1 error
nbmake[8]: stopped in /export/chroot/systeme/src/external/bsd/sljit/lib
*** [dependall] Error code 2
nbmake[7]: stopped in /export/chroot/systeme/src/external/bsd/sljit/lib
1 error
nbmake[7]: stopped in /export/chroot/systeme/src/external/bsd/sljit/lib
*** Failed target:  dependall-../external/bsd/sljit/lib
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1"; shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .) this="compat/amd64/i386/../../../lib/"; real="/export/chroot/systeme/src/lib" ;; *) this="compat/amd64/i386/../../../lib/${dir}/"; real="/export/chroot/systeme/src/lib/${dir}" ;; esac; show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with: $@)}"; cd "${real}" && /export/chroot/systeme/src/../tools/bin/nbmake _THISDIR_="${this}" "$@" ${target}; }; _makedirtarget ../external/bsd/sljit/lib dependall
*** Error code 2
Stop.
nbmake[6]: stopped in /export/chroot/systeme/src/lib
*** [build_install] Error code 1
nbmake[5]: stopped in /export/chroot/systeme/src/lib
1 error
nbmake[5]: stopped in /export/chroot/systeme/src/lib
*** [build_install-../../../lib] Error code 2
nbmake[4]: stopped in /export/chroot/systeme/src/compat/amd64/i386
1 error
nbmake[4]: stopped in /export/chroot/systeme/src/compat/amd64/i386
*** [build_install-amd64/i386] Error code 2
nbmake[3]: stopped in /export/chroot/systeme/src/compat
1 error
nbmake[3]: stopped in /export/chroot/systeme/src/compat
*** [do-compat-lib] Error code 2

nbmake[2]: stopped in /export/chroot/systeme/src
1 error

nbmake[2]: stopped in /export/chroot/systeme/src
*** [build] Error code 2
nbmake[1]: stopped in /export/chroot/systeme/src
1 error

nbmake[1]: stopped in /export/chroot/systeme/src
*** [distribution] Error code 2

nbmake: stopped in /export/chroot/systeme/src
1 error

nbmake: stopped in /export/chroot/systeme/src

ERROR: Failed to make distribution
*** BUILD ABORTED ***
------------------------------------------------------------------------------
   
On Wed, Jun 24, 2015 at 02:01:15PM -0700, matthew sporleder wrote:
> On Sun, Jun 21, 2015 at 11:26 AM, Soren Jacobsen <snj%netbsd.org@localhost> wrote:
> > On behalf of the NetBSD project, it is my pleasure to announce the first
> > release candidate of NetBSD 7.0.
> >
> > Many changes have been made since 6.0.  Here are a few highlights:


Home | Main Index | Thread Index | Old Index