Problems with Head on RaspberryPi

Michael Tuexen tuexen at freebsd.org
Thu Jun 27 19:04:45 UTC 2013


On Jun 27, 2013, at 4:23 PM, Alie Tan <alie at affle.com> wrote:

> On Thu, Jun 27, 2013 at 9:38 PM, Ralf Wenk <iz-rpi03 at hs-karlsruhe.de> wrote:
> 
>> On Thu, 27 Jun 2013 12:46:41 +0200, Michael Tuexen <tuexen at freebsd.org>
>> wrote:
>> 
>>> On Jun 27, 2013, at 12:23 AM, Diane Bruce <db at db.net> wrote:
>>>> On Wed, Jun 26, 2013 at 08:37:57PM +0200, Michael Tuexen wrote:
>>>>> On Jun 26, 2013, at 7:39 PM, Oleksandr Tymoshenko <gonzo at bluezbox.com>
>> wrote:
>>>>> 
>>>>>> 
>>>>>> On 2013-06-26, at 10:22 AM, Michael Tuexen <tuexen at freebsd.org>
>> wrote:
>>>>>> 
>>>>>>> Dear all,
>>>>>>> 
>>>>>>> I have build FreeBSD using the script from
>>>>>>> https://github.com/daveish/freebsd-arm-tools
>>>>>>> for a couple of weeks and it worked fine. However,
>>>>>>> doing this within the last days, compilation and
>>>>>>> installation works, but the Raspberry Pi doesn't
>>>>>>> boot. After Starting kernel with NULL args
>>>>>>> or so, it doesn't show anything else. Normally
>>>>>>> the FreeBSD boot messages would appear. Does anyone
>>>>>>> else also see this? Any idea how to get some
>>>>>>> debug output out of the Raspberry Pi?
>>>>>> 
>>>>>> 
>>>>>> Try disabling INVARIANTS options in the kernel. It seems
>>>>>> new code in uma_dbg performs atomic ops on the
>>>>>> allocated memory and if memory has been remapped as
>>>>>> non-cached it causes exception.
>>>>> OK. I'll try and report. It may take 24 hours...
>>>> 
>>>> I'm sorry to report it does not work.
>>> Building r252255 without INVARIANTS and INVARIANT_SUPPORT
>>> results in an image which boots completely on a R-Pi Model B with
>>> 512 MB RAM.
>> 
>> I just confirmed that without INVARIANTS and INVARIANT_SUPPORT a r252159
>> with the vmem.diff patches from Jeff Roberson applied boots also on the
>> same R-Pi Model B.
>> 
> Are you able to compile any pkg on it?
I had to rebuild the kernel since I need SCTP support, which is
not included in the default config.  Therefore I can run r252304
without INVARIANTS and INVARIANT_SUPPORT. I'm able to make and
install the devel/cvs port. However, when trying to build the
databases/db42 port (required by the svn port), I get:

...
/bin/sh ./libtool --mode=compile c++ -c -I. -I./../dist/..  -D_THREAD_SAFE -O -pipe ./../dist/../cxx/cxx_db.cpp
 c++ -c -I. -I./../dist/.. -D_THREAD_SAFE -O -pipe ./../dist/../cxx/cxx_db.cpp  -fPIC -DPIC -o .libs/cxx_db.o
In file included from ./../dist/../cxx/cxx_db.cpp:17:
In file included from ./db_cxx.h:59:
In file included from /usr/include/c++/4.2/backward/iostream.h:31:
/usr/include/c++/4.2/backward/backward_warning.h:32:2: warning: This file
      includes at least one deprecated or antiquated header. Please consider
      using one of the 32 headers found in section 17.4.1.2 of the C++ standard.
      Examples include substituting the <X> header for the <X.h> header for C++
      includes, or <iostream> instead of the deprecated header <iostream.h>. To
      disable this warning use -Wno-deprecated. [-W#warnings]
#warning This file includes at least one deprecated or antiquated header. \
 ^
Stack dump:
0.	Program arguments: /usr/bin/c++ -cc1 -triple armv6-unknown-freebsd10.0 -S -disable-free -main-file-name cxx_db.cpp -mrelocation-model pic -pic-level 2 -mdisable-fp-elim -mconstructor-aliases -target-abi apcs-gnu -target-cpu arm1136jf-s -msoft-float -mfloat-abi soft -target-feature +soft-float -target-feature +soft-float-abi -target-feature -neon -coverage-file /tmp/cxx_db-Hk1zsh.s -resource-dir /usr/bin/../lib/clang/3.3 -D _THREAD_SAFE -D PIC -I . -I ./../dist/.. -O2 -fdeprecated-macro -fno-dwarf-directory-asm -fdebug-compilation-dir /usr/ports/databases/db42/work/db-4.2.52/build_unix -ferror-limit 19 -fmessage-length 80 -mstackrealign -fno-signed-char -fobjc-runtime=gnustep -fobjc-default-synthesize-properties -fcxx-exceptions -fexceptions -fsjlj-exceptions -fdiagnostics-show-option -fcolor-diagnostics -backend-option -vectorize-loops -o /tmp/cxx_db-Hk1zsh.s -x c++ ./../dist/../cxx/cxx_db.cpp 
1.	/usr/include/c++/4.2/bits/basic_string.tcc:979:43: current parser token ';'
2.	/usr/include/c++/4.2/bits/basic_string.tcc:49:1 <Spelling=/usr/include/c++/4.2/bits/c++config.h:76:38>: parsing namespace 'std'
c++: error: unable to execute command: Segmentation fault (core dumped)
c++: error: clang frontend command failed due to signal (use -v to see invocation)
FreeBSD clang version 3.3 (tags/RELEASE_33/final 183502) 20130610
Target: armv6-unknown-freebsd10.0
Thread model: posix
c++: note: diagnostic msg: PLEASE submit a bug report to http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and associated run script.
c++: note: diagnostic msg: Error generating preprocessed source(s).
*** Error code 1

Stop.
make: stopped in /usr/ports/databases/db42/work/db-4.2.52/build_unix
*** Error code 1

Stop.
make: stopped in /usr/ports/databases/db42

This clang problem seems not to be fixed in the 3.3 release...
root at raspberry-pi:/usr/ports/databases/db42 # cc -v
FreeBSD clang version 3.3 (tags/RELEASE_33/final 183502) 20130610
Target: armv6-unknown-freebsd10.0
Thread model: posix

Any idea how to work around it? 

Best regards
Michael
> 
>> 
>> Ralf
>> 
>>> So is someone working on the uma_dbg stuff?
>>> 
>>> Best regards
>>> Michael
>>>> 
>>>>> 
>>>>> Best regards
>>>>> Michael
>>>>>> 
>>>> 
>>>> - Diane
>>>> --
>>>> - db at FreeBSD.org db at db.net http://www.db.net/~db
>> 
>> 
>> _______________________________________________
>> freebsd-arm at freebsd.org mailing list
>> http://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
> http://lists.freebsd.org/mailman/listinfo/freebsd-arm
> To unsubscribe, send any mail to "freebsd-arm-unsubscribe at freebsd.org"
> 



More information about the freebsd-arm mailing list