[lkml]   [2002]   [Feb]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectXcompile of Linux kernel from SunSolaris

The compile environment is a sparc-sun-solaris2.8

I have attached the way I built gcc cross compiler and binutils, these
compile without any troubles.

But then comes the Kernel...

make mrproper works
make config works
make menuconfig (don't work , I think because of ncurse version??)
make dep stops at

386/kernel _sfdep_arch/i386/mm _sfdep_arch/i386/lib
_FASTDEP_ALL_SUB_DIRS="kernel drivers mm fs net ipc lib arch/i386/kernel
arch/i386/mm arch/i386/lib"
make[1]: Entering directory `/home/tchiwam/lfs/usr/src/linux'
make -C kernel fastdep
make[2]: Entering directory `/home/tchiwam/lfs/usr/src/linux/kernel'
/bin/sh: test: unknown operator -ot
make[2]: ***
[/home/tchiwam/lfs/usr/src/linux/include/linux/modules/signal.ver] Error 1
make[2]: Leaving directory `/home/tchiwam/lfs/usr/src/linux/kernel'
make[1]: *** [_sfdep_kernel] Error 2
make[1]: Leaving directory `/home/tchiwam/lfs/usr/src/linux'
make: *** [dep-files] Error 2

If I bypass it , it complains about some version and time stamp, that
would make send considering test -ot ...

tchiwam@abc:/linux$ make zImage
i386-linux-gcc -D__KERNEL__ -I/home/tchiwam/lfs/usr/src/linux/include
-Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer
-fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2
-march=i386 -c -o init/main.o init/main.c
. scripts/mkversion > .tmpversion
i386-linux-gcc -D__KERNEL__ -I/home/tchiwam/lfs/usr/src/linux/include
-Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer
-fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2
-march=i386 -DUTS_MACHINE='"i386"' -c -o init/version.o init/version.c
In file included from init/version.c:12:
/home/tchiwam/lfs/usr/src/linux/include/linux/compile.h:1: parse error
before `-'
init/version.c:20: `UTS_VERSION' undeclared here (not in a function)
init/version.c:20: initializer element is not constant
init/version.c:20: (near initialization for `system_utsname.version')
init/version.c:26: parse error before `UTS_VERSION'
make: *** [init/version.o] Error 1

This seems to be related to Rules.make line 231

$(MODINCL)/%.ver: %.c
@if [ ! -r $(MODINCL)/$*.stamp -o $(MODINCL)/$*.stamp -ot $< ];
then \
$<'; \
echo '| $(GENKSYMS) $(genksyms_smp_prefix) -k
$@.tmp'; \
| $(GENKSYMS) $(genksyms_smp_prefix) -k
p; \
if [ -r $@ ] && cmp -s $@ $@.tmp; then echo $@ is
unchanged; rm -f $@.tmp; \
else echo mv $@.tmp $@; mv -f $@.tmp $@; fi; \
fi; touch $(MODINCL)/$*.stamp

Since /bin/sh of sun solaris just don't seem to work I tried to change the
test = [ to a newly compiled one but still gives the same trouble or
wierder trouble. (I guess my skills in scripting aren't good) It would
also help to have some comments of what is this thing doing ?? and how


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:24    [W:0.025 / U:24.444 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site