From owner-freebsd-arm@freebsd.org Mon Jan 18 18:08:32 2016 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 9CD68A832D8 for ; Mon, 18 Jan 2016 18:08:32 +0000 (UTC) (envelope-from andrew@fubar.geek.nz) Received: from kif.fubar.geek.nz (kif.fubar.geek.nz [178.62.119.249]) by mx1.freebsd.org (Postfix) with ESMTP id 6F22A1949 for ; Mon, 18 Jan 2016 18:08:32 +0000 (UTC) (envelope-from andrew@fubar.geek.nz) Received: from zapp (global-5-143.nat-2.net.cam.ac.uk [131.111.5.143]) by kif.fubar.geek.nz (Postfix) with ESMTPSA id 75F91D7A17; Mon, 18 Jan 2016 18:08:02 +0000 (UTC) Date: Mon, 18 Jan 2016 18:08:01 +0000 From: Andrew Turner To: Hamza Sheikh Cc: freebsd-arm Subject: Re: make buildworld failed with error "relocation truncated to fit: R_ARM_JUMP24 against symbol `_fini'" Message-ID: <20160118180801.7916ef84@zapp> In-Reply-To: <569C1D2E.6040401@codeghar.com> References: <569C1D2E.6040401@codeghar.com> X-Mailer: Claws Mail 3.13.1 (GTK+ 2.24.29; amd64-portbld-freebsd11.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Jan 2016 18:08:32 -0000 On Sun, 17 Jan 2016 15:01:02 -0800 Hamza Sheikh wrote: ... > # cat /etc/make.conf > CC=clang > CXX=clang++ > CPP=clang-cpp Why are you setting these? The default cc should already be clang. > WRKDIRPREFIX=/tmp > WITH_PKGNG=yes > # make buildworld > > > == Error == > > ... ... > /usr/lib/crt1.o: In function `__start': > /usr/local/raspbsd/src/common/lib/csu/arm/crt1.c:(.text+0xb4): > relocation truncated to fit: R_ARM_CALL against symbol `atexit' > defined in .text section in /us > r/lib/libc.a(atexit.o) > /usr/local/raspbsd/src/common/lib/csu/arm/crt1.c:(.text+0xbc): > relocation truncated to fit: R_ARM_CALL against symbol `_init_tls' > defined in .text section in > /usr/lib/libc.a(tls.o) > /usr/local/raspbsd/src/common/lib/csu/arm/crt1.c:(.text+0xcc): > relocation truncated to fit: R_ARM_CALL against symbol `atexit' > defined in .text section in /us > r/lib/libc.a(atexit.o) > /usr/local/raspbsd/src/common/lib/csu/arm/crt1.c:(.text+0x174): > relocation truncated to fit: R_ARM_CALL against symbol `exit' defined > in .text section in /usr > /lib/libc.a(exit.o) > /usr/lib/crt1.o: In function `finalizer': > /usr/local/raspbsd/src/common/lib/csu/arm/crt1.c:(.text+0x1ec): > relocation truncated to fit: R_ARM_JUMP24 against symbol `_fini' > defined in .fini section in / > usr/lib/crti.o > clang++: error: linker command failed with exit code 1 (use -v to see > invocation) Can you provide a full build log? It's difficult to figure out the issue from just the error messages. Andrew