Bug 20244 - isinf() check fails when compiling with CLANG
Summary: isinf() check fails when compiling with CLANG
Status: RESOLVED FIXED
Alias: None
Product: Runtime
Classification: Mono
Component: packaging ()
Version: 3.2.x
Hardware: PC Other
: --- normal
Target Milestone: ---
Assignee: Duncan Mak
URL:
Depends on:
Blocks:
 
Reported: 2014-05-31 23:35 UTC by Kyle Edwards
Modified: 2014-08-05 15:16 UTC (History)
4 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
Patch to fix the isinf() test in configure.ac (890 bytes, patch)
2014-06-01 12:24 UTC, Kyle Edwards
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Kyle Edwards 2014-05-31 23:35:02 UTC
When compiling with the CLANG compiler on FreeBSD 10, the configure.ac check for isinf() fails with the message "error: controlling expression type 'int' not compatible with any generic association type".

This is because the script checks using "isinf(1)", and CLANG does not automatically convert this to a float or double, and gets mad about it. Annoying, I know.

I have a patch I'm currently testing that changes this to "isinf(1.0)". I will post it if Mono successfully compiles on my machine.
Comment 1 Kyle Edwards 2014-06-01 12:24:22 UTC
Created attachment 6940 [details]
Patch to fix the isinf() test in configure.ac

Alright, I tested my patch and it made Mono compile successfully under CLANG on my FreeBSD 10 machine. I've attached the proposed patch.
Comment 2 Zoltan Varga 2014-06-03 10:08:09 UTC
Applied in 5d0df9e2c0be5b2376d96bc90dee4edd43152afe. Thanks.
Comment 4 Zoltan Varga 2014-08-05 15:16:51 UTC
This can be set to verified fixed.