From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Enge Subject: Re: Installing a C tool chain Date: Mon, 14 Apr 2014 19:54:14 +0200 Message-ID: <20140414175414.GA21776@debian> References: <20140125164217.GA21259@debian> <20140125170440.GA4883@jocasta.intra> <871tzvu743.fsf@gnu.org> <20140126073815.GA19985@jocasta.intra> <20140126185413.GD9380@debian> <877g9mpmmd.fsf@gnu.org> <52E6213B.3020203@totakura.in> <87ha8pda3y.fsf_-_@gnu.org> <87wqhbz8wa.fsf@netris.org> <87ha671p6g.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42298) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WZl5k-0004m0-LZ for guix-devel@gnu.org; Mon, 14 Apr 2014 13:54:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WZl5d-0004MA-5q for guix-devel@gnu.org; Mon, 14 Apr 2014 13:54:48 -0400 Content-Disposition: inline In-Reply-To: <87ha671p6g.fsf@gnu.org> 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.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Ludovic =?iso-8859-15?Q?Court=E8s?= Cc: guix-devel@gnu.org On Sat, Apr 05, 2014 at 10:44:55PM +0200, Ludovic Courtès wrote: > Comments welcome! This could be a useful package! Do I need to set any more environment variables in my .bashrc? So far, I have export PATH=$HOME/.guix-profile/bin:$PATH export LIBRARY_PATH=$HOME/.guix-profile/lib export CPATH=$HOME/.guix-profile/include export MANPATH=$HOME/.guix-profile/share/man:/usr/share/man export PKG_CONFIG_PATH=$HOME/.guix-profile/lib/pkgconfig:/usr/lib/pkgconfig:/usr/lib/x86_64-linux-gnu/pkgconfig export PYTHONPATH=$HOME/.guix-profile/lib/python2.7/site-packages export PERL5LIB=$HOME/.guix-profile/lib/perl5/site_perl export XDG_DATA_DIRS=$HOME/.guix-profile/share When I do a "./configure" of mpc, none of the standard headers are recognised; I obtain something like: configure:12920: checking for ANSI C header files configure:13024: result: yes configure:13035: checking locale.h usability configure:13035: gcc -std=gnu99 -c -g -Werror -g -std=c99 -pedantic -Wno-long-long -Wall -Wextra -Wdeclaration-after-statement -Wundef -Wshadow -Wmissing-prototypes -Wno-unused-value -Wlogical-op -I/usr/local/gmp-6.0.0a/include -I/usr/local/mpfr-3.1.2/include conftest.c >&5 In file included from /home/enge/.guix-profile/include/stdio.h:27:0, from conftest.c:24: /home/enge/.guix-profile/include/features.h:232:36: error: "_XOPEN_SOURCE" is not defined [-Werror=undef] #if ((!defined __STRICT_ANSI__ || (_XOPEN_SOURCE - 0) >= 500) && \ ^ /home/enge/.guix-profile/include/features.h:247:30: error: "_POSIX_C_SOURCE" is not defined [-Werror=undef] #if defined _POSIX_SOURCE || _POSIX_C_SOURCE >= 1 || defined _XOPEN_SOURCE ^ /home/enge/.guix-profile/include/features.h:255:6: error: "_POSIX_C_SOURCE" is not defined [-Werror=undef] #if (_POSIX_C_SOURCE - 0) >= 199309L ^ /home/enge/.guix-profile/include/features.h:259:6: error: "_POSIX_C_SOURCE" is not defined [-Werror=undef] #if (_POSIX_C_SOURCE - 0) >= 199506L ^ /home/enge/.guix-profile/include/features.h:263:6: error: "_POSIX_C_SOURCE" is not defined [-Werror=undef] #if (_POSIX_C_SOURCE - 0) >= 200112L ^ /home/enge/.guix-profile/include/features.h:271:6: error: "_POSIX_C_SOURCE" is not defined [-Werror=undef] #if (_POSIX_C_SOURCE - 0) >= 200809L ^ cc1: all warnings being treated as errors configure:13035: $? = 1 configure: failed program was: ... configure:13035: result: no configure:13035: checking locale.h presence configure:13035: gcc -std=gnu99 -E -I/usr/local/gmp-6.0.0a/include -I/usr/local/mpfr-3.1.2/include conftest.c configure:13035: $? = 0 configure:13035: result: yes configure:13035: WARNING: locale.h: present but cannot be compiled configure:13035: WARNING: locale.h: check for missing prerequisite headers? configure:13035: WARNING: locale.h: see the Autoconf documentation configure:13035: WARNING: locale.h: section "Present But Cannot Be Compiled" configure:13035: WARNING: locale.h: proceeding with the compiler's result and so on for other header files. When compiling pari/gp, I get messages such as /home/enge/.guix-profile/bin/gcc -c -I. -I../src/headers -I../src/language -I/usr/include -O3 -Wall -fno-strict-aliasing -fomit-frame-pointer -Wextra -Wno-missing-field-initializers -o gp_rl.o ../src/gp/gp_rl.c In file included from /usr/include/features.h:323:0, from /usr/include/stdlib.h:25, from ../src/headers/pari.h:18, from ../src/gp/gp_rl.c:19: /usr/include/bits/predefs.h:27:0: warning: "__STDC_IEC_559__" redefined [enabled by default] #define __STDC_IEC_559__ 1 ^ In file included from :0:0: /home/enge/.guix-profile/include/stdc-predef.h:41:0: note: this is the location of the previous definition # define __STDC_IEC_559__ 1 ^ Andreas