[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: lilypond and gcc-3.0

From: Jan Nieuwenhuizen
Subject: Re: lilypond and gcc-3.0
Date: 27 Jun 2001 00:46:23 +0200
User-agent: Gnus/5.090003 (Oort Gnus v0.03) Emacs/20.7

"Tom Cato Amundsen" <address@hidden> writes:

> I'm running debian unstable with g++-3.0 version 3.0-2, it is possible
> the package is still a little borked.

dpkg --status gcc-3.0
Package: gcc-3.0
Source: gcc-3.0 (3.0.ds9-2)
Version: 1:3.0-2

> Adding these includes makes compile, but then of course
> the next file fails...

> In file included from /usr/include/g++-v3/bits/fpos.h:40,
>                  from /usr/include/g++-v3/bits/std_iosfwd.h:41,
>                  from /usr/include/g++-v3/bits/std_ios.h:39,
>                  from /usr/include/g++-v3/bits/std_ostream.h:39,
>                  from /usr/include/g++-v3/bits/std_iostream.h:40,
>                  from /usr/include/g++-v3/backward/iostream.h:32,
>                  from include/string.hh:13,
>                  from

Strange.  No such problems here.  Maybe this is an i386 or an
installation issue?t

    00:39:01 appel ~/usr/src/lilypond$ make conf=gcc-3.0 -C flower
    make: Entering directory `/home/usr/src/fred/src/lilypond-1.4.3/flower'
    rm -f ./out-gcc-3.0/axis.dep; DEPENDENCIES_OUTPUT="./out-gcc-3.0/axis.dep 
./out-gcc-3.0/axis.o" g++-3.0 -c  -DHAVE_CONFIG_H  -DSTRING_UTILS_INLINED 
-Iinclude -I./out-gcc-3.0 -I.././lib/include -I../lib/./out-gcc-3.0 
-I.././flower/include -I../flower/./out-gcc-3.0 -O2 -finline-functions -g     
-O2 -finline-functions -g   -DSTRING_UTILS_INLINED -I/home/fred/usr/include 
-Wall  -W -Wmissing-prototypes -Wconversion -o out-gcc-3.0/axis.o
    rm -f ./out-gcc-3.0/binary-source-file.dep; 

Only flex generates invalid C++ code, so I added this to the INSTALL:

    Debian GNU/Linux unstable gcc-3.0

       Flex (2.5.4a-11) in unstable does not produce g++-3.0 compliant C++
    code.  To compile LilyPond with gcc-3.0 you may do:
                 CC=gcc-3.0 CXX=g++-3.0 ./configure
                 make conf=gcc-3.0 -C lily out-gcc-3.0/
                 patch -p1 < lexer-gcc-3.0.patch
                 make conf=gcc-3.0 -C lily

with lexer-gcc-3.0.patch:

--- ./lily/out-gcc-3.0/        Tue Jun 26 13:12:26 2001
+++ ./lily/out-gcc-3.0/ Tue Jun 26 13:11:56 2001
@@ -21,7 +21,7 @@
 #ifdef __cplusplus
 #include <stdlib.h>
-class istream;
+#include <iostream.h>
 #include <unistd.h>
 /* Use prototypes in function declarations. */

Jan Nieuwenhuizen <address@hidden> | GNU LilyPond - The music typesetter       |

reply via email to

[Prev in Thread] Current Thread [Next in Thread]