Hi,
I have a problem building Fiasco-UX. After checking out the latest sources, i had to do two workarounds to build all packages and the oskit.
First i got the following error: ... make[3]: Entering directory `/home/sk852421/Documents/uni/OS/Fiasco-UX/oskit/examples' ld -Ttext 100000 -L../lib \ -o multiboot ../lib/multiboot.o multiboot.o \ -lkern -lmc -llmm ../lib/crtn.o /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/libgcc.a ld -Ttext 100000 -L../lib \ -o multiboot-gdb ../lib/multiboot.o multiboot-gdb.o \ -lkern -lmc -llmm ../lib/crtn.o /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/libgcc.a ld -Ttext 100000 -L../lib \ -o multiboot-smp ../lib/multiboot.o multiboot-smp.o \ -lsmp -lkern -lmc -llmm ../lib/crtn.o /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/libgcc.a ../lib/libsmp.a(boot.o)(.text+0x29): In function `_SMP_TRAMP_START_': : relocation truncated to fit: R_386_16 _SMP_TRAMP_32_ENTRY_ make[3]: *** [multiboot-smp] Error 1 make[3]: Leaving directory `/home/sk852421/Documents/uni/OS/Fiasco-UX/oskit/examples' make[2]: *** [examples/all.MAKE] Error 2 make[2]: Leaving directory `/home/sk852421/Documents/uni/OS/Fiasco-UX/oskit' make[1]: *** [all] Error 2 make[1]: Leaving directory `/home/sk852421/Documents/uni/OS/Fiasco-UX/oskit' make: *** [../oskit] Error 2
the Makeconf.bid can you find here: http://www.inf.tu-dresden.de/~sk852421/fiasco/Makeconf.bid and the full make output is here: http://www.inf.tu-dresden.de/~sk852421/fiasco/make.out
So i deleted subdirectory examples and modified GNUmakefile. After that i got an error in the bootmod package: ... echo 'include $(L4DIR)/mk/lib.mk'>>OBJ-x86_K7-l4v2/Makefile PWD=/home/sk852421/Documents/uni/OS/Fiasco-UX/l4/pkg/bootmod/lib/src/OBJ-x86_K7-l4v2 make -C OBJ-x86_K7-l4v2 -f Makefile make[5]: Entering directory `/home/sk852421/Documents/uni/OS/Fiasco-UX/l4/pkg/bootmod/lib/src/OBJ-x86_K7-l4v2' ... Building .general.d ... Building Makefile.inc make[5]: Leaving directory `/home/sk852421/Documents/uni/OS/Fiasco-UX/l4/pkg/bootmod/lib/src/OBJ-x86_K7-l4v2' make[5]: Entering directory `/home/sk852421/Documents/uni/OS/Fiasco-UX/l4/pkg/bootmod/lib/src/OBJ-x86_K7-l4v2' ... Compiling bootmod.o LD_PRELOAD=/home/sk852421/Documents/uni/OS/Fiasco-UX/l4/tool/gendep/libgendep.so GENDEP_TARGET=bootmod.o GENDEP_BINARY=cc1gcc -c -DRAM_BASE=0x0 -DSYSTEM_x86_K7_l4v2 -DARCH_x86 -DCPUTYPE_K7 -DL4API_l4v2 -I../../../idl/OBJ-x86-l4v2 -I../../../../../include/x86/l4v2 -I/home/sk852421/Documents/uni/OS/Fiasco-UX/build/include/x86/l4v2 -I../../../../../include/l4v2 -I/home/sk852421/Documents/uni/OS/Fiasco-UX/build/include/l4v2 -I../../../../../include/x86 -I/home/sk852421/Documents/uni/OS/Fiasco-UX/build/include/x86 -I../../../../../include -I/home/sk852421/Documents/uni/OS/Fiasco-UX/build/include -nostdinc -DOSKIT -I../../../../../../oskit10 -I../../../../../../oskit10/oskit/c -I/home/sk852421/Documents/uni/OS/Fiasco-UX/build/include/oskit10 -I/home/sk852421/Documents/uni/OS/Fiasco-UX/build/include/oskit10/oskit/c -I/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/include -gstabs+ -g -O2 -fno-strict-aliasing -march=K7 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations /home/sk852421/Documents/uni/OS/Fiasco-UX/l4/pkg/bootmod/lib/src/bootmod.c -o bootmod.o cc1: error: bad value (K7) for -march= switch cc1: error: bad value (K7) for -mcpu= switch make[5]: *** [bootmod.o] Error 1 make[5]: Leaving directory `/home/sk852421/Documents/uni/OS/Fiasco-UX/l4/pkg/bootmod/lib/src/OBJ-x86_K7-l4v2' make[4]: *** [OBJ-x86_K7-l4v2] Error 2 make[4]: Leaving directory `/home/sk852421/Documents/uni/OS/Fiasco-UX/l4/pkg/bootmod/lib/src' make[3]: *** [src] Error 2 make[3]: Leaving directory `/home/sk852421/Documents/uni/OS/Fiasco-UX/l4/pkg/bootmod/lib' make[2]: *** [lib] Error 2 make[2]: Leaving directory `/home/sk852421/Documents/uni/OS/Fiasco-UX/l4/pkg/bootmod' make[1]: *** [bootmod.lib] Error 2 make[1]: Leaving directory `/home/sk852421/Documents/uni/OS/Fiasco-UX/l4/pkg' make: *** [pkg] Error 2
here is the full output: http://www.inf.tu-dresden.de/~sk852421/fiasco/make.out2
After that I choosed i586 instead of K7 (i'm using athlon xp) and i could build the whole environment, but now i wanna compile Fiasco-UX and it fails every time: ... g++ -c -MD -D_GNU_SOURCE -include /home/sk852421/Documents/uni/OS/Fiasco-UX/l4/kernel/fiasco/src/kern/ux/format.h -I/home/sk852421/Documents/uni/OS/Fiasco-UX/l4/kernel/fiasco/src/types/ux -I/home/sk852421/Documents/uni/OS/Fiasco-UX/l4/kernel/fiasco/src/types -I/home/sk852421/Documents/uni/OS/Fiasco-UX/l4/kernel/fiasco/src/drivers/ux -I/home/sk852421/Documents/uni/OS/Fiasco-UX/l4/kernel/fiasco/src/drivers -I/home/sk852421/Documents/uni/OS/Fiasco-UX/l4/kernel/fiasco/src/kern/ux -I/home/sk852421/Documents/uni/OS/Fiasco-UX/l4/kernel/fiasco/src/kern/shared -I/home/sk852421/Documents/uni/OS/Fiasco-UX/l4/kernel/fiasco/src/kern -I/home/sk852421/Documents/uni/OS/Fiasco-UX/l4/kernel/fiasco/src/lib/libk/ux -I/home/sk852421/Documents/uni/OS/Fiasco-UX/l4/kernel/fiasco/src/lib/libk -I/home/sk852421/Documents/uni/OS/Fiasco-UX/l4/kernel/fiasco/src/lib/amm -I/home/sk852421/Documents/uni/OS/Fiasco-UX/l4/kernel/fiasco/src/lib/lmm -I/home/sk852421/Documents/uni/OS/Fiasco-UX/l4/kernel/fiasco/src/lib/disasm -I/home/sk852421/Documents/uni/OS/Fiasco-UX/l4/kernel/fiasco/src/lib/perfctr -I/home/sk852421/Documents/uni/OS/Fiasco-UX/l4/kernel/fiasco/src/lib/regex -I. -Iauto -fno-implement-inlines -finline-limit=10000 -mpreferred-stack-boundary=2 -march=i586 -fno-defer-pop -freg-struct-return -g -Wall -Wformat=2 -ffunction-sections -W -frename-registers -fomit-frame-pointer -gstabs+ -fno-rtti -fno-exceptions -O2 auto/thread-ipc2-v4.cc -o thread-ipc2-v4.o ... Making kernel_thread.o g++ -c -MD -D_GNU_SOURCE -include /home/sk852421/Documents/uni/OS/Fiasco-UX/l4/kernel/fiasco/src/kern/ux/format.h -I/home/sk852421/Documents/uni/OS/Fiasco-UX/l4/kernel/fiasco/src/types/ux -I/home/sk852421/Documents/uni/OS/Fiasco-UX/l4/kernel/fiasco/src/types -I/home/sk852421/Documents/uni/OS/Fiasco-UX/l4/kernel/fiasco/src/drivers/ux -I/home/sk852421/Documents/uni/OS/Fiasco-UX/l4/kernel/fiasco/src/drivers -I/home/sk852421/Documents/uni/OS/Fiasco-UX/l4/kernel/fiasco/src/kern/ux -I/home/sk852421/Documents/uni/OS/Fiasco-UX/l4/kernel/fiasco/src/kern/shared -I/home/sk852421/Documents/uni/OS/Fiasco-UX/l4/kernel/fiasco/src/kern -I/home/sk852421/Documents/uni/OS/Fiasco-UX/l4/kernel/fiasco/src/lib/libk/ux -I/home/sk852421/Documents/uni/OS/Fiasco-UX/l4/kernel/fiasco/src/lib/libk -I/home/sk852421/Documents/uni/OS/Fiasco-UX/l4/kernel/fiasco/src/lib/amm -I/home/sk852421/Documents/uni/OS/Fiasco-UX/l4/kernel/fiasco/src/lib/lmm -I/home/sk852421/Documents/uni/OS/Fiasco-UX/l4/kernel/fiasco/src/lib/disasm -I/home/sk852421/Documents/uni/OS/Fiasco-UX/l4/kernel/fiasco/src/lib/perfctr -I/home/sk852421/Documents/uni/OS/Fiasco-UX/l4/kernel/fiasco/src/lib/regex -I. -Iauto -fno-implement-inlines -finline-limit=10000 -mpreferred-stack-boundary=2 -march=i586 -fno-defer-pop -freg-struct-return -g -Wall -Wformat=2 -ffunction-sections -W -frename-registers -fomit-frame-pointer -gstabs+ -fno-rtti -fno-exceptions -O2 auto/kernel_thread.cc -o kernel_thread.o /home/sk852421/Documents/uni/OS/Fiasco-UX/l4/kernel/fiasco/src/kern/kernel_thread.cpp:104: error: parse error before `)' token /home/sk852421/Documents/uni/OS/Fiasco-UX/l4/kernel/fiasco/src/kern/kernel_thread.cpp:113: error: ISO C++ forbids declaration of `init_switch_time' with no type /home/sk852421/Documents/uni/OS/Fiasco-UX/l4/kernel/fiasco/src/kern/kernel_thread.cpp:113: error: prototype for `int Context::init_switch_time()' does not match any in class `Context' auto/context.h:987: error: candidate is: void Context::init_switch_time() /home/sk852421/Documents/uni/OS/Fiasco-UX/l4/kernel/fiasco/src/kern/kernel_thread.cpp:113: error: ` int Context::init_switch_time()' and `void Context::init_switch_time()' cannot be overloaded /home/sk852421/Documents/uni/OS/Fiasco-UX/l4/kernel/fiasco/src/kern/kernel_thread.cpp:113: error: prototype for `int Context::init_switch_time()' does not match any in class `Context' auto/context.h:987: error: candidate is: void Context::init_switch_time() /home/sk852421/Documents/uni/OS/Fiasco-UX/l4/kernel/fiasco/src/kern/kernel_thread.cpp:113: error: ` int Context::init_switch_time()' and `void Context::init_switch_time()' cannot be overloaded /home/sk852421/Documents/uni/OS/Fiasco-UX/l4/kernel/fiasco/src/kern/kernel_thread.cpp:113: error: declaration of `int Context::init_switch_time()' outside of class is not definition /home/sk852421/Documents/uni/OS/Fiasco-UX/l4/kernel/fiasco/src/kern/kernel_thread.cpp:117: error: ISO C++ forbids declaration of `init_workload' with no type /home/sk852421/Documents/uni/OS/Fiasco-UX/l4/kernel/fiasco/src/kern/kernel_thread.cpp:119: error: parse error before `while' /home/sk852421/Documents/uni/OS/Fiasco-UX/l4/kernel/fiasco/src/kern/kernel_thread.cpp:122: error: ISO C++ forbids declaration of `puts' with no type /home/sk852421/Documents/uni/OS/Fiasco-UX/l4/kernel/fiasco/src/kern/kernel_thread.cpp:122: error: ` int puts' redeclared as different kind of symbol /usr/include/stdio.h:589: error: previous declaration of `int puts(const char*) ' /home/sk852421/Documents/uni/OS/Fiasco-UX/l4/kernel/fiasco/src/kern/kernel_thread.cpp:122: error: invalid conversion from `const char*' to `int' /home/sk852421/Documents/uni/OS/Fiasco-UX/l4/kernel/fiasco/src/kern/kernel_thread.cpp:127: error: ISO C++ forbids declaration of `ready_dequeue' with no type /home/sk852421/Documents/uni/OS/Fiasco-UX/l4/kernel/fiasco/src/kern/kernel_thread.cpp:128: error: ISO C++ forbids declaration of `sched' with no type /home/sk852421/Documents/uni/OS/Fiasco-UX/l4/kernel/fiasco/src/kern/kernel_thread.cpp: In function `int sched()': /home/sk852421/Documents/uni/OS/Fiasco-UX/l4/kernel/fiasco/src/kern/kernel_thread.cpp:128: error: parse error before `->' token /home/sk852421/Documents/uni/OS/Fiasco-UX/l4/kernel/fiasco/src/kern/kernel_thread.cpp:129: error: ISO C++ forbids declaration of `ready_enqueue' with no type /home/sk852421/Documents/uni/OS/Fiasco-UX/l4/kernel/fiasco/src/kern/kernel_thread.cpp:131: error: ISO C++ forbids declaration of `kill_all' with no type /home/sk852421/Documents/uni/OS/Fiasco-UX/l4/kernel/fiasco/src/kern/kernel_thread.cpp:133: error: ISO C++ forbids declaration of `threading_system_active' with no type /home/sk852421/Documents/uni/OS/Fiasco-UX/l4/kernel/fiasco/src/kern/kernel_thread.cpp:133: error: conflicting types for `int Helping_lock::threading_system_active' auto/helping_lock.h:24: error: previous declaration as `bool Helping_lock::threading_system_active' /home/sk852421/Documents/uni/OS/Fiasco-UX/l4/kernel/fiasco/src/kern/kernel_thread.cpp:135: error: ISO C++ forbids declaration of `exit' with no type /home/sk852421/Documents/uni/OS/Fiasco-UX/l4/kernel/fiasco/src/kern/kernel_thread.cpp:135: error: ` int exit' redeclared as different kind of symbol /usr/include/stdlib.h:612: error: previous declaration of `void exit(int)' /home/sk852421/Documents/uni/OS/Fiasco-UX/l4/kernel/fiasco/src/kern/kernel_thread.cpp:136: error: parse error before `}' token make[3]: *** [kernel_thread.o] Error 1 make[3]: Leaving directory `/home/sk852421/Documents/uni/OS/Fiasco-UX/l4/kernel/fiasco/build' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/sk852421/Documents/uni/OS/Fiasco-UX/l4/kernel/fiasco/build' make[1]: *** [all] Error 2 make[1]: Leaving directory `/home/sk852421/Documents/uni/OS/Fiasco-UX/l4/kernel/fiasco/build' make: *** [build] Error 2
here is my config: http://www.inf.tu-dresden.de/~sk852421/fiasco/globalconfig.out and here the full make output: http://www.inf.tu-dresden.de/~sk852421/fiasco/make.out3
Perhaps anybody knows that error??? At last here are some information about my system environment:
i'm running kernel 2.6.10
gcc -v: Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/specs Configured with: /var/tmp/portage/gcc-3.3.5-r1/work/gcc-3.3.5/configure --enable-version-specific-runtime-libs --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/3.3.5 --includedir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3.5 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3.5/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3.5/info --with-gxx-include-dir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/include/g++-v3 --host=i686-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu --with-system-zlib --disable-checking --disable-werror --disable-libunwind-exceptions --enable-shared --enable-threads=posix --disable-multilib --disable-libgcj --enable-languages=c,c++,f77 Thread model: posix gcc version 3.3.5 (Gentoo Linux 3.3.5-r1, ssp-3.3.2-3, pie-8.7.7.1)
env: INFODIR=/usr/share/info MANPATH=/usr/share/man:/usr/local/share/man:/usr/share/gcc-data/i686-pc-linux-gnu/3.3.5/man:/usr/share/man:/usr/local/share/man:/usr/share/gcc-data/i686-pc-linux-gnu/3.3.5/man::/opt/blackdown-jdk-1.4.2.01/man::/opt/jdk1.5.0/man:/usr/qt/3/doc/man:/opt/vmware/man:/opt/blackdown-jdk-1.4.2.01/man:/usr/share/man:/usr/local/share/man:/usr/share/gcc-data/i686-pc-linux-gnu/3.3.5/man::/opt/blackdown-jdk-1.4.2.01/man::/opt/jdk1.5.0/man:/usr/qt/3/doc/man:/opt/vmware/man:/opt/jdk1.5.0/man:/usr/qt/3/doc/man:/opt/vmware/man KDE_MULTIHEAD=false DM_CONTROL=/var/run/xdmctl HOSTNAME=nautilus TERM=xterm SHELL=/bin/bash XDM_MANAGED=/var/run/xdmctl/xdmctl-:0,maysd,mayfn,sched,method=classic GTK2_RC_FILES=/etc/gtk-2.0/gtkrc:/home/sk852421/.gtkrc-2.0:/home/sk852421/.kde3.3/share/config/gtkrc GTK_RC_FILES=/etc/gtk/gtkrc:/home/sk852421/.gtkrc:/home/sk852421/.kde3.3/share/config/gtkrc GS_LIB=/home/sk852421/.fonts WINDOWID=33554439 QTDIR=/usr/qt/3 KDE_FULL_SESSION=true ANT_HOME=/usr/share/ant-core USER=sk852421 JRE_HOME=/opt/jdk1.5.0 LS_COLORS=no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=01;32:*.cmd=01;32:*.exe=01;32:*.com=01;32:*.btm=01;32:*.bat=01;32:*.sh=01;32:*.csh=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.mng=01;35:*.xcf=01;35:*.pcx=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.avi=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.mov=01;35:*.qt=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.pdf=00;32:*.ps=00;32:*.txt=00;32:*.patch=00;32:*.diff=00;32:*.log=00;32:*.tex=00;32:*.doc=00;32:*.mp3=00;36:*.wav=00;36:*.mid=00;36:*.midi=00;36:*.au=00;36:*.ogg=00;36:*.flac=00;36:*.aac=00;36: XCURSOR_SIZE= GDK_USE_XFT=1 KDEDIR=/usr/kde/3.3 SESSION_MANAGER=local/nautilus:/tmp/.ICE-unix/10847 PAGER=/usr/bin/less CONFIG_PROTECT_MASK=/etc/terminfo XINITRC=/etc/X11/xinit/xinitrc KONSOLE_DCOP=DCOPRef(konsole-10865,konsole) PATH=/usr/kde/3.3/bin:/bin:/usr/bin:/usr/local/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/3.3.5:/opt/Acrobat5:/usr/X11R6/bin:/opt/blackdown-jdk-1.4.2.01/bin:/opt/blackdown-jdk-1.4.2.01/jre/bin:/opt/jdk1.5.0/bin:/usr/qt/3/bin:/usr/kde/3.3/bin:/usr/kde/3.2/bin:/usr/kde/3.1/bin:/usr/games/bin:/opt/vmware/bin DESKTOP_SESSION=kde-3.3.1 KONSOLE_DCOP_SESSION=DCOPRef(konsole-10865,session-2) PWD=/home/sk852421/Documents/uni/OS/Praktikum/uebung3 INPUTRC=/etc/inputrc JAVA_HOME=/opt/jdk1.5.0 JAVAC=/opt/blackdown-jdk-1.4.2.01/bin/javac EDITOR=/usr/bin/emacs QMAKESPEC=linux-g++ KDEDIRS=/usr KDE_MALLOC=1 HOME=/home/sk852421 SHLVL=3 JDK_HOME=/opt/blackdown-jdk-1.4.2.01 XCURSOR_THEME=whiteglass LOGNAME=sk852421 LESS=-R GCC_SPECS= CVS_RSH=ssh CLASSPATH=. LESSOPEN=|lesspipe.sh %s INFOPATH=/usr/share/info:/usr/share/gcc-data/i686-pc-linux-gnu/3.3.5/info DISPLAY=:0.0 LADSPA_PATH=/usr/lib/ladspa G_BROKEN_FILENAMES=1 CONFIG_PROTECT=/usr/X11R6/lib/X11/xkb /usr/kde/3.3/share/config /usr/kde/3.3/env /usr/kde/3.3/shutdown /usr/kde/3.2/share/config /usr/kde/3.1/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/xdvi/ /usr/share/config COLORTERM= _=/bin/env
For any advice i would be very thankful!
greetings stefan kalkowski
On Thu Jan 27, 2005 at 14:06:29 +0100, Stefan K. wrote:
First i got the following error: ... make[3]: Entering directory `/home/sk852421/Documents/uni/OS/Fiasco-UX/oskit/examples' ld -Ttext 100000 -L../lib \ -o multiboot ../lib/multiboot.o multiboot.o \ -lkern -lmc -llmm ../lib/crtn.o /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/libgcc.a ld -Ttext 100000 -L../lib \ -o multiboot-gdb ../lib/multiboot.o multiboot-gdb.o \ -lkern -lmc -llmm ../lib/crtn.o /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/libgcc.a ld -Ttext 100000 -L../lib \ -o multiboot-smp ../lib/multiboot.o multiboot-smp.o \ -lsmp -lkern -lmc -llmm ../lib/crtn.o /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/libgcc.a ../lib/libsmp.a(boot.o)(.text+0x29): In function `_SMP_TRAMP_START_': : relocation truncated to fit: R_386_16 _SMP_TRAMP_32_ENTRY_ make[3]: *** [multiboot-smp] Error 1 make[3]: Leaving directory `/home/sk852421/Documents/uni/OS/Fiasco-UX/oskit/examples' make[2]: *** [examples/all.MAKE] Error 2 make[2]: Leaving directory `/home/sk852421/Documents/uni/OS/Fiasco-UX/oskit' make[1]: *** [all] Error 2 make[1]: Leaving directory `/home/sk852421/Documents/uni/OS/Fiasco-UX/oskit' make: *** [../oskit] Error 2
Last time I had this (or something quite similar) with FC3 I installed new binutils and gcc (2.15 and 3.4.something) and it worked then. Don't know why distribution compilers don't like this.
here is the full output: http://www.inf.tu-dresden.de/~sk852421/fiasco/make.out2
After that I choosed i586 instead of K7 (i'm using athlon xp) and i could
Looks like a typo in the build system, hopefully fixed.
build the whole environment, but now i wanna compile Fiasco-UX and it fails every time:
... g++ -c -MD -D_GNU_SOURCE -include /home/sk852421/Documents/uni/OS/Fiasco-UX/l4/kernel/fiasco/src/kern/ux/format.h -I/home/sk852421/Documents/uni/OS/Fiasco-UX/l4/kernel/fiasco/src/types/ux -I/home/sk852421/Documents/uni/OS/Fiasco-UX/l4/kernel/fiasco/src/types -I/home/sk852421/Documents/uni/OS/Fiasco-UX/l4/kernel/fiasco/src/drivers/ux -I/home/sk852421/Documents/uni/OS/Fiasco-UX/l4/kernel/fiasco/src/drivers -I/home/sk852421/Documents/uni/OS/Fiasco-UX/l4/kernel/fiasco/src/kern/ux -I/home/sk852421/Documents/uni/OS/Fiasco-UX/l4/kernel/fiasco/src/kern/shared -I/home/sk852421/Documents/uni/OS/Fiasco-UX/l4/kernel/fiasco/src/kern -I/home/sk852421/Documents/uni/OS/Fiasco-UX/l4/kernel/fiasco/src/lib/libk/ux -I/home/sk852421/Documents/uni/OS/Fiasco-UX/l4/kernel/fiasco/src/lib/libk -I/home/sk852421/Documents/uni/OS/Fiasco-UX/l4/kernel/fiasco/src/lib/amm -I/home/sk852421/Documents/uni/OS/Fiasco-UX/l4/kernel/fiasco/src/lib/lmm -I/home/sk852421/Documents/uni/OS/Fiasco-UX/l4/kernel/fiasco/src/lib/disasm -I/home/sk852421/Documents/uni/OS/Fiasco-UX/l4/kernel/fiasco/src/lib/perfctr -I/home/sk852421/Documents/uni/OS/Fiasco-UX/l4/kernel/fiasco/src/lib/regex -I. -Iauto -fno-implement-inlines -finline-limit=10000 -mpreferred-stack-boundary=2 -march=i586 -fno-defer-pop -freg-struct-return -g -Wall -Wformat=2 -ffunction-sections -W -frename-registers -fomit-frame-pointer -gstabs+ -fno-rtti -fno-exceptions -O2 auto/thread-ipc2-v4.cc -o thread-ipc2-v4.o ... Making kernel_thread.o g++ -c -MD -D_GNU_SOURCE -include /home/sk852421/Documents/uni/OS/Fiasco-UX/l4/kernel/fiasco/src/kern/ux/format.h -I/home/sk852421/Documents/uni/OS/Fiasco-UX/l4/kernel/fiasco/src/types/ux -I/home/sk852421/Documents/uni/OS/Fiasco-UX/l4/kernel/fiasco/src/types -I/home/sk852421/Documents/uni/OS/Fiasco-UX/l4/kernel/fiasco/src/drivers/ux -I/home/sk852421/Documents/uni/OS/Fiasco-UX/l4/kernel/fiasco/src/drivers -I/home/sk852421/Documents/uni/OS/Fiasco-UX/l4/kernel/fiasco/src/kern/ux -I/home/sk852421/Documents/uni/OS/Fiasco-UX/l4/kernel/fiasco/src/kern/shared -I/home/sk852421/Documents/uni/OS/Fiasco-UX/l4/kernel/fiasco/src/kern -I/home/sk852421/Documents/uni/OS/Fiasco-UX/l4/kernel/fiasco/src/lib/libk/ux -I/home/sk852421/Documents/uni/OS/Fiasco-UX/l4/kernel/fiasco/src/lib/libk -I/home/sk852421/Documents/uni/OS/Fiasco-UX/l4/kernel/fiasco/src/lib/amm -I/home/sk852421/Documents/uni/OS/Fiasco-UX/l4/kernel/fiasco/src/lib/lmm -I/home/sk852421/Documents/uni/OS/Fiasco-UX/l4/kernel/fiasco/src/lib/disasm -I/home/sk852421/Documents/uni/OS/Fiasco-UX/l4/kernel/fiasco/src/lib/perfctr -I/home/sk852421/Documents/uni/OS/Fiasco-UX/l4/kernel/fiasco/src/lib/regex -I. -Iauto -fno-implement-inlines -finline-limit=10000 -mpreferred-stack-boundary=2 -march=i586 -fno-defer-pop -freg-struct-return -g -Wall -Wformat=2 -ffunction-sections -W -frename-registers -fomit-frame-pointer -gstabs+ -fno-rtti -fno-exceptions -O2 auto/kernel_thread.cc -o kernel_thread.o /home/sk852421/Documents/uni/OS/Fiasco-UX/l4/kernel/fiasco/src/kern/kernel_thread.cpp:104: error: parse error before `)' token /home/sk852421/Documents/uni/OS/Fiasco-UX/l4/kernel/fiasco/src/kern/kernel_thread.cpp:113: error: ISO C++ forbids declaration of `init_switch_time' with no type
I guess some preprocessing got it wrong. Go to the build directory and do "make kernel_thread.i" and then look at kernel_thread.i at the place where the error comes from. For me, it looks something like this:
__attribute__ ((noinline)) __attribute__ ((noreturn)) void Kernel_thread::run() { free_initcall_section();
Context::init_switch_time();
Should be similar/equal for you.
Adam
Am Donnerstag, 27. Januar 2005 16:49 schrieb Adam Lackorzynski:
I guess some preprocessing got it wrong. Go to the build directory and do "make kernel_thread.i" and then look at kernel_thread.i at the place where the error comes from. For me, it looks something like this:
__attribute__ ((noinline)) __attribute__ ((noreturn)) void Kernel_thread::run() { free_initcall_section();
Context::init_switch_time();
Should be similar/equal for you.
thank you for your prompt answer!
exactly, it looks similar, but it's missing the noinline argument:
__attribute__ (()) __attribute__ ((noreturn)) void Kernel_thread::run() { free_initcall_section();
Context::init_switch_time();
init_workload();
while (running) idle();
puts ("\nExiting, wait...");
ready_dequeue(); sched()->set_prio(255); ready_enqueue();
kill_all();
Helping_lock::threading_system_active = false;
exit (0); }
so how can i fix the problem?
greetings stefan
Adam
On Thu Jan 27, 2005 at 17:29:22 +0100, Stefan K. wrote:
exactly, it looks similar, but it's missing the noinline argument:
__attribute__ (()) __attribute__ ((noreturn)) void Kernel_thread::run() {
Strange. At the top of the .i file, there should be something like this:
#define FIASCO_NOINLINE __attribute__ ((noinline))
Right?
And probably show the output of "grep noinline kernel_thread.i".
Adam
Am Donnerstag, 27. Januar 2005 17:56 schrieb Adam Lackorzynski:
On Thu Jan 27, 2005 at 17:29:22 +0100, Stefan K. wrote:
exactly, it looks similar, but it's missing the noinline argument:
__attribute__ (()) __attribute__ ((noreturn)) void Kernel_thread::run() {
Strange. At the top of the .i file, there should be something like this:
#define FIASCO_NOINLINE __attribute__ ((noinline))
Right?
yes, it is.
And probably show the output of "grep noinline kernel_thread.i".
[sk852421@nautilus build]$ grep noinline kernel_thread.i #define __attribute_noinline__ __attribute__ ((__noinline__)) #define FIASCO_NOINLINE __attribute__ ((noinline)) #define noinline __attribute__ ((noinline)) __attribute__ ((noreturn))
you can find my kernel_thread.i at: http://www.inf.tu-dresden.de/~sk852421/fiasco/kernel_thread.i
and perhaps you want my auto/kernel_thread.cc: http://www.inf.tu-dresden.de/~sk852421/fiasco/kernel_thread.cc
Adam
On Thu Jan 27, 2005 at 17:51:54 +0100, Stefan K. wrote:
Am Donnerstag, 27. Januar 2005 17:56 schrieb Adam Lackorzynski:
On Thu Jan 27, 2005 at 17:29:22 +0100, Stefan K. wrote:
exactly, it looks similar, but it's missing the noinline argument:
__attribute__ (()) __attribute__ ((noreturn)) void Kernel_thread::run() {
Strange. At the top of the .i file, there should be something like this:
#define FIASCO_NOINLINE __attribute__ ((noinline))
Right?
yes, it is.
And probably show the output of "grep noinline kernel_thread.i".
[sk852421@nautilus build]$ grep noinline kernel_thread.i #define __attribute_noinline__ __attribute__ ((__noinline__)) #define FIASCO_NOINLINE __attribute__ ((noinline)) #define noinline
^^^^^^^^^^^^^^^^^^^^^^ So, what's that? Looks like /usr/include/linux/compiler.h is messing up here. Did you copy kernel headers to /usr/include?
__attribute__ ((noinline)) __attribute__ ((noreturn))
Adam
Am Donnerstag, 27. Januar 2005 18:14 schrieb Adam Lackorzynski:
And probably show the output of "grep noinline kernel_thread.i".
[sk852421@nautilus build]$ grep noinline kernel_thread.i #define __attribute_noinline__ __attribute__ ((__noinline__)) #define FIASCO_NOINLINE __attribute__ ((noinline)) #define noinline
^^^^^^^^^^^^^^^^^^^^^^ So, what's that? Looks like /usr/include/linux/compiler.h is messing up here. Did you copy kernel headers to /usr/include?
in /usr/include/linux are all my linux-kernel headers and nothing else, i deleted and reinstalled the headers, but the compiler.h was the original one and contains:
#ifndef noinline #define noinline #endif
i think the headers are in the right position aren't they? I didn't changed anything, the gentoo-distribution-installation-tool placed them there.
__attribute__ ((noinline)) __attribute__ ((noreturn))
Adam
On Thu Jan 27, 2005 at 19:31:39 +0100, Stefan K. wrote:
in /usr/include/linux are all my linux-kernel headers and nothing else, i deleted and reinstalled the headers, but the compiler.h was the original one and contains:
#ifndef noinline #define noinline #endif
i think the headers are in the right position aren't they? I didn't changed anything, the gentoo-distribution-installation-tool placed them there.
Well, there's a rule that one should not use original kernel headers for user land, at least that's being told all time. In my copy of gentoo this compiler.h is rather small and does not look like it would come from any recent Linux. An the Debian version doesn't have those noinline lines either, maybe they were removed. I guess you need to fix this up yourself.
Adam
Am Donnerstag, 27. Januar 2005 19:53 schrieb Adam Lackorzynski:
On Thu Jan 27, 2005 at 19:31:39 +0100, Stefan K. wrote:
in /usr/include/linux are all my linux-kernel headers and nothing else, i deleted and reinstalled the headers, but the compiler.h was the original one and contains:
#ifndef noinline #define noinline #endif
i think the headers are in the right position aren't they? I didn't changed anything, the gentoo-distribution-installation-tool placed them there.
Well, there's a rule that one should not use original kernel headers for user land, at least that's being told all time. In my copy of gentoo this compiler.h is rather small and does not look like it would come from any recent Linux. An the Debian version doesn't have those noinline lines either, maybe they were removed. I guess you need to fix this up yourself.
I don't use the kernel-headers of the running kernel. It's an extra package of headers for all kernelversions 2.6 and i need it to build glibc. My roommate uses a Suse version and has the same noinline statement.
Whatever, you're right i have to fix this up myself. Nevertheless thank you for your commitment!
greetings stefan
Adam
l4-hackers@os.inf.tu-dresden.de