From owner-freebsd-arm@freebsd.org Thu Oct 22 08:15:57 2015 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 BBAC8A1BA6A for ; Thu, 22 Oct 2015 08:15:57 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 647111875 for ; Thu, 22 Oct 2015 08:15:57 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from tom.home (kostik@localhost [127.0.0.1]) by kib.kiev.ua (8.15.2/8.15.2) with ESMTPS id t9M8FpDD094754 (version=TLSv1 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Thu, 22 Oct 2015 11:15:51 +0300 (EEST) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.10.3 kib.kiev.ua t9M8FpDD094754 Received: (from kostik@localhost) by tom.home (8.15.2/8.15.2/Submit) id t9M8FpGR094752; Thu, 22 Oct 2015 11:15:51 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Thu, 22 Oct 2015 11:15:51 +0300 From: Konstantin Belousov To: Mattia Rossi Cc: freebsd-arm Subject: Re: CC core dumping with CLANG 3.7 on armv5 - DREAMPLUG Message-ID: <20151022081551.GB2257@kib.kiev.ua> References: <5626144F.9060003@gmail.com> <5628873F.7050509@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5628873F.7050509@gmail.com> User-Agent: Mutt/1.5.24 (2015-08-30) X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on tom.home 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: Thu, 22 Oct 2015 08:15:57 -0000 On Thu, Oct 22, 2015 at 08:50:39AM +0200, Mattia Rossi wrote: > Hi all again, does anyone know what might be going on regarding the > error below? > Unfortunately I can't build clang with debugging symbols, as it fails > because I run out of swap. > As this means that I ahve to repartition and rebuild my build system and > that's going to take awhile until I find the time to get around to do > that, I have no additional information in the meantime... > You may disassemble the instruction at the address, and print the content of registers: (gdb) disassemble *0x01eb0868-8,0x01eb0868+8 (gdb) info registers If the cause of your issue is weird codegeneration on ARMv5, it might be seen from the data above. On the other hand, this would not help if the issue is algorithmic. I am afraid there is not much more to suggest. Is ARMv5 considered active platform for clang anyway ? > Cheers, > > Mat > > > > > since CLANG was upgraded to 3.7 I'm not abel to compile anything on > > my Dreamplug anymore: > > > > FreeBSD clang version 3.7.0 (tags/RELEASE_370/final 246257) 20150906 > > Target: arm--freebsd11.0-gnueabi > > Thread model: posix > > configure:3562: $? = 0 > > configure:3551: cc -v >&5 > > FreeBSD clang version 3.7.0 (tags/RELEASE_370/final 246257) 20150906 > > Target: arm--freebsd11.0-gnueabi > > Thread model: posix > > configure:3562: $? = 0 > > configure:3551: cc -V >&5 > > cc: error: argument to '-V' is missing (expected 1 value) > > cc: error: no input files > > configure:3562: $? = 1 > > configure:3551: cc -qversion >&5 > > cc: error: unknown argument: '-qversion' > > cc: error: no input files > > configure:3562: $? = 1 > > configure:3582: checking whether the C compiler works > > configure:3604: cc conftest.c >&5 > > cc: error: unable to execute command: Bus error (core dumped) > > cc: error: clang frontend command failed due to signal (use -v to see > > invocation) > > > > Unfortunately I don't have any debugging symbols enabled in world (yet > > - it's compiling), only > > in the kernel, so I can't get a proper backtrace: > > > > root@dreamplug:~ # gdb /usr/bin/cc cc.core > > GNU gdb 6.1.1 [FreeBSD] > > Copyright 2004 Free Software Foundation, Inc. > > GDB is free software, covered by the GNU General Public License, and you > > are > > welcome to change it and/or distribute copies of it under certain > > conditions. > > Type "show copying" to see the conditions. > > There is absolutely no warranty for GDB. Type "show warranty" for > > details. > > This GDB was configured as "arm-marcel-freebsd"...(no debugging symbols > > found)... > > Core was generated by `cc'. > > Program terminated with signal 10, Bus error. > > #0 0x01eb0868 in ?? () > > (gdb) bt > > #0 0x01eb0868 in ?? () > > (gdb) > > > > Does anyone have similar probelms or know a solution to that? > > > > Please con't tell me that nobody is using armv5 anymore and I should > > change to a RPi or so :-( > > > > Cheers, > > > > Mat > > _______________________________________________ > freebsd-arm@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org"