gm2
[Top][All Lists]
Advanced

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

Re: [Gm2] Build problems on FreeBSD


From: Gaius Mulley
Subject: Re: [Gm2] Build problems on FreeBSD
Date: 03 Mar 2004 14:52:41 +0000
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

Ben Stuyts <address@hidden> writes:

> Hi Gaius,
> 
> I thought I'd have another go with building gm2 on FreeBSD-stable,
> using the latest tar.gz file. Here are the things I've encountered so
> far:
> 
> 1) Use gmake and not the system make.
> 
> 2) The build dies here:
> bison -y -d --name-prefix=__gettext --output plural.c
> ../../../gcc-3.3.2+gm2-20040213/gcc/intl/plural.y
> conflicts:  7 shift/reduce
> ../../../gcc-3.3.2+gm2-20040213/gcc/intl/plural.y: expected 10
> shift/reduce conflicts
> *** Error code 1
> 
> To fix this, one can change `%expect 10' to `%expect 7' in plural.y.

well done..

> 3) Now I'm stuck with these errors:
> ../gm2/boot-bin/mklink -s
> ../../../gcc-3.3.2+gm2-20040213/gcc/gm2/init/ppginit ; \
> gcc -g  -c mod_init.c -o mod_init.o ; \
> M2PATH=". gm2-libs-boot gm2-compiler-boot" ; export M2PATH ; \
> ../gm2/boot-bin/mklink -l -p2c p2c/p2c-src/src/libp2c.a
> ../../../gcc-3.3.2+gm2-20040213/gcc/gm2/init/ppginit ; \
> /bin/sh linkcommand ; \
> rm -f linkcommand ; \
> mv a.out ppg
> gm2-libs-boot/DynamicStrings.o: In function `DynamicStrings_ToUpper':
> /home2/ben/src/gm2/host-build/gcc/gm2/gm2-libs-boot/DynamicStrings.c:
> 928: undefined reference to `_toupper'
> gm2-libs-boot/DynamicStrings.o: In function `DynamicStrings_ToLower':
> /home2/ben/src/gm2/host-build/gcc/gm2/gm2-libs-boot/DynamicStrings.c:
> 962: undefined reference to `_tolower'
> 
> This looks like a problem in p2c, but I find the handling of
> toupper/tolower very confusing there. Any ideas?

yes it is rather confusing. I think it could do with a tidy up..
I wonder whether you could email me a copy of your 

DynamicStrings.c
and also 

email me a copy of DynamicString.c after it has gone through the C
preprocessor. Ie capture the `gcc .... DynamicStrings.c' command
and run it by hand adding a `-E' option and replacing -o
DynamicStrings.o with `-o foobar'

and email me foobar.

I'll try removing the p2c toupper uglyness and we shall rely on
using ./configure to catch this instead.

Many thanks,

Gaius



reply via email to

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