does not find singular 4.1.0

Questions and problems about using polymake go here.
beew
Posts: 30
Joined: 13 Aug 2015, 20:41

does not find singular 4.1.0

Postby beew » 30 Nov 2016, 22:13

Hi, just upgraded to singular 4.1.0 and polymake no longer start. So I recompiled it but it is not able to detect singular, which is installed in standard location (/usr/local)

From the log

Code: Select all

---- singular ---- Could not compile a test program checking for libsingular. The most probable reasons are that the library is installed at a non-standard location, is not configured to build a shared module, or missing at all. The complete error log follows: In file included from /usr/local/include/singular/kernel/polys.h:16:0, from /usr/local/include/singular/kernel/structs.h:23, from /usr/local/include/singular/Singular/libsingular.h:8, from /tmp/polymake_29618_configure.cc:1: /usr/local/include/singular/polys/monomials/p_polys.h: In function ‘void p_SetCompP(poly, int, ring)’: /usr/local/include/singular/polys/monomials/p_polys.h:253:17: warning: statement has no effect [-Wunused-value] p_Test(p, r); ^ /usr/local/include/singular/polys/monomials/p_polys.h: In function ‘spolyrec* p_Copy(poly, ring)’: /usr/local/include/singular/polys/monomials/p_polys.h:806:14: warning: statement has no effect [-Wunused-value] p_Test(p,r); ^ /usr/local/include/singular/polys/monomials/p_polys.h:808:15: warning: statement has no effect [-Wunused-value] p_Test(pp,r); ^ /usr/local/include/singular/polys/monomials/p_polys.h: In function ‘spolyrec* p_LmInit(poly, ring, ring, omBin)’: /usr/local/include/singular/polys/monomials/p_polys.h:1272:19: warning: statement has no effect [-Wunused-value] p_CheckRing(d_r); ^ In file included from /usr/local/include/singular/kernel/polys.h:16:0, from /usr/local/include/singular/kernel/structs.h:23, from /usr/local/include/singular/Singular/libsingular.h:8, from /tmp/polymake_29618_configure.cc:1: /usr/local/include/singular/polys/monomials/p_polys.h: In function ‘BOOLEAN p_LmDivisibleBy(poly, ring, poly, ring)’: /usr/local/include/singular/polys/monomials/p_polys.h:1797:28: warning: statement has no effect [-Wunused-value] p_LmCheckPolyRing(a, r_a); ^ /usr/local/include/singular/polys/monomials/p_polys.h:1798:28: warning: statement has no effect [-Wunused-value] p_LmCheckPolyRing(b, r_b); ^ /usr/local/include/singular/polys/monomials/p_polys.h: In function ‘BOOLEAN p_IsConstant(poly, ring)’: /usr/local/include/singular/polys/monomials/p_polys.h:1879:15: warning: statement has no effect [-Wunused-value] p_Test(p, r); ^ /usr/local/include/singular/polys/monomials/p_polys.h: In function ‘BOOLEAN p_IsOne(poly, ring)’: /usr/local/include/singular/polys/monomials/p_polys.h:1886:15: warning: statement has no effect [-Wunused-value] p_Test(p, R); ^ /usr/local/include/singular/polys/monomials/p_polys.h: In function ‘BOOLEAN p_IsConstantPoly(poly, ring)’: /usr/local/include/singular/polys/monomials/p_polys.h:1892:15: warning: statement has no effect [-Wunused-value] p_Test(p, r); ^ /usr/local/include/singular/polys/monomials/p_polys.h: In function ‘BOOLEAN p_LmExpVectorAddIsOk(poly, poly, ring)’: /usr/local/include/singular/polys/monomials/p_polys.h:1914:27: warning: statement has no effect [-Wunused-value] p_LmCheckPolyRing(p1, r); ^ /usr/local/include/singular/polys/monomials/p_polys.h:1915:27: warning: statement has no effect [-Wunused-value] p_LmCheckPolyRing(p2, r); ^ In file included from /usr/local/include/singular/kernel/GBEngine/kutil.h:817:0, from /usr/local/include/singular/Singular/libsingular.h:16, from /tmp/polymake_29618_configure.cc:1: /usr/local/include/singular/kernel/GBEngine/kInline.h: In member function ‘void sTObject::Set(poly, ring)’: /usr/local/include/singular/kernel/GBEngine/kInline.h:122:20: warning: statement has no effect [-Wunused-value] p_Test(p_in, r); ^ /usr/local/include/singular/kernel/GBEngine/kInline.h:127:38: warning: statement has no effect [-Wunused-value] pp_Test(p_in, currRing, tailRing); ^ /usr/local/include/singular/kernel/GBEngine/kInline.h: In member function ‘void sTObject::Set(poly, ring, ring)’: /usr/local/include/singular/kernel/GBEngine/kInline.h:143:33: warning: statement has no effect [-Wunused-value] pp_Test(p_in, currRing, t_r); ^ /usr/local/include/singular/kernel/GBEngine/kInline.h: In function ‘BOOLEAN k_GetLeadTerms(poly, poly, ring, spolyrec*&, spolyrec*&, ring)’: /usr/local/include/singular/kernel/GBEngine/kInline.h:938:29: warning: statement has no effect [-Wunused-value] p_LmCheckPolyRing(p1, p_r); ^ /usr/local/include/singular/kernel/GBEngine/kInline.h:939:29: warning: statement has no effect [-Wunused-value] p_LmCheckPolyRing(p2, p_r); ^ /usr/local/include/singular/kernel/GBEngine/kInline.h: In function ‘void k_GetStrongLeadTerms(poly, poly, ring, spolyrec*&, spolyrec*&, spolyrec*&, ring)’: /usr/local/include/singular/kernel/GBEngine/kInline.h:981:34: warning: statement has no effect [-Wunused-value] p_LmCheckPolyRing(p1, leadRing); ^ /usr/local/include/singular/kernel/GBEngine/kInline.h:982:34: warning: statement has no effect [-Wunused-value] p_LmCheckPolyRing(p2, leadRing); ^ /usr/bin/ld: cannot find -lresources collect2: error: ld returned 1 exit status Please install the library and specify its location using --with-singular option, if needed. Please remember to enable shared modules when configuring the libsingular!
libsingular files are in these locations
/usr/local/bin/libsingular-config
/usr/local/include/singular/Singular/libsingular.h
/usr/local/lib/libsingular_resources-4.0.3.so
/usr/local/lib/libsingular_resources.a
/usr/local/lib/libsingular_resources.la
/usr/local/lib/libsingular_resources.so

OS is Ubuntu 16.04. Polymake 3.0r2

Thanks.

paffenholz
Developer
Posts: 211
Joined: 24 Dec 2010, 13:47

Re: does not find singular 4.1.0

Postby paffenholz » 30 Nov 2016, 22:48

singular renamed one of their libraries (from resurces to singular_resources), and the name is spelled out in the polymake configuration.

As you apparently compile polymake yourself there are two easy fixes: You can either switch to the Snapshot release of polymake on github, or you edit the file bundled/singular/configure.pl and replace the one occurence or "-lresources" by "-lsingular_resources".

beew
Posts: 30
Joined: 13 Aug 2015, 20:41

Re: does not find singular 4.1.0

Postby beew » 01 Dec 2016, 01:17

Hi, editing bundled/singular/configure.pl worked. Thanks!


Return to “Helpdesk”