From owner-freebsd-arm@freebsd.org Fri Apr 21 11:50:26 2017 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C861CD49D75 for ; Fri, 21 Apr 2017 11:50:26 +0000 (UTC) (envelope-from jiashiun@gmail.com) Received: from mail-qt0-x235.google.com (mail-qt0-x235.google.com [IPv6:2607:f8b0:400d:c0d::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8BC45DC for ; Fri, 21 Apr 2017 11:50:26 +0000 (UTC) (envelope-from jiashiun@gmail.com) Received: by mail-qt0-x235.google.com with SMTP id y33so67506414qta.2 for ; Fri, 21 Apr 2017 04:50:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=yS3QiVApGLGdrrbbBzYYKzSSRFSlGZLRMNMfTno21g4=; b=IVfarFXxHke3gmH7z3GDHUbr/JhEPHtJbur7+WS34FuRwO/8gaVK+HT+Ihes7PLzk9 JmD1/yAr8ICKxR3VMxe3NI6WbFO9nzoapc2ldN00jQ8vpPzHonpGlTVdVMEav1Gsoqhk Aqi2brg4IhYyeeaFwETK+4IGRMjKlF6MiTSnJ5zy42R+7TVY4vjqkjjBXBPe9MaQ2yXT iR+iEzWe7Kmc3rFS3b2qHsOB9VXoYlpQ6SzFJlQGcLWTlaf67ZkVn7wBsLIaGQCubbak O6WSHGdsIvX36nS6moT9F4XotWfrvqzGjxvOI89QTR91CgKQMj+f2SiyiewZ2bxUl001 1acQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=yS3QiVApGLGdrrbbBzYYKzSSRFSlGZLRMNMfTno21g4=; b=AptpX2zeQFf4gwcgXkECNSs6eO3OXRMqvXzBTNlGoX4R+smrWLx1+KguOJKJWrz9Kc 2Z14T86aUAdni2x6hxEaQBDw/CK4P3Q1a/uajOgZk3i2AyhnvaQi7I1xtGsejNnk9Wt4 EVKCkZfmychi8G+NyrvMHczPfoIIdHvQwtFiW6q5l2bN5JO/9qYkXzv2EGMJSvFL2xUY LbBxECjLyweDPzKblpnD2TvvWh7yAj70fTcBkYvaSlPm62gqK6jdLznr8x/BjhwGsWzQ rxbWorum1t/HrfkgcIjp/RnuzvSymdOgl0gv0rn5ip3Vaslb8Kyz6x8na683Gvx39iWf JTfA== X-Gm-Message-State: AN3rC/7ztB2wOKr/s3K5ZuQxnPtC0b6NVgtcUUDLgqKTT1F4TPondPhJ oeGEVdRxiUN6If83k3E6Iz9rd9LaMAxX X-Received: by 10.200.55.86 with SMTP id p22mr12140884qtb.167.1492775425057; Fri, 21 Apr 2017 04:50:25 -0700 (PDT) MIME-Version: 1.0 Received: by 10.140.100.143 with HTTP; Fri, 21 Apr 2017 04:49:54 -0700 (PDT) From: Jia-Shiun Li Date: Fri, 21 Apr 2017 19:49:54 +0800 Message-ID: Subject: aarch64 build on nfs often stops at objcopy To: "freebsd-arm@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Apr 2017 11:50:26 -0000 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