upgrading arm6hf

Karl Denninger karl at denninger.net
Fri May 20 02:33:30 UTC 2016


Ehhhh....

Just tried to use the "mk" script that I've been running to do a
crossbuild on a freshly-updated tree, and it blew up here:

--- flt_rounds.So ---
cc  -fpic -DPIC  -O -pipe   -I/pics/CrossBuild/src/lib/libc/include
-I/pics/CrossBuild/src/lib/libc/../../include
-I/pics/CrossBuild/src/lib/libc/arm -DNLS  -D__DBINTERFACE_PRIVATE
-I/pics/CrossBuild/src/lib/libc/../../contrib/gdtoa
-I/pics/CrossBuild/src/lib/libc/../../contrib/libc-vis -DINET6
-I/pics/CrossBuild/obj/arm.armv6/pics/CrossBuild/src/lib/libc
-I/pics/CrossBuild/src/lib/libc/resolv -D_ACL_PRIVATE -DPOSIX_MISTAKE
-I/pics/CrossBuild/src/lib/libc/../libmd
-I/pics/CrossBuild/src/lib/libc/../../contrib/jemalloc/include
-I/pics/CrossBuild/src/lib/libc/../../contrib/tzcode/stdtime
-I/pics/CrossBuild/src/lib/libc/stdtime
-I/pics/CrossBuild/src/lib/libc/locale -DBROKEN_DES -DPORTMAP
-DDES_BUILTIN -I/pics/CrossBuild/src/lib/libc/rpc -DYP -DNS_CACHING
-DSYMBOL_VERSIONING -MD  -MF.depend.flt_rounds.So -MTflt_rounds.So
-std=gnu99 -Wsystem-headers -Werror -Wall -Wno-format-y2k
-Wno-uninitialized -Wno-pointer-sign -Wno-empty-body
-Wno-string-plus-int -Wno-unused-const-variable
-Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality
-Wno-unused-function -Wno-enum-conversion -Wno-unused-local-typedef
-Wno-switch -Wno-switch-enum -Wno-knr-promoted-parameter 
-Qunused-arguments  -I/pics/CrossBuild/src/lib/libutil
-I/pics/CrossBuild/src/lib/msun/arm -I/pics/CrossBuild/src/lib/msun/src
-c /pics/CrossBuild/src/lib/libc/arm/gen/flt_rounds.c -o flt_rounds.So
--- arm_initfini.So ---
cc  -fpic -DPIC  -O -pipe   -I/pics/CrossBuild/src/lib/libc/include
-I/pics/CrossBuild/src/lib/libc/../../include
-I/pics/CrossBuild/src/lib/libc/arm -DNLS  -D__DBINTERFACE_PRIVATE
-I/pics/CrossBuild/src/lib/libc/../../contrib/gdtoa
-I/pics/CrossBuild/src/lib/libc/../../contrib/libc-vis -DINET6
-I/pics/CrossBuild/obj/arm.armv6/pics/CrossBuild/src/lib/libc
-I/pics/CrossBuild/src/lib/libc/resolv -D_ACL_PRIVATE -DPOSIX_MISTAKE
-I/pics/CrossBuild/src/lib/libc/../libmd
-I/pics/CrossBuild/src/lib/libc/../../contrib/jemalloc/include
-I/pics/CrossBuild/src/lib/libc/../../contrib/tzcode/stdtime
-I/pics/CrossBuild/src/lib/libc/stdtime
-I/pics/CrossBuild/src/lib/libc/locale -DBROKEN_DES -DPORTMAP
-DDES_BUILTIN -I/pics/CrossBuild/src/lib/libc/rpc -DYP -DNS_CACHING
-DSYMBOL_VERSIONING -MD  -MF.depend.arm_initfini.So -MTarm_initfini.So
-std=gnu99 -Wsystem-headers -Werror -Wall -Wno-format-y2k
-Wno-uninitialized -Wno-pointer-sign -Wno-empty-body
-Wno-string-plus-int -Wno-unused-const-variable
-Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality
-Wno-unused-function -Wno-enum-conversion -Wno-unused-local-typedef
-Wno-switch -Wno-switch-enum -Wno-knr-promoted-parameter 
-Qunused-arguments  -I/pics/CrossBuild/src/lib/libutil
-I/pics/CrossBuild/src/lib/msun/arm -I/pics/CrossBuild/src/lib/msun/src
-c /pics/CrossBuild/src/lib/libc/arm/gen/arm_initfini.c -o arm_initfini.So
--- flt_rounds.So ---
/pics/CrossBuild/src/lib/libc/arm/gen/flt_rounds.c:34:10: fatal error:
'softfloat-for-gcc.h' file not found
#include "softfloat-for-gcc.h"
         ^
1 error generated.
*** [flt_rounds.So] Error code 1

bmake[4]: stopped in /pics/CrossBuild/src/lib/libc
1 error


On 5/19/2016 21:16, bob prohaska wrote:
> On my RPI2 the OS build/install cycle stopped at installkernel
> (sorry, not buildworld) reporting an unknown architecture.
>
> Using TARGET_ARCH=armv6 allowed the kernel install to complete,
> with a normal reboot. However, an attempt to update and re-run
> buildworld without options triggered the error
> bmake[1]: "/usr/src/Makefile.inc1" line 242: Unknown target armv6hf:arm.
>
> Invoking buildworld with TARGET_ARCH=armv6 then produces
> bmake[1]: "/usr/src/Makefile.inc1" line 266: To cross-build, set TARGET_ARCH.
>
> World and kernel were thus built with no options but the kernel was installed with
> TARGET_ARCH=armv6, apparently causing an identity crisis 8-)
>
> Uname -a reports
> FreeBSD www.zefox.com 11.0-CURRENT FreeBSD 11.0-CURRENT #100 r300176M: Thu May 19 15:08:18 PDT 2016     root at www.zefox
> .com:/usr/obj/usr/src/sys/RPI2  arm 
>
> What's the best way to repair the damage?
>
> Thanks for reading,
>
> bob prohaska
>
>
>
> On Thu, May 19, 2016 at 04:21:02PM -0700, bob prohaska wrote:
>> On RPI2
>>  
>> make installworld TARGET_ARCH=armv6
>>
>> was sufficient.
>>
>> The only visible glitch on reboot was
>>
>> (da0:umass-sim0:0:0:0): READ(10). CDB: 28 00 03 c9 6b a8 00 00 28 00 
>> (da0:umass-sim0:0:0:0): CAM status: CCB request completed with an error
>> (da0:umass-sim0:0:0:0): Retrying command
>>
>> but that seems unrelated. Boot was otherwise normal.
>>
>> bob prohaska
>>
>> On Wed, May 18, 2016 at 12:24:21PM -1000, David Cornejo wrote:
>>> I am trying that now, I'll report back when it finishes
>>>
>>> thanks!
>>>
>>> On Wed, May 18, 2016 at 12:12 PM, Warner Losh <imp at bsdimp.com> wrote:
>>>> I believe, but I haven't tested, that all that should be required is
>>>> an installworld / installkernel.
>>>> You'll need to build with TARGET_ARCH=armv6 and may need to say DESTDIR=/ to get
>>>> around the cross-threading safety checks.
>>>>
>>>> Warner
>>>>
>>>> On Wed, May 18, 2016 at 1:40 PM, David Cornejo <dave at dogwood.com> wrote:
>>>>> Hi,
>>>>>
>>>>> What needs to be done to convert an arm6hf system to the new
>>>>> hard-float arm6? can it be done?
>>>>>
>>>>> dave c
>>>>> _______________________________________________
>>>>> freebsd-arm at freebsd.org mailing list
>>>>> https://lists.freebsd.org/mailman/listinfo/freebsd-arm
>>>>> To unsubscribe, send any mail to "freebsd-arm-unsubscribe at freebsd.org"
>>> _______________________________________________
>>> freebsd-arm at freebsd.org mailing list
>>> https://lists.freebsd.org/mailman/listinfo/freebsd-arm
>>> To unsubscribe, send any mail to "freebsd-arm-unsubscribe at freebsd.org"
>> _______________________________________________
>> freebsd-arm at freebsd.org mailing list
>> https://lists.freebsd.org/mailman/listinfo/freebsd-arm
>> To unsubscribe, send any mail to "freebsd-arm-unsubscribe at freebsd.org"
> _______________________________________________
> freebsd-arm at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-arm
> To unsubscribe, send any mail to "freebsd-arm-unsubscribe at freebsd.org"

-- 
Karl Denninger
karl at denninger.net <mailto:karl at denninger.net>
/The Market Ticker/
/[S/MIME encrypted email preferred]/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2996 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.freebsd.org/pipermail/freebsd-arm/attachments/20160519/99a02c8d/attachment.bin>


More information about the freebsd-arm mailing list