From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Rainer Tammer Newsgroups: gmane.lisp.guile.bugs Subject: Re: guile 1.6.8 make check failure on AIX 6.1 Date: Mon, 04 Feb 2008 09:31:52 +0100 Organization: Schuler Pressen GmbH & Co. KG Message-ID: <47A6CD78.8040008@tammer.net> References: <47A45E2D.8080201@tammer.net> <873as9oay6.fsf@ossau.uklinux.net> <47A6C151.1020808@tammer.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1202113932 11561 80.91.229.12 (4 Feb 2008 08:32:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 4 Feb 2008 08:32:12 +0000 (UTC) Cc: bug-guile@gnu.org To: Neil Jerram Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Mon Feb 04 09:32:34 2008 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JLwkj-0004An-Q1 for guile-bugs@m.gmane.org; Mon, 04 Feb 2008 09:32:34 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JLwkH-0004Vl-Mr for guile-bugs@m.gmane.org; Mon, 04 Feb 2008 03:32:05 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JLwkD-0004VR-Ar for bug-guile@gnu.org; Mon, 04 Feb 2008 03:32:01 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JLwkB-0004UY-N0 for bug-guile@gnu.org; Mon, 04 Feb 2008 03:32:01 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JLwkB-0004UT-J3 for bug-guile@gnu.org; Mon, 04 Feb 2008 03:31:59 -0500 Original-Received: from ifw.schulergroup.com ([212.87.143.254]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JLwkB-0006TU-VU for bug-guile@gnu.org; Mon, 04 Feb 2008 03:32:00 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by ifw.schulergroup.com (Postfix) with ESMTP id 7B6ACD03039D; Mon, 4 Feb 2008 09:31:58 +0100 (CET) Original-Received: from ifw.schulergroup.com ([127.0.0.1]) by localhost (ifw [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17234-05; Mon, 4 Feb 2008 09:31:57 +0100 (CET) Original-Received: from saturn.schuler.de (unknown [153.3.1.198]) by ifw.schulergroup.com (Postfix) with ESMTP id 322D7D030389; Mon, 4 Feb 2008 09:31:57 +0100 (CET) Original-Received: from [153.3.21.50] (rt.schuler.de [153.3.21.50]) by saturn.schuler.de (8.12.11.20060308/8.12.7/SuSE Linux 0.6) with ESMTP id m148VqXZ028712; Mon, 4 Feb 2008 09:31:52 +0100 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8.1.3) Gecko/20070326 Thunderbird/2.0.0.0 Mnenhy/0.7.5.0 In-Reply-To: <47A6C151.1020808@tammer.net> X-Virus-Scanned: by amavisd-new X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 X-BeenThere: bug-guile@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:3765 Archived-At: Hello Neil, sorry to bother you again... Now I have another error: cc1: warnings being treated as errors numbers.c: In function 'guile_ieee_init': numbers.c:617: warning: dereferencing type-punned pointer will break strict-aliasing rules numbers.c:640: warning: dereferencing type-punned pointer will break strict-aliasing rules numbers.c: In function 'scm_exp': numbers.c:6081: error: '__I' undeclared (first use in this function) numbers.c:6081: error: (Each undeclared identifier is reported only once numbers.c:6081: error: for each function it appears in.) The error in line 617/640 could be resolved by an -fno-strict-aliasing but the error in line 6081 is a real one... #define SCM_COMPLEX_VALUE(z) \ (SCM_COMPLEX_REAL (z) + _Complex_I * SCM_COMPLEX_IMAG (z)) The problem is in _Complex_I AIX 6.1 defines in complex.h /*. * a constant expression of type const float _Complex with the * value of the imaginary unit. (a number i such that i**2 =-1). * __I is provided by the AIX xlc C99 compiler. * WARNING: DO NOT USE __I DIRECTLY in an application. Always * use _Complex_I . */ #define _Complex_I __I Would it be possible to changed this: From gcc doc: To write a constant with a complex data type, use the suffix `i' or `j' (either one; they are equivalent). For example, |2.5fi| has type |_Complex float| and |3i| has type |_Complex int|. Such a constant always has a pure imaginary value, but you can form any complex value you like by adding one to a real constant. This is a GNU extension; if you have an ISO C99 conforming C library (such as GNU libc), and want to construct complex constants of floating type, you should include || and use the macros |I| or |_Complex_I| instead. #define SCM_COMPLEX_VALUE(z) \ (SCM_COMPLEX_REAL (z) + _Complex_I * SCM_COMPLEX_IMAG (z)) #define SCM_COMPLEX_VALUE(z) \ (SCM_COMPLEX_REAL (z) + 1.0fi * SCM_COMPLEX_IMAG (z)) The second version works with gcc 4.2.2 and IBM XL C/C++ 9.0 Bye Rainer