( Jump to the original submission )
Sun 29 Jan 2012 09:59:50 AM UTC, comment #8: Upgrade is done.
The base compiler in OpenBSD 5.0 is gcc 4.1.2. gcc 4.2.4 is installed from packages in /usr/local/bin/
Tue 24 Jan 2012 09:47:05 PM UTC, comment #7: Upgrade to OpenBSD 5.0 planned. See https://gna.org/support/?2866
Sat 21 Jan 2012 09:59:44 PM UTC, comment #6: Egcc? Why not gcc?
OTOH I'd prefer to use a cross-compiler hosted on some esiee machine like deluxe (gcc62) for the reason that the memory consumption of the native cc1 may easily reach RLIMIT_DATA, which is equal to 512MB for regular users (this limit is perfect, so I'm not asking to extend it).
mik
Fri 13 Jan 2012 07:54:18 PM UTC, comment #5: Trying to use egcc when building GCC 4.6.2 on gcc64 leads to:
../../gcc-core-4.6.2-src/lto-plugin/lto-plugin.c: In function 'exec_lto_wrapper':
../../gcc-core-4.6.2-src/lto-plugin/lto-plugin.c:525: warning: missing sentinel in function call
make[4]: *** [lto-plugin.lo] Error 1
Thu 12 Jan 2012 09:05:15 PM UTC, comment #4: Since OpenBSD 4.9, the system compiler on sparc64 is gcc 4.2.1
I'd recommend upgrading to OpenBSD 5.0 (or to a pre-5.1 snapshot) and I can help with that.
Tue 29 Nov 2011 06:20:11 PM UTC, comment #3: If gcc-4.2 is sufficient, then use egcc, eg++ etc. - OpenBSD provides a non-system compiler with the "e" prefix. Speaking of libstdc++, please note, I configure gcc (and its dependencies) using --disable-shared, everything should work.
mik
Tue 18 Oct 2011 09:38:57 AM UTC, comment #2: Also see:
https://gna.org/support/index.php?2780
Tue 18 Oct 2011 09:38:13 AM UTC, comment #1: I'm not familiar with OpenBSD, I will try to compile a more recent GCC but I have little free time in the next few weeks so I cannot promise anything fast.
Tue 18 Oct 2011 08:47:43 AM UTC, original submission: I need gcc/g++ >= 4.2 on gcc64. There is GCC/G++ 4.6 in
/home/mik/misc/gcc-4.6/bin but the corresponding libstdc++ is missing.
The goal is to compile cmake 2.8.6, which requires G++ >= 4.2:
CMake Error at CMakeLists.txt:407 (MESSAGE):
GXX 3.3 on OpenBSD is known to cause CPack to Crash.
Please use GXX 4.2 or greater to build CMake on OpenBSD
/usr/bin/g++ version is: 3.3.5
Thanks,
Paul Zimmermann
(Note: upload size limit is set to 1024 kB, after insertion of the required escape characters.)
Attach File(s):
Comment:
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
Follow 2 latest changes.