[#6934] trunk head toolchain fails to build at qemu now

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

[#6934] trunk head toolchain fails to build at qemu now

Submitted By: Mingquan Pan

Open Date

2011-12-26 21:39:39     Close Date

2012-01-12 22:17:32

Priority:

Medium High     Assignee:

Stuart Henderson

Board:

N/A     Silicon Revision:

Resolution:

Assigned (Not Started)     Fixed In Release:

2012R1

Processor:

ALL     

Host Operating System:

toolchain rev.:

    kernel rev.:

State:

Closed     Found In Release:

2012R1

Is this bug repeatable?:

N/A     

Summary: trunk head toolchain fails to build at qemu now

Details:

 

trunk head toolchain fails to build at qemu now.

 

*** Installed bf532-none/libmudflapth.so (0.0.0.4.3.5)      27 Dec 2011 09:26:58

*** Installed bf532-none/libobjc.so (2.0.0.4.3.5)           27 Dec 2011 09:26:58

*** Installed bf532-none/libstdc++.so (6.0.10.4.3.5)        27 Dec 2011 09:26:58

*** Installed bf532-none/libgcc_s.so (1.4.3.5)              27 Dec 2011 09:26:59

*** Installed bf532-none/libmudflap.so (0.0.0.4.3.5)        27 Dec 2011 09:26:59

*** Installed bf532-none/libgfortran.so (3.0.0.4.3.5)       27 Dec 2011 09:26:59

*** Installed libmudflap.so (0.0.0.4.3.5)                   27 Dec 2011 09:26:59

*** Installed libgfortran.so (3.0.0.4.3.5)                  27 Dec 2011 09:26:59

*** linux-headers: cleaning                                 27 Dec 2011 09:26:59

*** U-Boot: building helper tools (2011.09)                 27 Dec 2011 09:26:59

*** U-Boot: cleaning                                        27 Dec 2011 09:26:59

*** U-Boot: building                                        27 Dec 2011 09:26:59

*** U-Boot: installing tools                                27 Dec 2011 09:27:03

*** U-Boot: cleaning                                        27 Dec 2011 09:27:03

*** qemu: cleaning (1.0)                                    27 Dec 2011 09:27:03

*** qemu: configuring                                       27 Dec 2011 09:27:04

*** qemu: building                                          27 Dec 2011 09:27:08

 

Backtrace:  (most recent call is first)

   #0: File: funcs.sh               Line:  168   Function: die_with_log

       Args:

   #1: File: autotools.sh           Line:   52   Function: run_cmd

       Args: 'make'

   #2: File: BuildToolChain         Line: 1416   Function: build_autotooled_pkg

       Args: '/home/test/work/cruise/checkouts/toolchain/qemu' '--interp-prefix=/home/test/work/cruise/temp/bfin-linux-uclibc/bfin-linux-uclibc/runtime' '--disable-werror' '--disable-strip' '--target-list=bfin-linux-user' '--disable-system'

   #3: File: BuildToolChain         Line: 1651   Function: build_qemu

       Args:

 

Please report an error to http://blackfin.uclinux.org/gf/project/toolchain

Build error at Tue Dec 27 09:27:18 CST 2011

  occurred 1h55m42s into script

When reporting issue, we may ask for /home/test/work/cruise/temp/logs/config.logs.tbz2

Last logfile entries:

/home/test/work/cruise/checkouts/toolchain/qemu/linux-user/syscall.c:3286: warning: assignment makes integer from pointer without a cast

/home/test/work/cruise/checkouts/toolchain/qemu/linux-user/syscall.c:3288: error: dereferencing pointer to incomplete type

/home/test/work/cruise/checkouts/toolchain/qemu/linux-user/syscall.c:3288: error: request for member ‘ifc_len’ in something not a structure or union

/home/test/work/cruise/checkouts/toolchain/qemu/linux-user/syscall.c:3288: warning: statement with no effect

/home/test/work/cruise/checkouts/toolchain/qemu/linux-user/syscall.c:3292: error: dereferencing pointer to incomplete type

/home/test/work/cruise/checkouts/toolchain/qemu/linux-user/syscall.c:3292: error: request for member ‘ifc_buf’ in something not a structure or union

/home/test/work/cruise/checkouts/toolchain/qemu/linux-user/syscall.c:3292: warning: statement with no effect

/home/test/work/cruise/checkouts/toolchain/qemu/linux-user/syscall.c:3307: error: invalid application of ‘sizeof’ to incomplete type ‘struct ifreq’

make[1]: *** [syscall.o] Error 1

make: *** [subdir-bfin-linux-user] Error 2

 

Failed to build the toolchain in toolchain-2011_Dec_27_07_25 . exit!

 

Follow-ups

 

--- Mike Frysinger                                           2011-12-27 04:34:08

i suspect the errors posted are not the full story.  please post the full build

log as an attachment.

 

--- Mingquan Pan                                             2011-12-28 02:38:05

I post the config.logs.tbz2, hope this can help.

 

--- Mike Frysinger                                           2011-12-30 04:23:00

looks like the kernel headers on your dev system are broken ...

 

/usr/include/linux/wireless.h:896: error: ‘IFNAMSIZ’ undeclared here (not

in a function)

 

not sure how much you can really blame that on qemu ...

 

--- Stuart Henderson                                         2012-01-05 07:07:11

if this is a local environmental issue and not a toolchain bug, can we close

this off?

 

--- Mingquan Pan                                             2012-01-09 03:51:53

I am not sure where this issue comes from.

Seen from the regression machine, one installed with suse 10.2, it can builds

through ok, while another machine with suse 11.0, it fails with this error

printed.

 

Check with these two wireless.h, they from two versios, with the higher version

fails.

 

--- /home/test/wireless.h    2012-01-09 15:43:18.000000000 +0800

+++ /usr/include/linux/wireless.h    2008-04-25 20:42:57.000000000 +0800

@@ -1,10 +1,10 @@

/*

  * This file define a set of standard wireless extensions

  *

- * Version :    20    17.2.06

+ * Version :    22    16.3.07

  *

  * Authors :    Jean Tourrilhes - HPL - <jt@hpl.hp.com>

- * Copyright (c) 1997-2006 Jean Tourrilhes, All Rights Reserved.

+ * Copyright (c) 1997-2007 Jean Tourrilhes, All Rights Reserved.

  */

...

detailed is attached.

 

--- Stuart Henderson                                         2012-01-10 11:56:31

I can't see your version of wireless.h having ever existed in upstream kernel

sources, so presumably this is some alteration opensuse have made.  certainly

the later versions of suse (11.2) have the includes at line 70 reinstated.  is

your system completely up to date?

 

--- Mingquan Pan                                             2012-01-12 22:45:09

So I updated linux kernel header rpm package to 2.6.31-3.4 on Suse-11.0. It now

can build though qemu without this issue. Close it.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

wireless.diff    application/octet-stream    6630    Mingquan Pan

config.logs.tbz2    application/x-bzip-compressed-tar    40968    Mingquan Pan

Outcomes