[#5487] build usb.c fail in testsuites/usbdev/ test at asm/swab.h

Document created by Aaronwu Employee on Sep 4, 2013
Version 1Show Document
  • View in full screen mode

[#5487] build usb.c fail in testsuites/usbdev/ test at asm/swab.h

Submitted By: Vivi Li

Open Date

2009-09-03 00:42:18     Close Date

2009-11-04 21:56:21

Priority:

Medium     Assignee:

Cliff Cai

Status:

Closed     Fixed In Release:

N/A

Found In Release:

2010R1     Release:

Category:

N/A     Board:

N/A

Processor:

ALL     Silicon Revision:

Is this bug repeatable?:

Yes     Resolution:

Assigned (Not Start)

Uboot version or rev.:

    Toolchain version or rev.:

gcc4.1-09r1-rc9

App binary format:

N/A     

Summary: build usb.c fail in testsuites/usbdev/ test at asm/swab.h

Details:

 

build usb.c fail in usbdev test at asm/swab.h

 

--

test@uclinux62-548-usbdev:..usbdev/src> pwd

/home/test/work/cruise/checkouts/uclinux-dist/testsuites/usbdev/src

test@uclinux62-548-usbdev:..usbdev/src> make -f Makefile.usb

bfin-linux-uclibc-gcc -Wall -g -o usb usb.c usbstring.c -lpthread -I /home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x/include/

In file included from /home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x/include/linux/byteorder/little_endian.h:12,

                 from /opt/uClinux/bfin-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/asm/byteorder.h:46,

                 from usb.c:34:

/home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x/include/linux/swab.h:6:22: error: asm/swab.h: No such file or directory

make: *** [usb] Error 1

test@uclinux62-548-usbdev:..usbdev/src>

--

 

Follow-ups

 

--- Cliff Cai                                                2009-10-30 04:30:13

No such problem now.

 

--- Vivi Li                                                  2009-10-30 05:24:01

It still fails.

 

--

test@uclinux63-527-usbdev:..usbdev/src> make -f Makefile.usb

bfin-linux-uclibc-gcc -Wall -g -o usb usb.c usbstring.c -lpthread -I

/home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x/include/

In file included from

/opt/uClinux/bfin-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/asm/types.h:11,

                 from

/opt/uClinux/bfin-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/asm/byteorder.h:4,

                 from usb.c:34:

/home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x/include/asm-generic/int-ll64.h:11:29:

error: asm/bitsperlong.h: No such file or directory

In file included from

/home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x/include/linux/byteorder/little_endian.h:12,

                 from

/opt/uClinux/bfin-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/asm/byteorder.h:46,

                 from usb.c:34:

/home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x/include/linux/swab.h:6:22:

error: asm/swab.h: No such file or directory

In file included from

/opt/uClinux/bfin-linux-uclibc/bfin-linux-uclibc/runtime/usr/include/asm/types.h:11,

                 from

/home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x/include/linux/types.h:4,

                 from usbstring.c:13:

/home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x/include/asm-generic/int-ll64.h:11:29:

error: asm/bitsperlong.h: No such file or directory

make: *** [usb] Error 1

--

 

--- Mike Frysinger                                           2009-10-30 12:24:02

userspace code shouldnt be using -I paths directly to kernel headers

 

--- Vivi Li                                                  2009-11-04 21:56:20

I change toolchain to latest truk and it can build now. So close it.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

No Files Were Found

Attachments

    Outcomes