gm2
[Top][All Lists]
Advanced

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

[Gm2] Build problems on FreeBSD


From: Ben Stuyts
Subject: [Gm2] Build problems on FreeBSD
Date: Mon, 1 Mar 2004 16:53:11 +0100

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?

Kind regards,
Ben



reply via email to

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