ikrabbe / tclkit

Automatically exported from code.google.com/p/tclkit
1 stars 0 forks source link

Cannot build Sparc executable #16

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I got kitgen (from patthoyts-kitgen-0602b4f.tar.gz) and tried to build a 
Solaris 10 Sparc executable.  It segmentation faults running tclkit-cli.  I 
have tried each Tcl/Tk version from 8.5.7 through 8.5.10.  I have tried gcc3 
and gcc4 and Solaris Studio 12.2.  They all core dump at the same step: 
"./tclkit-cli ../../validate.tcl".  My config.sh command was "sh config.sh 
thread mk cli".  I tried dropping "cli" and it still built it and core dumped.  
Is it possible to skip the vlerq version?

I tried building it on a similar Solaris 10 x86_64, no problems with gcc4.

Is there a version of kitgen known to work for Sparc?  Is there something I 
need to do differently for Sparc?

BTW: I had to patch vlerq.c because it was illegal C syntax according to 
Solaris cc:
diff -ru ../patthoyts-kitgen-0602b4f/./8.x/vqtcl/generic/vlerq.c 
./8.x/vqtcl/generic/vlerq.c
--- ../patthoyts-kitgen-0602b4f/./8.x/vqtcl/generic/vlerq.c     Tue Jun 14 
09:22:43 2011
+++ ./8.x/vqtcl/generic/vlerq.c Wed Sep 28 17:28:21 2011
@@ -40,7 +40,7 @@
 #endif

 #if defined(WORDS_BIGENDIAN)
-#if !defined(_BIG_ENDIAN) || _BIG_ENDIAN == ""
+#if !defined(_BIG_ENDIAN)
 #define _BIG_ENDIAN 1
 #endif
 #endif

Original issue reported on code.google.com by galgie...@gmail.com on 7 Oct 2011 at 2:00