From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: libstdc++ for cross compilers Date: Mon, 10 Apr 2017 15:24:58 +0200 Message-ID: <87o9w41jkl.fsf@elephly.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33667) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cxZJd-0005w5-61 for help-guix@gnu.org; Mon, 10 Apr 2017 09:25:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cxZJa-000741-0M for help-guix@gnu.org; Mon, 10 Apr 2017 09:25:09 -0400 Received: from sender-of-o51.zoho.com ([135.84.80.216]:21113) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cxZJZ-00073b-Oz for help-guix@gnu.org; Mon, 10 Apr 2017 09:25:05 -0400 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: help-guix Hi Guix, I’m trying to update my custom package for the Axoloti audio board, which is not yet in Guix because it depends on bundled Java jars. The package includes a user interface written in Java and a cross-compiled firmware for the board. The latest version includes C++ sources for the firmware. Unfortunately, our “arm-none-eabi” cross-compiler package does not build libstdc++, nor does it come with any of the required C++ headers like “cmath”. So I tried to change our “arm-none-eabi” cross-compiler packages to also build and install libstdc++ but failed in a multitude of ways. The end result is always that either the compiler fails to build (e.g. when enabling libstdc++ via configure flags) or that the compiler fails to find the header files that are included via “#include_next” directives (e.g. when building libstdc++ as a separate package). Could someone with GCC experience give me a hint despite my vague problem description? -- Ricardo GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC https://elephly.net