Built gcc 4.5.1 on amd64-unknown-openbsd4.8

Kyle Markley kyle@arbyte.us
Mon Dec 6 06:26:00 GMT 2010


 Hello,

 Following the recommendations on 
 http://gcc.gnu.org/install/finalinstall.html, I'm reporting my success 
 at building gcc 4.5.1 on amd64-unknown-openbsd4.8 because this platform 
 is not listed in http://gcc.gnu.org/buildstat.html.

 $ ./config.guess
 amd64-unknown-openbsd4.8

 $ /tmp/usr/local/bin/g++-4.5.1 -v
 Using built-in specs.
 COLLECT_GCC=/tmp/usr/local/bin/g++-4.5.1
 COLLECT_LTO_WRAPPER=/tmp/usr/local/bin/../libexec/gcc/x86_64-unknown-openbsd4.8/4.5.1/lto-wrapper
 Target: x86_64-unknown-openbsd4.8
 Configured with: ../gcc/configure --program-suffix=-4.5.1 
 --enable-threads --enable-languages=c++ : (reconfigured) 
 ../gcc/configure --program-suffix=-4.5.1 --enable-threads 
 --enable-languages=c++
 Thread model: posix
 gcc version 4.5.1 (GCC)


 I found that gcc was difficult to build on this platform.  I started 
 from the patches included with my OpenBSD 4.8 distribution's ports tree 
 for gcc 4.3.  Many of these patches do not apply cleanly to the source 
 code of 4.5.1 (due to code drift since 4.3) and I had to make many of 
 the changes manually.  The most important patches were to gcc/config.gcc 
 and libgcc/config.host so that my platform was recognized, and several 
 changes in gcc/config/, but the patches from the ports tree got me most 
 of the way through.

 Finally, I hit this bug while building:
 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39618
 ... but killing the process (as recommended at that link) let me 
 proceed.


 I don't think I have the expertise necessary to help maintain the 
 health of gcc on OpenBSD for the long run, but I am interested in 
 helping to make it easier to build on this platform.  Please let me know 
 what I can do.

-- 
 Kyle Markley



More information about the Gcc mailing list