[cfarm-users] gcc220 upgrade to OpenBSD 6.5?
Assaf Gordon
assafgordon at gmail.com
Wed Jul 3 07:54:43 CEST 2019
Hello,
On 2019-07-02 10:19 p.m., Christian Jullien wrote:
> Thank you for this upgrade but what about gcc?
TL;DR
gcc-8.3.0 is now available on gcc302 as:
/usr/local/bin/x86_64-unknown-openbsd6.5-gcc-8.3.0
or simply as:
egcc
>> From this page https://www.openbsd.org/65.html I read that
>> available gcc should be "GCC 4.9.4 and 8.3.0" but the installed
>> version is quite old
> obsd$ which -a gcc
> /usr/bin/gcc
> obsd$ gcc -v
> Reading specs from /usr/lib/gcc-lib/amd64-unknown-openbsd6.5/4.2.1/specs
> Target: amd64-unknown-openbsd6.5
> Configured with: OpenBSD/amd64 system compiler
> Thread model: posix
> gcc version 4.2.1 20070719
>
Notice above that this old version of gcc-4.2.1 *was* upgraded to kernel
6.5 (see the "Target:" and the "Reading specs from").
I'm no OpenBSD expert, but I believe that gcc-4.2.1 is the last gcc
version which is bundled as 'native' package in core OpenBSD sets -
because it was the last version released under GPLv2 (not sure about the
terminology of packages/sets here, but I hope you get the gist).
Other versions (e.g. gcc-8.3.0 and many other GPLv3 packages) are
of course available but need to be installed explicitly.
That is, "gcc-4.2.1" will never be upgraded to newer gcc version with
a simple "pkg_add -u" (which is the command to upgrade the user-space
packages).
You can see that the OpenBSD man-page for "gcc" is for version 4.2.1,
and "gcc-local" gives further modifications for OpenBSD:
https://man.openbsd.org/OpenBSD-current/gcc
http://man.openbsd.org/OpenBSD-current/man1/gcc-local.1
In the release notes page ( https://www.openbsd.org/65.html ),
you'll see that "gcc-8.3.0" and "gcc-4.9.4" are listed under "ports and
packages", while "gcc-4.2.1" is still listed under "The system includes
the following major components from outside suppliers".
Anyway,
I've installed "gcc-8.3.0" in the paths listed above,
So building with
./configure CC=egcc
make CC=egcc
or something similar "should work".
Hope this helps,
And let me know if other packages are needed.
regards,
- assaf gordon
More information about the cfarm-users
mailing list