Bug 225745 - devel/kBuild: fails to build on 11.1-STABLE r329004
Summary: devel/kBuild: fails to build on 11.1-STABLE r329004
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Virtualbox Team (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-02-08 02:12 UTC by Dmitri Goutnik
Modified: 2018-03-05 01:10 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (vbox)


Attachments
build log (17.01 KB, application/gzip)
2018-02-08 02:12 UTC, Dmitri Goutnik
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitri Goutnik freebsd_committer freebsd_triage 2018-02-08 02:12:05 UTC
Created attachment 190410 [details]
build log

kBuild: Compiling kash - /usr/ports/devel/kBuild/work/kBuild-0.1.9998/src/kash/main.c
kBuild: Compiling kash - /usr/ports/devel/kBuild/work/kBuild-0.1.9998/src/kash/alias.c
kBuild: Compiling kash - /usr/ports/devel/kBuild/work/kBuild-0.1.9998/src/kash/cd.c
In file included from /usr/ports/devel/kBuild/work/kBuild-0.1.9998/src/kash/alias.c:43:0:
/usr/include/stdlib.h:93:7: error: expected ',' or ';' before '__alloc_size2'
       __alloc_size2(1, 2);
       ^~~~~~~~~~~~~
/usr/include/stdlib.h:311:6: error: expected ',' or ';' before '__alloc_size2'
      __alloc_size2(2, 3);
      ^~~~~~~~~~~~~
In file included from /usr/ports/devel/kBuild/work/kBuild-0.1.9998/src/kash/cd.c:44:0:
/usr/include/stdlib.h:93:7: error: expected ',' or ';' before '__alloc_size2'
       __alloc_size2(1, 2);
       ^~~~~~~~~~~~~
/usr/include/stdlib.h:311:6: error: expected ',' or ';' before '__alloc_size2'
      __alloc_size2(2, 3);
      ^~~~~~~~~~~~~
kBuild: Compiling kash - /usr/ports/devel/kBuild/work/kBuild-0.1.9998/src/kash/error.c
In file included from /usr/ports/devel/kBuild/work/kBuild-0.1.9998/src/kash/shtypes.h:34:0,
                 from /usr/ports/devel/kBuild/work/kBuild-0.1.9998/src/kash/shell.h:94,
                 from /usr/ports/devel/kBuild/work/kBuild-0.1.9998/src/kash/main.c:53:
/usr/include/stdlib.h:93:7: error: expected ',' or ';' before '__alloc_size2'
       __alloc_size2(1, 2);
       ^~~~~~~~~~~~~
/usr/include/stdlib.h:311:6: error: expected ',' or ';' before '__alloc_size2'
      __alloc_size2(2, 3);
      ^~~~~~~~~~~~~
In file included from /usr/ports/devel/kBuild/work/kBuild-0.1.9998/src/kash/error.c:47:0:
/usr/include/stdlib.h:93:7: error: expected ',' or ';' before '__alloc_size2'
       __alloc_size2(1, 2);
       ^~~~~~~~~~~~~
/usr/include/stdlib.h:311:6: error: expected ',' or ';' before '__alloc_size2'
      __alloc_size2(2, 3);
      ^~~~~~~~~~~~~
kmk: *** [/usr/ports/devel/kBuild/work/kBuild-0.1.9998/out/freebsd.amd64/release/obj/kash/alias.o] Error 1

$ uname -rpKU
11.1-STABLE amd64 1101509 1101509

$ svn info --show-item revision /usr/src
329004

r328973 seems to be the culprit, full build log attached.
Comment 1 CraigW 2018-02-21 20:57:01 UTC
For what it is worth, I ran into this same problem.

In poudreiere, I ended up having to clear all cached packages/repos and clear my ccache before this kBuild and texlive-base would build again.
Comment 2 Walter Schwarzenfeld 2018-03-05 00:40:11 UTC
Try add to the Makefile:
USE_CXXSTD=     c++98
Comment 3 Dmitri Goutnik freebsd_committer freebsd_triage 2018-03-05 01:10:21 UTC
I'm going to close this as it builds fine now with base r330383.