From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752441AbcBFOBO (ORCPT ); Sat, 6 Feb 2016 09:01:14 -0500 Received: from unicorn.mansr.com ([81.2.72.234]:55223 "EHLO unicorn.mansr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751174AbcBFOBN convert rfc822-to-8bit (ORCPT ); Sat, 6 Feb 2016 09:01:13 -0500 From: =?iso-8859-1?Q?M=E5ns_Rullg=E5rd?= To: Hans-Christian Noren Egtvedt Cc: Sudip Mukherjee , Guenter Roeck , Haavard Skinnemoen , "linux-kernel\@vger.kernel.org" Subject: Re: avr32 build failures in linux-next References: <56B4C799.5070401@roeck-us.net> <56B4CE8C.8040307@gmail.com> <20160206115722.GA32647@samfundet.no> Date: Sat, 06 Feb 2016 14:01:02 +0000 In-Reply-To: <20160206115722.GA32647@samfundet.no> (Hans-Christian Noren Egtvedt's message of "Sat, 6 Feb 2016 12:57:22 +0100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hans-Christian Noren Egtvedt writes: >>>Example for avr32:defconfig: >>> >>>fs/built-in.o: In function `anon_inode_getfile': >>>(.text+0x2ae90): relocation truncated to fit: R_AVR32_21S against >>>`.text'+296c0 >>> >>>All builds but avr32:allnoconfig fail with such truncated relocations. > > Weirdly I do not get this when I build torvalds/master with allnoconfig. > > The avr32 kernel was never very fond of CONFIG_CC_OPTIMIZE_FOR_SIZE=n, it > was always built with CONFIG_CC_OPTIMIZE_FOR_SIZE=y for actual usage. 4.5-rc1 builds and runs with CONFIG_CC_OPTIMIZE_FOR_SIZE=n here. It's a fairly minimal config though. >>>Toolchain used is the old gcc 4.2.4 toolchain from kernel.org. I have been >>>unable to find or build newer versions of gcc for avr32. >>> >>>Does anyone know if a more recent toolchain for avr32 is available ? >> >> https://sourceware.org/ml/crossgcc/2015-10/msg00050.html >> says avr32 has been depreciated. > > Last release of avr32-linux GCC was the 4.2.4 patches in Buildroot for AVR32. > > Atmel never upstreamed the AVR32 patches for GCC. There are patches for gcc 4.4.3 at http://distribute.atmel.no/tools/opensource/avr32-gcc/ The patches apply with only trivial fixes to 4.4.7 as well. I tried forward-porting to something newer, but my knowledge gcc internal voodoo wasn't sufficient. >>>Another question is if the avr32 kernel still supported, or if I should >>>just stop trying to build test it. Any thoughts ? >> >> I have already stopped building it. > > I build the kernel and try to fix small issues here and there. Even when it builds, it often doesn't work since non-DT support has bitrotted in many drivers. -- Måns Rullgård