On Wed Feb 16, 2005 at 10:36:18 +0100, Rene Wittmann wrote:
DROPS_STDDIR=/home/sirewitt/src/drops/ , unfortunatelly there exists no include-directory, but in /home/sirewitt/src/drops/l4 there is one...
I thought DROPS_STDDIR should point to the base of the directories, not to l4-directory, (so I find the help provided in the 'make config' a bit misleading). I changed it to DROPS_STDDIR=/home/sirewitt/src/drops//l4 (where the include-directory resides), but the error message seems the same:
I guess the problem is that DROPS_STDDIR points inside the l4 directory. Put it to something like /home/sirewitt/src/drops/drops, i.e. that it's beside the l4 directory (or somewhere else). Then redo everything, esp. oskit and oskit10. I don't how mangled your l4 directory is now, so maybe start from scratch?
Adam
I guess the problem is that DROPS_STDDIR points inside the l4 directory. Put it to something like /home/sirewitt/src/drops/drops, i.e. that it's beside the l4 directory (or somewhere else). Then redo everything, esp. oskit and oskit10. I don't how mangled your l4 directory is now, so maybe start from scratch?
I deleted the sources and got them again (checking out oskit10,oskit,l4, l4env,libstdc++,hello) DROPS_STDDIR now points to /home/sirewitt/src/drops/drops/ as you advised. The directory now after "make" holds three directories: bin,include,lib.
At least I got a little bit further (about 4000 lines of compilation), but now I get a new error:
/home/sirewitt/src/drops/l4/pkg/exec/server/src/exc_img.cc: In member function `int exc_img_t::load(l4env_infopage_t*)':
/home/sirewitt/src/drops/l4/pkg/exec/server/src/exc_img.cc:97: error: brace-enclosed initializer used to initialize `l4_umword_t'
make[5]: *** [exc_img.o] Error 1
make[5]: Leaving directory `/home/sirewitt/src/drops/l4/pkg/exec/server/src/OBJ-x86_686-l4v2' make[4]: *** [OBJ-x86_686-l4v2] Error 2
make[4]: Leaving directory `/home/sirewitt/src/drops/l4/pkg/exec/server/src' make[3]: *** [src] Error 2
make[3]: Leaving directory `/home/sirewitt/src/drops/l4/pkg/exec/server' make[2]: *** [server] Error 2
make[2]: Leaving directory `/home/sirewitt/src/drops/l4/pkg/exec'
make[1]: *** [exec.bin] Error 2
make[1]: Leaving directory `/home/sirewitt/src/drops/l4/pkg' make: *** [pkg] Error 2
The complete compile output lies under: http://wwwcip.informatik.uni-erlangen.de/~sirewitt/drops_compile_20050216_14...
(unfortunatelly I have to compile as root, cause otherwise the make config does not set the path correctly, this time I also set a 686 instead of a 586 (AMD Athlon XP)
Thanks, Rene
On Wed Feb 16, 2005 at 15:28:52 +0100, Rene Wittmann wrote:
/home/sirewitt/src/drops/l4/pkg/exec/server/src/exc_img.cc: In member function `int exc_img_t::load(l4env_infopage_t*)':
/home/sirewitt/src/drops/l4/pkg/exec/server/src/exc_img.cc:97: error: brace-enclosed initializer used to initialize `l4_umword_t'
Can you go to l4/pkg/exec/server/src/OBJ-x86_586-l4v2 and do "make exc_img.i" and make that file available, please.
(unfortunatelly I have to compile as root, cause otherwise the make config does not set the path correctly, this time I also set a 686 instead of a 586
Which path? Building as root is strongly discouraged, don't do it. If there's a bug, the bug should be fixed.
Adam
Can you go to l4/pkg/exec/server/src/OBJ-x86_586-l4v2 and do "make exc_img.i" and make that file available, please.
the compilation seems to be fine Output in:
http://wwwcip.informatik.uni-erlangen.de/~sirewitt/compile_exc_img.i
The file itself: http://wwwcip.informatik.uni-erlangen.de/~sirewitt/exc_img.i
(unfortunatelly I have to compile as root, cause otherwise the make
config
does not set the path correctly, this time I also set a 686 instead of a
586
Which path? Building as root is strongly discouraged, don't do it. If there's a bug, the bug should be fixed.
When I execute 'make config' not as root, the Makeconf.bid.local-file contains the lines:
GCCLIB_EH_x86=/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.2/libgcc_eh.a
GCCLIB_x86=/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.2/libgcc.a
Unfortunatelly, the path /usr/local/lib/gcc-lib/i686-pc-linux-gnu/ does not exist.
Whereas when executing 'make config' as not, Makeconf.bid.local contains:
GCCLIB_EH_x86=/usr/lib/gcc-lib/i486-suse-linux/3.3/libgcc_eh.a
GCCLIB_x86=/usr/lib/gcc-lib/i486-suse-linux/3.3/libgcc.a
(those files exist)
But I can't tell whether this is really a bug or only due to inconsistencies on my target machine (which is more probable).
Adam, many thanks for your advice.
Regards, Rene
On Wed Feb 16, 2005 at 18:30:29 +0100, Rene Wittmann wrote:
the compilation seems to be fine
This is just preprocessing.
http://wwwcip.informatik.uni-erlangen.de/~sirewitt/compile_exc_img.i
The file itself: http://wwwcip.informatik.uni-erlangen.de/~sirewitt/exc_img.i
So, now if you do "gcc -c exc_img.i" it works and produces an exc_img.o file, or does it fail? Your exc_img.i file compiles fine for me.
When I execute 'make config' not as root, the Makeconf.bid.local-file contains the lines:
GCCLIB_EH_x86=/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.2/libgcc_eh.a GCCLIB_x86=/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.2/libgcc.a
Those values are generated by
gcc -print-libgcc-file-name and gcc -print-file-name=libgcc_eh.a
So it looks like you use different compiler versions depending on the user? Still have some old gcc version in /usr/local or similar?
Adam
So, now if you do "gcc -c exc_img.i" it works and produces an exc_img.o file, or does it fail?
Unfortunatelly it fails. But to be honest, I don't understand as the file it fails in seems to be OK... I put the output file also to the site: http://wwwcip.informatik.uni-erlangen.de/~sirewitt/compile_exc_img.o
Your exc_img.i file compiles fine for me.
When I execute 'make config' not as root, the Makeconf.bid.local-file contains the lines:
GCCLIB_EH_x86=/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.2/libgcc_eh.a
GCCLIB_x86=/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.2/libgcc.a
Those values are generated by
gcc -print-libgcc-file-name and gcc -print-file-name=libgcc_eh.a
So it looks like you use different compiler versions depending on the user? Still have some old gcc version in /usr/local or similar?
Yes, you're right, there are some things mixed up for the normal user, but for root the configuration should be fine. I'll have to fix this.
Rene
So, now if you do "gcc -c exc_img.i" it works and produces an exc_img.o file, or does it fail?
Unfortunatelly it fails. But to be honest, I don't understand as the file it fails in seems to be OK... I put the output file also to the site: http://wwwcip.informatik.uni-erlangen.de/~sirewitt/compile_exc_img.o
Your exc_img.i file compiles fine for me.
Now I installed an older gcc version (2.95.2), the newer one (3.3 20030226) fails here. (btw: on my other system gcc ver. 3.3.5 works) So now I come further, but I'm still not finished.
Another make failed here: LD_PRELOAD=/home/sirewitt/src/drops/l4/tool/gendep/libgendep.so GENDEP_TARGET=time.o GENDEP_BINARY=cpp /usr/local/bin/g++-2.95 -c -DLOG_TAG="nethub" -DWITHOUT_CRYPTO -DRAM_BASE=0x0 -DSYSTEM_x86_ 686_l4v2 -DARCH_x86 -DCPUTYPE_686 -DL4API_l4v2 -I.. -I../../../base_lib/idl/OBJ-x86-l4v2 -I../../../../../include/x86/l4v2 -I/home/sirewitt/src/drops/drops//include/x86/l4v2 -I../../../../../include/l4v2 -I/home/sirewitt/src/drops/drops//include/l4v2 -I../../../../../include/x86 -I/home/sirewitt/src/drops/drops//include/x86 -I../../../../../include -I/home/sirewitt/src/drops/drops//include -nostdinc -I../ ../../../../../oskit -I../../../../../../oskit/flux/c -I/home/sirewitt/src/drops/drops//include/oskit06 -I/home/sirewitt/src/drops/drops//include/oskit06/flux/c -I/usr/local//lib/gcc-lib/i686-pc-linux-gnu /2.95.2.1/include -fno-rtti -fno-exceptions -Wall -gstabs+ -g -O2 -fno-strict-aliasing -march=i686 -Wall /home/sirewitt/src/drops/l4/pkg/nethub/server/src/time.cc -o time.o ... Compiling nh-server.o LD_PRELOAD=/home/sirewitt/src/drops/l4/tool/gendep/libgendep.so GENDEP_TARGET=nh-server.o GENDEP_BINARY=cpp /usr/local/bin/gcc-2.95 -c -DLOG_TAG="nethub" -DWITHOUT_CRYPTO -DRAM_BASE=0x0 -DSYSTEM _x86_686_l4v2 -DARCH_x86 -DCPUTYPE_686 -DL4API_l4v2 -I.. -I../../../base_lib/idl/OBJ-x86-l4v2 -I../../../../../include/x86/l4v2 -I/home/sirewitt/src/drops/drops//include/x86/l4v2 -I../../../../../include/ l4v2 -I/home/sirewitt/src/drops/drops//include/l4v2 -I../../../../../include/x86 -I/home/sirewitt/src/drops/drops//include/x86 -I../../../../../include -I/home/sirewitt/src/drops/drops//include -nostdinc
-I../../../../../../oskit -I../../../../../../oskit/flux/c -I/home/sirewitt/src/drops/drops//include/oskit06 -I/home/sirewitt/src/drops/drops//include/oskit06/flux/c -I/usr/local//lib/gcc-lib/i686-pc-linu x-gnu/2.95.2.1/include -gstabs+ -g -O2 -fno-strict-aliasing -march=i686 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations /home/sirewitt/src/drops/l4/pkg/nethub/base_lib/idl/OBJ- x86-l4v2/nh-server.c -o nh-server.o ==> Linking nethub LD_PRELOAD=/home/sirewitt/src/drops/l4/tool/gendep/libgendep.so GENDEP_TARGET=nethub GENDEP_BINARY=ld /usr/local/bin/gcc-2.95 -o nethub ../../../../../lib/x86_686/crt0.o main.o ip_forward.o ip.o ip_sec.o pager.o region.o sadb.o sadb_cfg.o routing.o routing_fab.o interface.o ip_sec_fwd.o ike_connector.o time.o nh-server.o ../crypto/libdes.a -Ttext=0x01000000 -L../../../../../lib/x86_686/l4v2 -L/home/sirewitt/src/drops/drops//lib/x86_686/l4v2 -L../../../../../lib/x86_686 -L/home/sirewitt/src/drops/drops//lib/x86_686 -L../../../../../lib -L/home/sirewitt/src/drops/drops//lib -L../../../../../../oskit/lib -L/home/sirewitt/src/drops/drops//lib/oskit06 -T../../../../../lib/x86_686/main_stat.ld -lcxx_start -lcxx_thread -lcxx_io -lcxx_base -lcxx_util -lcxx_log_io -ll4sys -llogserver -lnames -lrmgr -ll4util -nostdlib -lmc -loskit_support /usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.2.1/libgcc.a -Ttext=0x01000000 -Wl,-gc-sections gcc-2.95: ../crypto/libdes.a: No such file or directory make[5]: *** [nethub] Error 1 make[5]: Leaving directory `/home/sirewitt/src/drops/l4/pkg/nethub/server/src/OBJ-x86_686-l4v2' make[4]: *** [OBJ-x86_686-l4v2] Error 2 make[4]: Leaving directory `/home/sirewitt/src/drops/l4/pkg/nethub/server/src' make[3]: *** [src] Error 2 make[3]: Leaving directory `/home/sirewitt/src/drops/l4/pkg/nethub/server' make[2]: *** [server] Error 2 make[2]: Leaving directory `/home/sirewitt/src/drops/l4/pkg/nethub' make[1]: *** [nethub.bin] Error 2 make[1]: Leaving directory `/home/sirewitt/src/drops/l4/pkg' make: *** [pkg] Error 2
So I installed the packages that provide libdes.a and copied the file to the desired directory (maybe that's no good idea to do so, but it works). Another little step in the right direction...
So another make:
==> Linking nethub LD_PRELOAD=/home/sirewitt/src/drops/l4/tool/gendep/libgendep.so GENDEP_TARGET=nethub GENDEP_BINARY=ld /usr/local/bin/gcc-2.95 -o nethub ../../../../../lib/x86_686/crt0.o main.o ip_forward.o ip.o ip_sec.o pager.o region.o sadb.o sadb_cfg.o routing.o routing_fab.o interface.o ip_sec_fwd.o ike_connector.o time.o nh-server.o ../crypto/libdes.a -Ttext=0x01000000 -L../../../../../lib/x86_686/l4v2 -L/home/sirewitt/src/drops/drops//lib/x86_686/l4v2 -L../../../../../lib/x86_686 -L/home/sirewitt/src/drops/drops//lib/x86_686 -L../../../../../lib -L/home/sirewitt/src/drops/drops//lib -L../../../../../../oskit/lib -L/home/sirewitt/src/drops/drops//lib/oskit06 -T../../../../../lib/x86_686/main_stat.ld -lcxx_start -lcxx_thread -lcxx_io -lcxx_base -lcxx_util -lcxx_log_io -ll4sys -llogserver -lnames -lrmgr -ll4util -nostdlib -lmc -loskit_support /usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.2.1/libgcc.a -Ttext=0x01000000 -Wl,-gc-sections /usr/bin/ld: cannot find -lcxx_log_io collect2: ld returned 1 exit status make[5]: *** [nethub] Error 1 make[5]: Leaving directory `/home/sirewitt/src/drops/l4/pkg/nethub/server/src/OBJ-x86_686-l4v2' make[4]: *** [OBJ-x86_686-l4v2] Error 2 make[4]: Leaving directory `/home/sirewitt/src/drops/l4/pkg/nethub/server/src' make[3]: *** [src] Error 2 make[3]: Leaving directory `/home/sirewitt/src/drops/l4/pkg/nethub/server' make[2]: *** [server] Error 2 make[2]: Leaving directory `/home/sirewitt/src/drops/l4/pkg/nethub' make[1]: *** [nethub.bin] Error 2 make[1]: Leaving directory `/home/sirewitt/src/drops/l4/pkg' make: *** [pkg] Error 2
Any idea, what to do about that error?? (there is really no file *cxx_log*)
Rene
On Thu Feb 17, 2005 at 15:29:15 +0100, Rene Wittmann wrote:
Now I installed an older gcc version (2.95.2), the newer one (3.3 20030226) fails here. (btw: on my other system gcc ver. 3.3.5 works)
gcc-3.3 works fine, it's just that the patched versions in some distributions do weird things sometimes...
So now I come further, but I'm still not finished.
==> Linking nethub LD_PRELOAD=/home/sirewitt/src/drops/l4/tool/gendep/libgendep.so GENDEP_TARGET=nethub GENDEP_BINARY=ld /usr/local/bin/gcc-2.95 -o nethub ../../../../../lib/x86_686/crt0.o main.o ip_forward.o ip.o ip_sec.o pager.o region.o sadb.o sadb_cfg.o routing.o routing_fab.o interface.o ip_sec_fwd.o ike_connector.o time.o nh-server.o ../crypto/libdes.a -Ttext=0x01000000 -L../../../../../lib/x86_686/l4v2 -L/home/sirewitt/src/drops/drops//lib/x86_686/l4v2 -L../../../../../lib/x86_686 -L/home/sirewitt/src/drops/drops//lib/x86_686 -L../../../../../lib -L/home/sirewitt/src/drops/drops//lib -L../../../../../../oskit/lib -L/home/sirewitt/src/drops/drops//lib/oskit06 -T../../../../../lib/x86_686/main_stat.ld -lcxx_start -lcxx_thread -lcxx_io -lcxx_base -lcxx_util -lcxx_log_io -ll4sys -llogserver -lnames -lrmgr -ll4util -nostdlib -lmc -loskit_support /usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.2.1/libgcc.a -Ttext=0x01000000 -Wl,-gc-sections /usr/bin/ld: cannot find -lcxx_log_io
You can just skip nethub (rm -r l4/pkg/nethub), this package is not essential and (probably) not needed for you.
Adam
l4-hackers@os.inf.tu-dresden.de