Date: Mon, 18 Jan 2016 10:05:16 -0800 From: Mark Millard <markmi@dsl-only.net> To: fehrist@codeghar.com, Toby <misc.lists@fsck.ch> Cc: freebsd-arm <freebsd-arm@freebsd.org> Subject: Re: make buildworld failed with error "relocation truncated to fit: R_ARM_JUMP24 against symbol `_fini'" Message-ID: <374A0F64-E3FC-42F1-AC03-DF8F88269AEB@dsl-only.net> In-Reply-To: <C9C41590-3798-45D2-8F47-2A5AB4AA137A@dsl-only.net> References: <3E1CC674-D534-4C33-8C96-CA9E584931C0@dsl-only.net> <569D2557.3060802@codeghar.com> <C9C41590-3798-45D2-8F47-2A5AB4AA137A@dsl-only.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Hmm. Clearly I can not count: I listed 6 files for arm and one for mips = use. Please check all 6 that are for arm. =3D=3D=3D Mark Millard markmi at dsl-only.net On 2016-Jan-18, at 10:01 AM, Mark Millard <markmi@dsl-only.net> wrote: On 2016-Jan-18, at 9:48 AM, Hamza Sheikh <fehrist@codeghar.com> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?374A0F64-E3FC-42F1-AC03-DF8F88269AEB>