From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eric LeBlanc Newsgroups: gmane.emacs.bugs Subject: bug#25141: Compilation issue on AIX 7.1 and 64 bits Date: Sun, 25 Dec 2016 14:42:41 +0000 Message-ID: References: , <83inqaz8zp.fsf@gnu.org> , <83wpepxq72.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="_000_YQXPR01MB0197A7E922D98266057C8086D3970YQXPR01MB0197CANP_" X-Trace: blaine.gmane.org 1482676998 18010 195.159.176.226 (25 Dec 2016 14:43:18 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 25 Dec 2016 14:43:18 +0000 (UTC) Cc: "25141@debbugs.gnu.org" <25141@debbugs.gnu.org> To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Dec 25 15:43:14 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cLA0y-0003iM-Uu for geb-bug-gnu-emacs@m.gmane.org; Sun, 25 Dec 2016 15:43:09 +0100 Original-Received: from localhost ([::1]:47086 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cLA13-0001JX-Mw for geb-bug-gnu-emacs@m.gmane.org; Sun, 25 Dec 2016 09:43:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47812) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cLA0x-0001JC-6r for bug-gnu-emacs@gnu.org; Sun, 25 Dec 2016 09:43:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cLA0s-00011T-VP for bug-gnu-emacs@gnu.org; Sun, 25 Dec 2016 09:43:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:39040) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cLA0s-00011P-S9 for bug-gnu-emacs@gnu.org; Sun, 25 Dec 2016 09:43:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cLA0s-0005gA-Bq for bug-gnu-emacs@gnu.org; Sun, 25 Dec 2016 09:43:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eric LeBlanc Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 25 Dec 2016 14:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25141 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 25141-submit@debbugs.gnu.org id=B25141.148267697121811 (code B ref 25141); Sun, 25 Dec 2016 14:43:02 +0000 Original-Received: (at 25141) by debbugs.gnu.org; 25 Dec 2016 14:42:51 +0000 Original-Received: from localhost ([127.0.0.1]:54439 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cLA0g-0005fj-PN for submit@debbugs.gnu.org; Sun, 25 Dec 2016 09:42:51 -0500 Original-Received: from col004-omc4s6.hotmail.com ([65.55.34.208]:58565) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cLA0e-0005fV-L6 for 25141@debbugs.gnu.org; Sun, 25 Dec 2016 09:42:49 -0500 Original-Received: from NAM02-CY1-obe.outbound.protection.outlook.com ([65.55.34.200]) by COL004-OMC4S6.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.23008); Sun, 25 Dec 2016 06:42:42 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=ji/7+PyFtdDu+nc6SQXJtc0J5goY6lu2irShQdEhVIg=; b=Frc7AXNUyC38x07v9kI20QwAgUa/BGcmXEFp01Tpy9LSj6Qb2TMt+IL66ChBR+vNc10NzXj2sX/D2bMG0kQdWR8/krhI+NCJJZRiIazadhisVB070hpyIshvcVK8taUQv+PGg6lFI4HydCHPE6ilTOcicHV46eCgKgsCGFA9zYItT6so1DZwc5Td7aMKZmQpQ1kJ5WN2zjG6VMEOgqVBtrEnizeRJguzS5KeROW8BZGjmIr53+XjyoyRHgUdJSngL2hCse9LenEG+j961fvaOyYWqDAy3EHgdq4QzYI/36be0S/ep1o4CYVzuM4pMKYBZxbgY7i5fWKmPnZbCK+oIg== Original-Received: from CY1NAM02FT004.eop-nam02.prod.protection.outlook.com (10.152.74.58) by CY1NAM02HT100.eop-nam02.prod.protection.outlook.com (10.152.74.97) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.789.10; Sun, 25 Dec 2016 14:42:41 +0000 Original-Received: from YQXPR01MB0197.CANPRD01.PROD.OUTLOOK.COM (10.152.74.55) by CY1NAM02FT004.mail.protection.outlook.com (10.152.74.112) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.789.10 via Frontend Transport; Sun, 25 Dec 2016 14:42:41 +0000 Original-Received: from YQXPR01MB0197.CANPRD01.PROD.OUTLOOK.COM ([10.165.131.11]) by YQXPR01MB0197.CANPRD01.PROD.OUTLOOK.COM ([10.165.131.11]) with mapi id 15.01.0803.018; Sun, 25 Dec 2016 14:42:41 +0000 Thread-Topic: Compilation issue on AIX 7.1 and 64 bits Thread-Index: AQHSUZPjczZhuukjK0+8xq/i9Bx3yaEWEwYSgAElLfaAACWEGIABeWOA In-Reply-To: <83wpepxq72.fsf@gnu.org> Accept-Language: en-CA, en-US Content-Language: en-CA X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: debbugs.gnu.org; dkim=none (message not signed) header.d=none;debbugs.gnu.org; dmarc=none action=none header.from=hotmail.com; x-incomingtopheadermarker: OriginalChecksum:5961E8A7333226C961F0DC4A8054A695E65CC5819EF0E85883B519BC372FAF9A; UpperCasedChecksum:FEB0F5F78EC25D5A9494AE354B4762FA53736BC6D34161FF0E760EF6E098EC3D; SizeAsReceived:7594; Count:40 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [h2h1eApuUhEF+z0q+meKDOjc27w2q8FYoVwc4ElcnMA=] x-incomingheadercount: 40 x-eopattributedmessage: 0 x-microsoft-exchange-diagnostics: 1; CY1NAM02HT100; 7:I3D78ayXf4IhANj3aMDEWx0qTSynxqvJHoXfw29D9JEItTwgglAC92Kh6ZUUrzTeMbfq7BFB+jIEiR2IkgSSwmKq3rEGPg6gGqOa3YSHmd8X2ExWyWVs5GkDxB1GQUcaaYiH61cE9tEFvcLV6TNypBm3zK1Q+32zMsPbzzYq9RO44VoloxMkYDcSDLPxEyFAm2Hg9PHjBr4J1P66lRbcTkxBPFZy0MIy+FOS1zjuY3CF6l8bN12ZEq668zgJPFfHFZAhD1EchkIlFprjD9D5wDII1oH6myJ5MrsokiRbpmexmTTUKll4B14afcJnk2jX5BUe65WJhLK306FrvvZuf+3dO6yaQvdPOvCfeyB/3d6nZ74GGIK75THytmOxFLnRXP6zTRkeEZyF3HS/Sey3JccNs+6LUgafpfNK4u0Sf9hhTuiEVEqW8zjBYq5v69UxMAIlSl83/5elZBra+/uwMg== x-forefront-antispam-report: EFV:NLI; SFV:NSPM; SFS:(10019020)(98900003); DIR:OUT; SFP:1102; SCL:1; SRVR:CY1NAM02HT100; H:YQXPR01MB0197.CANPRD01.PROD.OUTLOOK.COM; FPR:; SPF:None; LANG:en; x-ms-office365-filtering-correlation-id: 31ea0d01-e34f-4b47-5988-08d42cd447a8 x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(1601124038)(5061506318)(5061507293)(1603103113)(1601125047)(1603101340); SRVR:CY1NAM02HT100; x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(444111334)(444112120)(432015012)(82015046); SRVR:CY1NAM02HT100; BCL:0; PCL:0; RULEID:; SRVR:CY1NAM02HT100; x-forefront-prvs: 0167DB5752 spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM X-OriginatorOrg: hotmail.com X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Dec 2016 14:42:41.0955 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1NAM02HT100 X-OriginalArrivalTime: 25 Dec 2016 14:42:42.0938 (UTC) FILETIME=[262B7DA0:01D25EBD] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:127439 Archived-At: --_000_YQXPR01MB0197A7E922D98266057C8086D3970YQXPR01MB0197CANP_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, Probably, but I won't count too much on 32 bits binary because we tried two= RPM emacs packages, one from IBM website and the other from BULLFREEWARE w= ebsite and they both ended with a "Segmentation Fault" with a core dump whe= n we execute "emacs". I also played with LDR_CNTRL variable without any success. It seems that AIX 7.1 is very memory strict with 32 bits binaries and I'm s= ure that "unexec" is doing some memory dump to the final emacs binary that = AIX 7.1 doesn't like. That's why I'm tyring to compile in 64 bits. For the moment, "temacs" in 64 bits works well but slow to start. I'm stuc= k at 'unexaix' operation and I'm not an expert in XCOFF binary file. I kno= w that 'unexaix.c' isn't adapted for 64 bits binaries and I tried to make s= ome modifications as I wrote earlier by enabling __XCOFF64__ in "unexaix.c"= source code, without success since it generates a huge 4GB emacs binary, b= ut I know I'm not so far to fix it. Thank you Eric ________________________________ From: Eli Zaretskii Sent: December 24, 2016 11:11 AM To: Eric LeBlanc Cc: 25141@debbugs.gnu.org Subject: Re: Compilation issue on AIX 7.1 and 64 bits > From: Eric LeBlanc > CC: "25141@debbugs.gnu.org" <25141@debbugs.gnu.org> > Date: Sat, 24 Dec 2016 14:05:33 +0000 > Finding pointers to doc strings... > Finding pointers to doc strings...done > Dumping under the name emacs > unexec: couldn't find ", " section > Makefile:754: recipe for target 'bootstrap-emacs' failed I guess there's a deeper problem with the 64-bit build on AIX. > ./temacs --batch --load loadup bootstrap > exec(): 0509-036 Cannot load program ./temacs because of the following er= rors: > 0509-130 Symbol resolution failed for /opt/freeware/lib/libgmodule-2.0.a(= libgmodule-2.0.so.0) because: > 0509-136 Symbol __dbargs (number 13) is not exported from > dependent module /opt/freeware/lib/libglib-2.0.a(libglib-2.0.so.0). > 0509-136 Symbol __dbsubc (number 14) is not exported from This sounds like some system configuration problem? Are you sure the dynamic linker is picking up the same Glib library whose header files the compiler saw? Do you have another Glib shared libraries installed somewhere? --_000_YQXPR01MB0197A7E922D98266057C8086D3970YQXPR01MB0197CANP_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

Hi,


Probably, but I won't count too much on 32 bits binary because we tried = two RPM emacs packages, one from IBM website and the other from BULLFREEWAR= E website and they both ended with a "Segmentation Fault" with a = core dump when we execute "emacs".


I also played with LDR_CNTRL variable without any success.<= br>


It seems that AIX 7.1 is very memory strict with 32 bits binaries and I'= m sure that "unexec" is doing some memory dump to the final emacs= binary that AIX 7.1 doesn't like.


That's why I'm tyring to compile in 64 bits.


For the moment, "temacs" in 64 bits works well but slow to sta= rt.  I'm stuck at 'unexaix' operation and I'm not an expert in XCOFF b= inary file.  I know that 'unexaix.c' isn't adapted for 64 bits binarie= s and I tried to make some modifications as I wrote earlier by enabling __XCOFF64__ in "unexa= ix.c" source code, without success since it generates a huge 4GB emacs= binary, but I know I'm not so far to fix it.


Thank you


Eric




From: Eli Zaretskii <e= liz@gnu.org>
Sent: December 24, 2016 11:11 AM
To: Eric LeBlanc
Cc: 25141@debbugs.gnu.org
Subject: Re: Compilation issue on AIX 7.1 and 64 bits
 
> From: Eric LeBlanc <cognefou@hotmail.com&g= t;
> CC: "25141@debbugs.gnu.org" <25141@debbugs.gnu.org> > Date: Sat, 24 Dec 2016 14:05:33 +0000
> Finding pointers to doc strings...
> Finding pointers to doc strings...done
> Dumping under the name emacs
> unexec: couldn't find ", " section
> Makefile:754: recipe for target 'bootstrap-emacs' failed

I guess there's a deeper problem with the 64-bit build on AIX.

> ./temacs --batch --load loadup bootstrap
> exec(): 0509-036 Cannot load program ./temacs because of the following= errors:
> 0509-130 Symbol resolution failed for /opt/freeware/lib/libgmodule-2.0= .a(libgmodule-2.0.so.0) because:
> 0509-136 Symbol __dbargs (number 13) is not exported from
> dependent module /opt/freeware/lib/libglib-2.0.a(libglib-2.0.so.0). > 0509-136 Symbol __dbsubc (number 14) is not exported from

This sounds like some system configuration problem?  Are you sure the<= br> dynamic linker is picking up the same Glib library whose header files
the compiler saw?  Do you have another Glib shared libraries installed=
somewhere?
--_000_YQXPR01MB0197A7E922D98266057C8086D3970YQXPR01MB0197CANP_--