NetBSD-Users archive

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

Re: NetBSD 7.0_RC1



On Wed, Jul 01, 2015 at 02:34:28PM -0400, Christos Zoulas wrote:
> On Jul 1,  6:58pm, 76nemo76%gmx.ch@localhost (76nemo76%gmx.ch@localhost) wrote:
> -- Subject: Re: NetBSD 7.0_RC1
> 
> | Effectively fixing the code is a better solution.
> | 
> | Unfortunately, I haven't yet the time and knowledge
> | to fix it. I should rely on somebody else to correct the bugs.
> | This is the reason why I have suggested a lazy workaround.
> | 
> | I hope to find soon the time to read the code in order
> | to be able to modify it.
> 
> Post the errors please. I just built a full amd64 tree with MKPIE
> (and discovered that gdb does not work with PIE binaries :-( in
> the process..)
> 
> christos
Here is the error I get when I try to compile with the option
"-march=native".

----------------------------------file /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 -march=native
----------------------------------------------------------------------

-------------------------------end of error log-------------------------------
#   compile  csu/crt0.o
--- crtbeginS.o ---
/export/chroot/systeme/src/../tools/bin/x86_64--netbsd-gcc     --sysroot=/export/chroot/systeme/src/../obj/destdir.amd64 -DELFSIZE=64 -I/export/chroot/systeme/src/libexec/ld.elf_so -I/export/chroot/systeme/src/lib/csu/common -I.  -x assembler-with-cpp -c -fPIC -DSHARED /export/chroot/systeme/src/lib/csu/arch/x86_64/crtbegin.S -o crtbeginS.o.o
--- sysident_assym.h ---
cat /export/chroot/systeme/src/lib/csu/common/sysident_assym.cf |  /export/chroot/systeme/src/../tools/bin/nbgenassym -- /export/chroot/systeme/src/../tools/bin/x86_64--netbsd-gcc -O2 -O3 -march=native -std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wno-traditional -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wextra -Wno-unused-parameter -Wno-sign-compare -Wold-style-definition -Wsign-compare -Wformat=2 -Wno-format-zero-length -Werror  --sysroot=/export/chroot/systeme/src/../obj/destdir.amd64 -DELFSIZE=64 -I/export/chroot/systeme/src/libexec/ld.elf_so -I/export/chroot/systeme/src/lib/csu/common -I.     > sysident_assym.h.tmp &&  mv -f sysident_assym.h.tmp sysident_assym.h
--- crt0.o ---
/export/chroot/systeme/src/../tools/bin/x86_64--netbsd-gcc     --sysroot=/export/chroot/systeme/src/../obj/destdir.amd64 -DELFSIZE=64 -I/export/chroot/systeme/src/libexec/ld.elf_so -I/export/chroot/systeme/src/lib/csu/common -I.  -x assembler-with-cpp -c /export/chroot/systeme/src/lib/csu/arch/x86_64/crt0.S -o crt0.o.S.o
--- gcrt0.o ---
/export/chroot/systeme/src/../tools/bin/x86_64--netbsd-gcc -O2 -O3 -march=native    -std=gnu99    -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare  -Wno-traditional  -Wa,--fatal-warnings -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wextra -Wno-unused-parameter -Wno-sign-compare -Wold-style-definition -Wsign-compare -Wformat=2  -Wno-format-zero-length  -Werror    --sysroot=/export/chroot/systeme/src/../obj/destdir.amd64 -DELFSIZE=64 -I/export/chroot/systeme/src/libexec/ld.elf_so -I/export/chroot/systeme/src/lib/csu/common -I.  -c -fPIC -DMCRT0 /export/chroot/systeme/src/lib/csu/common/crt0-common.c -o gcrt0.o.c.o
--- crt0.o ---
/export/chroot/systeme/src/../tools/bin/x86_64--netbsd-gcc -O2 -O3 -march=native    -std=gnu99    -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare  -Wno-traditional  -Wa,--fatal-warnings -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wextra -Wno-unused-parameter -Wno-sign-compare -Wold-style-definition -Wsign-compare -Wformat=2  -Wno-format-zero-length  -Werror    --sysroot=/export/chroot/systeme/src/../obj/destdir.amd64 -DELFSIZE=64 -I/export/chroot/systeme/src/libexec/ld.elf_so -I/export/chroot/systeme/src/lib/csu/common -I.  -c -fPIC /export/chroot/systeme/src/lib/csu/common/crt0-common.c -o crt0.o.c.o
--- gcrt0.o ---
/export/chroot/systeme/src/lib/csu/common/crt0-common.c:1:0: error: bad value (native) for -march= switch
 /* $NetBSD: crt0-common.c,v 1.13 2013/01/31 22:24:25 matt Exp $ */
 ^
--- crt0.o ---
/export/chroot/systeme/src/lib/csu/common/crt0-common.c:1:0: error: bad value (native) for -march= switch
 /* $NetBSD: crt0-common.c,v 1.13 2013/01/31 22:24:25 matt Exp $ */
 ^
--- crtbeginS.o ---
/export/chroot/systeme/src/../tools/bin/x86_64--netbsd-objcopy -x  crtbeginS.o.o crtbeginS.o
--- gcrt0.o ---
*** [gcrt0.o] Error code 1
nbmake[6]: stopped in /export/chroot/systeme/src/lib/csu
--- crt0.o ---
*** [crt0.o] Error code 1
nbmake[6]: stopped in /export/chroot/systeme/src/lib/csu
--- sysident_assym.h ---
/tmp/genassym.21144a/assym.c:1:0: error: bad value (native) for -march= switch
 #if __GNUC__ >= 4
 ^
--- crtbeginS.o ---
rm -f crtbeginS.o.o
--- sysident_assym.h ---
*** [sysident_assym.h] Error code 1
nbmake[6]: stopped in /export/chroot/systeme/src/lib/csu
3 errors
nbmake[6]: stopped in /export/chroot/systeme/src/lib/csu
*** [dependall] Error code 2
nbmake[5]: stopped in /export/chroot/systeme/src/lib/csu
1 error
nbmake[5]: stopped in /export/chroot/systeme/src/lib/csu
*** Failed target:  dependall-csu
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1"; shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .) this="lib/"; real="/export/chroot/systeme/src/lib" ;; *) this="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 csu dependall
*** Error code 2
Stop.
nbmake[4]: stopped in /export/chroot/systeme/src/lib
*** [build_install] Error code 1
nbmake[3]: stopped in /export/chroot/systeme/src/lib
1 error
nbmake[3]: stopped in /export/chroot/systeme/src/lib
*** [do-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 ***
%                                                                                                                                

NetbsdMain% eexit


Script done on Tue Jun 30 21:27:49 2015
------------------------------------------------------------------------------


Home | Main Index | Thread Index | Old Index