Modify

Opened 7 years ago

Closed 7 years ago

#7950 closed defect (worksforme)

Backfire 10.03.1 RC3 Build fail on RHEL 4.8

Reported by: nabcore Owned by: developers
Priority: high Milestone: Backfire 10.03.1
Component: base system Version: Trunk
Keywords: Cc:

Description

A standard compile for the AR71xx/ target fails with this:

In file included from src/ubinize.c:36:
../include/mtd/ubi-media.h:157: error: syntax error before "__be32"
../include/mtd/ubi-media.h:157: warning: no semicolon at end of struct or union
../include/mtd/ubi-media.h:160: error: syntax error before "ec"
../include/mtd/ubi-media.h:160: warning: data definition has no type or storage class
../include/mtd/ubi-media.h:161: error: syntax error before "vid_hdr_offset"
../include/mtd/ubi-media.h:161: warning: data definition has no type or storage class
../include/mtd/ubi-media.h:162: error: syntax error before "data_offset"
../include/mtd/ubi-media.h:162: warning: data definition has no type or storage class
../include/mtd/ubi-media.h:164: error: syntax error before "hdr_crc"
../include/mtd/ubi-media.h:164: warning: data definition has no type or storage class
../include/mtd/ubi-media.h:165: warning: empty declaration
../include/mtd/ubi-media.h:277: error: syntax error before "__be32"
../include/mtd/ubi-media.h:277: warning: no semicolon at end of struct or union
../include/mtd/ubi-media.h:282: error: syntax error before "vol_id"
../include/mtd/ubi-media.h:282: warning: data definition has no type or storage class
../include/mtd/ubi-media.h:283: error: syntax error before "lnum"
../include/mtd/ubi-media.h:283: warning: data definition has no type or storage class
../include/mtd/ubi-media.h:284: error: syntax error before "leb_ver"
../include/mtd/ubi-media.h:284: warning: data definition has no type or storage class
../include/mtd/ubi-media.h:285: error: syntax error before "data_size"
../include/mtd/ubi-media.h:285: warning: data definition has no type or storage class
../include/mtd/ubi-media.h:286: error: syntax error before "used_ebs"
../include/mtd/ubi-media.h:286: warning: data definition has no type or storage class
../include/mtd/ubi-media.h:287: error: syntax error before "data_pad"
../include/mtd/ubi-media.h:287: warning: data definition has no type or storage class
../include/mtd/ubi-media.h:288: error: syntax error before "data_crc"
../include/mtd/ubi-media.h:288: warning: data definition has no type or storage class
../include/mtd/ubi-media.h:289: error: conflicting types for 'padding2'
../include/mtd/ubi-media.h:163: error: previous declaration of 'padding2' was here
../include/mtd/ubi-media.h:290: error: syntax error before "sqnum"
../include/mtd/ubi-media.h:290: warning: data definition has no type or storage class
../include/mtd/ubi-media.h:292: error: syntax error before "hdr_crc"
../include/mtd/ubi-media.h:292: warning: data definition has no type or storage class
../include/mtd/ubi-media.h:293: warning: empty declaration
../include/mtd/ubi-media.h:364: error: syntax error before "__be32"
../include/mtd/ubi-media.h:364: warning: no semicolon at end of struct or union
../include/mtd/ubi-media.h:365: warning: data definition has no type or storage class
../include/mtd/ubi-media.h:366: error: syntax error before "data_pad"
../include/mtd/ubi-media.h:366: warning: data definition has no type or storage class
../include/mtd/ubi-media.h:369: error: syntax error before "name_len"
../include/mtd/ubi-media.h:369: warning: data definition has no type or storage class
../include/mtd/ubi-media.h:373: error: syntax error before "crc"
../include/mtd/ubi-media.h:373: warning: data definition has no type or storage class
../include/mtd/ubi-media.h:374: warning: empty declaration
src/ubinize.c: In function `parse_opt':
src/ubinize.c:264: error: invalid application of `sizeof' to incomplete type `ubi_vid_hdr'

Attachments (0)

Change History (6)

comment:2 Changed 7 years ago by jow

  • Resolution set to fixed
  • Status changed from new to closed

I believe the issue has been solved with r23075

comment:3 Changed 7 years ago by jow

  • Resolution fixed deleted
  • Status changed from closed to reopened

The fix was not effective.
Do you have kernel headers installed on your host? What OS is it?

comment:4 Changed 7 years ago by nabcore

RHEL 4.8; 2.6.9-89.0.29.ELsmp

I do have the kernel headers installed:

$ rpm -qa | grep kernel-smp-devel
kernel-smp-devel-2.6.9-89.0.29.EL

..but the OS kernel is a very different version to the one being built within OpenWrt. I've no idea why the toolchain was relying on the OS's kernel headers, it really makes no sense since the point of a toolchain is to be self consistent. The attempted fix in r23075 seems like a logical way forward to me.

comment:5 Changed 7 years ago by jow

Well the build in question is a host tool compiled for your host arch to be executed on your host system. It's needed to prepare mtd images for the target. Unfortunately the UBIFS support part of mtd-utils wants datatypes only defined in the kernel headers and it seems like 2.6.9 headers are broken in that regard.

I have no proper solution yet.

comment:6 Changed 7 years ago by jow

  • Resolution set to worksforme
  • Status changed from reopened to closed

I built the RC5 release on CentOS 5.6 (which is quite old already) and observed no host compilation issues, I'll close this as worksforme.

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.