bug-m4
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: pkg/56336 (m4 fails to build on Solaris 10)


From: 箱山洋
Subject: Re: pkg/56336 (m4 fails to build on Solaris 10)
Date: Wed, 27 Oct 2021 09:35:37 +0900

Dear m4 developers,

I found a bug of m4-1.4.19 on Solaris 10 (SPARC), so I sent a bug report to 
pkgsrc (http://gnats.netbsd.org/56336).

The message says:
./m4: internal error detected; please report this bug to <bug-m4@gnu.org>: 
Illegal instruction

So, I also forward the bug report to bug-m4.


Best regards,

Hiroshi Hakoyama

-----
NetBSD Problem Report #56336

From www@netbsd.org  Thu Jul 29 23:39:06 2021
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
        (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
        (Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not 
verified))
        by mollari.NetBSD.org (Postfix) with ESMTPS id 79DF91A921F
        for <gnats-bugs@gnats.NetBSD.org>; Thu, 29 Jul 2021 23:39:06 +0000 (UTC)
Message-Id: <20210729233905.565EE1A924B@mollari.NetBSD.org>
Date: Thu, 29 Jul 2021 23:39:05 +0000 (UTC)
From: hiroshi-hakoyama@nagano.ac.jp
Reply-To: hiroshi-hakoyama@nagano.ac.jp
To: gnats-bugs@NetBSD.org
Subject: m4 fails to build on Solaris 10
X-Send-Pr-Version: www-1.0


>Number:
         56336

>Category:
       pkg

>Synopsis:
       m4 fails to build on Solaris 10

>Confidential:
   no

>Severity:
       serious

>Priority:
       medium

>Responsible:
    solaris-pkg-people

>State:
          open

>Class:
          sw-bug

>Submitter-Id:
   net

>Arrival-Date:
   Thu Jul 29 23:40:00 +0000 2021

>Last-Modified:
  Fri Jul 30 07:29:15 +0000 2021

>Originator:
     Hiroshi Hakoyama

>Release:
        pkgsrc current

>Organization:

Institute of Freshwater Biology, Nagano University

>Environment:

SunOS ec21 5.10 Generic_147147-26 sun4u sparc SUNW,Sun-Blade-1000

>Description:

m4 was updated to m4-1.4.19 and a build error occured.

# cd /usr/pkgsrc/devel/m4
# make
...
  CC       stackvma.o
In file included from stackvma.c:1476:0:
/usr/include/sys/procfs.h:44:2: error: #error "Cannot use procfs in the large 
file compilation environment"
 #error "Cannot use procfs in the large file compilation environment"
  ^
*** Error code 1
...

This error is similar to the report at 
https://lists.gnu.org/r/bug-m4/2021-05/msg00020.html
https://lists.gnu.org/r/bug-m4/2021-05/txtSlhgMVQhua.txt

So, I patched ./lib/stackvma.c like:

--- lib/stackvma.c.orig
+++ lib/stackvma.c
@@ -17,6 +17,10 @@

 #include <config.h>

+#if defined __sun || defined __ANDROID__
+# undef _FILE_OFFSET_BITS
+#endif
+
 /* Specification.  */
 #include "stackvma.h"

m4 was able to built by this patch, but the execution of m4 showed an error:

# ./m4
*** stack smashing detected ***:  terminated
./m4: internal error detected; please report this bug to <bug-m4@gnu.org>: 
Illegal instruction

# /usr/pkgsrc/devel/m4/work/.destdir/usr/pkg/bin/gm4 
*** stack smashing detected ***:  terminated
/usr/pkgsrc/devel/m4/work/.destdir/usr/pkg/bin/gm4: internal error detected; 
please report this bug to <bug-m4@gnu.org>: Illegal instruction


>How-To-Repeat:

(1)
# cd /usr/pkgsrc/devel/m4
# make

(2)

patch stackvma.c

--- lib/stackvma.c.orig
+++ lib/stackvma.c
@@ -17,6 +17,10 @@

 #include <config.h>

+#if defined __sun || defined __ANDROID__
+# undef _FILE_OFFSET_BITS
+#endif
+
 /* Specification.  */
 #include "stackvma.h"

# cd /usr/pkgsrc/devel/m4
# make



>Fix:

unknown


>Release-Note:



>Audit-Trail:


Responsible-Changed-From-To: pkg-manager->solaris-pkg-people
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Fri, 30 Jul 2021 07:29:15 +0000
Responsible-Changed-Why:
Solaris pkgsrc problem



>Unformatted:













reply via email to

[Prev in Thread] Current Thread [Next in Thread]