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: 10 May 2004 12:35:57 +0100
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.
> 
> 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?

Hi Ben,

I'm just uploading the latest cvs changes which include the following
fixes:

* gm2 now builds on FreeBSD 5.2.1
* removed to_upper and to_lower in p2c
* made gm2/gm2-libs/configure and friends test for `strsignal'
* fixed initialization bug (missing memset)
  in gm2/gm2-compiler/Indexing.mod

regards,
Gaius



reply via email to

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