GCC 3.3.2 kernel
Craig Dooley
cd5697 at albany.edu
Wed Oct 29 06:27:25 PST 2003
Okay, this patch fixes buildkernel with gcc 3.3.2 from ports. The kernel
compiles and runs with both 3.3.2 and 2.95, but there are some warnings about
inlining and other things with 3.3.2 that i'll look into. The problem I see
with gcc 3.4 is it doesn't compile without gmake according to their website.
I havent tried, but is it worth it to import gmake into our source, or put
more effort into the packaging side? The tool I've been thinking of is kinda
like apt + dpkg in one, but some extras thrown in like the ability to lock
package versions, and it's gonna need a good system for handling duplicate
entries (kinda like /etc/alternatives on debian but much better) When VFS
envs come into play things become a lot easier, like building packages
becomes make , make install VFSENV=write_to_pkgdir and just intercept all
writes and tack on a leading directory, then tar it up for a package. I'll
start trying to get something together for that, and start working on
buildworld with gcc33, at least the bsd code. Is there a plan to merge
binutils 2.14, gcc 3.x and gdb 6.x? As far as I know, these are all needed
for the x86_64 port.
Note: make depend; make still does not work. This is what I get
===> dev/disk/aic7xxx/aicasm
yacc -b aicasm_gram -d -o aicasm_gram.c /usr/src/sys/dev/disk/aic7xxx/aicasm/
aicasm_gram.y
yacc -b aicasm_macro_gram -p mm -d -o aicasm_macro_gram.c /usr/src/sys/dev/
disk/aic7xxx/aicasm/aicasm_macro_gram.y
lex -t /usr/src/sys/dev/disk/aic7xxx/aicasm/aicasm_scan.l > aicasm_scan.c
lex -t -Pmm /usr/src/sys/dev/disk/aic7xxx/aicasm/aicasm_macro_scan.l >
aicasm_macro_scan.c
rm -f .depend
mkdep -f .depend -a -nostdinc -I/usr/include -I. /usr/src/sys/dev/disk/
aic7xxx/aicasm/aicasm.c /usr/src/sys/dev/disk/aic7xxx/aicasm/aicasm_symbol.c
aicasm_gram.c aicasm_macro_gram.c aicasm_scan.c aicasm_macro_scan.c
/usr/src/sys/dev/disk/aic7xxx/aicasm/aicasm_gram.y:62:20: aicasm.h: No such
file or directory
/usr/src/sys/dev/disk/aic7xxx/aicasm/aicasm_gram.y:63:27: aicasm_symbol.h: No
such file or directory
/usr/src/sys/dev/disk/aic7xxx/aicasm/aicasm_gram.y:64:30: aicasm_insformat.h:
No such file or directory
/usr/src/sys/dev/disk/aic7xxx/aicasm/aicasm_macro_gram.y:62:20: aicasm.h: No
such file or directory
/usr/src/sys/dev/disk/aic7xxx/aicasm/aicasm_macro_gram.y:63:27:
aicasm_symbol.h: No such file or directory
/usr/src/sys/dev/disk/aic7xxx/aicasm/aicasm_macro_gram.y:64:30:
aicasm_insformat.h: No such file or directory
/usr/src/sys/dev/disk/aic7xxx/aicasm/aicasm_scan.l:61:20: aicasm.h: No such
file or directory
/usr/src/sys/dev/disk/aic7xxx/aicasm/aicasm_scan.l:62:27: aicasm_symbol.h: No
such file or directory
/usr/src/sys/dev/disk/aic7xxx/aicasm/aicasm_macro_scan.l:61:20: aicasm.h: No
such file or directory
/usr/src/sys/dev/disk/aic7xxx/aicasm/aicasm_macro_scan.l:62:27:
aicasm_symbol.h: No such file or directory
mkdep: compile failed
(1853 root at tragedy)> ls usr/src/sys/dev/disk/aic7xxx/aicasm ( 9:19AM
TRAGEDY)
aicasm_gram.c aicasm_macro_gram.c aicasm_macro_scan.c
aicasm_gram.h aicasm_macro_gram.h aicasm_scan.c
-Craig
--
Craig Dooley cd5697 at xxxxxxxxxx
Index: share/mk/bsd.kern.mk
===================================================================
RCS file: /home/dcvs/src/share/mk/bsd.kern.mk,v
retrieving revision 1.2
diff -u -r1.2 bsd.kern.mk
--- share/mk/bsd.kern.mk 17 Jun 2003 04:37:02 -0000 1.2
+++ share/mk/bsd.kern.mk 29 Oct 2003 13:20:41 -0000
@@ -10,7 +10,7 @@
#
CWARNFLAGS?= -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes \
-Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual \
- -fformat-extensions -ansi
+ -fformat-extensions -ffreestanding -ansi
#
# The following flags are next up for working on:
# -W
Attachment:
pgp00009.pgp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pgp00009.pgp
Type: application/octet-stream
Size: 187 bytes
Desc: "Description: signature"
URL: <http://lists.dragonflybsd.org/pipermail/submit/attachments/20031029/20984225/attachment-0019.obj>
More information about the Submit
mailing list