From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS22989 209.51.188.0/24 X-Spam-Status: No, score=-3.9 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 682451F4C0 for ; Tue, 15 Oct 2019 04:08:56 +0000 (UTC) Received: from localhost ([::1]:60338 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iKE8l-0000W4-Jr for normalperson@yhbt.net; Tue, 15 Oct 2019 00:08:55 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57682) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iKE8g-0000T8-UG for bug-gnulib@gnu.org; Tue, 15 Oct 2019 00:08:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iKE8f-0004Kc-Uz for bug-gnulib@gnu.org; Tue, 15 Oct 2019 00:08:50 -0400 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:51548) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iKE8d-0004Is-6l; Tue, 15 Oct 2019 00:08:47 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 453E7160511; Mon, 14 Oct 2019 21:08:42 -0700 (PDT) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id ccP84sLqRhvx; Mon, 14 Oct 2019 21:08:41 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 6B28E16059A; Mon, 14 Oct 2019 21:08:41 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id QZotgrGgrxsR; Mon, 14 Oct 2019 21:08:41 -0700 (PDT) Received: from [192.168.1.9] (cpe-23-242-74-103.socal.res.rr.com [23.242.74.103]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 423F7160511; Mon, 14 Oct 2019 21:08:41 -0700 (PDT) Subject: Re: Error compiling bison 3.4.2 on Solaris To: Dagobert Michelsen References: <549DBF9A-8067-4209-BCED-650B07677088@baltic-online.de> From: Paul Eggert Organization: UCLA Computer Science Department Message-ID: <0280814f-be23-4067-6771-a4f97e54ef43@cs.ucla.edu> Date: Mon, 14 Oct 2019 21:08:36 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <549DBF9A-8067-4209-BCED-650B07677088@baltic-online.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 131.179.128.68 X-BeenThere: bug-gnulib@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Gnulib discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: bug-gnulib@gnu.org, bug-bison@gnu.org Errors-To: bug-gnulib-bounces+normalperson=yhbt.net@gnu.org Sender: "bug-gnulib" On 10/14/19 1:32 AM, Dagobert Michelsen wrote: > I guess nowadays int is always 64 bit No, it's 32 bits on that platform. > I am trying to compile the most recent bison 3.4.2 on Solaris 10 Sparc and i386 with Sun Studio > and get the error > > CC src/bison-state.o > "./lib/inttypes.h", line 61: #error: "This file assumes that 'int' has exactly 32 bits. Please report your platform and compiler to ." > cc: acomp failed for src/state.c > gmake[2]: *** [Makefile:7088: src/bison-state.o] Error 2 I'm not seeing that problem on Solaris 10 sparc with Oracle Developer Studio 12.6 (a.k.a. Sun Studio). I built Bison 3.4.2 as follows: export PATH=/usr/bin:/usr/sbin:/usr/ccs/bin:/r/share1/src/developerstudio12.6/bin ./configure M4=/usr/sfw/bin/gm4 where the Oracle compiler was installed in /r/share1/src/developerstudio12.6. How did you build Bison? Also, what's the output of 'cc -E' on the following input, when you use your compiler with the same flags that you used to build Bison? #include #include #include !(INT_MIN == INT32_MIN && INT_MAX == INT32_MAX) For me, the output ends like this: !( ( - 2147483647 - 1 ) == ( - 2147483647 - 1 ) && 2147483647 == ( 2147483647 )) #ident "acomp: Studio 12.6 Sun C 5.15 SunOS_sparc 2017/05/30"