YottaDB / YDB

Mirrored from https://gitlab.com/YottaDB/DB/YDB
Other
76 stars 37 forks source link

How to debug Error in GT.M help load utility #303

Closed ChristopherEdwards closed 6 years ago

ChristopherEdwards commented 6 years ago

While working on porting YottaDB to darwin/OS X/Mac OS The build fails with:

[ 96%] Generating gtmhelp.dat, gtmhelp.gld
%GDE-I-GDUSEDEFS, Using defaults for Global Directory
    /Users/cedwards/Projects/build/gtmhelp.gld

GDE>
GDE>
GDE>
%GDE-I-VERIFY, Verification OK
%GDE-I-GDCREATE, Creating Global Directory file
    /Users/cedwards/Projects/build/gtmhelp.gld
%YDB-I-DBFILECREATED, Database file /Users/cedwards/Projects/build/gtmhelp.dat created

YDB>
Help file >
Error in GT.M help load utility.
CMake Error at /Users/cedwards/Projects/YottaDB/sr_unix/mumps.cmake:43 (message):
  Command </Users/cedwards/Projects/build/mumps -direct
  INPUT_FILE;/Users/cedwards/Projects/build/gtmhelp.in2 > failed with result
  ='1'

make[2]: *** [gtmhelp.dat] Error 1
make[2]: *** Deleting file `gtmhelp.dat'
make[1]: *** [CMakeFiles/place_files.dir/all] Error 2
make: *** [all] Error 2

I've tried running the mumps command given:

/Users/cedwards/Projects/build/mumps -direct < /Users/cedwards/Projects/build/gtmhelp.in2

and it gives the same result. I've also looked at the .in2 file and ran the commands in mumps direct mode and also get the same result. I don't see anything obvious in the help file /Users/cedwards/Projects/YottaDB/sr_port/mumps.hlp that would indicate an error.

Any places to start looking?

nars1 commented 6 years ago

1) By "it gives the same result" are you saying that the output of

/Users/cedwards/Projects/build/mumps -direct < /Users/cedwards/Projects/build/gtmhelp.in2

is the following

='1'

2) Can you cat the contents of /Users/cedwards/Projects/build/gtmhelp.in2?

3) Can you try running the commands one by one from the gtmhelp.in2 file at the YDB> prompt and paste the output as you get it.

ChristopherEdwards commented 6 years ago

@nars1 What i mean as the same result is Error in GT.M help load utility.

That =1 is the status code returned by the command and indicates an error, so the makefile stops.

The contents of /Users/cedwards/Projects/YottaDB/sr_port/mumps.hlp

Do ^GTMHLPLD
/Users/cedwards/Projects/YottaDB/sr_port/mumps.hlp
Halt

results of running it manually:

/Users/cedwards/Projects/build/mumps -direct

YDB>Do ^GTMHLPLD
Help file > /Users/cedwards/Projects/YottaDB/sr_port/mumps.hlp
Error in GT.M help load utility.%
nars1 commented 6 years ago

@ChristopherEdwards : A file gtmhlpld.dmp would have been created in that directory. That has a ZSHOW "*" output which would include the $ZSTATUS ISV too. That might help find out what is going on.

ChristopherEdwards commented 6 years ago

@nars1 I'll take a look next time I pick this up. Thanks!

ChristopherEdwards commented 6 years ago

@nars1 Thanks for the tip to gtmhlpld.dmp the ISVs helped identify what is going on. In the end it was because my shared memory wasn't setup correctly on my Mac which caused issues. Closing issue.