From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from atl4mhfb02.myregisteredsite.com ([209.17.115.56]) by linuxtogo.org with esmtp (Exim 4.72) (envelope-from ) id 1U1II3-0007zp-ER for openembedded-core@lists.openembedded.org; Fri, 01 Feb 2013 16:12:33 +0100 Received: from atl4mhob14.myregisteredsite.com (atl4mhob14.myregisteredsite.com [209.17.115.52]) by atl4mhfb02.myregisteredsite.com (8.14.4/8.14.4) with ESMTP id r11Eumwe029714 for ; Fri, 1 Feb 2013 09:56:48 -0500 Received: from mailpod.hostingplatform.com (mail.networksolutionsemail.com [205.178.146.50]) by atl4mhob14.myregisteredsite.com (8.14.4/8.14.4) with ESMTP id r11Euk8F014423 for ; Fri, 1 Feb 2013 09:56:46 -0500 Received: (qmail 4725 invoked by uid 0); 1 Feb 2013 14:56:46 -0000 Received: from unknown (HELO ?192.168.80.45?) (mike@milosoftware.com@88.159.208.100) by 0 with ESMTPA; 1 Feb 2013 14:56:46 -0000 Message-ID: <510BD7AD.5090506@topic.nl> Date: Fri, 01 Feb 2013 15:56:45 +0100 From: Mike Looijmans User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: openembedded-core@lists.openembedded.org Subject: What's up with "fontconfig" X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Feb 2013 15:12:45 -0000 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit When compiling fontconfig, it fails because it is using "build" flags in the host compiler. I have BUILD_OPTIMIZATIONS="-march=native ..." set, and fontconfig will fail to compile because it passes the -march=native flag to the ARM compiler which then fails. Which is justified. This is the part in the recipe that worries me: do_configure_append () { sed -i 's|LDFLAGS =.*|LDFLAGS =|' fc-case/Makefile sed -i 's|LDFLAGS =.*|LDFLAGS =|' fc-glyphname/Makefile sed -i 's|LDFLAGS =.*|LDFLAGS =|' fc-lang/Makefile sed -i 's|CFLAGS =.*|CFLAGS =${BUILD_CFLAGS}|' fc-case/Makefile sed -i 's|CFLAGS =.*|CFLAGS =${BUILD_CFLAGS}|' fc-glyphname/Makefile sed -i 's|CFLAGS =.*|CFLAGS =${BUILD_CFLAGS}|' fc-lang/Makefile sed -i 's|CPPFLAGS =.*|CPPFLAGS =${BUILD_CPPFLAGS}|' fc-case/Makefile sed -i 's|CPPFLAGS =.*|CPPFLAGS =${BUILD_CPPFLAGS}|' fc-glyphname/Makefile sed -i 's|CPPFLAGS =.*|CPPFLAGS =${BUILD_CPPFLAGS}|' fc-lang/Makefile sed -i 's|CXXFLAGS =.*|CFLAGS =${BUILD_CXXFLAGS}|' fc-case/Makefile sed -i 's|CXXFLAGS =.*|CFLAGS =${BUILD_CXXFLAGS}|' fc-glyphname/Makefile sed -i 's|CXXFLAGS =.*|CFLAGS =${BUILD_CXXFLAGS}|' fc-lang/Makefile } This is not a "native" package. The above commands put the build systems include patch and compiler flags into the makefile. I've worked around the issue by creating a a bbappend that simply removes "-march=native" from the build flags, which makes the build of this package succeed. I have no idea what fontconfig is supposed to do and where it is supposed to run, but it looks to me as if that configure_append should not be there at all. -- Mike Looijmans - TOPIC Automation