Subject: Crossbuilding broken with GCC4.
To: None <tech-toolchain@netbsd.org>
From: Kentaro A. Kurahone <kurahone@sigusr1.org>
List: tech-toolchain
Date: 09/22/2005 22:08:51
--BOKacYhQ+x31HxR3
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hi,

Due to various twists of fate, I'm trying to bootstrap netbsd from a
Linux host.  The distribution in question is Fedora core 4, which has
GCC 4.0.0 as the system compiler.

Because it got slightly more pedantic, the gcc-3.3.3 that we ship with
does not build (at least didn't last I tried this).  The main issue is
?: as a l-value.

The following diff seems to fix things, though I haven't exercised the
compiler enough to make sure that code generated is sane[0].

http://www.sigusr1.org/~kurahone/misc-hacks/gcc-3.3.3-ansi-fix.diff

Thoughs?

--=20
Kentaro A. Kurahone
SIGUSR1 Research and Development

[0]: Haven't written enough of the "port" to get to the point of building
and booting the target yet.

--BOKacYhQ+x31HxR3
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (FreeBSD)

iQIVAwUBQzMrcWfp+SLSG+tuAQIOfw//X3uTdQbfZUXd+/+ggnXGXbrGd4emVDGJ
FXdCfNNUzPpUA95kbfJXZ1hI0Doxm68yjxoE8ZCatzQLlrFtLizTUQP+4xYcyjoB
5RxiS49yZPmqab4CBKBFXuA6xv5kVvN4Z5kIYjhP6F1aP3ttNKSm2ZWdnxRf4lF/
hQzu47FF5ESR0w+90H/jjPxUoGjSAoVfc1TBafFd0XWvviFp0qulPHAG7lTTAoWI
PybcHHIgPg1UIOugNWqVYV3aa2Mj9MpedPqz9+8n3FmqbA90PKqpgxPheMcZ5cb9
MyryqxYsKi5AEOxotC9NCkQuoqw+TVq1Sn7F5V7g4CuBrBU16ysNKFK1pvSu7IF1
bq2MqvjpfW1EWWpxmUQqSV9SWU3ZybEQn7HajzB/m7O1oBuK7RLkE/wbCirxJ7ZV
BKBv3WcQdLyWHJZdFYAn1rMRrtK/C0u4Pdeu91kvZQO44KRrGHB+PMXkga6K5F1e
tk2CX8Ddr4gOikvx1/e6FqI6+VZN0JfeBhA7+uXWELvm2WrVctK+oKJSAc7TnXbf
6mG0AZ2N1GkPBpY7raXpkdfsWVxknc/cTkB/7Gvf5l89KbQhd+NfBnf04j3fXNsV
bm5wCpmShePAhmWbmpAfhuLw7JrREHlShKm054RDkhPUgodLEJ7xf9fur0vXHpuG
XAJJKJKvsJg=
=S5E9
-----END PGP SIGNATURE-----

--BOKacYhQ+x31HxR3--