Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
12 user(s) are online (5 user(s) are browsing Forums)

Members: 0
Guests: 12

more...

Support us!

Headlines

 
  Register To Post  

« 1 ... 3 4 5 (6)
Re: CMake 3.29 Native (OS4)
Not too shy to talk
Not too shy to talk


See User information
Has anyone experienced any crashes? I've got the alpha CMake up and running and it starts to work. But it always always ends up in a crash. I'll collect some crash logs. Right now trying to update some code using the newer CMake.

Go to top
Re: CMake 3.29 Native (OS4)
Just can't stay away
Just can't stay away


See User information
@Hypex

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?

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.

Go to top
Re: CMake 3.29 Native (OS4)
Not too shy to talk
Not too shy to talk


See User information
@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/buildcmake ..
CMake Deprecation Warning at CMakeLists.txt:(cmake_minimum_required):
  
Compatibility with CMake 3.5 will be removed from a future version of
  CMake
.

  
Update the VERSION argument <minvalue or use ...<maxsuffix 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):
   
0FFFF3BB0 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:
 
7f27dbcc3c00ffff   lis               r0,-1
 7f27dbd0
60003bb0   ori               r0,r0,15280
*7f27dbd47c21016e   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 ErrorCMAKE_C_COMPILER not setafter EnableLanguage
-- Configuring incompleteerrors 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) = [0x00000001] [1229759uS]


I'm trying to build this project:
https://github.com/jibsen/tinf

Go to top
Re: CMake 3.29 Native (OS4)
Just can't stay away
Just can't stay away


See User information
@Hypex

This might be a problem with filesystems and case sensitivity issues. I haven't gotten around to checking cmake on another partition, so I can't tell for sure, but if you want to try it out, you can try installing in an sfs partition and see, if that helps. It might also be important, what partition your SDK is located at.

Go to top
Re: CMake 3.29 Native (OS4)
Home away from home
Home away from home


See User information
@Hypex

Try with:
cmake .. -DCMAKE_C_COMPILER=/SDK/gcc/bin/ppc-amigaos-gcc -DCMAKE_CXX_COMPILER=/SDK/gcc/bin/ppc-amigaos-g++

hope i got it right

Go to top
Re: CMake 3.29 Native (OS4)
Not too shy to talk
Not too shy to talk


See User information
@elfpipe

Actually, it is on an SFS partition. My Development volume is SFS. On that is installed the SDK and CMake folders.

Go to top
Re: CMake 3.29 Native (OS4)
Not too shy to talk
Not too shy to talk


See User information
@Raziel

Thanks. That looks like an obvious route. I'm not sure how I did it a few years back. I managed to configure it with the older CMake but it doesn't work now as it relies on older so objects so I can't run it. But the new one complains about the old build files. Suppose I need to treat it like a cross compiler as on AmigaOS you need to hold it's hand when configuring a build, since it doesn't pick up things automatically like on other systems.

Go to top
Re: CMake 3.29 Native (OS4)
Just can't stay away
Just can't stay away


See User information
@elfpipe
Quote:
This might be a problem with filesystems and case sensitivity issues. I haven't gotten around to checking cmake on another partition, so I can't tell for sure, but if you want to try it out, you can try installing in an sfs partition and see, if that helps.
Default for SFS partitions is case-insensitive, as on any other AmigaOS filesystem.

SFS partitions can be formatted case sensitive, but it has to be done at format time and with "SFSFormat". It's not possible to change it after formatting, nor can it be enabled with the AmigaOS SYS:System/Format tool.

For example OWB, which used CMake as well, can't be built on case-insensitive AmigaOS file systems and I had to use a case sensitive formatted SFS\2 partition for building it.

Go to top
Re: CMake 3.29 Native (OS4)
Not too shy to talk
Not too shy to talk


See User information
@elfpipe

Okay got it working. It didn't need to be told where compiler is. But it did need to be told where "make" is. So it was able to complete the build. The make ran without problems.

However, I managed to crash it again. I don't know how. I tested CMaking the tinf project from the RAM Disk. It crashed CMake. Does it matter if I CMake direct to list file without a build folder?

Looks like it drank a bad coffee from a bad cafe:
Register dump:
GPR (General Purpose Registers):
   
07E2D52E8 4F2EFDD0 ABADCAFE 00000100 502BD8D0 0200B030 02A8824C 02A8826C 
   8
00000000 2F53444B 2F432F6D 0201FBF8 39955959 51033DD8 5EDE09B4 53A4FEC0 
  16
02B30000 DFB74240 5958F028 6FFFE300 5101F4A0 5101F020 7D0E9600 00000023 
  24
59506760 5101F024 595BA038 7D0E9600 5139AB2C 5139AB2C 4F2F0BA4 4F2EFDD0 


Symbol info
:
Instruction pointer 0x7E2D53BC belongs to module "cmake" (PowerPC
Symboluv__signal_event 0x130 in section 1 offset 0x011F6398

Stack trace
:
    
cmake:uv__signal_event()+0x130 (section 1 0x11F6398)
    
cmake:uv__signal_event()+0x5c (section 1 0x11F62C4)
    
cmake:uv_run()+0xf4 (section 1 0x11E61D8)
    
cmake:_Z23cmExecuteProcessCommandRKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EER17cmExecutionStatus()+0x1b3c (section 1 0x476AD8)
   

PPC disassembly:
 
7e2d53b481490004   lwz               r10,4(r9)
 
7e2d53b8813f001c   lwz               r9,28(r31)
*
7e2d53bc81290034   lwz               r9,52(r9)
 
7e2d53c07c0a4800   cmpw              r10,r9
 7e2d53c4
40820050   bne-              0x7E2D5414

Go to top
Re: CMake 3.29 Native (OS4)
Just can't stay away
Just can't stay away


See User information
@joerg

Quote:
For example OWB, which used CMake as well, can't be built on case-insensitive AmigaOS file systems and I had to use a case sensitive formatted SFS\2 partition for building it.


Thanks for the explanation. I had some problems with OWB, that went away, when I moved it to a FFS partition. As I said, I still need to test this difference, I am sure from what I hear from people testing cmake that there is a possible connection on functioning and some relation to the file system(s) used.

@hypex

The crash you are seeing looks strange, and I don't have a ready answer (from looking at the source in this place, there is not much to see, other than a possible connection to pipe()/read() which sometimes has a little bit strange behavior). EDIT: Is it a regular crash, or does it only happen from time to time (ie. are the conditions stable or spurious)?

About using source tree builds, this should not be a problem, but perhaps the specific build situation triggers some otherwise hidden problem.


Edited by elfpipe on 2024/10/13 10:59:36
Go to top

  Register To Post
« 1 ... 3 4 5 (6)

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project