From: John Baldwin <jhb@freebsd.org>
To: "gdb-patches@sourceware.org >> GDB" <gdb-patches@sourceware.org>
Subject: autofoo help requested
Date: Fri, 22 Dec 2017 23:22:00 -0000 [thread overview]
Message-ID: <2026202.2ozP2XuplT@ralph.baldwin.cx> (raw)
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 <libintl.h>
^~~~~~~~~~~
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
next reply other threads:[~2017-12-22 23:22 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-22 23:22 John Baldwin [this message]
2017-12-23 5:59 ` Simon Marchi
2017-12-23 8:52 ` Andreas Schwab
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2026202.2ozP2XuplT@ralph.baldwin.cx \
--to=jhb@freebsd.org \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox