AIX parallel builds with makefile generator pass incorrect job specification to make (-J[NOSPACE]NUM required)
]truss -f -t execve -a cmake --build . --target aria --parallel 5
21889044: execve("/usr/bin/cmake", 0x2FF22BAC, 0x20013FF8) Err#2 ENOENT
21889044: 20054067: execve("/etc/cmake", 0x2FF22BAC, 0x20013FF8) Err#2 ENOENT
21889044: 20054067: execve("/usr/sbin/cmake", 0x2FF22BAC, 0x20013FF8) Err#2 ENOENT
21889044: 20054067: execve("/usr/ucb/cmake", 0x2FF22BAC, 0x20013FF8) Err#2 ENOENT
21889044: 20054067: execve("/home/mdbcorp/bin/cmake", 0x2FF22BAC, 0x20013FF8) Err#2 ENOENT
21889044: 20054067: execve("/usr/bin/X11/cmake", 0x2FF22BAC, 0x20013FF8) Err#2 ENOENT
21889044: 20054067: execve("/sbin/cmake", 0x2FF22BAC, 0x20013FF8) Err#2 ENOENT
21889044: 20054067: execve("./cmake", 0x2FF22BAC, 0x20013FF8) Err#2 ENOENT
21889044: 20054067: execve("/opt/freeware/bin/cmake", 0x2FF22BAC, 0x20013FF8) argc: 7
21889044: 20054067: argv: cmake --build . --target aria --parallel 5
19595312: 14549117: execve("/usr/bin/make", 0x0000000110092D70, 0x0FFFFFFFFFFFFAB0) argc: 4
19595312: 14549117: argv: /usr/bin/make -j 5 aria
make: Cannot find a rule to create target 5 from dependencies.
Stop.
21889044: Received signal #20, SIGCHLD [caught]
21889044: *** process killed ***
]cmake --version
cmake version 3.16.0
AiX71
lslpp -w /usr/bin/make
File Fileset Type
----------------------------------------------------------------------------
/usr/bin/make bos.adt.base Symlink
]lslpp -Lc | grep bos.adt.base
bos.adt:bos.adt.base:7.1.4.32: : :C:F:Base Application Development Toolkit: : : : : : :0:0:/:1845
With no space between j
and the jobs number it will compile
]make -j8 aria
[ 0%] Linking CXX static library libmysys
Target "mysys/CMakeFiles/mysys.dir/build" is up to date.
[ 36%] Built target mysys
...