[GiNaC-list] build problems with ver.1.3.3

Joerg Arndt jj at suse.de
Sat Dec 3 12:09:53 CET 2005


* Richard B. Kreckel <kreckel at ginac.de> [Dec 02. 2005 20:36]:
> Joerg Arndt wrote:
> [...]
> ?!? I've tried with a GCC-4.1 snapshot and it worked like a charm. Do 
> the CLN tests pass?
> 

This may be the reason(?):
-------------------------------
  [...]
Wrote: /usr/src/packages/SRPMS/cln-1.1.11-2.src.rpm
Wrote: /usr/src/packages/RPMS/i586/cln-1.1.11-2.i586.rpm
... checking for files with abuild user/group
... installing all built rpms
Preparing packages for installation...
cln-1.1.11-2
... testing for empty debuginfo packages
  [OK up to here]
... testing for serious compiler warnings
Program is likely to break with new gcc. Add -fno-strict-aliasing or fix.
Problematic file(s) and their linenumbers:
  ./real/ring/cl_R_ring.cc: 133
  ./vector/cl_GV_I.cc: 384, 399
  ./integer/ring/cl_I_ring.cc: 129
  ./rational/ring/cl_RA_ring.cc: 129
  ./complex/ring/cl_C_ring.cc: 132
-------------------------------
The package does not build b/c our buildsystem refuses
to accept strict-aliasing warnings.
So I may be building ginac against the older CLN...

E.g.,  ./real/ring/cl_R_ring.cc: 133  is

class cl_heap_real_ring : public cl_heap_number_ring {
        SUBCLASS_cl_heap_ring()
public:
        // Constructor.
        cl_heap_real_ring ()
                : cl_heap_number_ring (&R_setops,&R_addops,&R_mulops,
/* HERE: */                            (cl_number_ring_ops<cl_number>*) &R_ops)
                { type = &cl_class_real_ring; }
        // Destructor.
        ~cl_heap_real_ring () {}
};

Can one expect problems here?
Or should I just add -fno-strict-aliasing?

-- 
p=2^q-1 prime <== q>2, cosh(2^(q-2)*log(2+sqrt(3)))%p=0
Life is hard and then you die.



More information about the GiNaC-list mailing list