Hello. I want to install VirtualBox using ports but I need to build kBuild first. I used gmake 4.4.1 but while building kBuild it gave error "invalid option J". I decided to update ports and still gave same result.
Here is log:
Here is log:
Code:
--- build-depends ---
===> kBuild-0.1.9998_17 depends on package: gmake>=4.4.1 - found
===> kBuild-0.1.9998_17 depends on file: /usr/local/bin/makeinfo - found
===> kBuild-0.1.9998_17 depends on executable: gcc14 - found
===> kBuild-0.1.9998_17 depends on file: /usr/local/bin/as - found
===> kBuild-0.1.9998_17 depends on package: autoconf>=2.73 - found
===> kBuild-0.1.9998_17 depends on package: automake>=1.18.1 - found
--- configure-message ---
===> Configuring for kBuild-0.1.9998_17
--- run-autotools-fixup ---
===> FreeBSD 10 autotools fix applied to /usr/ports/devel/kBuild/work/kBuild-0.1.9998r3687/src/oldsed/config/config.rpath
--- do-configure ---
--- /usr/ports/devel/kBuild/work/.configure_done.kBuild._usr_local ---
--- build-message ---
===> Building for kBuild-0.1.9998_17
--- do-build ---
(cd /usr/ports/devel/kBuild/work/kBuild-0.1.9998r3687 && /usr/bin/env AUTORECONF=/usr/local/bin/autoreconf2.73 AUTOPOINT=true CC="gcc14" CFLAGS="-O2 -pipe -fstack-protector-strong -Wl,-rpath=/usr/local/lib/gcc14 -fno-strict-aliasing " CPPFLAGS="" LDFLAGS=" -Wl,-rpath=/usr/local/lib/gcc14 -L/usr/local/lib/gcc14 " MAKE="/usr/local/bin/gmake" ./kBuild/env.sh --full /usr/local/bin/gmake -f bootstrap.gmk && /bin/rm -f -r out && ./kBuild/env.sh kmk && ./kBuild/env.sh kmk NIX_INSTALL_DIR=/usr/local BUILD_TYPE=release -C /usr/ports/devel/kBuild/work/kBuild-0.1.9998r3687)
./kBuild/env.sh: warning: The bin directory for this platform doesn't exist. (/usr/ports/devel/kBuild/work/kBuild-0.1.9998r3687/kBuild/bin/freebsd.amd64/)
./kBuild/env.sh: info: Executing command: /usr/local/bin/gmake -f bootstrap.gmk
: invalid option -- J
Usage: gmake [options] [target] ...
Options:
-b, -m Ignored for compatibility.
-B, --always-make Unconditionally make all targets.
-C DIRECTORY, --directory=DIRECTORY
Change to DIRECTORY before doing anything.
-d Print lots of debugging information.
--debug[=FLAGS] Print various types of debugging information.
-e, --environment-overrides
Environment variables override makefiles.
-E STRING, --eval=STRING Evaluate STRING as a makefile statement.
-f FILE, --file=FILE, --makefile=FILE
Read FILE as a makefile.
-h, --help Print this message and exit.
-i, --ignore-errors Ignore errors from recipes.
-I DIRECTORY, --include-dir=DIRECTORY
Search DIRECTORY for included makefiles.
-j [N], --jobs[=N] Allow N jobs at once; infinite jobs with no arg.
--jobserver-style=STYLE Select the style of jobserver to use.
-k, --keep-going Keep going when some targets can't be made.
-l [N], --load-average[=N], --max-load[=N]
Don't start multiple jobs unless load is below N.
-L, --check-symlink-times Use the latest mtime between symlinks and target.
-n, --just-print, --dry-run, --recon
Don't actually run any recipe; just print them.
-o FILE, --old-file=FILE, --assume-old=FILE
Consider FILE to be very old and don't remake it.
-O[TYPE], --output-sync[=TYPE]
Synchronize output of parallel jobs by TYPE.
-p, --print-data-base Print make's internal database.
-q, --question Run no recipe; exit status says if up to date.
-r, --no-builtin-rules Disable the built-in implicit rules.
-R, --no-builtin-variables Disable the built-in variable settings.
--shuffle[={SEED|random|reverse|none}]
Perform shuffle of prerequisites and goals.
-s, --silent, --quiet Don't echo recipes.
--no-silent Echo recipes (disable --silent mode).
-S, --no-keep-going, --stop
Turns off -k.
-t, --touch Touch targets instead of remaking them.
--trace Print tracing information.
-v, --version Print the version number of make and exit.
-w, --print-directory Print the current directory.
--no-print-directory Turn off -w, even if it was turned on implicitly.
-W FILE, --what-if=FILE, --new-file=FILE, --assume-new=FILE
Consider FILE to be infinitely new.
--warn-undefined-variables Warn when an undefined variable is referenced.
This program built for x86_64-portbld-freebsd15.1
Report bugs to <bug-make@gnu.org>
./kBuild/env.sh: info: rc=2: /usr/local/bin/gmake -f bootstrap.gmk
*** [do-build] Error code 2