igraph / rigraph

igraph R package
https://r.igraph.org
532 stars 200 forks source link

CI failure #1355

Closed maelle closed 2 weeks ago

maelle commented 2 months ago
2024-05-06T13:51:49.9711210Z * checking compiled code ... WARNING
2024-05-06T13:51:49.9735150Z ##[warning]File ‘igraph/libs/igraph.so’:
2024-05-06T13:51:49.9736660Z   Found ‘___sprintf_chk’, possibly from ‘sprintf’ (C)
2024-05-06T13:51:49.9737240Z     Objects: ‘vendor/cigraph/vendor/glpk/api/asnlp.o’,
2024-05-06T13:51:49.9738280Z       ‘vendor/cigraph/vendor/glpk/api/cplex.o’,
2024-05-06T13:51:49.9738870Z       ‘vendor/cigraph/vendor/glpk/api/maxflp.o’,
2024-05-06T13:51:49.9739320Z       ‘vendor/cigraph/vendor/glpk/api/mcflp.o’,
2024-05-06T13:51:49.9739800Z       ‘vendor/cigraph/vendor/glpk/api/wrcnf.o’,
2024-05-06T13:51:49.9740370Z       ‘vendor/cigraph/vendor/glpk/draft/glpapi09.o’,
2024-05-06T13:51:49.9740920Z       ‘vendor/cigraph/vendor/glpk/draft/glpios03.o’,
2024-05-06T13:51:49.9741360Z       ‘vendor/cigraph/vendor/glpk/mpl/mpl3.o’,
2024-05-06T13:51:49.9741860Z       ‘vendor/cigraph/vendor/glpk/mpl/mpl5.o’,
2024-05-06T13:51:49.9742300Z       ‘vendor/cigraph/vendor/glpk/mpl/mpl6.o’
2024-05-06T13:51:49.9742760Z   Found ‘___stdoutp’, possibly from ‘stdout’ (C)
2024-05-06T13:51:49.9743320Z     Objects: ‘vendor/cigraph/vendor/glpk/env/stdout.o’,
2024-05-06T13:51:49.9743780Z       ‘vendor/cigraph/vendor/glpk/misc/mygmp.o’,
2024-05-06T13:51:49.9744340Z       ‘vendor/cigraph/vendor/glpk/mpl/mpl4.o’
2024-05-06T13:51:49.9744860Z   Found ‘___vsprintf_chk’, possibly from ‘vsprintf’ (C)
2024-05-06T13:51:49.9745330Z     Objects: ‘vendor/cigraph/vendor/glpk/mpl/mpl3.o’,
2024-05-06T13:51:49.9745770Z       ‘vendor/cigraph/vendor/glpk/mpl/mpl4.o’
2024-05-06T13:51:49.9746350Z   Found ‘_exit’, possibly from ‘exit’ (C)
2024-05-06T13:51:49.9746790Z     Object: ‘vendor/cigraph/vendor/glpk/proxy/main.o’
2024-05-06T13:51:49.9753260Z   Found ‘_printf’, possibly from ‘printf’ (C)
2024-05-06T13:51:49.9754080Z     Object: ‘vendor/cigraph/vendor/glpk/proxy/main.o’
2024-05-06T13:51:49.9754600Z   Found ‘_puts’, possibly from ‘printf’ (C), ‘puts’ (C)
2024-05-06T13:51:49.9755120Z     Object: ‘vendor/cigraph/vendor/glpk/proxy/main.o’
2024-05-06T13:51:49.9758090Z   Found ‘_sprintf’, possibly from ‘sprintf’ (C)
2024-05-06T13:51:49.9758590Z     Objects: ‘vendor/cigraph/vendor/glpk/api/cplex.o’,
2024-05-06T13:51:49.9759150Z       ‘vendor/cigraph/vendor/glpk/api/mps.o’,
2024-05-06T13:51:49.9759580Z       ‘vendor/cigraph/vendor/glpk/api/prrngs.o’,
2024-05-06T13:51:49.9760050Z       ‘vendor/cigraph/vendor/glpk/draft/glpios01.o’,
2024-05-06T13:51:49.9760560Z       ‘vendor/cigraph/vendor/glpk/mpl/mpl3.o’
2024-05-06T13:51:49.9761030Z   Found ‘_vsprintf’, possibly from ‘vsprintf’ (C)
2024-05-06T13:51:49.9761500Z     Objects: ‘vendor/cigraph/vendor/glpk/env/stdout.o’,
2024-05-06T13:51:49.9762020Z       ‘vendor/cigraph/vendor/glpk/env/stream.o’
2024-05-06T13:51:49.9762250Z 
2024-05-06T13:51:49.9762570Z Compiled code should not call entry points which might terminate R nor
2024-05-06T13:51:49.9763200Z write to stdout/stderr instead of to the console, nor use Fortran I/O
2024-05-06T13:51:49.9763820Z nor system RNGs nor [v]sprintf.
2024-05-06T13:51:49.9764370Z See ‘Writing portable packages’ in the ‘Writing R Extensions’ manual.
szhorvat commented 2 months ago

This happens specifically on macOS, where for some reason it's using the vendored GLPK. I mentioned it here: https://github.com/igraph/rigraph/pull/1347#issuecomment-2085374207

It happens either because GLPK is not available in that build image or because it is available but our configure script doesn't properly detect it. I can't see anything wrong with the configure script, so I suppose it's the first.

Note: Fixing up the vendored GLPK to CRAN standards is not realistic or reasonable, what's needed is to use an external one.

maelle commented 2 weeks ago

The current failures are different, failure to install {graph} (not {igraph}) on two platforms.