@elfpipe
Quote:
What do you mean "always ends up"? As in : You can start cmake, and it does some work, but then it crashes? At what point does it crash, and of course : What does the crash look like?
So I enter a build folder and run a "cmake .." like so:
4.RAM Disk:tinf-1.2.1/build> cmake ..
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
After printing all that to CLI I get a reaper. I'll post a cut down of it:
GPR (General Purpose Registers):
0: FFFF3BB0 61EE8630 ABADCAFE 580F4930 00000000 00000000 580F49E8 00000001
8: 00000004 580F4930 00000003 61EE8630 61EE8630 588E6DD8 61EB39B4 59241DA0
16: 02B30000 DFB75480 613EC028 6FFFE300 588D24A0 588D2020 7E4EE600 00000003
24: 5A48EC40 588D2024 5EB90038 7E4EE600 580F01D4 580F01D4 61EE8FE4 61EE8630
Symbol info:
Instruction pointer 0x7F27DBD4 belongs to module "cmake" (PowerPC)
Symbol: _Z25cmCommandArgument_yyparsePv + 0xC in section 1 offset 0x00D99BB0
Stack trace:
cmake:_Z25cmCommandArgument_yyparsePv()+0xc (section 1 @ 0xD99BB0)
cmake:_ZN29cmCommandArgumentParserHelper11ParseStringERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi()+0xd8 (section 1 @ 0x87FE24)
cmake:_ZNK10cmMakefile23ExpandVariablesInStringERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbbbPKclbb()+0x2f4 (section 1 @ 0x160140)
cmake:_ZNK10cmMakefile15ExpandArgumentsERKSt6vectorI18cmListFileArgumentSaIS1_EERS0_INSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaISB_EE()+0x224 (section 1 @ 0x1656C0)
cmake:_ZL20InvokeBuiltinCommandPFbRKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EER17cmExecutionStatusERKS_I18cmListFileArgumentSaISE_EESB_()+0x12c (section 1 @ 0x26B080)
cmake:_ZZN7cmState17AddBuiltinCommandERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPFbRKSt6vectorIS5_SaIS5_EER17cmExecutionStatusEENKUlRKS8_I18cmListFileArgumentSaISH_EESE_E_clESL_SE_()+0x38 (section 1 @ 0x26B208)
PPC disassembly:
7f27dbcc: 3c00ffff lis r0,-1
7f27dbd0: 60003bb0 ori r0,r0,15280
*7f27dbd4: 7c21016e stwux r1,r1,r0
7f27dbd8: 7c0802a6 mflr r0
7f27dbdc: 900c0004 stw r0,4(r12)
Quote:
If it is another stack issue, then it is easy to fix. AMOF I don't quite remember, if the online version contains a stack cookie.
You could be right. I checked and my shell has a paltry stack that's barely over 64KB. I changed it to 1MB and CMake didn't crash! Thanks for the hint. The shell needs a bugzilla if the default is really that small.
Ok so that's a lot better. But then I got stuck again. Like happened recently after reading back a few pages CMake cannot find my make command or compiler either:
-- CMAKE_HOST_SYSTEM_VERSION : 53.18
CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
I saved a Snoopy fail log but don't see where it's looking for a make or compiler:
00016 : cmake : FAIL = GetVar("ELF.debug",0x56B13A90,19,0x00000000) [62uS]
00017 : cmake : FAIL = ExamineObject([SN] "PROGDIR:.unix") [10uS]
00018 : cmake : FAIL = GetVar("EXEC_IMPORT_LOCAL",0x56B13E8C,8,0x00000200) [8uS]
00019 : cmake : FAIL = Lock("/tmp",SHARED) [32uS]
00020 : cmake : FAIL = Lock("/tmp",SHARED) [10uS]
00021 : cmake : FAIL = GetVar("PWD",0x5892DFE8,256,0x00000000) [96uS]
00022 : cmake : FAIL = Lock("Development:cmake-amiga/bin/cmake-gui",SHARED) [17uS]
00023 : cmake : FAIL = Lock("Development:cmake-amiga/bin/ccmake",SHARED) [16uS]
00024 : cmake : FAIL = Lock("Development:cmake-amiga/bin/cmcldeps",SHARED) [15uS]
00025 : cmake : FAIL = Lock("Development:cmake-amiga/doc/cmake-3.29/html/index.html",SHARED) [18uS]
00026 : cmake : FAIL = GetVar("CMAKE_GENERATOR",0x5892DFE8,256,0x00000000) [83uS]
00027 : cmake : FAIL = GetVar("CMAKE_GENERATOR_INSTANCE",0x5892DFE8,256,0x00000000) [61uS]
00028 : cmake : FAIL = GetVar("CMAKE_GENERATOR_PLATFORM",0x5892DFE8,256,0x00000000) [62uS]
00029 : cmake : FAIL = GetVar("CMAKE_GENERATOR_TOOLSET",0x5892DFE8,256,0x00000000) [60uS]
00030 : cmake : FAIL = Lock("Development:CMake/tinf-1.2.1/CMakeCache.txt",SHARED) [18uS]
00031 : cmake : FAIL = GetVar("MAKEFLAGS",0x5892DFE8,256,0x00000000) [68uS]
00032 : cmake : FAIL = Lock("Development:CMake/tinf-1.2.1/PreLoad.cmake",SHARED) [16uS]
00033 : cmake : FAIL = Lock("Development:CMake/tinf-1.2.1/build/PreLoad.cmake",SHARED) [16uS]
00034 : cmake : FAIL = GetVar("VERBOSE",0x5892DFE8,256,0x00000000) [59uS]
00035 : cmake : FAIL = GetVar("HOSTNAME",0x5D679B6C,255,0x00000000) [63uS]
00036 : cmake : FAIL = Lock("Development:CMake/tinf-1.2.1/build/CMakeFiles/CMakeScratch",SHARED) [23uS]
00037 : cmake : FAIL = Lock("Development:CMake/tinf-1.2.1/build/CMakeFiles/CMakeScratch",SHARED) [18uS]
00038 : cmake : FAIL = Delete("Development:CMake/tinf-1.2.1/build/CMakeFiles/pkgRedirects") [240257uS]
00039 : cmake : FAIL = GetVar("CMAKE_TEST_LAUNCHER",0x5892DFE8,256,0x00000000) [94uS]
00040 : cmake : FAIL = GetVar("CMAKE_CROSSCOMPILING_EMULATOR",0x5892DFE8,256,0x00000000) [64uS]
00041 : cmake : FAIL = Lock("Development:CMake/tinf-1.2.1/build/.cmake/api/v1/query",SHARED) [21uS]
00042 : cmake : FAIL = Lock("Development:CMake/tinf-1.2.1/build/CMakeConfigureLog.yaml",SHARED) [17uS]
00043 : cmake : FAIL = GetVar("CMAKE_MAXIMUM_RECURSION_DEPTH",0x5892DFE8,256,0x00000000) [79uS]
00044 : cmake : FAIL = GetVar("CLICOLOR_FORCE",0x5892DFE8,256,0x00000000) [68uS]
00045 : cmake : FAIL = GetVar("CLICOLOR",0x5892DFE8,256,0x00000000) [59uS]
00046 : cmake : FAIL = GetVar("MAKE_TERMOUT",0x5892DFE8,256,0x00000000) [58uS]
00047 : cmake : FAIL = GetVar("EMACS",0x5892DFE8,256,0x00000000) [58uS]
00048 : cmake : FAIL = GetVar("CMAKE_MAXIMUM_RECURSION_DEPTH",0x5892DFE8,256,0x00000000) [101uS]
00049 : cmake : FAIL = GetVar("CMAKE_BUILD_TYPE",0x5892DFE8,256,0x00000000) [76uS]
00050 : cmake : FAIL = GetVar("CMAKE_MAXIMUM_RECURSION_DEPTH",0x5892DFE8,256,0x00000000) [71uS]
00051 : cmake : FAIL = GetVar("CMAKE_MAXIMUM_RECURSION_DEPTH",0x5892DFE8,256,0x00000000) [67uS]
00052 : cmake : FAIL = GetVar("CMAKE_MAXIMUM_RECURSION_DEPTH",0x5892DFE8,256,0x00000000) [66uS]
00053 : cmake : FAIL = GetVar("CMAKE_MAXIMUM_RECURSION_DEPTH",0x5892DFE8,256,0x00000000) [66uS]
00054 : cmake : FAIL = GetVar("CMAKE_MAXIMUM_RECURSION_DEPTH",0x5892DFE8,256,0x00000000) [66uS]
00055 : cmake : FAIL = GetVar("CMAKE_MAXIMUM_RECURSION_DEPTH",0x5892DFE8,256,0x00000000) [66uS]
00056 : cmake : FAIL = GetVar("CMAKE_MAXIMUM_RECURSION_DEPTH",0x5892DFE8,256,0x00000000) [65uS]
00057 : cmake : FAIL = GetVar("CMAKE_MAXIMUM_RECURSION_DEPTH",0x5892DFE8,256,0x00000000) [66uS]
00058 : cmake : FAIL = GetVar("CMAKE_MAXIMUM_RECURSION_DEPTH",0x5892DFE8,256,0x00000000) [65uS]
00059 : cmake : FAIL = GetVar("CMAKE_MAXIMUM_RECURSION_DEPTH",0x5892DFE8,256,0x00000000) [66uS]
00060 : cmake : FAIL = GetVar("CMAKE_MAXIMUM_RECURSION_DEPTH",0x5892DFE8,256,0x00000000) [70uS]
00061 : cmake : FAIL = GetVar("CMAKE_PREFIX_PATH",0x5892DFE8,256,0x00000000) [69uS]
00062 : cmake : FAIL = GetVar("CMAKE_PROGRAM_PATH",0x5892DFE8,256,0x00000000) [61uS]
00063 : cmake : FAIL = GetVar("CMAKE_APPBUNDLE_PATH",0x5892DFE8,256,0x00000000) [62uS]
00064 : cmake : FAIL = GetVar("PATH",0x5892DFE8,256,0x00000000) [63uS]
00065 : cmake : FAIL = GetVar("CMAKE_MAXIMUM_RECURSION_DEPTH",0x5892DFE8,256,0x00000000) [67uS]
00066 : cmake : FAIL = GetVar("CMAKE_MAXIMUM_RECURSION_DEPTH",0x5892DFE8,256,0x00000000) [66uS]
00067 : cmake : FAIL = GetVar("CLICOLOR_FORCE",0x5892DFE8,256,0x00000000) [67uS]
00068 : cmake : FAIL = GetVar("CLICOLOR",0x5892DFE8,256,0x00000000) [58uS]
00069 : cmake : FAIL = GetVar("MAKE_TERMOUT",0x5892DFE8,256,0x00000000) [59uS]
00070 : cmake : FAIL = GetVar("EMACS",0x5892DFE8,256,0x00000000) [58uS]
00071 : cmake : FAIL = GetVar("CLICOLOR_FORCE",0x5892DFE8,256,0x00000000) [99uS]
00072 : cmake : FAIL = GetVar("CLICOLOR",0x5892DFE8,256,0x00000000) [60uS]
00073 : cmake : FAIL = GetVar("MAKE_TERMOUT",0x5892DFE8,256,0x00000000) [59uS]
00074 : cmake : FAIL = GetVar("EMACS",0x5892DFE8,256,0x00000000) [58uS]
00075 : cmake : FAIL = Lock("Development:CMake/tinf-1.2.1/build/CPackConfig.cmake",SHARED) [36uS]
00076 : cmake : FAIL = Lock("Development:CMake/tinf-1.2.1/build/CPackSourceConfig.cmake",SHARED) [18uS]
00077 : cmake : FAIL = Lock("RANDOM:",SHARED) [5363uS]
00078 : cmake : ROOT = ParentOfFH(0x18C25962) "RANDOM:" [145uS]
00079 : cmake : FAIL = Delete("Development:CMake/tinf-1.2.1/build/CMakeCache.txt.tmpae9ee") [33uS]
00080 : cmake : FAIL = Lock("Development:CMake/tinf-1.2.1/build/CMakeCache.txt.tmpae9ee",SHARED) [20uS]
00081 : cmake : FAIL = Lock("Development:CMake/tinf-1.2.1/build/CMakeCache.txt.tmpae9ee",SHARED) [21uS]
00082 : cmake : FAIL = Rename("Development:CMake/tinf-1.2.1/build/CMakeCache.txt.tmpae9ee" -> "Development:CMake/tinf-1.2.1/build/CMakeCache.txt") [26uS]
00083 : cmake : FAIL = Delete("Development:CMake/tinf-1.2.1/build/CMakeCache.txt.tmpae9ee") [17uS]
00084 : cmake : FAIL = Lock("PIPE:0144/32768/0",SHARED) [4157uS]
00085 : cmake : FAIL = Lock("PIPE:1144/32768/0",SHARED) [23736uS]
00086 : cmake : FAIL = Lock("PIPE:2144/32768/0",SHARED) [13311uS]
00087 : cmake : ROOT = ParentOfFH(0x18C25962) "RANDOM:" [38uS]
00088 : cmake : ROOT = ParentOfFH(0x18C25962) "RANDOM:" [1086uS]
00089 : cmake : <----- RunCommand(0x15F2C675 "cmake",,"..",3) = 1 [0x00000001] [1229759uS]
I'm trying to build this project:
https://github.com/jibsen/tinf