From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrea Corallo Subject: libgccjit and gccemacs Date: Tue, 17 Mar 2020 08:46:54 +0000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:48429) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jE7sM-0000UZ-MZ for guix-devel@gnu.org; Tue, 17 Mar 2020 04:47:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jE7sK-0006Rk-4R for guix-devel@gnu.org; Tue, 17 Mar 2020 04:47:02 -0400 Received: from mx.sdf.org ([205.166.94.20]:55619) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jE7sJ-00067g-T6 for guix-devel@gnu.org; Tue, 17 Mar 2020 04:47:00 -0400 Received: from sdf.org (ma.sdf.org [205.166.94.33]) by mx.sdf.org (8.15.2/8.14.5) with ESMTPS id 02H8ksY2022187 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO) for ; Tue, 17 Mar 2020 08:46:54 GMT List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane-mx.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org Formbi wrote: > Hello! > > I'd like to make gccemacs work in Guix. Joseph LaFreniere made this libgccjit > package: > https://debbugs.gnu.org/cgi/bugreport.cgi?bug=40045 > and I made this: https://termbin.com/06cmr > > When I try to build gccemacs, I'm getting errors like this: > ld: cannot find crtbeginS.o: No such file or directory > ld: cannot find -lgcc > ld: cannot find -lgcc > libgccjit.so: error: error invoking gcc driver > > This seems to be connected to this problem: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87808 > but I don't know how to fix this. I tried adding gcc-toolchain to inputs > of libgccjit and gccemacs, but it didn't help. Hi Formbi, I'm quite ignorant on guix but the libgccjit error is potentially related to the LIBRARY_PATH value. Here a nice description of what libgccjit expects to find in that respect: https://gcc.gnu.org/onlinedocs/jit/internals/index.html#environment-variables Hope it helps. Best Regards Andrea -- akrl@sdf.org