Skip site navigation (1)Skip section navigation (2)
Date:      09 Mar 1999 13:57:59 +0100
From:      arno@heho.snv.jussieu.fr (Arno J. Klaassen)
To:        freebsd-current@freebsd.org
Subject:   egcs-snap-world
Message-ID:  <wpbti295wn.fsf@heho.snv.jussieu.fr>

next in thread | raw e-mail | index | archive | help

Hi,

just in case someone is interested (i'm not a particular advocat of
the need of the world and kernel being able to be compiled with
something else than the system-compiler; just to show that the current
sources apparently do not depend a lot on FreeBSD-specific features of
gcc/binutils): applying some minor changes, I compiled the world with
an arbitrary mix of a recent egcs-cvs-snapshot and binutils-2.9.1.0.19
(haifa-scheduling enabled) I regularly use for userland compilations,
using the following script:


#! /bin/bash
export CC='/usr/vol/opt/freebsd3/egcs-snap/bin/gcc -B/usr/vol/opt/freebsd3/egcs-snap/bin/ -B/usr/vol/opt/freebsd3/egcs-snap/lib/gcc-lib/i686-pc-freebsdelf/egcs-2.92.32/ -v -MD '
export CXX='/usr/vol/opt/freebsd3/egcs-snap/bin/c++ -B/usr/vol/opt/freebsd3/egcs-snap/bin/ -B/usr/vol/opt/freebsd3/egcs-snap/lib/gcc-lib/i686-pc-freebsdelf/egcs-2.92.32/ -v -I/usr/vol/opt/freebsd3/egcs-snap/include/g++-2 -MD '
make -DNOGAMES -DNOAOUT $*

I compiled buildworld on an Intel Madrona:
FreeBSD siamese-twins 3.1-STABLE FreeBSD 3.1-STABLE #1: Fri Feb 19 21:16:03 MET 1999
  toor@siamese-twins:/usr/src_RELENG_3/sys/compile/SIAM  i386

Further, I did an installworld on my current-machine, an Intergraph TD4 (dual-P90):
CPU: Pentium/P54C (90.00-MHz 586-class CPU)
eisa0: <ING2280 (System Board)>
ncr0: <ncr 53c810 fast10 scsi> rev 0x01 int a irq 11 on pci0.7.0
da0 at ncr0 bus 0 target 0 lun 0
da0: <QUANTUM FIREBALL ST3.2S 0F0C> Fixed Direct Access SCSI-2 device 
da0: 10.000MB/s transfers (10.000MHz, offset 8), Tagged Queueing Enabled
da0: 3090MB (6328861 512 byte sectors: 255H 63S/T 393C)

and then re-compiled the kernel with CC='/usr/bin/cc -pipe -fformat-extensions '

This is not a really good test since this system is very slow and rather
unreliable under cc-compiled world as well; anyway, for basic ``workstation-use''
(xntpd, nfs, xterm, compiling ports etc.) so far I did not notice any difference
with the cc-compiled world (when I've time, I'll install a Dual-PPro as alternative
current-machine).
For completeness, this is kldstat-output: (I recompiled nfs into the kernel; no notable
difference with using nfs.ko)

Id Refs Address    Size     Name
 1    4 0xf0100000 189ef0   kernel
 2    1 0xf08f4000 6000     procfs.ko
 3    1 0xf090d000 e000     linux.ko
 4    1 0xf0922000 2000     green_saver.ko

Voila the cvs-diff on the source tree: (especially for the vinum-mods, I was not
concerned at all for semantic correctness; if someone is interested, I put a cvs-context-diff
as well as my log-file and dependency-output on ftp://heho.snv.jussieu.fr/pub/FreeBSD_egcs/ )

Index: bin/sh/Makefile
===================================================================
RCS file: /home/ncvs/src/bin/sh/Makefile,v
retrieving revision 1.28
diff -r1.28 Makefile
41a42,43
> 	${BRANDELF} ${.TARGET}
> 
Index: gnu/lib/Makefile
===================================================================
RCS file: /home/ncvs/src/gnu/lib/Makefile,v
retrieving revision 1.19
diff -r1.19 Makefile
3c3
< SUBDIR= libdialog libg++ libgmp libmp libobjc libregex libreadline libstdc++
---
> SUBDIR= libdialog libgmp libmp libregex libreadline
Index: gnu/usr.bin/Makefile
===================================================================
RCS file: /home/ncvs/src/gnu/usr.bin/Makefile,v
retrieving revision 1.44
diff -r1.44 Makefile
3c3
< SUBDIR= awk bc binutils bison cc cpio cvs dc dialog diff diff3 genclass gperf \
---
> SUBDIR= awk bc binutils bison cpio cvs dc dialog diff diff3 genclass gperf \
Index: gnu/usr.bin/cc/cc_tools/Makefile
===================================================================
RCS file: /home/ncvs/src/gnu/usr.bin/cc/cc_tools/Makefile,v
retrieving revision 1.14
diff -r1.14 Makefile
30a31
> 	${BRANDELF} ${.TARGET}
62a64
> 	${BRANDELF} ${.TARGET}
72a75
> 	${BRANDELF} ${.TARGET}
Index: lib/libmytinfo/Makefile
===================================================================
RCS file: /home/ncvs/src/lib/libmytinfo/Makefile,v
retrieving revision 1.16
diff -r1.16 Makefile
35a36,37
> 	${BRANDELF} ${.TARGET}
> 
39a42,43
> 	${BRANDELF} ${.TARGET}
> 
46a51,52
> 	${BRANDELF} ${.TARGET}
> 
52a59,60
> 	${BRANDELF} ${.TARGET}
> 
61a70,71
> 	${BRANDELF} ${.TARGET}
> 
64a75,76
> 	${BRANDELF} ${.TARGET}
> 
Index: share/mk/bsd.kern.mk
===================================================================
RCS file: /home/ncvs/src/share/mk/bsd.kern.mk,v
retrieving revision 1.15
diff -r1.15 bsd.kern.mk
12c12
< 		-fformat-extensions -ansi
---
> 		-ansi
Index: share/mk/bsd.prog.mk
===================================================================
RCS file: /home/ncvs/src/share/mk/bsd.prog.mk,v
retrieving revision 1.81
diff -r1.81 bsd.prog.mk
39a40
> 	${BRANDELF} ${.TARGET}
54a56
> 	${BRANDELF} ${.TARGET}
Index: share/mk/sys.mk
===================================================================
RCS file: /home/ncvs/src/share/mk/sys.mk,v
retrieving revision 1.43
diff -r1.43 sys.mk
46a47,49
> # _Arno_ two line sadded
> BRANDELF		?=	/usr/bin/brandelf -f -t FreeBSD
> CC_FOR_AS		?=	/usr/bin/cc
Index: share/syscons/scrnmaps/Makefile
===================================================================
RCS file: /home/ncvs/src/share/syscons/scrnmaps/Makefile,v
retrieving revision 1.12
diff -r1.12 Makefile
26a27
> 	${BRANDELF} ${.TARGET}
Index: sys/boot/ficl/ficl.c
===================================================================
RCS file: /home/ncvs/src/sys/boot/ficl/ficl.c,v
retrieving revision 1.11
diff -r1.11 ficl.c
233c233
<                	    c = *(pVM->ip);
---
>                	    c.p = (*(pVM->ip));
250c250
<                	    c = *pVM->ip;
---
>                	    c.p = *pVM->ip;
258c258
<                	    c = *pVM->ip;
---
>                	    c.p = *pVM->ip;
266c266
<                	    c = *pVM->ip;
---
>                	    c.p = *pVM->ip;
271c271
<                	    c = *pVM->ip;
---
>                	    c.p = *pVM->ip;
276c276
<                	    c = *pVM->ip;
---
>                	    c.p = *pVM->ip;
281c281
<                	    c = *pVM->ip;
---
>                	    c.p = *pVM->ip;
Index: sys/boot/i386/btx/btxldr/Makefile
===================================================================
RCS file: /home/ncvs/src/sys/boot/i386/btx/btxldr/Makefile,v
retrieving revision 1.6
diff -r1.6 Makefile
18c18
< 	${CC} ${AFLAGS} -c -o ${.TARGET} ${.CURDIR}/btxldr.s
---
> 	${CC_FOR_AS} ${AFLAGS} -c -o ${.TARGET} ${.CURDIR}/btxldr.s
Index: sys/boot/i386/loader/Makefile
===================================================================
RCS file: /home/ncvs/src/sys/boot/i386/loader/Makefile,v
retrieving revision 1.29
diff -r1.29 Makefile
100c100
< 	${CC} ${LDFLAGS} -o ${.TARGET} ${BTXCRT} ${OBJS} vers.o \
---
> 	${CC_FOR_AS} ${LDFLAGS} -o ${.TARGET} ${BTXCRT} ${OBJS} vers.o \
Index: sys/dev/vinum/vinum.c
===================================================================
RCS file: /home/ncvs/src/sys/dev/vinum/vinum.c,v
retrieving revision 1.9
diff -r1.9 vinum.c
180a181,183
>     union daemoninfo null_di;
> 
>     null_di.rq = NULL;
194c197
< 	queue_daemon_request(daemonrq_return, NULL);	    /* stop the daemon */
---
> 	queue_daemon_request(daemonrq_return, null_di);	    /* stop the daemon */
Index: sys/dev/vinum/vinumdaemon.c
===================================================================
RCS file: /home/ncvs/src/sys/dev/vinum/vinumdaemon.c,v
retrieving revision 1.5
diff -r1.5 vinumdaemon.c
208a209,211
>     union daemoninfo null_di;
> 
>     null_di.rq = NULL;
211c214
< 	queue_daemon_request(daemonrq_ping, NULL);	    /* queue a ping */
---
> 	queue_daemon_request(daemonrq_ping, null_di);	    /* queue a ping */
Index: sys/dev/vinum/vinuminterrupt.c
===================================================================
RCS file: /home/ncvs/src/sys/dev/vinum/vinuminterrupt.c,v
retrieving revision 1.9
diff -r1.9 vinuminterrupt.c
76,77c76,80
<     if (debug & DEBUG_LASTREQS)
< 	logrq(loginfo_iodone, rqe, ubp);
---
>     if (debug & DEBUG_LASTREQS) {
> 	union rqinfou urqe;
> 	urqe.rqe = rqe;
> 	logrq(loginfo_iodone, urqe, ubp);
>     }
145,146c148,152
< 	    } else					    /* try to recover */
< 		queue_daemon_request(daemonrq_ioerror, rq); /* let the daemon complete */
---
> 	    } else {					    /* try to recover */
>                 union daemoninfo urq;
>                 urq.rq = rq;
> 		queue_daemon_request(daemonrq_ioerror, urq); /* let the daemon complete */
>             }
Index: sys/dev/vinum/vinumio.c
===================================================================
RCS file: /home/ncvs/src/sys/dev/vinum/vinumio.c,v
retrieving revision 1.13
diff -r1.13 vinumio.c
699c699,702
<     queue_daemon_request(daemonrq_saveconfig, NULL);
---
>   union daemoninfo null_di;
> 
>     null_di.rq = NULL;
>     queue_daemon_request(daemonrq_saveconfig, null_di);
Index: sys/dev/vinum/vinumrequest.c
===================================================================
RCS file: /home/ncvs/src/sys/dev/vinum/vinumrequest.c,v
retrieving revision 1.12
diff -r1.12 vinumrequest.c
175a176,177
>     union rqinfou ubp;
>     ubp.bp = bp;
177c179
< 	logrq(loginfo_user_bp, bp, bp);
---
> 	logrq(loginfo_user_bp, ubp, bp);
367,368c369,373
<     if (debug & DEBUG_LASTREQS)
< 	logrq(loginfo_user_bpl, rq->bp, rq->bp);
---
>     if (debug & DEBUG_LASTREQS) {
>         union rqinfou ubp;
>         ubp.bp = rq->bp;
> 	logrq(loginfo_user_bpl, ubp, rq->bp);
>     }
396,397c401,405
< 		if (debug & DEBUG_LASTREQS)
< 		    logrq(loginfo_rqe, rqe, rq->bp);
---
> 		if (debug & DEBUG_LASTREQS) {
>                     union rqinfou urqe;
>                     urqe.bp = rqe;
> 		    logrq(loginfo_rqe, urqe, rq->bp);
>                 }
Index: sys/dev/vinum/vinumutil.c
===================================================================
RCS file: /home/ncvs/src/sys/dev/vinum/vinumutil.c,v
retrieving revision 1.7
diff -r1.7 vinumutil.c
165c165
< 	    return (enum volstate) i;
---
> 	    return (enum volumestate) i;
Index: sys/modules/linux/Makefile
===================================================================
RCS file: /home/ncvs/src/sys/modules/linux/Makefile,v
retrieving revision 1.25
diff -r1.25 Makefile
30a31
> 	${BRANDELF} ${.TARGET}
Index: sys/modules/svr4/Makefile
===================================================================
RCS file: /home/ncvs/src/sys/modules/svr4/Makefile,v
retrieving revision 1.2
diff -r1.2 Makefile
37a38
> 	${BRANDELF} ${.TARGET}


Amicalement,

-- 

  Arno J. Klaassen

  INSERM U483,
  University Pierre et Marie Curie,  Boite 23
  9, quai Saint Bernard
  75 252 Paris Cedex 5




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?wpbti295wn.fsf>