Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Apr 2017 19:49:54 +0800
From:      Jia-Shiun Li <jiashiun@gmail.com>
To:        "freebsd-arm@freebsd.org" <freebsd-arm@freebsd.org>
Subject:   aarch64 build on nfs often stops at objcopy
Message-ID:  <CAHNYxxM=srMTO%2BsMm6NYTmAEG9EJsQsajs0zXrE%2BrkU3ivROJw@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
happens both on rpi3 native build and amd64 cross build,
when MAKEOBJDIRPREFIX is set to nfs directory,
it often stops at objcopy: failed to read section

OTOH if set to output to local disks, then everything goes well.
amd64 & armv6 are good on nfs.

It happens to me since 1~2 weeks ago or so.


native build on rpi3, r317096:
--- clang-tblgen.debug ---
objcopy --only-keep-debug clang-tblgen.full clang-tblgen.debug
objcopy: failed to read section:
*** [clang-tblgen.debug] Error code 1

make[3]: stopped in /personal/freebsd/testsource/usr.bin/clang/clang-tblgen
1 error

make[3]: stopped in /personal/freebsd/testsource/usr.bin/clang/clang-tblgen
*** [_bootstrap-tools-usr.bin/clang/clang-tblgen] Error code 2

make[2]: stopped in /personal/freebsd/testsource



cross build from amd64, r317045:
--- lldb.debug ---
objcopy --only-keep-debug lldb.full lldb.debug
......
......
objcopy: failed to read section:
*** [lldb.debug] Error code 1

make[5]: stopped in /tmp/src/usr.bin/clang/lldb
1 error

make[5]: stopped in /tmp/src/usr.bin/clang/lldb
*** [all_subdir_usr.bin/clang/lldb] Error code 2

make[4]: stopped in /tmp/src/usr.bin/clang



cross build, with aarch64-binutils-2.27_6,1:
(time nice +20 env MAKEOBJDIRPREFIX=/mnt/external-binutils make -j12
KERNCONF=GENERIC-NODEBUG TARGET_ARCH=aarch64
CROSS_BINUTILS_PREFIX=/usr/local/aarch64-freebsd/bin
buildworld buildkernel | tee build.ext-binutilslog)
--- vers.c ---
MAKE=make sh /tmp/src/sys/conf/newvers.sh  GENERIC-NODEBUG
--- vers.o ---
cc -target aarch64-unknown-freebsd12.0
--sysroot=/mnt/external-binutils/arm64.aarch64/tmp/src/tmp
-B/usr/local/aarch64-freebsd/bin -c -O -pipe  -g -nostdinc  -I.
-I/tmp/src/sys -I/tmp/src/sys/contrib/libfdt -D_KERNEL
-DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h  -fno-omit-frame-pointer
-mno-omit-leaf-frame-pointer  -mgeneral-regs-only -ffixed-x18
-ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls
-Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith
-Winline -Wcast-qual-Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__
-Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas
-Wno-error-tautological-compare -Wno-error-empty-body
-Wno-error-parentheses-equality -Wno-error-unused-function
-Wno-error-pointer-sign -Wno-error-shift-negative-value
-Wno-error-address-of-packed-member    -std=iso9899:1999 -Werror  vers.c
ctfconvert -L VERSION -g vers.o
--- kernel.full ---
linking kernel.full
ctfmerge -L VERSION -g -o kernel.full ...
ERROR: ctfmerge: kernel.full: Can't open symbol table
objcopy: failed to read section:
*** [kernel.full] Error code 1

make[2]: stopped in /mnt/external-binutils/arm64.a
arch64/tmp/src/sys/GENERIC-NODEBUG
1 error

make[2]: stopped in /mnt/external-binutils/arm64.a
arch64/tmp/src/sys/GENERIC-NODEBUG
*** [buildkernel] Error code 2

make[1]: stopped in /tmp/src
1 error

make[1]: stopped in /tmp/src
1 error*** [buildkernel] Error code 2

make: stopped in /tmp/src


make: stopped in /tmp/src




-Jia-Shiun



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAHNYxxM=srMTO%2BsMm6NYTmAEG9EJsQsajs0zXrE%2BrkU3ivROJw>