coin-or / Bcp

Branch-Cut-Price Framework
Other
26 stars 13 forks source link

Configure error in Bcp / OS #21

Closed svigerske closed 5 years ago

svigerske commented 5 years ago

Issue created by migration from Trac.

Original creator: Gassmann

Original creation time: 2009-05-21 19:55:00

Assignee: somebody

Version:

The following error shows up when I configure OS under Ubuntu:

configure: WARNING: sys/sysinfo.h: present but cannot be compiled configure: WARNING: sys/sysinfo.h: check for missing prerequisite headers? configure: WARNING: sys/sysinfo.h: see the Autoconf documentation configure: WARNING: sys/sysinfo.h: section "Present But Cannot Be Compiled" configure: WARNING: sys/sysinfo.h: proceeding with the preprocessor's result configure: WARNING: sys/sysinfo.h: in the future, the compiler will take precedence configure: WARNING: ## --------------------------------------------------------- ## configure: WARNING: ## Report this to https://projects.coin-or.org/Bcp/newticket ## configure: WARNING: ## --------------------------------------------------------- ##

My system may be nonstandard: I am running under Vista 64, VMware Workstation 6.5.2 and Ubuntu 64. The file system is controlled by Vista and is available to Ubuntu under the //mnt hierarchy as a linked folder.

svigerske commented 5 years ago

Comment by ladanyi created at 2009-06-04 03:48:59

Hello,

Could you provide some more info? Which version of ubuntu are you using? The problem is that before sys/sysinfo.h is tested I need to test for some other header, but I don't know which header to test for. On ubuntu 8.04 (32-bit) this issue does not come up. Look at this post and its follow-ups: http://gmplib.org/list-archives/gmp-bugs/2007-October/000852.html. Could I login to your setup so that I could test it?

Thanks, --Laci

svigerske commented 5 years ago

Comment by ladanyi created at 2009-06-04 03:48:59

Changing assignee from somebody to ladanyi.

svigerske commented 5 years ago

Comment by ladanyi created at 2009-06-04 03:48:59

Changing status from new to assigned.

svigerske commented 5 years ago

Comment by ladanyi created at 2009-06-04 19:44:32

Cannot be fixed on Bcp's end.

sys/sysinfo.h includes kernel.h that defines 'struct sysinfo', which has a member 'char _f[20-2*sizeof(long)-sizeof(int)];', which resolves to 'char _f[0];' on a 64-bit platform.

When configure is run, -pedantic-errors is used and then compiling 'char _f[0];' fails. This triggers the warning. Fortunately, Bcp is compiled without -pedantic-errors, so Bcp still compiles just fine.

Still, it would be good to find a solution that compiles and runs even with -pedantic-errors. sysinfo is used only to find out the amount of free memory.

--Laci

svigerske commented 5 years ago

Comment by ladanyi created at 2009-06-04 19:44:32

Resolution: wontfix