[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [microblaze-uclinux] Error compiling iproute2
- To: microblaze-uclinux@xxxxxxxxxxxxxx
- Subject: Re: [microblaze-uclinux] Error compiling iproute2
- From: John Williams <jwilliams@xxxxxxxxxxxxxx>
- Date: Tue, 3 Feb 2009 12:39:51 +1000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to :content-type:content-transfer-encoding; bh=GV5nx4uGaCqQGRloIa85lPcdLJmleA4Rfr9KssLEwvY=; b=k/s+KQoJz0Zm3Y0Nvf4vFTLA9RWmL0emIsRtYvn/MQK0jQpL/2vtM4yo8XZwrgOwcp nTXGy5VKgkVr/zAup8nSSH+U98NWeKaUd+w8gGNYxMlZkLu+p39c8MFuPgFY1+VVNcXh 1oSJOgmcl6+k7fpiLgKFhdZD/Z9T9nOBqSyww=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; b=EvmMW3Bc/KIpncMuD7+TVPtiyFTQJ7FmC/OGTIeM6izgh5VwpVrBjk5eoVBXS6fwWa 3y6aeMzzvb31VYjQ77SHLm3i0vWdKiZ4ZEKdYhwp3/fvjLYKKY2lGrMkdgKL3KVSCYIT NUkH6DP8ShkOverZKg+kxv9GRFOQ3aKCIkekg=
- In-reply-to: <497DE4E9.8000005@xxxxxxxxxxxx>
- References: <497DE4E9.8000005@xxxxxxxxxxxx>
- Reply-to: microblaze-uclinux@xxxxxxxxxxxxxx
- Sender: owner-microblaze-uclinux@xxxxxxxxxxxxxx
Hi Chris,
On Tue, Jan 27, 2009 at 2:29 AM, Chris Robson <Chris.Robson@xxxxxxxxxxxx> wrote:
> make[3]: Entering directory
> `/petalinux-v0.30-rc1/software/petalinux-dist/user/iproute2/lib'
> microblaze-uclinux-gcc
> -I/petalinux-v0.30-rc1/software/petalinux-dist/linux-2.6.x/include
> -I../include -DRESOLVE_HOSTNAMES -DNO_DL -Os -g -fomit-frame-pointer -pipe
> -fno-common -fno-builtin -Wall -mno-xl-soft-mul -mno-xl-soft-div
> -mxl-barrel-shift -mcpu=v4.00.a -DEMBED
> -I/petalinux-v0.30-rc1/software/petalinux-dist
> -I/petalinux-v0.30-rc1/software/petalinux-dist/include
> -I/petalinux-v0.30-rc1/software/petalinux-dist/include -Dlinux -D__linux__
> -Dunix -D__uClinux__ -DLINUX -c -o dnet_ntop.o dnet_ntop.c
> In file included from
> /petalinux-v0.30-rc1/tools/linux-i386/microblaze-uclinux-tools/bin/../lib/gcc/microblaze-uclinux/3.4.1/../../../../microblaze-uclinux/include/netinet/in.h:214,
> from dnet_ntop.c:3:
> ../include/bits/socket.h:25:3: #error "Never include <bits/socket.h>
> directly; use <sys/socket.h> instead."
> make[3]: *** [dnet_ntop.o] Error 1
> make[3]: Leaving directory
> `/petalinux-v0.30-rc1/software/petalinux-dist/user/iproute2/lib'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory
> `/petalinux-v0.30-rc1/software/petalinux-dist/user/iproute2'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory
> `/petalinux-v0.30-rc1/software/petalinux-dist/user'
> make: *** [subdirs] Error 1
Are you still having trouble with this? I tried building iproute2 (in
latest PetaLinux SVN trunk) and see a completely different error:
In file included from
/home/jwilliams/PetaLogix/petalinux/trunk/software/petalinux-dist/linux-2.6.x/include/asm-generic/bitops.h:12,
from
/home/jwilliams/PetaLogix/petalinux/trunk/software/petalinux-dist/linux-2.6.x/include/asm/bitops.h:24,
from ../include/utils.h:5,
from utils.c:33:
/home/jwilliams/PetaLogix/petalinux/trunk/software/petalinux-dist/linux-2.6.x/include/asm-generic/bitops/atomic.h:
In function `set_bit':
/home/jwilliams/PetaLogix/petalinux/trunk/software/petalinux-dist/linux-2.6.x/include/asm-generic/bitops/atomic.h:69:
error: `BITS_PER_LONG' undeclared (first use in this function)
basically, iproute2/include/utils.h is including <asm/types.h> and asm/bitops.h>
in microblaze, we use asm-generic/bitops, which requires the macro
BITS_PER_LONG to be defined. This is definied in asm/types.h, but
inside and #ifdef __KERNEL guard. including this stuff from userspace
just doesn't work.
Regards,
John
>
>
> Thanks ...Chris
> ___________________________
> microblaze-uclinux mailing list
> microblaze-uclinux@xxxxxxxxxxxxxx
> Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
> Mailing List Archive :
> http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/
>
>
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/