From owner-freebsd-arm@freebsd.org Mon Jan 18 17:48:07 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 35FD1A86B38 for ; Mon, 18 Jan 2016 17:48:07 +0000 (UTC) (envelope-from fehrist@codeghar.com) Received: from mail-pf0-x232.google.com (mail-pf0-x232.google.com [IPv6:2607:f8b0:400e:c00::232]) (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 101DD1D18 for ; Mon, 18 Jan 2016 17:48:06 +0000 (UTC) (envelope-from fehrist@codeghar.com) Received: by mail-pf0-x232.google.com with SMTP id q63so165721605pfb.1 for ; Mon, 18 Jan 2016 09:48:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codeghar-com.20150623.gappssmtp.com; s=20150623; h=message-id:date:from:reply-to:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=omAfOzPSHmE7mg0KLIc2/kVadEACmAJ7WXe6XVULpGo=; b=ldlNis+iOuH5+ObGXlhamToZ+/Z0ybmpD6a4C+f6YpP9zybrsBCiA1IZaxPexSRqvM 65nhAn1CWOjtHr0ekdl5PlfTSRzd4bGCv5Ukn/wtGIhuutndMoLXIQsgG1OwJZ+0Cd9U ppSMuMPyZtQQS8QBbBhOSHZqeaGWCpG4Oggs2xBwJxGW3y7o27x7yt4aKoEqyLyckFpt rwvWnv0ixHPX8aBeqpo27hZvDP/gDJMuAT/cgjEtIN1fJIST26TlCjx+Z6qI6WeAAGid sod7Wswzr7IxOjd1LIJePpol2dDXMquSf8udyQLEqfMC0QPNgKq8tU2EjIQONQI0eSGu RfZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:reply-to:user-agent :mime-version:to:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=omAfOzPSHmE7mg0KLIc2/kVadEACmAJ7WXe6XVULpGo=; b=kxS/UT8HGdy1Db7TTgE9Zpd1/QXzl65W8xRZ+U200ymc1orKyJ12ytqpyWINbhndgR MEhkab9LO5jmbEayenW6FIDBhvhbjty/U1ZON/xBXGGuffKnSTJlGX4TCwcMQbcW3z9Y gnrwdRilcabyloV57kApENCsCS8AzN/y07dKBoOvDce/KBKDQHmAxNZONMBzeuTAJeXB NbMcfyLpLVTHEadC7Tfp3dNLZwne213VoTiATBywE+yXBZWGKewuxyAePWiKpM+UFNHZ k7XNWPQmxQdh3zAiCm0dj9tMIVJFAtdO4Se1yQpC8/A3ZEvutIj6Iy6Y0yeUF8FDFQ4f 0Mlg== X-Gm-Message-State: ALoCoQlileNokNA4gWH6hyVNy85LfpQXtw/ygaEfIqJ+TilgYXW0ALMEd0NWJkvNC5B9kq3qEAe1Vue1D9GDZj70rqCEu7V+3g== X-Received: by 10.98.66.74 with SMTP id p71mr38250860pfa.105.1453139286544; Mon, 18 Jan 2016 09:48:06 -0800 (PST) Received: from heer.internal.jugni.xyz ([2601:600:8300:9b4:ec3e:f6e7:a569:a6fc]) by smtp.googlemail.com with ESMTPSA id ux2sm35498656pac.46.2016.01.18.09.48.05 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 18 Jan 2016 09:48:06 -0800 (PST) Message-ID: <569D2557.3060802@codeghar.com> Date: Mon, 18 Jan 2016 09:48:07 -0800 From: Hamza Sheikh Reply-To: fehrist@codeghar.com User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: Mark Millard , freebsd-arm Subject: Re: make buildworld failed with error "relocation truncated to fit: R_ARM_JUMP24 against symbol `_fini'" References: <3E1CC674-D534-4C33-8C96-CA9E584931C0@dsl-only.net> In-Reply-To: <3E1CC674-D534-4C33-8C96-CA9E584931C0@dsl-only.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed 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 17:48:07 -0000 Thank you for the detailed reply. > An explanation of why you hit a problem anyway might be that you have an odd mix of paths in your note. For example: > >> /usr/local/raspbsd/src/common/lib/csu/arm/crt1.c > > is apparently not inside the tree starting at > >> /usr/src > > But your "steps" show /usr/src use: > >> # svnlite checkout svn://svn.freebsd.org/base/head /usr/src >> . . . >> # cd /usr/src >> # svnlite update >> . . . >> # svnlite info >> Path: . >> Working Copy Root Path: /usr/src >> . . . >> # make buildworld > > > May be something not shown from your /etc/src.conf or some place else redirected things? May be you are picking up some old files from a prior build? > $ cat /etc/src.conf KERNCONF=RPI2 WITHOUT_DEBUG_FILES=YES > Notes about where -mlong-calls are used. . . Thank you for the details. > They all are in -r294031 on base/head . (One of the 5 arm specific ones has been there a little longer: -r293648 .) > While clang 3.8.0 builds normally have this large-distance issue, as far as I know normal clang 3.7.1 builds do not normally have large enough distances to create the issue. But the paths in your notes suggest something is not normal about your context. Toby[1] hit the same error as me. It appears that he may not be using the same install image as me as his error snippet shows /usr/src/lib/csu/arm/crt1.c instead of /usr/local/raspbsd/src/common/lib/csu/arm/crt1.c. > Separately: I agree with Andreas Schwarz's note that doing builds and installs while having a tiny /tmp is likely not going to work: /tmp will likely run out of space even though elsewhere has lots of space available. I changed to using tmpfs for /tmp and hit the same error. $ cat /etc/fstab /dev/mmcsd0s1 /boot/msdos msdosfs rw,noatime 0 0 /dev/mmcsd0s2a / ufs rw,noatime 1 1 #md /tmp mfs rw,noatime,-s50m 0 0 md /var/log mfs rw,noatime,-s15m 0 0 md /var/tmp mfs rw,noatime,-s10m 0 0 tmpfs /tmp tmpfs rw,mode=777 0 0 $ cat /etc/rc.conf hostname="rpi2" ifconfig_ue0="DHCP" sshd_enable="YES" powerd_enable="YES" # Nice if you have a network, else annoying. ntpd_enable="YES" ntpd_sync_on_start="YES" # Uncomment to disable common services (more memory) #cron_enable="NO" #syslogd_enable="NO" sendmail_enable="NONE" sendmail_submit_enable="NO" sendmail_outbound_enable="NO" sendmail_msp_queue_enable="NO" # On first boot, enlarge the root filesystem to fill the SD card growfs_enable="YES" ipv6_activate_all_interfaces="YES" ifconfig_ue0_ipv6="inet6 accept_rtadv" rtsold_enable="YES" tmpmfs="AUTO" [1] https://lists.freebsd.org/pipermail/freebsd-arm/2016-January/013052.html -- Hamza Sheikh Twitter: @aikchar