gcl-devel
[Top][All Lists]
Advanced

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

Re: [Gcl-devel] Compile error under Mandrake 8.1 using gcc


From: Camm Maguire
Subject: Re: [Gcl-devel] Compile error under Mandrake 8.1 using gcc
Date: 12 Oct 2004 11:43:49 -0400
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

Greetings!

You want this for older gcc:

--- h/gmp_wrappers.h    2004-08-16 17:28:20.000000000 +0000
+++ ../gclcvs-2.7.0/h/gmp_wrappers.h    2004-09-07 16:20:49.000000000 +0000
@@ -96,8 +96,8 @@
 
 #define MEM_GMP_CALL(n_,rt_,a_,s_,b_...) \
    GMP_EXTERN_INLINE Join(RF_,rt_) Join(m,a_)(Join(P,n_)(b_)) { \
-           Join(RD_,rt_);\
            int j;\
+           Join(RD_,rt_);\
           jmp_gmp=0;\
            if ((j=setjmp(gmp_jmp)))\
               GBC(j);\


Mitch Patenaude <address@hidden> writes:

> Using gcc 2.97 I'm getting a difficult to trace syntax error while

            ^^^^^


???

> compiling gcl-2.6.5
> 
> The relevant portion of the make:
> (cd o; make all)
> make[1]: Entering directory `/home/mrp/src/gcl-2.6.5/o'
> gcc -c -Wall -DVOL=volatile -fsigned-char -pipe -O3
> -fomit-frame-pointer  -I/home/mrp/src/gcl-2.6.5/o -I../h -I../gcl-tk
> main.c
> In file included from ../h/notcomp.h:289,
>                  from ../h/include.h:71,
>                  from main.c:49:
> ../h/gmp_wrappers.h: In function `m__gmpz_add':
> ../h/gmp_wrappers.h:111: parse error before `int'
> ../h/gmp_wrappers.h:111: `j' undeclared (first use in this function)
> ../h/gmp_wrappers.h:111: (Each undeclared identifier is reported only once
> ../h/gmp_wrappers.h:111: for each function it appears in.)
> ../h/gmp_wrappers.h: In function `m__gmpz_add_ui':
> ../h/gmp_wrappers.h:112: parse error before `int'
> ../h/gmp_wrappers.h:112: `j' undeclared (first use in this function)
> ../h/gmp_wrappers.h: In function `m__gmpz_sub':
> ../h/gmp_wrappers.h:113: parse error before `int'
> [.... continues for about 20 more instances....]
> 
> Pretty obviously related to the macro for MEM_GMP_CALL, and while
> trying to parse that #define is giving me the willies (and reading the
> comment gave me the screaming heebeegeebees) as near as I can tell,

:-)

Please let us know if problems persist.

Take care,

> it's having to do with the use of Join(xxx,yyy) to build another
> #define keyword from parts.  I don't remember this from K&R, so maybe
> this is a GCC specific thing... but if it was added in GCC 3.x.x, then
> I might understand why this is broken.
> 
> If that isn't it, can anybody point me in the right direction?
> 
>   Thanks
>   -- Mitch
> 
> 
> _______________________________________________
> Gcl-devel mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/gcl-devel
> 
> 
> 

-- 
Camm Maguire                                            address@hidden
==========================================================================
"The earth is but one country, and mankind its citizens."  --  Baha'u'llah




reply via email to

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