From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31580 invoked by alias); 22 Dec 2017 23:22:06 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 31566 invoked by uid 89); 22 Dec 2017 23:22:05 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.3 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_SOFTFAIL autolearn=no version=3.3.2 spammy=sister, ascertain, 5639, H*M:ralph X-HELO: mail.baldwin.cx Received: from bigwig.baldwin.cx (HELO mail.baldwin.cx) (96.47.65.170) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 22 Dec 2017 23:22:03 +0000 Received: from ralph.baldwin.cx (astound-66-234-202-155.ca.astound.net [66.234.202.155]) by mail.baldwin.cx (Postfix) with ESMTPSA id BBC0810A7DB for ; Fri, 22 Dec 2017 18:22:01 -0500 (EST) From: John Baldwin To: "gdb-patches@sourceware.org >> GDB" Subject: autofoo help requested Date: Fri, 22 Dec 2017 23:22:00 -0000 Message-ID: <2026202.2ozP2XuplT@ralph.baldwin.cx> User-Agent: KMail/4.14.10 (FreeBSD/11.1-STABLE; KDE/4.14.30; amd64; ; ) MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-IsSubscribed: yes X-SW-Source: 2017-12/txt/msg00485.txt.bz2 I'm attempting to get a "bare" build of GDB on FreeBSD working so that the existing FreeBSD build bots will start working. By "bare" I mean just using "./configure" without any arguments or build-related environment variables. The build currently dies in bfd/ because it is unable to locate the header for gettext: In file included from ../../bfd/archive.c:134: ../../bfd/sysdep.h:184:11: fatal error: 'libintl.h' file not found # include ^~~~~~~~~~~ In FreeBSD gettext is installed as a 3rd party package in /usr/local and the configure script for the intl/ subdirectory does find the library, but it leaves INCINTL set to an empty value when I think it should be set to "-I /usr/local/include": % cat config.intl # This file records the configuration of libintl in a form that # can be read back in by a configure script in a sister directory. # See config/gettext.m4 for its use. USE_NLS='yes' LIBINTL='/usr/local/lib/libintl.so -Wl,-rpath -Wl,/usr/local/lib' LIBINTL_DEP='' INCINTL='' XGETTEXT='/usr/local/bin/xgettext' GMSGFMT='/usr/local/bin/msgfmt' POSUB='po' Looking in config.log of the 'intl/' subdirectory, it does figure out that it needs '-I /usr/local/include' in CPPFLAGS, but it doesn't include it in the generated INCINTL: grep local.include * Makefile:CPPFLAGS = -I/usr/local/include config.log:configure:5455: cc -o conftest -g -O2 -I/usr/local/include conftest.c >&5 config.log:configure:5518: cc -o conftest -g -O2 -I/usr/local/include conftest.c /usr/local/lib/libiconv.so -Wl,-rpath -Wl,/usr/local/lib >&5 config.log:configure:5601: cc -c -g -O2 -I/usr/local/include conftest.c >&5 config.log:configure:5639: cc -o conftest -g -O2 -I/usr/local/include conftest.c >&5 config.log:configure:5674: cc -o conftest -g -O2 -I/usr/local/include conftest.c >&5 config.log:configure:5833: cc -o conftest -g -O2 -I/usr/local/include conftest.c >&5 config.log:configure:6251: cc -o conftest -g -O2 -I/usr/local/include conftest.c /usr/local/lib/libintl.so -Wl,-rpath -Wl,/usr/local/lib >&5 config.log:CPPFLAGS='-I/usr/local/include' config.status:S["CPPFLAGS"]="-I/usr/local/include" I have tried looking at the config/gettext.m4 file to ascertain how it would set INCINTL and trying to guess why it isn't doing so, but so far I haven't made much progress. Does anyone have any useful suggestions or pointers on how I can track this down further? Thanks. -- John Baldwin