Skip to content

R-beta: R-beta Win95 glm

1 message · Peter Dalgaard

#
Guido Masarotto <guido@sirio.stat.unipd.it> writes:
Great! I'm almost there with a set of instructions for building the
egcs-1.0.2 as a cross-compiler. This is in some sense easier, although
proving a bit tricky because of makefile bugs (parts of the compiler
build - including "make cross" - seems to assume that the
cross-compiler is installed!) but I think I got it now.

The Tk project appears to be in deep coma. But you are quite right,
the R console slowness is *the* most annoying feature of the Win32
version. It is buggy too, characters are getting lost on long
printouts. Tk is doing similar stuff *much* faster, so either we
should peek at the Tk sources and see how it is done there or try
coding the console *in* Tcl/Tk.

(OK, so the lack of command recall and ugly graphics hardcopy are
close contenders to first place in annoyances).

Hey, presto! I seem to have a clean build of egcs-mingw-cross (was
running in another window as I typed this). Here's my makefile if you
want to try:


# Preliminaries: 
#	Unpack binutils-2.9.1 somewhere
#	Unpack egcs somewhere and PATCH IT with Mumit's patches
#	 if (and only if) it's version 1.0.2 
#	 [ cd to egcs dir and
#		gzip -dc egcs-1.0.2-mingw32.diff.gz | patch -p2
#	 ]
#	Get the zipped files for the *native* egcs-mingw32

prefix=$(shell pwd)# ... or e.g. /usr/local
wkdir=$(shell pwd)

# This name got a bit mangled by the Joliet CD "standard"
# Note that I'm not asking you to unpack it.
native=/mnt/cdrom/egcs-1~1.zip

binutils=~/binutils-2.9.1
egcs=~/egcs-1.0.2

all: egcs-final

egcs-final: egcs
	export PATH=$(PATH):$(prefix)/bin ;\
	cd $(wkdir)/EGCS ;\
	$(egcs)/configure --srcdir=$(egcs)\
		--prefix=$(prefix) --target=i386-mingw32 ; \
	make &&\
	make install
	touch egcs-final
egcs: inc-install binutils-install
	mkdir -p $(wkdir)/EGCS
	cd $(wkdir)/EGCS ; \
	export PATH=$(PATH):$(prefix)/bin ;\
	$(egcs)/configure --srcdir=$(egcs)\
		--prefix=$(prefix) --target=i386-mingw32 ; \
	make info &&\
	make install LANGUAGES="c c++"
	touch egcs
binutils-install: binutils
	cd $(wkdir)/BINU ; make install
	touch binutils-install
binutils: inc-install 
	mkdir -p $(wkdir)/BINU
	cd $(wkdir)/BINU ; \
	$(binutils)/configure --srcdir=$(binutils) \
		--prefix=$(prefix) --target=i386-mingw32 ; \
	make
	touch binutils
inc-install:
	unzip -o $(native) 'i386-mingw32/*' -d $(prefix) 
	touch inc-install

# This doesn't quite cut it, but I'm not going to  rm $(prefix)/bin/*, etc.
clean:
	rm -rf $(wkdir)/EGCS $(wkdir)/BINU
	rm egcs-final egcs binutils binutils-install inc-install