[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: compilation problems
From: |
Han-Wen Nienhuys |
Subject: |
Re: compilation problems |
Date: |
Sun, 17 Aug 2008 17:45:32 -0300 |
On Tue, Aug 5, 2008 at 11:44 AM, Paul Jarc <address@hidden> wrote:
> I have the headers for flex (among other things) in a nonstandard
> place, so I put the necessary -I flags in $CPPFLAGS. Some parts of
> the build process don't seem to notice $CPPFLAGS, though. This is
> needed for configure to find FlexLexer.h:
>
> --- aclocal.m4~ 2008-07-24 23:33:34.000000000 -0400
> +++ aclocal.m4 2008-07-24 23:33:59.000000000 -0400
> @@ -452,7 +452,7 @@
> using namespace std;
> #include <FlexLexer.h>
> EOF
> - FLEXLEXER_FILE=`$CXX -E conftest.cc | \
> + FLEXLEXER_FILE=`eval $ac_cpp conftest.cc | \
why is the eval there?
> sed 's!# 1 "\(.*FlexLexer.h\)"address@hidden@\1@@!g' | grep
> '@@' | \
> sed 'address@hidden@\(.*\)@@.*$!\1!g' ` 1> /dev/null 2>
> /dev/null
> rm conftest.cc
>
> Later, compiling includable-lexer.cc fails, because $CPPFLAGS is only
> used for C compilation, not C++, so FlexLexer.h isn't found at that
> point. "./configure --help" doesn't mention CXXCPPFLAGS, so I used
> this patch:
>
> --- c++-vars.make~ 2008-08-05 10:41:57.000000000 -0400
> +++ c++-vars.make 2008-08-05 10:42:28.000000000 -0400
> @@ -6,7 +6,7 @@
> #EXTRA_CXXFLAGS += -Werror
> #endif
>
> -ALL_CXXPPFLAGS = $(DEFINES) $(INCLUDES:%=-I%)
> +ALL_CXXPPFLAGS = $(CPPFLAGS) $(CONFIG_CPPFLAGS) $(DEFINES) $(INCLUDES:%=-I%)
> ALL_CXXFLAGS = $(CXXFLAGS) $(ALL_CXXPPFLAGS) $($(PACKAGE)_CXXFLAGS)
> $(CONFIG_CXXFLAGS) $(MODULE_CXXFLAGS) $(EXTRA_CXXFLAGS)
>
This looks good; can you package everything in a git patch? That makes
our lives a little easier.
> That got me farther along, but the build still ends in an error, and I
> don't understand this one:
>
> make[1]: Entering directory
> `/fs/pkgs/mount/package/host/code.dogmap.org/foreign/lilypond-2.11.52+spf+1/compile/src/lilypond-2.11.52/mf'
> MFINPUTS=. mf -progname=mf "\mode:=laserjet; nonstopmode; input feta11.mf;"
> This is METAFONT, Version 2.71828 (Web2C 7.5.6)
> kpathsea: Running mktexfmt mf.base
> I can't find the base file `mf.base'!
> make[1]: *** [out/feta11.log] Error 1
> make[1]: Leaving directory
> `/fs/pkgs/mount/package/host/code.dogmap.org/foreign/lilypond-2.11.52+spf+1/compile/src/lilypond-2.11.52/mf'
> make: *** [all] Error 2
>
> I installed texlive from source, but I'm not familiar with managing
> it. Does mf.base belong to lilypond or texlive, and how is it
> normally created?
Sorry, I don't know this one either.
--
Han-Wen Nienhuys - address@hidden - http://www.xs4all.nl/~hanwen
- compilation problems, Paul Jarc, 2008/08/05
- Re: compilation problems, Mats Bengtsson, 2008/08/05
- Re: compilation problems, Paul Jarc, 2008/08/17
- Re: compilation problems,
Han-Wen Nienhuys <=
- Re: compilation problems, Paul Jarc, 2008/08/17
- Re: compilation problems, Paul Jarc, 2008/08/17
- Re: compilation problems, Reinhold Kainhofer, 2008/08/17
- [PATCH] Use $CPPFLAGS when finding FlexLexer.h, and for C++ compilation commands., Paul Jarc, 2008/08/17
- Re: [PATCH] Use $CPPFLAGS when finding FlexLexer.h, and for C++ compilation commands., Han-Wen Nienhuys, 2008/08/17
- Re: [PATCH] Use $CPPFLAGS when finding FlexLexer.h, and for C++ compilation commands., John Mandereau, 2008/08/23