I saw some past discussion about compiling cmake on arm architectures
regarding the ELF parser last August.  I haven't seen that diff committed
to CVS, unless I don't know where to look which is very likely.

But in addition to that issue, I am having other runtime problems on the
zaurus during cmake bootstrap.

I'm curious if I'm the only one who has seen this.  Running 5.4 release on
a Zaurus C3000.  Cmake bootstrap builds then runs the bootstrap cmake which
then fails to find itself on the filesystem.
The problem is in
SystemTools::FileIsDirectory

Where it checks with
S_ISDIR(fs.st_mode)

This finds that cmake is not a directory so the function returns false.  I
explicitly added an if block to this code with a print statement before
each return so I know where it is.  However, the calling function
SystemTools::FindProgram evaluates this false as true so it thinks the
cmake file is a directory and keeps looking, never to find it.

If I remove the code in FileIsDirectory that trims any trailing '/' off the
path, then false evaluates to false as expected.  This is strange and
confusing.

The fact it's happening around some memory allocation and copying makes me
think I might have a memory issue on the device but I'd expect to be seeing
the issue more randomly and with other compilation or applications.
Nothing else has been a problem.

Any help or experience would be appreciated.

Tim.

Reply via email to