Joined: Oct. 2006
||Posted: Oct. 24 2006,18:28
BTW, here's some info on the segfault, from the frobtads developer. Haven't gotten far enough to know if this is helpful for dsl and the problems you had...
> I was able to compile the entire kit and kaboodle on Windows through
> Cygwin, using gcc 3.4.4. frob.exe works great - but t3make dies with a
> segmentation fault whenever I try to use it to compile the sample (or
> Eric Eve's Heidi version, for the record). It appears to get to the
> end, but then conks out:
> link -> sample.t3p
> preinit -> sample.t3
> /bin/sh: line 1: 1408 Segmentation fault (core dumped)
That's the (by now) infamous "Strict Aliasing Bug". It's not
Cygwin's fault; same thing happens with MinGW, and in general any other
GCC compiler (even under Linux). This is mentioned in the INSTALL file.
In general, when using GCC to compile, one should configure like this:
configure CXXFLAGS="[other flags] -fno-strict-aliasing"
The problem is not FrobTADS-specific. It seems G++ produces buggy
machine code with compiling the T3VM. I don't think that this will get
"fixed" in the basecode, as no one is actually sure what's causing the
problem. If some part of the T3VM violates C++ aliasing rules, then the
problem is with the T3VM, not GCC. No one can tell if this is the case