From owner-freebsd-arm@freebsd.org Mon Jan 18 18:08:00 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 039C4A83269 for ; Mon, 18 Jan 2016 18:08:00 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: from asp.reflexion.net (outbound-mail-211-157.reflexion.net [208.70.211.157]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B20B018A6 for ; Mon, 18 Jan 2016 18:07:59 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: (qmail 8821 invoked from network); 18 Jan 2016 18:01:29 -0000 Received: from unknown (HELO rtc-sm-01.app.dca.reflexion.local) (10.81.150.1) by 0 (rfx-qmail) with SMTP; 18 Jan 2016 18:01:29 -0000 Received: by rtc-sm-01.app.dca.reflexion.local (Reflexion email security v7.80.0) with SMTP; Mon, 18 Jan 2016 13:01:21 -0500 (EST) Received: (qmail 25388 invoked from network); 18 Jan 2016 18:01:21 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with SMTP; 18 Jan 2016 18:01:21 -0000 X-No-Relay: not in my network X-No-Relay: not in my network X-No-Relay: not in my network Received: from [192.168.1.8] (c-76-115-7-162.hsd1.or.comcast.net [76.115.7.162]) by iron2.pdx.net (Postfix) with ESMTPSA id 4AEC61C43C4; Mon, 18 Jan 2016 10:01:15 -0800 (PST) Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) Subject: Re: make buildworld failed with error "relocation truncated to fit: R_ARM_JUMP24 against symbol `_fini'" From: Mark Millard In-Reply-To: <569D2557.3060802@codeghar.com> Date: Mon, 18 Jan 2016 10:01:17 -0800 Cc: freebsd-arm Message-Id: References: <3E1CC674-D534-4C33-8C96-CA9E584931C0@dsl-only.net> <569D2557.3060802@codeghar.com> To: fehrist@codeghar.com, Toby X-Mailer: Apple Mail (2.2104) Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.20 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:00 -0000 On 2016-Jan-18, at 9:48 AM, Hamza Sheikh wrote: >=20 > Thank you for the detailed reply. >=20 > > 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? > > >=20 > $ cat /etc/src.conf > KERNCONF=3DRPI2 > WITHOUT_DEBUG_FILES=3DYES >=20 >=20 > > Notes about where -mlong-calls are used. . . >=20 > Thank you for the details. >=20 > > They all are in -r294031 on base/head . (One of the 5 arm specific = ones has been there a little longer: -r293648 .) >=20 > > 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. >=20 > 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. >=20 > > 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. >=20 > I changed to using tmpfs for /tmp and hit the same error. >=20 > $ 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=3D777 0 0 >=20 >=20 >=20 > $ cat /etc/rc.conf > hostname=3D"rpi2" > ifconfig_ue0=3D"DHCP" > sshd_enable=3D"YES" >=20 > powerd_enable=3D"YES" >=20 > # Nice if you have a network, else annoying. > ntpd_enable=3D"YES" > ntpd_sync_on_start=3D"YES" >=20 > # Uncomment to disable common services (more memory) > #cron_enable=3D"NO" > #syslogd_enable=3D"NO" > sendmail_enable=3D"NONE" > sendmail_submit_enable=3D"NO" > sendmail_outbound_enable=3D"NO" > sendmail_msp_queue_enable=3D"NO" > # On first boot, enlarge the root filesystem to fill the SD card > growfs_enable=3D"YES" >=20 > ipv6_activate_all_interfaces=3D"YES" > ifconfig_ue0_ipv6=3D"inet6 accept_rtadv" > rtsold_enable=3D"YES" >=20 > tmpmfs=3D"AUTO" >=20 >=20 > [1] = https://lists.freebsd.org/pipermail/freebsd-arm/2016-January/013052.html >=20 > --=20 > Hamza Sheikh > Twitter: @aikchar I listed 5 files and their -mlong-calls related content for arm (plus = one file that has -mlong-calls for mips use). Please check all 5 files = for arm for as they were when you built/build and report on what you = find. The files are: > STATIC_CXXFLAGS+=3D -mlong-calls > /usr/src/lib/libc++/Makefile > STATIC_CFLAGS+=3D -mlong-calls > /usr/src/lib/csu/arm/Makefile > CFLAGS+=3D -mlong-calls > /usr/src/usr.bin/clang/lldb/Makefile > CFLAGS+=3D -mlong-calls > /usr/src/usr.bin/clang/clang/Makefile > STATIC_CXXFLAGS+=3D -mlong-calls > /usr/src/lib/clang/clang.lib.mk > ${CC} ${STATIC_CFLAGS} ${CFLAGS} -c ${.IMPSRC} -o ${.TARGET} > ${CC} ${PO_FLAG} ${STATIC_CFLAGS} ${PO_CFLAGS} -c ${.IMPSRC} -o = ${.TARGET} > ${CXX} ${STATIC_CXXFLAGS} ${CXXFLAGS} -c ${.IMPSRC} -o = ${.TARGET} > ${CXX} ${PO_FLAG} ${STATIC_CXXFLAGS} ${PO_CXXFLAGS} -c = ${.IMPSRC} -o ${.TARGET} > /usr/src/share/mk/bsd.lib.mk =3D=3D=3D Mark Millard markmi at dsl-only.net