build report for Drops on FBSD
Hi, Here's the summary of what I've done to (almost) compile drops on FreeBSD 5.3-STABLE. - in l4/tool/gendep/syscall.c: Added #ifdef linux to wrap around missing <asm/unistd.h>. - Added $(LDFLAGS) to l4/tool/gendep/Makefile. - Told libgendep.so to link with `perl -MExtUtils::Embed -e ldopts` instead of '-ldl'. - Needed to configure drops with cpp33 instead of cpp0. - In $(OSKIT)/boot/boot_start.c, gcc complained about missing "" characters, so I added a bunch of them. - In $(L4DIR)/mk/Makeconf, I've added FIND=/usr/local/bin/gfind to avoid confusion with FreeBSD find (/usr/bin/find). I've told mk/include.mk to use $(FIND). Here's the latest official build-problem I've encountered: ... Compiling rmgr.o LD_PRELOAD=/opt/usr/local/drops/l4/tool/gendep/libgendep.so GENDEP_TARGET=rmgr.o GENDEP_BINARY=cpp33 gcc -c -DRAM_BASE=0x0 -DSYSTEM_x86_586_l4v2 -DARCH_x86 -DCPUTYPE_586 -DL4API_l4v2 -I../../../server/src -I. -I/usr/include -I../../../idl/OBJ-x86-l4v2 -I../../../../../include/x86/l4v2 -I/opt/usr/local/drops/include/x86/l4v2 -I../../../../../include/l4v2 -I/opt/usr/local/drops/include/l4v2 -I../../../../../include/x86 -I/opt/usr/local/drops/include/x86 -I../../../../../include -I/opt/usr/local/drops/include -nostdinc -I../../../../../../oskit -I../../../../../../oskit/flux/c -I/opt/usr/local/drops/include/oskit06 -I/opt/usr/local/drops/include/oskit06/flux/c -I/include -gstabs+ -g -O2 -fno-strict-aliasing -march=i586 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations /opt/usr/local/drops/l4/pkg/rmgr/server/src/rmgr.c -o rmgr.o In file included from /opt/usr/local/drops/l4/pkg/rmgr/server/src/exec.h:4, from /opt/usr/local/drops/l4/pkg/rmgr/server/src/rmgr.c:9: ../../../../../../oskit/flux/machine/types.h:61: error: redefinition of typedef 'vm_offset_t' /usr/include/sys/types.h:252: error: previous declaration of 'vm_offset_t' washere ../../../../../../oskit/flux/machine/types.h:68: error: redefinition of typedef 'vm_size_t' /usr/include/sys/types.h:256: error: previous declaration of 'vm_size_t' was here In file included from /opt/usr/local/drops/l4/pkg/rmgr/server/src/rmgr.c:12: /opt/usr/local/drops/l4/pkg/rmgr/server/src/memmap_lock.h: In function `enter_memmap_functions': /opt/usr/local/drops/l4/pkg/rmgr/server/src/memmap_lock.h:20: warning: implicit declaration of function `panic' gmake[4]: *** [rmgr.o] Error 1 gmake[4]: Leaving directory `/opt/usr/local/drops/l4/pkg/rmgr/server/src/OBJ-x86_586-l4v2' gmake[3]: *** [OBJ-x86_586-l4v2] Error 2 gmake[3]: Leaving directory `/opt/usr/local/drops/l4/pkg/rmgr/server/src' gmake[2]: *** [src] Error 2 gmake[2]: Leaving directory `/opt/usr/local/drops/l4/pkg/rmgr/server' gmake[1]: *** [server] Error 2 gmake[1]: Leaving directory `/opt/usr/local/drops/l4/pkg/rmgr' gmake: *** [hello] Error 2 ===== JabberID: incidah (at) njs (dot) netlab (dot) cz -----BEGIN PGP SIGNATURE----- iD8DBQBBvMMiwi4xwWEgKqERAsAAAJ0anaSvffwamXLuJnIwH5GRsTjM1wCdGHpa BqtF2n/eBawNURrU1t/9FDA= =tuy/ -----END PGP SIGNATURE----- ______________________________________________________________________ Post your free ad now! http://personals.yahoo.ca
Hi, On Sun Jan 09, 2005 at 00:05:15 -0500, Etienne Robillard wrote:
Here's the summary of what I've done to (almost) compile drops on FreeBSD 5.3-STABLE.
Thanks.
- in l4/tool/gendep/syscall.c: Added #ifdef linux to wrap around missing <asm/unistd.h>. - Added $(LDFLAGS) to l4/tool/gendep/Makefile. - Told libgendep.so to link with `perl -MExtUtils::Embed -e ldopts` instead of '-ldl'.
- Needed to configure drops with cpp33 instead of cpp0.
- In $(OSKIT)/boot/boot_start.c, gcc complained about missing "" characters, so I added a bunch of them.
What's the version of "cc" on FreeBSD?
- In $(L4DIR)/mk/Makeconf, I've added FIND=/usr/local/bin/gfind to avoid confusion with FreeBSD find (/usr/bin/find). I've told mk/include.mk to use $(FIND).
Reasonable.
Here's the latest official build-problem I've encountered:
... Compiling rmgr.o LD_PRELOAD=/opt/usr/local/drops/l4/tool/gendep/libgendep.so GENDEP_TARGET=rmgr.o GENDEP_BINARY=cpp33 gcc -c -DRAM_BASE=0x0 -DSYSTEM_x86_586_l4v2 -DARCH_x86 -DCPUTYPE_586 -DL4API_l4v2 -I../../../server/src -I. -I/usr/include -I../../../idl/OBJ-x86-l4v2 -I../../../../../include/x86/l4v2 -I/opt/usr/local/drops/include/x86/l4v2 -I../../../../../include/l4v2 -I/opt/usr/local/drops/include/l4v2 -I../../../../../include/x86 -I/opt/usr/local/drops/include/x86 -I../../../../../include -I/opt/usr/local/drops/include -nostdinc -I../../../../../../oskit -I../../../../../../oskit/flux/c -I/opt/usr/local/drops/include/oskit06 -I/opt/usr/local/drops/include/oskit06/flux/c -I/include -gstabs+ -g -O2 -fno-strict-aliasing -march=i586 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations /opt/usr/local/drops/l4/pkg/rmgr/server/src/rmgr.c -o rmgr.o In file included from /opt/usr/local/drops/l4/pkg/rmgr/server/src/exec.h:4, from /opt/usr/local/drops/l4/pkg/rmgr/server/src/rmgr.c:9: ../../../../../../oskit/flux/machine/types.h:61: error: redefinition of typedef 'vm_offset_t' /usr/include/sys/types.h:252: error: previous declaration of 'vm_offset_t' washere ../../../../../../oskit/flux/machine/types.h:68: error: redefinition of typedef 'vm_size_t' /usr/include/sys/types.h:256: error: previous declaration of 'vm_size_t' was here In file included from /opt/usr/local/drops/l4/pkg/rmgr/server/src/rmgr.c:12: /opt/usr/local/drops/l4/pkg/rmgr/server/src/memmap_lock.h: In function `enter_memmap_functions': /opt/usr/local/drops/l4/pkg/rmgr/server/src/memmap_lock.h:20: warning: implicit declaration of function `panic'
Isn't "-nostdinc" supposed to avoid /usr/include? Why does it look there? Adam -- Adam adam@os.inf.tu-dresden.de Lackorzynski http://os.inf.tu-dresden.de/~adam/
On Tue Jan 11, 2005 at 17:43:36 +0100, Adam Lackorzynski wrote:
... Compiling rmgr.o LD_PRELOAD=/opt/usr/local/drops/l4/tool/gendep/libgendep.so GENDEP_TARGET=rmgr.o GENDEP_BINARY=cpp33 gcc -c -DRAM_BASE=0x0 -DSYSTEM_x86_586_l4v2 -DARCH_x86 -DCPUTYPE_586 -DL4API_l4v2 -I../../../server/src -I. -I/usr/include -I../../../idl/OBJ-x86-l4v2 -I../../../../../include/x86/l4v2 -I/opt/usr/local/drops/include/x86/l4v2 -I../../../../../include/l4v2 -I/opt/usr/local/drops/include/l4v2 -I../../../../../include/x86 -I/opt/usr/local/drops/include/x86 -I../../../../../include -I/opt/usr/local/drops/include -nostdinc -I../../../../../../oskit -I../../../../../../oskit/flux/c -I/opt/usr/local/drops/include/oskit06 -I/opt/usr/local/drops/include/oskit06/flux/c -I/include -gstabs+ -g -O2 -fno-strict-aliasing -march=i586 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations /opt/usr/local/drops/l4/pkg/rmgr/server/src/rmgr.c -o rmgr.o In file included from /opt/usr/local/drops/l4/pkg/rmgr/server/src/exec.h:4, from /opt/usr/local/drops/l4/pkg/rmgr/server/src/rmgr.c:9: ../../../../../../oskit/flux/machine/types.h:61: error: redefinition of typedef 'vm_offset_t' /usr/include/sys/types.h:252: error: previous declaration of 'vm_offset_t' washere ../../../../../../oskit/flux/machine/types.h:68: error: redefinition of typedef 'vm_size_t' /usr/include/sys/types.h:256: error: previous declaration of 'vm_size_t' was here In file included from /opt/usr/local/drops/l4/pkg/rmgr/server/src/rmgr.c:12: /opt/usr/local/drops/l4/pkg/rmgr/server/src/memmap_lock.h: In function `enter_memmap_functions': /opt/usr/local/drops/l4/pkg/rmgr/server/src/memmap_lock.h:20: warning: implicit declaration of function `panic'
After taking the tomatoes off my eyes, I'll change the qustion to: Where does the -I/usr/include comes from? Can you check this? Adam -- Adam adam@os.inf.tu-dresden.de Lackorzynski http://os.inf.tu-dresden.de/~adam/
--- Adam Lackorzynski <adam@os.inf.tu-dresden.de> wrote:
After taking the tomatoes off my eyes, I'll change the question to: Where does the -I/usr/include comes from? Can you check this?
Adam, I hope your eyes are doing fine ;) The "-I/usr/include" is my mistake and doesn't belong here. "cc" is "gcc" version 3.4.0 (it's the host/machine compiler). Moreover, "make hello" managed to chdir in $(OSKIT)/boot/bsd, but failed to do the 'mkbsdimage' target. More likely, there's something wrong with my environment. Cheers, Etienne
Adam -- Adam adam@os.inf.tu-dresden.de Lackorzynski http://os.inf.tu-dresden.de/~adam/
===== JabberID: incidah (at) njs (dot) netlab (dot) cz -----BEGIN PGP SIGNATURE----- iD8DBQBBvMMiwi4xwWEgKqERAsAAAJ0anaSvffwamXLuJnIwH5GRsTjM1wCdGHpa BqtF2n/eBawNURrU1t/9FDA= =tuy/ -----END PGP SIGNATURE----- ______________________________________________________________________ Post your free ad now! http://personals.yahoo.ca
participants (2)
-
Adam Lackorzynski -
Etienne Robillard