When I attempt to compile the snapshot of 2/29/08 on OpenBSD 4.2 I get the following message: libcpp.a(errors.o)(.text+0x258): In function `cpp_error': /home/mrichmon/gcc-4.4-20080229/libcpp/errors.c:141: undefined reference to `__builtin_stdarg_start' libcpp.a(errors.o)(.text+0x3a0): In function `cpp_error_with_line': /home/mrichmon/gcc-4.4-20080229/libcpp/errors.c:174: undefined reference to `__builtin_stdarg_start'
Support for __builtin_stdarg has been removed. I guess this is still referenced in OpenBSD headers?
This is a bug in the openbsd headers. We most likely should fixincludes them to use __builtin_va_start instead. See PR 26264 and http://gcc.gnu.org/ml/gcc-patches/2002-07/msg00737.html for more information on why this was removed.
Proposed patch here: http://gcc.gnu.org/ml/gcc-patches/2008-12/msg01279.html
Subject: Bug 35460 Author: andreast Date: Wed Dec 31 13:52:53 2008 New Revision: 142980 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=142980 Log: 2008-12-31 Andreas Tobler <a.tobler@schweiz.org> PR target/35460 * inclhack.def (openbsd_va_start): Use __builtin_va_start for OpenBSD. * fixincl.x: Regenerate. Modified: trunk/fixincludes/ChangeLog trunk/fixincludes/fixincl.x trunk/fixincludes/inclhack.def
This particular issue is fixed. The bootstrap itself will fail (at least here on x86_64-unknown-openbsd4.4). Next patches coming.