AF:
NF:0
PS:10
SRH:1
SFN:
DSR:
MID:<20090202144752.182ad095@ripper.onstor.net>
CFG:
PT:0
S:andy.sharp@onstor.com
RQ:
SSV:exch1.onstor.net
NSV:
SSH:
R:<Bill.Fisher@onstor.com>,<larry.scheer@onstor.com>
MAID:1
X-Sylpheed-Privacy-System:
X-Sylpheed-Sign:0
SCF:#mh/Mailbox/sent
RMID:#imap/andys@onstor.net@exch1.onstor.net/INBOX	0	49877164.3010407@onstor.com
X-Sylpheed-End-Special-Headers: 1
Date: Mon, 2 Feb 2009 14:48:09 -0800
From: Andrew Sharp <andy.sharp@onstor.com>
To: Bill Fisher <Bill.Fisher@onstor.com>
Cc: Larry Scheer <larry.scheer@onstor.com>
Subject: Re: compiling acpu and ncpu code for the kernel
Message-ID: <20090202144809.27670a8b@ripper.onstor.net>
In-Reply-To: <49877164.3010407@onstor.com>
References: <49874C29.4060807@onstor.com>
	<2779531E7C760D4491C96305019FEEB51851A8515E@exch1.onstor.net>
	<20090202135816.4356f8a3@ripper.onstor.net>
	<49877164.3010407@onstor.com>
Organization: Onstor
X-Mailer: Sylpheed-Claws 2.6.0 (GTK+ 2.8.20; x86_64-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

stdarg.h is userspace crap, probably should just ifdef it out.  what is
it included for?  getopt or something?

On Mon, 2 Feb 2009 14:19:16 -0800 Bill Fisher <Bill.Fisher@onstor.com>
wrote:

> Andy Sharp wrote:
> > Ah, good catch.  __KERNEL__ and KERNEL and __KERNEL all have to be
> > defined, I believe.
> >=20
> Yes, I found that out via iteration.
> The stopping point now is:
>=20
> Where is the stdarg.h come from? It is no-where in the kernel headers
> so it must be part of the compiler base suite of headers.
>=20
> Any suggestions?
>=20
>=20
>=20
> /usr/bin/mipsel-linux-gnu-gcc-4.1=20
> -I/home/bfisher/linux-txrx/linux-mips-2.6.20-andy/include=20
> -I/home/bfisher/linux-txrx/linux-mips-2.6.20-\andy/include/asm-mips=20
> -I/home/bfisher/linux-txrx/linux-mips-2.6.20-andy/include/asm-mips/mach-g=
eneric=20
> -include=20
> /home/bfisher/linux-txrx/lin\ux-mips-2.6.20-andy/include/linux/autoconf.h=
=20
> -I../../Includes -I. -I../../Build/cg/dbg -fno-builtin-printf=20
> -fno-builtin-abort -DSIBYTE -DSB\1250 -DR4000 -D__long64 -DTUXRX=20
> -DLANGUAGE_C   -O2   -nostdlib -nostdinc -DNETEEE_FRAGMENT=20
> -DEEE_ALLOC_USE_TAILQ -DEEE_VALIDATE -DREQ_TRACI\NG=20
> -DNFS_DONT_FREE_REQUESTS -DRECYCLE_REQUESTS -DCIFS_DONT_FREE_REQUESTS=20
> -DRECYCLE_REQUESTS -DDCACHE_VERIFY_CACHE_LIST_AFTER_INSERTION=20
> -DDC\ACHE_SAVE_REQ_RESP -DDCACHE_DEBUG_ENABLE -DDCACHE_DEBUG_ASSERT=20
> -DBASIC_STATS -DDETAIL_STATS -DPKT_ALLOC_USE_TAILQ -DFS_RPC_USE_TAILQ=20
> -DVS_V\ALIDATE_REFCNT_FREQ=3D10000 -DREF_TRACKING -DFCB_STATS=20
> -DVS_VALIDATE_REFCNT -DPKT_ALLOC_USE_TAILQ -DREQ_TRACING=20
> -DNFS_DONT_FREE_REQUESTS -DRE\CYCLE_REQUESTS
> -DCIFS_DONT_FREE_REQUESTS -DRECYCLE_REQUESTS
> -DDCACHE_VERIFY_CACHE_LIST_AFTER_INSERTION -DDCACHE_SAVE_REQ_RESP
> -DDCACHE_DEBU\G_ENABLE -DDCACHE_DEBUG_ASSERT -DBASIC_STATS
> -DDETAIL_STATS -DFS_RPC_USE_TAILQ  -G 0 -mlong64
> -DOS_INCL=3D\"linux.h\"  -DCOUGAR -DDEFAULT_VE\NDOR_NAME=3D\"ONStor\"
> -DDEFAULT_PROD_NAME=3D\"COUGAR\" -g -fno-reorder-blocks -DTUXRX
> -DAGILE_HARDWARE -c tpl.c
> -o ../../Build/cg/dbg/Objects/\TUXRX/sm-tpl/tpl.o In file included
> from
> tpl.c:14: /home/bfisher/linux-txrx/linux-mips-2.6.20-andy/include/linux/k=
ernel.h:10:20:
> error: stdarg.h: No such file or directory In file included from
> tpl.c:14: /home/bfisher/linux-txrx/linux-mips-2.6.20-andy/include/linux/k=
ernel.h:123:
> error: expected declaration specifiers or =E2=80=98...=E2=80=99 before
> =E2=80=98va_list\=E2=80=99 /home/bfisher/linux-txrx/linux-mips-2.6.20-and=
y/include/linux/kernel.h:124:
> warning: conflicting types for built-in function
> =E2=80=98vsprintf=E2=80=99 /home/bfisher/linux-txrx/linux-mips-2.6.20-and=
y/include/linux/kernel.h:127:
> error: expected declaration specifiers or =E2=80=98...=E2=80=99 before
> =E2=80=98va_list\=E2=80=99 /home/bfisher/linux-txrx/linux-mips-2.6.20-and=
y/include/linux/kernel.h:128:
> warning: conflicting types for built-in function
> =E2=80=98vsnprintf=E2=80=99 /home/bfisher/linux-txrx/linux-mips-2.6.20-an=
dy/include/linux/kernel.h:131:
> error: expected declaration specifiers or =E2=80=98...=E2=80=99 before
> =E2=80=98va_list\=E2=80=99 /home/bfisher/linux-txrx/linux-mips-2.6.20-and=
y/include/linux/kernel.h:135:
> error: expected declaration specifiers or =E2=80=98...=E2=80=99 before
> =E2=80=98va_list\=E2=80=99 /home/bfisher/linux-txrx/linux-mips-2.6.20-and=
y/include/linux/kernel.h:139:
> error: expected declaration specifiers or =E2=80=98...=E2=80=99 before
> =E2=80=98va_list\=E2=80=99 /home/bfisher/linux-txrx/linux-mips-2.6.20-and=
y/include/linux/kernel.h:140:
> warning: conflicting types for built-in function
> =E2=80=98vsscanf=E2=80=99 /home/bfisher/linux-txrx/linux-mips-2.6.20-andy=
/include/linux/kernel.h:155:
> error: expected declaration specifiers or =E2=80=98...=E2=80=99 before =
=E2=80=98va_list\=E2=80=99 In
> file included
> from /home/bfisher/linux-txrx/linux-mips-2.6.20-andy/include/asm/page.h:5=
2,
> from /home/bfisher/linux-txrx/linux-mips-2.6.20-andy/include/linux/mmzone=
.h:17,
>                   from=20
> /home/bfisher/linux-txrx/linux-mips-2.6.20-andy/include/linux/gfp.h:4,
>                   from=20
> /home/bfisher/linux-txrx/linux-mips-2.6.20-andy/include/linux/mm.h:9,
>                   from tpl.c:15:
>=20
