From owner-freebsd-hackers@FreeBSD.ORG Wed Oct 3 09:41:53 2012 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2095C106566B for ; Wed, 3 Oct 2012 09:41:53 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from kabab.cs.huji.ac.il (kabab.cs.huji.ac.il [132.65.16.84]) by mx1.freebsd.org (Postfix) with ESMTP id C66B18FC0C for ; Wed, 3 Oct 2012 09:41:52 +0000 (UTC) Received: from pampa.cs.huji.ac.il ([132.65.80.32]) by kabab.cs.huji.ac.il with esmtp id 1TJLSb-0008k7-Bd for hackers@freebsd.org; Wed, 03 Oct 2012 11:41:45 +0200 X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.3 To: hackers@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 03 Oct 2012 11:41:45 +0200 From: Daniel Braniss Message-ID: Cc: Subject: problem cross-compiling 9.1 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Oct 2012 09:41:53 -0000 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