Home My Page Projects PaStiX
Summary Activity Forums Lists Docs News Files

Forum: open-discussion

Monitor Forum | Start New Thread Start New Thread
RE: compilation problem on ubuntu 16.04 [ Reply ]
By: Pierre Ramet on 2016-08-02 09:12
[forum:150737]
Dear Riccardo,
I also found this pb on ubuntu 16.04 with gcc (>5.3) and glib (>2.23).
I just add the following lines on the top of sopalin/src/variable_csc.c :

#if __GLIBC__>2 || ( __GLIBC__==2 && __GLIBC_MINOR__>=23)
#undef isfinite
#define isfinite(x) \
(sizeof (x) == sizeof (float) \
? __builtin_isfinite ((float)x) \
: sizeof (x) == sizeof (double) \
? __builtin_isfinite ((double)x) : __builtin_isfinite ((long double)x))
#undef isnan
#define isnan(x) \
(sizeof (x) == sizeof (float) \
? __builtin_isnan ((float)x) \
: sizeof (x) == sizeof (double) \
? __builtin_isnan ((double)x) : __builtin_isnan ((long double)x))
#endif

and I got a working solution for that problem.
I committed this patch on the develop branch in the git repository.
It will be available in the next release (soon).

git clone https://scm.gforge.inria.fr/anonscm/git/ricar/ricar.git
git checkout origin/develop -b develop

Regards,
Pierre.

compilation problem on ubuntu 16.04 [ Reply ]
By: Nobody on 2016-07-31 10:12
[forum:150736]
Dear Developers,

i am writing since there is a small compiling issue on ubuntu 16.04 (gcc 5.4.0)

within the file variable_csc.h

if (isnan((double)vcsc->values[COL_NODE][idx]))

should be used in stead of

if (isnan(vcsc->values[COL_NODE][idx]))

in all the cases in which isnan is used

regards
Riccardo