tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Tinycc-devel] Re: [Qemu-devel] TCCBOOT


From: Fabrice Bellard
Subject: [Tinycc-devel] Re: [Qemu-devel] TCCBOOT
Date: Tue, 26 Oct 2004 01:40:57 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624

Chad Page wrote:
        I wasn't patient enough for it to run in emulation on my P3/1.0 at
work, so I tried using tcc natively and wasn't able to get 2.4.26
compiling using the provided patch.  I had to disable -pipe in
arch/i386/Makefile and the compiling attempt errored out:

tcc -D__KERNEL__ -I/usr/src/tcctest/linux-2.4.26/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-fomit-frame-pointer  -march=i686   -DKBUILD_BASENAME=main -c -o
init/main.o init/main.c
In file included from init/main.c:15:
In file included from
/usr/src/tcctest/linux-2.4.26/include/linux/proc_fs.h:5:
In file included from
/usr/src/tcctest/linux-2.4.26/include/linux/slab.h:14:
In file included from /usr/src/tcctest/linux-2.4.26/include/linux/mm.h:4:
In file included from
/usr/src/tcctest/linux-2.4.26/include/linux/sched.h:9:
In file included from
/usr/src/tcctest/linux-2.4.26/include/linux/binfmts.h:5:
In file included from
/usr/src/tcctest/linux-2.4.26/include/linux/capability.h:17:
In file included from
/usr/src/tcctest/linux-2.4.26/include/linux/fs.h:301:
/usr/src/tcctest/linux-2.4.26/include/linux/ext3_fs_i.h:63: ',' expected

        Anyway, this sounds very cool and I'm looking forward to getting
it to work...

I updated the TCC web page to make it clearer: I never tried to compile the Linux kernel with TinyCC using the standard Makefiles. It is surely possible with a few patches, but it was not my goal. The problems you have are related to that fact that __GNUC__, __GNUC_MINOR__, and __OPTIMIZE__ are not defined by default in TinyCC as they are in GCC.

Fabrice.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]