From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15827 invoked by alias); 24 Jan 2012 20:59:10 -0000 Received: (qmail 15816 invoked by uid 22791); 24 Jan 2012 20:59:09 -0000 X-SWARE-Spam-Status: No, hits=-4.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from smtp.gentoo.org (HELO smtp.gentoo.org) (140.211.166.183) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 24 Jan 2012 20:58:56 +0000 Received: from vapier.localnet (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 93FFB1B4003; Tue, 24 Jan 2012 20:58:55 +0000 (UTC) From: Mike Frysinger To: gdb@sourceware.org Subject: Re: gdb-7.4 bfin simulator fails to build on Fedora 17 Date: Tue, 24 Jan 2012 20:59:00 -0000 User-Agent: KMail/1.13.7 (Linux/3.2.0; KDE/4.6.5; x86_64; ; ) Cc: Ralf Corsepius References: <4F1EF0BF.1030005@rtems.org> In-Reply-To: <4F1EF0BF.1030005@rtems.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1929597.fZfjM7pksX"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201201241559.32809.vapier@gentoo.org> X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2012-01/txt/msg00075.txt.bz2 --nextPart1929597.fZfjM7pksX Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-length: 1952 On Tuesday 24 January 2012 12:56:15 Ralf Corsepius wrote: > gdb-7.4's bfin simulator fails to build for bfin-rtems* targets on > Fedora 17/RH rawhide: >=20 > .... > In file included from /usr/include/linux/ethtool.h:17:0, > from /usr/include/linux/mii.h:12, > from ../../../gdb-7.4/sim/bfin/dv-eth_phy.c:31: > /usr/include/linux/if_ether.h:130:2: error: unknown type name '__be16' > In file included from /usr/include/linux/mii.h:12:0, > from ../../../gdb-7.4/sim/bfin/dv-eth_phy.c:31: > /usr/include/linux/ethtool.h:21:2: error: unknown type name '__u32' > /usr/include/linux/ethtool.h:22:2: error: unknown type name '__u32' > /usr/include/linux/ethtool.h:23:2: error: unknown type name '__u32' > /usr/include/linux/ethtool.h:28:2: error: unknown type name '__u8' > /usr/include/linux/ethtool.h:29:2: error: unknown type name '__u8' > /usr/include/linux/ethtool.h:30:2: error: unknown type name '__u8' > /usr/include/linux/ethtool.h:31:2: error: unknown type name '__u8' > /usr/include/linux/ethtool.h:32:2: error: unknown type name '__u8' > /usr/include/linux/ethtool.h:33:2: error: unknown type name '__u8' > /usr/include/linux/ethtool.h:34:2: error: unknown type name '__u32' > /usr/include/linux/ethtool.h:35:2: error: unknown type name '__u32' > ... >=20 > The same configuration builds fine for Fedora 15/16 and openSUSE-11.4/12.= 1. >=20 > From what I gather, the bfin simulator chokes upon kernel header > incompatiblities. hmm, in linux-3.2 (and older), linux/mii.h doesn't include anything else.= =20=20 seems linux-3.3-rc1 has started including linux/ethtool.h too. however, th= at=20 is unnecessary for userspace, so i'll probably send a patch to move the=20 include to __KERNEL__. dv-eth_phy.c has some hacks in it to make it build with even older kernel=20 headers. maybe i should have it just not build that driver on older system= s=20 rather than try to support it ... -mike --nextPart1929597.fZfjM7pksX Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. Content-length: 836 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) iQIcBAABAgAGBQJPHxu0AAoJEEFjO5/oN/WBgiAP/00nEf9+1TgbwocH9r+8qlNu MXBkR8f7I4yG+YrbUQfLxsEws2VgvJ/1iyre4lyJFuXr/eBpwO3cfQ8xIeBErFen 8cdH1SUWU5F7HzzP5pO5oRXkX5K7Sg9L3EoAsPwzj63DkViM6hCDvUjffCvr0B+h QH04HEssri3DW7rSaLEnnaipdUMV3UrNizaQ2JLjnrawLEtaBmGmaa7i7/sQZXJJ xrpMUfqxatgLzAFURsDZawWsn6FAaM30DkjXcSYtJCPK/oICbPu/RvoWPa9JBC3R vNs9XuWesFMlCOxCYuGJF2KgkK72rN6FAwzaLe7nHN+F3sgxsv+BUOnqlT/UIo5t 15CXoArDKZHTZ1As6s5Qb3Itb6+3CZC2sLcGj11jGIlTOcYKUkV+4JeQrsvLGE/H EFTXkOrgnD031qI7WtBD2Pcd0KXBdzNn4CyfhDClMQhLXBZBkmm4k7W43WqxNVsy nO2Szj+8B/yW3N8tI5hhUBDligwzaJ+0gZqRS9mh69t2LAq9MBHEUZ2sKynaZLRt TmO/DU3RTy0850T95k2/DtfheyJSZ0ZP6NE2zUoY8ePM2UY/0NXrsCzMZPodezeN A+mMs988j5cuGKF4jlODf3NU9rG+Dgh10cN6rYvSFsTj+tf8/bZbEJJ6114hWWf0 xqqEe7kgSoQA+rwd27lG =ByB8 -----END PGP SIGNATURE----- --nextPart1929597.fZfjM7pksX--