On 2026-02-06, Jonathan Gray <[email protected]> wrote:
> On Fri, Feb 06, 2026 at 09:41:55PM +1300, Avon Robertson wrote:
>> pkg_add for some reason is not installing gcc. This is the first time
>> that I have encountered a package install failure like this. I have
>> had a look at this years misc and ports archive mail lists and found no
>> posts about the same or a similar issue.
>> 
>> The info below provides (I hope) helpful information for readers to
>> identify the reason(s) for the failure.
>> 
>> $ date
>> Fri Feb  6 15:36:28 NZDT 2026
>> 
>> $ sysctl kern.version
>> kern.version=OpenBSD 7.8-current (GENERIC.MP) #234: Wed Feb  4 13:18:55 MST 
>> 2026
>>     [email protected]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
>> 
>> $ doas /usr/sbin/pkg_add -Dsnap -v gcc
>> doas ([email protected]) password: 
>> Adding packages
>> Update candidates: quirks-7.180 -> quirks-7.180
>> quirks-7.180->7.180 (processing)
>> quirks-7.180 signed on 2026-02-02T22:59:35Z
>> gcc-15.2.0p5 (processing)
>> ^^^^^^^^^^^^^^^^^^^^^^^^^ was the last line output by pkg_add. Strange?
>> $ which gcc
>> which: gcc: Command not found.
>
> ports gcc would be egcc
>
> it is built with --program-transform-name=s,^,e,

This is to avoid a conflict on architectures which have gcc in base
(alpha, hppa, landisk, sparc64, luna88k)

btw, same thing with gdb (except that conflicts on nearly all
architectures, since gdb is more widely built in base).


>> $ls -l /var/db/pkg | grep -e gcc*
>> drwxr-xr-x  2 root  wheel  512 Feb  6 11:13 gcc-15.2.0p5
>> drwxr-xr-x  2 root  wheel  512 Feb  6 15:35 gcc-libs-15.2.0p5

$ pkg_info -f gcc | grep bin | head
@bin bin/ecpp
@bin bin/egcc
@bin bin/egcc-ar
@bin bin/egcc-nm
@bin bin/egcc-ranlib
@bin bin/egcov
@bin bin/egcov-dump
@bin bin/egcov-tool
@bin bin/elto-dump
@bin bin/x86_64-unknown-openbsd-egcc

Reply via email to