On Nov 1, 2005, at 3:43 AM, Sheplyakov Alexei wrote:
On Mon, Oct 31, 2005 at 12:32:46PM -0600, Marius Schamschula wrote:
Note: I don't see this problem under Mac OS 10.3.x (Panther)/Darwin 7.x. I tried building using both gcc 3.3 and gcc 4.0. gcc 3.3 dies with some linking errors.
Could you please be more specific? Can you build with gcc 3.3 and gcc 4.0 on Mac OS 10.3.x? Or only with gcc 4.0? What are exactly gcc 3.3 errors? (BTW, have you recompiled CLN with gcc 3.3 too?)
Mac OS X 10.3 uses gcc 3.3 only. Given the flakyness of Apple's gcc 4.0 variant, there is no point to try using a backport to Mac OS X 10.3. Under Mac OS X 10.4 I did indeed build with cln with gcc 3.3 when trying to build ginac with gcc 3.3. I don't have a copy of the errors handy, but they involved some major linking issues with system libraries when building against cln 1.1.9. When building against cln 1.1.10 I get the same errors as with gcc 4.0.
For Mac OS X 10.3.9 I get:
marius$ find ginac check -type f -name '*.o' | xargs nm | c++filt | grep -e 'GiNaC::structure<sprod_s, GiNaC::compare_std_less>::reg_info' 000024e8 S guard variable for GiNaC::structure<sprod_s, GiNaC::compare_std_less>::reg_info 000024c0 S GiNaC::structure<sprod_s, GiNaC::compare_std_less>::reg_info
It is not clear from you post what is the version of gcc produced this.
gcc 3.3, see above
For Mac OS 10.4.2 I get:
marius$ find ginac check -type f -name '*.o' | xargs nm | c++filt | grep -e 'GiNaC::structure<sprod_s, GiNaC::compare_std_less>::reg_info' U GiNaC::structure<sprod_s, GiNaC::compare_std_less>::reg_info
The same here.
gcc 4.0, but also with gcc 3.3 and cln 1.1.10.
Could you also try to compile the attached test code?
This compiles fine (gcc 4.0), but when I try to execute it I get a seg fault. Marius -- Marius Schamschula Webmaster The Huntsville Macintosh Users Group www.hmug.org webmaster at hmug dot org marius at schamschula dot com