Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

{cmath,cfloat}: present but cannot be compiled #55

Open
yurivict opened this issue May 3, 2021 · 1 comment
Open

{cmath,cfloat}: present but cannot be compiled #55

yurivict opened this issue May 3, 2021 · 1 comment

Comments

@yurivict
Copy link

yurivict commented May 3, 2021

configure prints this:

checking cmath usability... no
checking cmath presence... yes
configure: WARNING: cmath: present but cannot be compiled
configure: WARNING: cmath:     check for missing prerequisite headers?
configure: WARNING: cmath: see the Autoconf documentation
configure: WARNING: cmath:     section "Present But Cannot Be Compiled"
configure: WARNING: cmath: proceeding with the preprocessor's result
configure: WARNING: cmath: in the future, the compiler will take precedence
configure: WARNING:     ## --------------------------------------- ##
configure: WARNING:     ## Report this to couenne@list.coin-or.org ##
configure: WARNING:     ## --------------------------------------- ##
checking for cmath... yes
checking cfloat usability... no
checking cfloat presence... yes
configure: WARNING: cfloat: present but cannot be compiled
configure: WARNING: cfloat:     check for missing prerequisite headers?
configure: WARNING: cfloat: see the Autoconf documentation
configure: WARNING: cfloat:     section "Present But Cannot Be Compiled"
configure: WARNING: cfloat: proceeding with the preprocessor's result
configure: WARNING: cfloat: in the future, the compiler will take precedence
configure: WARNING:     ## --------------------------------------- ##
configure: WARNING:     ## Report this to couenne@list.coin-or.org ##
configure: WARNING:     ## --------------------------------------- ##
checking for cfloat... yes
checking cieeefp usability... no
checking cieeefp presence... no
checking for cieeefp... no
checking ieeefp.h usability... no
checking ieeefp.h presence... yes
configure: WARNING: ieeefp.h: present but cannot be compiled
configure: WARNING: ieeefp.h:     check for missing prerequisite headers?
configure: WARNING: ieeefp.h: see the Autoconf documentation
configure: WARNING: ieeefp.h:     section "Present But Cannot Be Compiled"
configure: WARNING: ieeefp.h: proceeding with the preprocessor's result
configure: WARNING: ieeefp.h: in the future, the compiler will take precedence
configure: WARNING:     ## --------------------------------------- ##
configure: WARNING:     ## Report this to couenne@list.coin-or.org ##
configure: WARNING:     ## --------------------------------------- ##
checking for ieeefp.h... yes
checking for cstdint... (cached) yes

config.log has this error:

configure:23227: c++ -c -O2 -pipe -fno-omit-frame-pointer -fstack-protector-strong -fno-strict-aliasing -fno-omit-frame-pointer    -DCOUENNE_BUILD -fno-omit-frame-pointer conftest.cc >&5
In file included from conftest.cc:41:
In file included from /usr/include/c++/v1/stdlib.h:97:
/usr/include/stdlib.h:97:1: error: function declared '[[noreturn]]' after its first declaration
_Noreturn void   exit(int);
^
/usr/include/sys/cdefs.h:280:22: note: expanded from macro '_Noreturn'
#define _Noreturn               [[noreturn]]
                                  ^
conftest.cc:17:6: note: declaration missing '[[noreturn]]' attribute is here
void exit (int);
     ^
In file included from conftest.cc:41:
In file included from /usr/include/c++/v1/stdlib.h:97:
/usr/include/stdlib.h:97:17: error: declaration of 'exit' has a different language linkage
_Noreturn void   exit(int);
                 ^
conftest.cc:17:6: note: previous declaration is here
void exit (int);
     ^
2 errors generated.
configure:23233: $? = 1

Version: 0.5.8
OS: FreeBSD 12.2
clang-10

@svigerske
Copy link
Member

These are just warnings, if I get this right.
Couenne 0.5.8 is using a very old autoconf version, but there will not be any fixed to change this for Couenne 0.5.

Couenne master has been updated to use a more recent version and I hope these won't come up there.
A release from master could be made when Bonmin made a new release from its current master, which waits for release of Cbc 3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants