[Newbie]Unexpected signal from FFI on Solaris 8
Marco Vezzoli
marco.vezzoli@st.com
Thu, 24 Apr 2003 14:05:45 +0200
Thank you for your answer.
alastair@reid-consulting-uk.ltd.uk wrote:
> Looks like a bug. The major possibilities are:
>
> 1) The problem is a Solaris specific bug in Hugs.
>
> 2) The problem is a C compiler specific bug in Hugs.
>
> Solaris boxes usually have a Sun compiler and it's
> often true that gcc isn't installed, properly maintained
> or the default compiler. Again, most testing has been with
> gcc.
>
I used gcc 3.0.2 building hugs. Sadly upgrading to a newer version can
probably break some of the tools we compiled.
> 3) The problem was present in the official release but has been
> fixed in the CVS repository.
>
Due to my employer's strict internet access policy, I cannot use the cvs
command; there is another way to get the latest source?
>
> 4) The problem is in your code.
>
> I don't see an obvious problem.
>
Me too.
> Can you (Marco) rerun ffihugs with the additional flag '+L"-v"'
> to find out which compiler you're using:
>
> ffihugs -P{Hugs}/libraries/:{Hugs}/oldlib +G +L"test.c" Test.hs +L"-v"
[vezzoli@web:885] ffi ->ffihugs -P{Hugs}/libraries/:{Hugs}/oldlib +G
+L"test.c" +L"-v" Test.hs
Reading specs from
/usr/local/extra/gcc-3.0.2_sol8/lib/gcc-lib/sparc-sun-solaris2.8/3.0.2/specs
[many lines follows]
It seems that ffihugs uses the same compiler I used to build hugs (gcc
3.0.2).
--
Marco Vezzoli tel. +39 039 603 6852
STMicroelectronics fax. +39 039 603 5055