Bug 7889 - Fail to build iptables with toolchain sdk
Summary: Fail to build iptables with toolchain sdk
Status: VERIFIED FIXED
Alias: None
Product: ADT
Classification: Yocto Project Subprojects
Component: adt (show other bugs)
Version: 1.9
Hardware: x86 Multiple
: Medium+ major
Target Milestone: 1.9 M2
Assignee: Richard Purdie
QA Contact: Yi Zhao
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2015-06-15 07:01 UTC by Yi Zhao
Modified: 2015-07-15 05:56 UTC (History)
8 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: Regression (Used to work)
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yi Zhao 2015-06-15 07:01:30 UTC
Toolchain location: http://autobuilder.yoctoproject.org/pub/nightly/20150609-1/toolchain/

Git rev: master/926de56da9469e3d4ea8349d8e7c9777ae6f93c1

Steps:
1. Download the mips toolchain sdk from above link and install it.
2. Setup environment:
   $ . /opt/poky/1.8+snapshot/environment-setup-core2-64-poky-linux
3. Build iptables 1.4.21:
   $ cd iptables-1.4.21/
   $ ./autogen.sh
   $ ./configure ${CONFIGURE_FLAGS}
   $ make

Error message:
########################
$ ./autogen.sh 
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'build-aux'.
libtoolize: copying file 'build-aux/ltmain.sh'
libtoolize:   error: '/opt/poky/1.8+snapshot/sysroots/x86_64-pokysdk-linux/usr/share/aclocal/libtool.m4' does not exist.
autoreconf: libtoolize failed with exit status: 1
#########################

If skip the step "./autogen.sh", it can be built successfully, but there is a warning message when configure:
###################
configure: WARNING: unrecognized options: --with-libtool-sysroot
###################

This issue also happens on ADT-installer testing.
Comment 1 Randy MacLeod 2015-06-18 14:52:27 UTC
Yi Zhao, Do you have any more info on this defect such as:
 - how long has it been occuring?
 - do you have a test case that runs daily?
 - is it reproducible? If not how frequently does it occur?
Comment 2 Yi Zhao 2015-06-19 02:28:34 UTC
(In reply to comment #1)
> Yi Zhao, Do you have any more info on this defect such as:
>  - how long has it been occuring?
I'm not sure when this issue was introduced because this is the first weekly test for Yocto 1.9. But I can confirm this issue doesn't happen on Yocto 1.8.
 
>  - do you have a test case that runs daily?
Test case: https://bugzilla.yoctoproject.org/tr_show_case.cgi?case_id=635

>  - is it reproducible? If not how frequently does it occur?
It can reproduce
Comment 3 LiRongQing 2015-06-19 05:14:45 UTC
This is toolchain bug, not iptable
Comment 4 Yi Zhao 2015-07-01 08:54:54 UTC
This issue still exist on 1.9 M1 rc1 (master/18e902b2dc17746af453869bcc1fba4dbae7c94f)
Comment 7 Yi Zhao 2015-07-15 05:56:59 UTC
Verified with 1.9 M1 rc2 build.
git rev master/f9ea480e6c26fea46c3011c4e9d0e2de3d5c81b4