Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 03 Oct 2012 11:41:45 +0200
From:      Daniel Braniss <danny@cs.huji.ac.il>
To:        hackers@freebsd.org
Subject:   problem cross-compiling 9.1
Message-ID:  <E1TJLSb-0008k7-Bd@kabab.cs.huji.ac.il>

next in thread | raw e-mail | index | archive | help
reposting to hackers, maybe better luck here?

When using an amd64 host to 'make TARGET_ARCH=i386 buildworld' it seems that
it's using the wrong cpp, at least when building ioctl.c via mkioctl in
usr.bin/ktrace and having set WITHOUT_CPP(*). This used to work with
previous releases.

...
===> usr.bin/kdump (depend)
env CPP="cpp"  sh /r+d/stable/9/usr.bin/kdump/mkioctls 
/home/obj/rnd/alix/i386.i386/r+d/stable/9/tmp/usr/include > ioctl.c
...
cc -O2 -pipe  -I/r+d/stable/9/usr.bin/kdump/../ktrace 
-I/r+d/stable/9/usr.bin/kdump -I/r+d/stable/9/usr.bin/kdump/../.. -DNDEBUG 
-std=gnu99 -fstack-protector -Wno-pointer-sign -c ioctl.c
ioctl.c: In function 'ioctlname':
ioctl.c:1216: error: 'MPTIO_RAID_ACTION32' undeclared (first use in this 
function)
ioctl.c:1216: error: (Each undeclared identifier is reported only once
ioctl.c:1216: error: for each function it appears in.)
ioctl.c:1292: error: 'MPTIO_READ_EXT_CFG_HEADER32' undeclared (first use in 
this function)
ioctl.c:1632: error: 'MPTIO_READ_EXT_CFG_PAGE32' undeclared (first use in this 
function)
ioctl.c:1772: error: 'CCISS_PASSTHRU32' undeclared (first use in this function)
ioctl.c:2010: error: 'IPMICTL_RECEIVE_MSG_TRUNC_32' undeclared (first use in 
this function)
ioctl.c:2082: error: 'IPMICTL_RECEIVE_MSG_32' undeclared (first use in this 
function)
ioctl.c:2300: error: 'MPTIO_READ_CFG_PAGE32' undeclared (first use in this 
function)
ioctl.c:2870: error: 'MPTIO_READ_CFG_HEADER32' undeclared (first use in this 
function)
ioctl.c:2878: error: 'IPMICTL_SEND_COMMAND_32' undeclared (first use in this 
function)
ioctl.c:2938: error: 'MPTIO_WRITE_CFG_PAGE32' undeclared (first use in this 
function)
*** [ioctl.o] Error code 1

*: Im compiling for an embedded system, and hence I want the minimum stuff.

at the moment the work around is to remove the WITHOUT_CPP, but it got me
worried.

any fix?

cheers,
	danny





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1TJLSb-0008k7-Bd>