Well... make menuconfig worked, but subsequent build of the kernel failed... 2.5 need gcc 3.<something>, doesn't it?
I have disabled module support, but running 'make bzImage' results in the following with gcc 4.2
dualpc:/usr/src/TESTS/linux-2.5.37 # make help
Cleaning targets:
clean - remove most generated files but keep the config
mrproper - remove all generated files including the config
distclean - mrproper + remove files generated by editors and patch
Configuration targets:
oldconfig - Update current config utilising a line-oriented program
menuconfig - Update current config utilising a menu based program
xconfig - Update current config utilising a X-based program
defconfig - New config with default answer to all options
allmodconfig - New config selecting modules when possible
allyesconfig - New config where all options are accepted with yes
allnoconfig - New minimal config
Other generic targets:
all - Build all targets marked with [*]
dep - Create module version information
* vmlinux - Build the bare kernel
* modules - Build all modules
dir/file.[ois]- Build specified target only
rpm - Build a kernel as an RPM package
tags/TAGS - Generate tags file for editors
Documentation targets:
Linux kernel internal documentation in different formats:
sgmldocs (SGML), psdocs (Postscript), pdfdocs (PDF), htmldocs (HTML)
Architecture specific targets (i386):
* bzImage - Compressed kernel image (arch/i386/boot/bzImage)
install - Install kernel using
(your) ~/bin/installkernel or
(distribution) /sbin/installkernel or
install to $(INSTALL_PATH) and run lilo
Execute "make" or "make all" to build all targets marked with [*]
For further info browse Documentation/kbuild/*
dualpc:/usr/src/TESTS/linux-2.5.37 # ls ..
2.5-start.config 2.5-start.config.old linux-2.5.37 linux-2.5.37.tar.bz2
dualpc:/usr/src/TESTS/linux-2.5.37 # make bzImage
make[1]: Går til katalog '/usr/src/TESTS/linux-2.5.37'
make[2]: Går til katalog '/usr/src/TESTS/linux-2.5.37/scripts'
make[2]: Forlader katalog '/usr/src/TESTS/linux-2.5.37/scripts'
Starting the build. KBUILD_BUILTIN=1 KBUILD_MODULES=
make[2]: Går til katalog '/usr/src/TESTS/linux-2.5.37'
make[3]: Går til katalog '/usr/src/TESTS/linux-2.5.37/kernel'
gcc -E -Wp,-MD,/usr/src/TESTS/linux-2.5.37/include/linux/modules/kernel/.exec_domain.ver.d -D__KERNEL__ -I/usr/src/TESTS/linux-2.5.37/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -I/usr/src/TESTS/linux-2.5.37/arch/i386/mach-generic -nostdinc -iwithprefix include -DKBUILD_BASENAME=exec_domain -D__GENKSYMS__ exec_domain.c | /sbin/genksyms -p smp_ -k 2.5.37 > /usr/src/TESTS/linux-2.5.37/include/linux/modules/kernel/exec_domain.ver.tmp
/bin/sh: /sbin/genksyms: Ingen sådan fil eller filkatalog
make[3]: *** [/usr/src/TESTS/linux-2.5.37/include/linux/modules/kernel/exec_domain.ver] Fejl 1
make[3]: Forlader katalog '/usr/src/TESTS/linux-2.5.37/kernel'
make[2]: *** [_sfdep_kernel] Fejl 2
make[2]: Forlader katalog '/usr/src/TESTS/linux-2.5.37'
make[1]: *** [include/linux/modversions.h] Fejl 2
make[1]: Forlader katalog '/usr/src/TESTS/linux-2.5.37'
make: *** [.hdepend] Fejl 2
dualpc:/usr/src/TESTS/linux-2.5.37 # make menuconfig
make[1]: Går til katalog '/usr/src/TESTS/linux-2.5.37/scripts'
make -C lxdialog all
make[2]: Går til katalog '/usr/src/TESTS/linux-2.5.37/scripts/lxdialog'
make[2]: Forlader katalog '/usr/src/TESTS/linux-2.5.37/scripts/lxdialog'
make[1]: Forlader katalog '/usr/src/TESTS/linux-2.5.37/scripts'
/bin/sh ./scripts/Menuconfig arch/i386/config.in
Using defaults found in .config
Preparing scripts: functions, parsing.......................................................................................done.
Saving your kernel configuration...
*** End of Linux kernel configuration.
*** Check the top-level Makefile for additional configuration.
*** Next, you must run 'make dep'.
dualpc:/usr/src/TESTS/linux-2.5.37 # make dep
make[1]: Går til katalog '/usr/src/TESTS/linux-2.5.37'
make[1]: Ingenting at gøre for 'include/linux/modversions.h'.
make[1]: Forlader katalog '/usr/src/TESTS/linux-2.5.37'
dualpc:/usr/src/TESTS/linux-2.5.37 # make bzImage
make[1]: Går til katalog '/usr/src/TESTS/linux-2.5.37/scripts'
make[1]: Forlader katalog '/usr/src/TESTS/linux-2.5.37/scripts'
SPLIT include/linux/autoconf.h -> include/config/*
Starting the build. KBUILD_BUILTIN=1 KBUILD_MODULES=
make[1]: Går til katalog '/usr/src/TESTS/linux-2.5.37/kernel'
gcc -Wp,-MD,./.sched.o.d -D__KERNEL__ -I/usr/src/TESTS/linux-2.5.37/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -I/usr/src/TESTS/linux-2.5.37/arch/i386/mach-generic -nostdinc -iwithprefix include -fno-omit-frame-pointer -DKBUILD_BASENAME=sched -c -o sched.o sched.c
In file included from /usr/src/TESTS/linux-2.5.37/include/asm/thread_info.h:13,
from /usr/src/TESTS/linux-2.5.37/include/linux/thread_info.h:11,
from /usr/src/TESTS/linux-2.5.37/include/linux/spinlock.h:12,
from /usr/src/TESTS/linux-2.5.37/include/linux/capability.h:44,
from /usr/src/TESTS/linux-2.5.37/include/linux/sched.h:9,
from /usr/src/TESTS/linux-2.5.37/include/linux/mm.h:4,
from sched.c:19:
/usr/src/TESTS/linux-2.5.37/include/asm/processor.h:80: error: array type has incomplete element type
In file included from /usr/src/TESTS/linux-2.5.37/include/linux/kernel.h:15,
from /usr/src/TESTS/linux-2.5.37/include/linux/spinlock.h:13,
from /usr/src/TESTS/linux-2.5.37/include/linux/capability.h:44,
from /usr/src/TESTS/linux-2.5.37/include/linux/sched.h:9,
from /usr/src/TESTS/linux-2.5.37/include/linux/mm.h:4,
from sched.c:19:
/usr/src/TESTS/linux-2.5.37/include/asm/byteorder.h:14: warning: type qualifiers ignored on function return type
/usr/src/TESTS/linux-2.5.37/include/asm/byteorder.h:28: warning: type qualifiers ignored on function return type
In file included from /usr/src/TESTS/linux-2.5.37/include/linux/byteorder/little_endian.h:11,
from /usr/src/TESTS/linux-2.5.37/include/asm/byteorder.h:45,
from /usr/src/TESTS/linux-2.5.37/include/linux/kernel.h:15,
from /usr/src/TESTS/linux-2.5.37/include/linux/spinlock.h:13,
from /usr/src/TESTS/linux-2.5.37/include/linux/capability.h:44,
from /usr/src/TESTS/linux-2.5.37/include/linux/sched.h:9,
from /usr/src/TESTS/linux-2.5.37/include/linux/mm.h:4,
from sched.c:19:
/usr/src/TESTS/linux-2.5.37/include/linux/byteorder/swab.h:132: warning: type qualifiers ignored on function return type
/usr/src/TESTS/linux-2.5.37/include/linux/byteorder/swab.h:145: warning: type qualifiers ignored on function return type
/usr/src/TESTS/linux-2.5.37/include/linux/byteorder/swab.h:159: warning: type qualifiers ignored on function return type
In file included from /usr/src/TESTS/linux-2.5.37/include/asm/smp.h:16,
from /usr/src/TESTS/linux-2.5.37/include/linux/smp.h:16,
from /usr/src/TESTS/linux-2.5.37/include/linux/sched.h:24,
from /usr/src/TESTS/linux-2.5.37/include/linux/mm.h:4,
from sched.c:19:
/usr/src/TESTS/linux-2.5.37/include/asm/mpspec.h:86: warning: ‘packed’ attribute ignored for field of type ‘unsigned char[6]’
In file included from /usr/src/TESTS/linux-2.5.37/include/linux/sched.h:24,
from /usr/src/TESTS/linux-2.5.37/include/linux/mm.h:4,
from sched.c:19:
/usr/src/TESTS/linux-2.5.37/include/linux/smp.h:31: error: conflicting types for ‘smp_send_reschedule’
/usr/src/TESTS/linux-2.5.37/include/asm/smp.h:64: error: previous declaration of ‘smp_send_reschedule’ was here
sched.c:438: error: conflicting types for ‘wake_up_process’
/usr/src/TESTS/linux-2.5.37/include/linux/sched.h:504: error: previous declaration of ‘wake_up_process’ was here
sched.c:449: error: conflicting types for ‘wake_up_forked_process’
/usr/src/TESTS/linux-2.5.37/include/linux/sched.h:505: error: previous declaration of ‘wake_up_forked_process’ was here
sched.c:479: error: conflicting types for ‘sched_exit’
/usr/src/TESTS/linux-2.5.37/include/linux/sched.h:506: error: previous declaration of ‘sched_exit’ was here
sched.c:1092: error: conflicting types for ‘__wake_up’
/usr/src/TESTS/linux-2.5.37/include/linux/sched.h:495: error: previous declaration of ‘__wake_up’ was here
sched.c:1107: error: conflicting types for ‘__wake_up_locked’
/usr/src/TESTS/linux-2.5.37/include/linux/sched.h:496: error: previous declaration of ‘__wake_up_locked’ was here
sched.c:1125: error: conflicting types for ‘__wake_up_sync’
/usr/src/TESTS/linux-2.5.37/include/linux/sched.h:497: error: previous declaration of ‘__wake_up_sync’ was here
sched.c:1142: error: conflicting types for ‘complete’
/usr/src/TESTS/linux-2.5.37/include/linux/completion.h:31: error: previous declaration of ‘complete’ was here
sched.c:1152: error: conflicting types for ‘wait_for_completion’
/usr/src/TESTS/linux-2.5.37/include/linux/completion.h:30: error: previous declaration of ‘wait_for_completion’ was here
sched.c:1187: error: conflicting types for ‘interruptible_sleep_on’
/usr/src/TESTS/linux-2.5.37/include/linux/sched.h:501: error: previous declaration of ‘interruptible_sleep_on’ was here
sched.c:1198: error: conflicting types for ‘interruptible_sleep_on_timeout’
/usr/src/TESTS/linux-2.5.37/include/linux/sched.h:502: error: previous declaration of ‘interruptible_sleep_on_timeout’ was here
sched.c:1211: error: conflicting types for ‘sleep_on’
/usr/src/TESTS/linux-2.5.37/include/linux/sched.h:498: error: previous declaration of ‘sleep_on’ was here
sched.c:1222: error: conflicting types for ‘sleep_on_timeout’
/usr/src/TESTS/linux-2.5.37/include/linux/sched.h:499: error: previous declaration of ‘sleep_on_timeout’ was here
make[1]: *** [sched.o] Fejl 1
make[1]: Forlader katalog '/usr/src/TESTS/linux-2.5.37/kernel'
make: *** [kernel] Fejl 2
At gcc.gnu.org I can find two versions of gcc 3:
GCC 3.4.4 May 18, 2005
GCC 3.3.6 May 3, 2005
Given that I *do* have to compile a compiler, which one would be preferable for kernel builds?
Should I go as low as 2.x?
Hopefully I can put all this out of the was and just include the paths in PATH and LD_LIBRARY_PATH?
BTW: I tried disabling SMP support but didn't get much farther...
/Martin.
----- "Martin Møller"
OK... I'll get 2.5.37 and prepare a compile. Will likely try it tomorrow.
/Martin.
-- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kernel+help@opensuse.org