Bug 190813 - devel/kBuild fails to build with GCC 4.8 or 4.9
Summary: devel/kBuild fails to build with GCC 4.8 or 4.9
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Virtualbox Team (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-09 00:25 UTC by rsimmons0
Modified: 2018-01-16 20:17 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description rsimmons0 2014-06-09 00:25:02 UTC
If I set "GCC_DEFAULT=4.8" or "GCC_DEFAULT=4.9" in make.conf as specified in usr/ports/Mk/bsd.default-versions.mk then devel/kBuild fails to build. I have also tried the following line in make.conf:
DEFAULT_VERSIONS=   perl5=5.20 gcc=4.9
and
DEFAULT_VERSIONS=   perl5=5.20 gcc=4.8

The build fails with any of these combinations of make.conf.

It appears that despite the line in make.conf gcc47 is still being built and used as the default gcc. When kBuild tries to compile it is looking for gcc49/gcc48 which does not exist.

The make.conf line appears to correctly change the binary that software is built by, but fails to actually build the expected version of gcc.

The devel/kBuild stops with the following error:

kmk: gcc48: Command not found
kmk: *** [/wrkdirs/usr/ports/devel/kBuild/work/kBuild-0.1.9998/out/freebsd.amd64/release/obj/kDep/kDep.o] Error 127
The failing command:
@gcc48 -c -O2 -g -O3 -m64 -I/wrkdirs/usr/ports/devel/kBuild/work/kBuild-0.1.9998/src/lib -I/wrkdirs/usr/ports/devel/kBuild/work/kBuild-0.1.9998/src/kmk/glob -I/usr/local/include -DKBUILD_VERSION_MAJOR=0 -DKBUILD_VERSION_MINOR=1 -DKBUILD_VERSION_PATCH=9998 -DKBUILD_OS_FREEBSD -DKBUILD_ARCH_AMD64 -DNDEBUG -Wp,-MD,/wrkdirs/usr/ports/devel/kBuild/work/kBuild-0.1.9998/out/freebsd.amd64/release/obj/kDep/kDep.o.dep -Wp,-MT,/wrkdirs/usr/ports/devel/kBuild/work/kBuild-0.1.9998/out/freebsd.amd64/release/obj/kDep/kDep.o -Wp,-MP -o /wrkdirs/usr/ports/devel/kBuild/work/kBuild-0.1.9998/out/freebsd.amd64/release/obj/kDep/kDep.o /wrkdirs/usr/ports/devel/kBuild/work/kBuild-0.1.9998/src/lib/kDep.c
kmk: Leaving directory `/wrkdirs/usr/ports/devel/kBuild/work/kBuild-0.1.9998'
gmake[1]: *** [/wrkdirs/usr/ports/devel/kBuild/work/kBuild-0.1.9998/out/freebsd.amd64/release/bootstrap/ts-stage2-build] Error 2
gmake[1]: Leaving directory `/wrkdirs/usr/ports/devel/kBuild/work/kBuild-0.1.9998'
./kBuild/env.sh: info: rc=2: gmake -f bootstrap.gmk
*** Error code 2

Stop.
make: stopped in /usr/ports/devel/kBuild
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2014-06-13 03:29:04 UTC
Over to maintainers.
Comment 2 Walter Schwarzenfeld 2018-01-10 19:23:12 UTC
gcc4.8 and gcc4.9 marked as deprecated (Unsupported by upstream). This is overcome by events.
Comment 3 Tijl Coosemans freebsd_committer freebsd_triage 2018-01-16 20:17:18 UTC
A quick test shows this has been fixed.