unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#25141: Compilation issue on AIX 7.1 and 64 bits
@ 2016-12-08 18:20 Eric LeBlanc
  2016-12-08 20:48 ` Eric LeBlanc
  2016-12-25  7:31 ` Paul Eggert
  0 siblings, 2 replies; 10+ messages in thread
From: Eric LeBlanc @ 2016-12-08 18:20 UTC (permalink / raw)
  To: 25141

[-- Attachment #1: Type: text/plain, Size: 12078 bytes --]

Hi,

I'm trying to compile emacs 64 bits on AIX 7.1 .


Versions tools used:


gcc-cpp-6.2.0-1
libgcc-6.2.0-1
gcc-6.2.0-1
binutils-2.25.1-2
glib2-2.48.1-1
glib2-devel-2.48.1-1
libstdc++-6.2.0-1
gmp-6.1.1-1
gmp-devel-6.1.1-1

I configured environment variables like this:

export CPPFLAGS=" -I/opt/freeware/include -I/usr/include -maix64"
export LDFLAGS="-L/usr/lib64 -L/opt/freeware/lib64 -maix64"
export CFLAGS=" -I/opt/freeware/include -I/usr/include -maix64"
export OBJECT_MODE=64

Then I did this:

./configure --prefix=/usr/local/emacs --with-jpeg=no --with-png=no --with-gif=no --with-tiff=no --with-x=no

It went without any issues and I launched gmake:

gmake -C lib all
gmake[1]: Entering directory '/data/src/emacs-25.1/lib'
  GEN      alloca.h
  GEN      byteswap.h
  GEN      c++defs.h
  GEN      arg-nonnull.h
  GEN      warn-on-use.h
  GEN      dirent.h
  GEN      execinfo.h
  GEN      fcntl.h
  GEN      getopt.h
  GEN      inttypes.h
  GEN      signal.h
  GEN      stdio.h
  GEN      stdlib.h
  GEN      string.h
  GEN      sys/select.h
  GEN      sys/stat.h
  GEN      sys/time.h
  GEN      sys/types.h
  GEN      time.h
  GEN      unistd.h
gmake  all-am
gmake[2]: Entering directory '/data/src/emacs-25.1/lib'
  CC       acl-errno-valid.o
  CC       acl-internal.o
  CC       get-permissions.o
  CC       set-permissions.o
  CC       allocator.o
  CC       binary-io.o
  CC       c-ctype.o
  CC       c-strcasecmp.o
  CC       c-strncasecmp.o
  CC       careadlinkat.o
  CC       close-stream.o
  CC       count-one-bits.o
  CC       count-trailing-zeros.o
  CC       md5.o
  CC       sha1.o
  CC       sha256.o
  CC       sha512.o
  CC       dtoastr.o
  CC       dtotimespec.o
  CC       filemode.o
  CC       gettime.o
  CC       pipe2.o
  CC       qcopy-acl.o
  CC       stat-time.o
  CC       strftime.o
  CC       tempname.o
  CC       timespec.o
  CC       timespec-add.o
  CC       timespec-sub.o
  CC       u64.o
  CC       unistd.o
  CC       utimens.o
  CC       openat-die.o
  CC       save-cwd.o
  CC       dup2.o
  CC       execinfo.o
  CC       fcntl.o
  CC       fpending.o
  CC       fstatat.o
  CC       getloadavg.o
  CC       getopt.o
  CC       getopt1.o
  CC       lstat.o
  CC       memrchr.o
  CC       mkostemp.o
  CC       mktime.o
  CC       openat-proc.o
  CC       readlink.o
  CC       readlinkat.o
  CC       secure_getenv.o
  CC       sig2str.o
  CC       stat.o
  CC       symlink.o
  CC       time_rz.o
  CC       timegm.o
  AR       libgnu.a
gmake[2]: Leaving directory '/data/src/emacs-25.1/lib'
gmake[1]: Leaving directory '/data/src/emacs-25.1/lib'
gmake -C lib-src all
gmake[1]: Entering directory '/data/src/emacs-25.1/lib-src'
  CC       regex.o
  CCLD     etags
  CCLD     ctags
  CCLD     emacsclient
  CCLD     ebrowse
  CCLD     profile
  CC       pop.o
  CCLD     movemail
  CCLD     hexl
  CCLD     update-game-score
  CCLD     make-docfile
gmake[1]: Leaving directory '/data/src/emacs-25.1/lib-src'
gmake -C src VCSWITNESS='' all
gmake[1]: Entering directory '/data/src/emacs-25.1/src'
  GEN      globals.h
  CC       vm-limit.o
  CC       dispnew.o
  CC       frame.o
  CC       scroll.o
  CC       xdisp.o
  CC       menu.o
  CC       window.o
  CC       charset.o
  CC       coding.o
  CC       category.o
  CC       ccl.o
  CC       character.o
  CC       chartab.o
  CC       bidi.o
  CC       cm.o
  CC       term.o
  CC       terminal.o
  CC       xfaces.o
  CC       emacs.o
  CC       keyboard.o
  CC       macros.o
  CC       keymap.o
  CC       sysdep.o
sysdep.c: In function 'stuff_char':
sysdep.c:246:36: warning: overflow in implicit constant conversion [-Woverflow]
   ioctl (fileno (CURTTY()->input), TIOCSTI, &c);
                                    ^~~~~~~
sysdep.c: In function 'set_window_size':
sysdep.c:1267:21: warning: overflow in implicit constant conversion [-Woverflow]
   return ioctl (fd, TIOCSWINSZ, &size);
                     ^~~~~~~~~~
  CC       buffer.o
  CC       filelock.o
filelock.c: In function 'get_boot_time_1':
filelock.c:264:17: warning: passing argument 1 of 'utmpname' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
       utmpname (filename);
                 ^~~~~~~~
In file included from filelock.c:59:0:
/usr/include/utmp.h:144:13: note: expected 'char *' but argument is of type 'const char *'
 extern int  utmpname(char *);
             ^~~~~~~~
  CC       insdel.o
  CC       marker.o
  CC       minibuf.o
  CC       fileio.o
  CC       dired.o
  CC       cmds.o
  CC       casetab.o
  CC       casefiddle.o
  CC       indent.o
  CC       search.o
  CC       regex.o
  CC       undo.o
  CC       alloc.o
  CC       data.o
  GEN      buildobj.h
  CC       doc.o
  CC       editfns.o
  CC       callint.o
  CC       eval.o
  CC       floatfns.o
  CC       fns.o
  CC       font.o
  CC       print.o
  CC       lread.o
  CC       syntax.o
  CC       unexaix.o
unexaix.c: In function 'make_hdr':
unexaix.c:248:52: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
    ERROR1 ("unexec: couldn't find \"%s\" section", (int) _TEXT);
                                                    ^
unexaix.c:103:49: note: in definition of macro 'ERROR1'
 #define ERROR1(msg,x) report_error_1 (new, msg, x)
                                                 ^
unexaix.c:252:52: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
    ERROR1 ("unexec: couldn't find \"%s\" section", (int) _DATA);
                                                    ^
unexaix.c:103:49: note: in definition of macro 'ERROR1'
 #define ERROR1(msg,x) report_error_1 (new, msg, x)
                                                 ^
unexaix.c:256:52: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
    ERROR1 ("unexec: couldn't find \"%s\" section", (int) _BSS);
                                                    ^
unexaix.c:103:49: note: in definition of macro 'ERROR1'
 #define ERROR1(msg,x) report_error_1 (new, msg, x)
                                                 ^
unexaix.c: In function 'copy_text_and_data':
unexaix.c:385:9: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
   ptr = (char *) f_ohdr.data_start;
         ^
unexaix.c: In function 'write_segment':
unexaix.c:402:18: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
       nwrite = (((int) ptr + UnexBlockSz) & -UnexBlockSz) - (int) ptr;
                  ^
unexaix.c:402:61: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
       nwrite = (((int) ptr + UnexBlockSz) & -UnexBlockSz) - (int) ptr;
                                                             ^
  CC       bytecode.o
  CC       process.o
process.c: In function 'create_process':
process.c:1859:19: warning: overflow in implicit constant conversion [-Woverflow]
    ioctl (forkin, TIOCSETD, &ldisc);
                   ^~~~~~~~
  CC       gnutls.o
  CC       callproc.o
  CC       region-cache.o
  CC       sound.o
  CC       atimer.o
  CC       doprnt.o
  CC       intervals.o
  CC       textprop.o
  CC       composite.o
  CC       xml.o
  CC       gfilenotify.o
  CC       profiler.o
  CC       decompress.o
  CC       xgselect.o
  CC       terminfo.o
  CC       lastfile.o
  CC       gmalloc.o
  CC       ralloc.o
gmake -C ../admin/charsets all
gmake[2]: Entering directory '/data/src/emacs-25.1/admin/charsets'
  GEN      ../../etc/charsets/JISX2131.map
  GEN      ../../etc/charsets/ALTERNATIVNYJ.map
  GEN      charsets.stamp
gmake[2]: Leaving directory '/data/src/emacs-25.1/admin/charsets'
gmake -C ../admin/unidata charscript.el
gmake[2]: Entering directory '/data/src/emacs-25.1/admin/unidata'
gmake[2]: Nothing to be done for 'charscript.el'.
gmake[2]: Leaving directory '/data/src/emacs-25.1/admin/unidata'
  CCLD     temacs
../build-aux/install-sh -c -d ../etc
gmake -C ../lisp update-subdirs
gmake[2]: Entering directory '/data/src/emacs-25.1/lisp'
gmake[2]: Leaving directory '/data/src/emacs-25.1/lisp'
./temacs --batch --load loadup bootstrap
Loading loadup.el (source)...
Using load-path (/data/src/emacs-25.1/lisp /data/src/emacs-25.1/lisp/emacs-lisp /data/src/emacs-25.1/lisp/language /data/src/emacs-25.1/lisp/international /data/src/emacs-25.1/lisp/textmodes /data/src/emacs-25.1/lisp/vc)
Loading emacs-lisp/byte-run...
Loading emacs-lisp/backquote...
Loading subr...
Loading version...
Loading widget...
Loading custom...
Loading emacs-lisp/map-ynp...
Loading international/mule...
Loading international/mule-conf...
Loading env...
Loading format...
Loading bindings...
Loading window...
Loading files...
Loading emacs-lisp/macroexp...
Loading cus-face...
Loading faces...
Loading button...
Loading /data/src/emacs-25.1/lisp/loaddefs.el (source)...
Loading emacs-lisp/nadvice...
Loading emacs-lisp/cl-preloaded...
Loading minibuffer...
Loading abbrev...
Loading simple...
Loading help...
Loading jka-cmpr-hook...
Loading epa-hook...
Loading international/mule-cmds...
Loading case-table...
Loading /data/src/emacs-25.1/lisp/international/charprop.el (source)...
Loading international/characters...
Loading composite...
Loading language/chinese...
Loading language/cyrillic...
Loading language/indian...
Loading language/sinhala...
Loading language/english...
Loading language/ethiopic...
Loading language/european...
Loading language/czech...
Loading language/slovak...
Loading language/romanian...
Loading language/greek...
Loading language/hebrew...
Loading international/cp51932...
Loading international/eucjp-ms...
Loading language/japanese...
Loading language/korean...
Loading language/lao...
Loading language/tai-viet...
Loading language/thai...
Loading language/tibetan...
Loading language/vietnamese...
Loading language/misc-lang...
Loading language/utf-8-lang...
Loading language/georgian...
Loading language/khmer...
Loading language/burmese...
Loading language/cham...
Loading indent...
Loading emacs-lisp/cl-generic...
Loading frame...
Loading startup...
Loading term/tty-colors...
Loading font-core...
Loading facemenu...
Loading emacs-lisp/syntax...
Loading font-lock...
Loading jit-lock...
Loading mouse...
Loading select...
Loading emacs-lisp/timer...
Loading isearch...
Loading rfn-eshadow...
Loading menu-bar...
Loading emacs-lisp/lisp...
Loading textmodes/page...
Loading register...
Loading textmodes/paragraphs...
Loading progmodes/prog-mode...
Loading emacs-lisp/lisp-mode...
Loading progmodes/elisp-mode...
Loading textmodes/text-mode...
Loading textmodes/fill...
Loading newcomment...
Loading replace...
Loading emacs-lisp/tabulated-list...
Loading buff-menu...
Loading emacs-lisp/float-sup...
Loading vc/vc-hooks...
Loading vc/ediff-hook...
Loading uniquify...
Loading electric...
Loading emacs-lisp/eldoc...
Loading cus-start...
Loading tooltip...
Loading /data/src/emacs-25.1/lisp/leim/leim-list.el (source)...
Finding pointers to doc strings...
Finding pointers to doc strings...done
Dumping under the name emacs
unexec: couldn't find "ÂEURÃ
                          " section
Makefile:736: recipe for target 'bootstrap-emacs' failed
gmake[1]: *** [bootstrap-emacs] Error 255
gmake[1]: Leaving directory '/data/src/emacs-25.1/src'
Makefile:398: recipe for target 'src' failed
gmake: *** [src] Error 2


temacs binary runs well but when I tries to create a emacs binary file it fails with this error message:

Dumping under the name emacs
unexec: couldn't find "ÂEURÃ
                          " section

It seems to be coming from unexaix.c, line  248:

    if (f_thdr == 0)
        {
          ERROR1 ("unexec: couldn't find \"%s\" section", (int) _TEXT);
        }

Thank you

Eric









[-- Attachment #2: Type: text/html, Size: 22915 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* bug#25141: Compilation issue on AIX 7.1 and 64 bits
  2016-12-08 18:20 bug#25141: Compilation issue on AIX 7.1 and 64 bits Eric LeBlanc
@ 2016-12-08 20:48 ` Eric LeBlanc
  2016-12-23 20:27   ` Eli Zaretskii
  2016-12-25  7:31 ` Paul Eggert
  1 sibling, 1 reply; 10+ messages in thread
From: Eric LeBlanc @ 2016-12-08 20:48 UTC (permalink / raw)
  To: 25141@debbugs.gnu.org

[-- Attachment #1: Type: text/plain, Size: 906 bytes --]

Hi,


If it could helps:

I modified unexaix.c to add this at the top of file:


#define __XCOFF64__ 1


And changed this line:


auxentry.x_sym.x_fcnary.x_fcn.x_lnnoptr += bias;


by


auxentry.x_fcn.x_lnnoptr += bias;


It worked but generated a huge bootstrap-emacs file, 4GB and is generating this error:


[...]

Finding pointers to doc strings...
Finding pointers to doc strings...done
Dumping under the name emacs
82139 pure bytes used
[...]

gmake[2]: Entering directory '/data/src/emacs-25.1/leim'
  GEN      ../lisp/leim/leim-list.el
exec(): 0509-036 Cannot load program ../src/bootstrap-emacs because of the following errors:
        0509-026 System error: There is not enough memory available now.



Size of the file:


$ ls -l src/bootstrap-emacs

-rwxr-xr-x    1 gen01571 staff    4050705370 Dec 08 15:46 src/bootstrap-emacs


Thank you



[-- Attachment #2: Type: text/html, Size: 1941 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* bug#25141: Compilation issue on AIX 7.1 and 64 bits
  2016-12-08 20:48 ` Eric LeBlanc
@ 2016-12-23 20:27   ` Eli Zaretskii
  2016-12-24 14:05     ` Eric LeBlanc
  0 siblings, 1 reply; 10+ messages in thread
From: Eli Zaretskii @ 2016-12-23 20:27 UTC (permalink / raw)
  To: Eric LeBlanc; +Cc: 25141

> From: Eric LeBlanc <cognefou@hotmail.com>
> Date: Thu, 8 Dec 2016 20:48:39 +0000
> I modified unexaix.c to add this at the top of file:
> 
> #define __XCOFF64__ 1
> 
> And changed this line:
> 
> auxentry.x_sym.x_fcnary.x_fcn.x_lnnoptr += bias;
> 
> by
> 
> auxentry.x_fcn.x_lnnoptr += bias;
> 
> It worked but generated a huge bootstrap-emacs file, 4GB and is generating this error:
> 
> [...]
> 
> Finding pointers to doc strings...
> Finding pointers to doc strings...done
> Dumping under the name emacs
> 82139 pure bytes used
> [...] 
> 
> gmake[2]: Entering directory '/data/src/emacs-25.1/leim'
> GEN ../lisp/leim/leim-list.el
> exec(): 0509-036 Cannot load program ../src/bootstrap-emacs because of the following errors:
> 0509-026 System error: There is not enough memory available now.

Can you try the latest emacs-25 branch?

Thanks.





^ permalink raw reply	[flat|nested] 10+ messages in thread

* bug#25141: Compilation issue on AIX 7.1 and 64 bits
  2016-12-23 20:27   ` Eli Zaretskii
@ 2016-12-24 14:05     ` Eric LeBlanc
  2016-12-24 16:11       ` Eli Zaretskii
  0 siblings, 1 reply; 10+ messages in thread
From: Eric LeBlanc @ 2016-12-24 14:05 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 25141@debbugs.gnu.org

[-- Attachment #1: Type: text/plain, Size: 9052 bytes --]

Hi,


I did this:


mkdir newbuild
cd newbuild
git clone git://git.savannah.gnu.org/emacs.git
cd emacs

export CPPFLAGS=" -I/opt/freeware/include -I/usr/include -maix64"
export LDFLAGS="-L/usr/lib64 -L/opt/freeware/lib64 -maix64"
export CFLAGS=" -I/opt/freeware/include -I/usr/include -maix64"
export OBJECT_MODE=64

./autoconf.sh
./configure --prefix=/usr/local/emacs --with-jpeg=no --with-png=no --with-gif=no --with-tiff=no --with-x=no --with-gnutls=no

gmake


[...]
gmake[1]: Entering directory '/data/src/latest/emacs/lisp'
gmake[1]: Leaving directory '/data/src/latest/emacs/lisp'
./temacs --batch  --load loadup bootstrap
Loading loadup.el (source)...
Using load-path (/data/src/latest/emacs/lisp /data/src/latest/emacs/lisp/emacs-lisp /data/src/latest/emacs/lisp/language /data/src/latest/emacs/lisp/international /data/src/latest/emacs/lisp/textmodes /data/src/latest/emacs/lisp/vc)
Loading emacs-lisp/byte-run (source)...
Loading emacs-lisp/backquote (source)...
Loading subr (source)...
Loading version (source)...
Loading widget (source)...
Loading custom (source)...
Loading emacs-lisp/map-ynp (source)...
Loading international/mule (source)...
Loading international/mule-conf (source)...
Loading env (source)...
Loading format (source)...
Loading bindings (source)...
Loading window (source)...
[...]
Loading /data/src/latest/emacs/lisp/font-lock.el (source)...
Loading /data/src/latest/emacs/lisp/jit-lock.el (source)...
Loading /data/src/latest/emacs/lisp/mouse.el (source)...
Loading /data/src/latest/emacs/lisp/select.el (source)...
Loading /data/src/latest/emacs/lisp/emacs-lisp/timer.el (source)...
Loading /data/src/latest/emacs/lisp/isearch.el (source)...
Loading /data/src/latest/emacs/lisp/rfn-eshadow.el (source)...
Loading /data/src/latest/emacs/lisp/menu-bar.el (source)...
Loading /data/src/latest/emacs/lisp/emacs-lisp/lisp.el (source)...
Loading /data/src/latest/emacs/lisp/textmodes/page.el (source)...
Loading /data/src/latest/emacs/lisp/register.el (source)...
Loading /data/src/latest/emacs/lisp/textmodes/paragraphs.el (source)...
Loading /data/src/latest/emacs/lisp/progmodes/prog-mode.el (source)...
Loading /data/src/latest/emacs/lisp/emacs-lisp/lisp-mode.el (source)...
Loading /data/src/latest/emacs/lisp/progmodes/elisp-mode.el (source)...
Loading /data/src/latest/emacs/lisp/textmodes/text-mode.el (source)...
Loading /data/src/latest/emacs/lisp/textmodes/fill.el (source)...
Loading /data/src/latest/emacs/lisp/newcomment.el (source)...
Loading /data/src/latest/emacs/lisp/replace.el (source)...
Loading /data/src/latest/emacs/lisp/emacs-lisp/tabulated-list.el (source)...
Loading /data/src/latest/emacs/lisp/buff-menu.el (source)...
Loading /data/src/latest/emacs/lisp/emacs-lisp/float-sup.el (source)...
Loading /data/src/latest/emacs/lisp/vc/vc-hooks.el (source)...
Loading /data/src/latest/emacs/lisp/vc/ediff-hook.el (source)...
Loading /data/src/latest/emacs/lisp/uniquify.el (source)...
Loading /data/src/latest/emacs/lisp/electric.el (source)...
Loading /data/src/latest/emacs/lisp/emacs-lisp/eldoc.el (source)...
Loading /data/src/latest/emacs/lisp/cus-start.el (source)...
Loading /data/src/latest/emacs/lisp/tooltip.el (source)...
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
gmake: *** [bootstrap-emacs] Error 255





However, if I try to build in 32 bits:


gmake clean


export CPPFLAGS=" -I/opt/freeware/include -I/usr/include"
export LDFLAGS="-L/opt/freeware/lib -L/usr/lib"
export CFLAGS=" -I/opt/freeware/include -I/usr/include"
export OBJECT_MODE=32


./configure --prefix=/usr/local/emacs --with-jpeg=no --with-png=no --with-gif=no --with-tiff=no --with-x=no --with-gnutls=no


[...]

gmake -C ../admin/charsets all
gmake[2]: Entering directory '/data/src/latest/emacs/admin/charsets'
gmake[2]: Nothing to be done for 'all'.
gmake[2]: Leaving directory '/data/src/latest/emacs/admin/charsets'
gmake -C ../admin/unidata charscript.el
gmake[2]: Entering directory '/data/src/latest/emacs/admin/unidata'
gmake[2]: Nothing to be done for 'charscript.el'.

gmake[2]: Leaving directory '/data/src/latest/emacs/admin/unidata'
  CCLD     temacs
../build-aux/install-sh -c -d ../etc
gmake -C ../lisp update-subdirs
gmake[2]: Entering directory '/data/src/latest/emacs/lisp'
gmake[2]: Leaving directory '/data/src/latest/emacs/lisp'
./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
                   dependent module /opt/freeware/lib/libglib-2.0.a(libglib-2.0.so.0).
        0509-136   Symbol __dbsubg (number 15) is not exported from
                   dependent module /opt/freeware/lib/libglib-2.0.a(libglib-2.0.so.0).
        0509-136   Symbol __dbsubn (number 16) is not exported from
                   dependent module /opt/freeware/lib/libglib-2.0.a(libglib-2.0.so.0).
        0509-130 Symbol resolution failed for /opt/freeware/lib/libgobject-2.0.a(libgobject-2.0.so.0) because:
        0509-136   Symbol __dbargs (number 12) is not exported from
                   dependent module /opt/freeware/lib/libglib-2.0.a(libglib-2.0.so.0).
        0509-136   Symbol __dbsubc (number 13) is not exported from
                   dependent module /opt/freeware/lib/libglib-2.0.a(libglib-2.0.so.0).
        0509-136   Symbol __dbsubg (number 14) is not exported from
                   dependent module /opt/freeware/lib/libglib-2.0.a(libglib-2.0.so.0).
        0509-136   Symbol __dbsubn (number 15) is not exported from
                   dependent module /opt/freeware/lib/libglib-2.0.a(libglib-2.0.so.0).
        0509-130 Symbol resolution failed for /opt/freeware/lib/libgio-2.0.a(libgio-2.0.so.0) because:
        0509-136   Symbol __dbargs (number 676) is not exported from
                   dependent module /opt/freeware/lib/libgobject-2.0.a(libgobject-2.0.so.0).
        0509-136   Symbol __dbsubc (number 677) is not exported from
                   dependent module /opt/freeware/lib/libgobject-2.0.a(libgobject-2.0.so.0).
        0509-136   Symbol __dbsubg (number 678) is not exported from
                   dependent module /opt/freeware/lib/libgobject-2.0.a(libgobject-2.0.so.0).
        0509-136   Symbol __dbsubn (number 679) is not exported from
                   dependent module /opt/freeware/lib/libgobject-2.0.a(libgobject-2.0.so.0).
        0509-130 Symbol resolution failed for /opt/freeware/lib/libglib-2.0.a(libglib-2.0.so.0) because:
        0509-136   Symbol __dbargs (number 187) is not exported from
                   dependent module /opt/freeware/lib/libintl.a(libintl.so.8).
        0509-136   Symbol __dbsubc (number 195) is not exported from
                   dependent module /opt/freeware/lib/libintl.a(libintl.so.8).
        0509-136   Symbol __dbsubg (number 196) is not exported from
                   dependent module /opt/freeware/lib/libintl.a(libintl.so.8).
        0509-136   Symbol __dbsubn (number 197) is not exported from
                   dependent module /opt/freeware/lib/libintl.a(libintl.so.8).
        0509-192 Examine .loader section symbols with the
                 'dump -Tv' command.
Makefile:754: recipe for target 'bootstrap-emacs' failed
gmake[1]: *** [bootstrap-emacs] Error 255
gmake[1]: Leaving directory '/data/src/latest/emacs/src'
Makefile:412: recipe for target 'src' failed
gmake: *** [src] Error 2



Thank you


Eric

________________________________
From: Eli Zaretskii <eliz@gnu.org>
Sent: December 23, 2016 3:27 PM
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>
> Date: Thu, 8 Dec 2016 20:48:39 +0000
> I modified unexaix.c to add this at the top of file:
>
> #define __XCOFF64__ 1
>
> And changed this line:
>
> auxentry.x_sym.x_fcnary.x_fcn.x_lnnoptr += bias;
>
> by
>
> auxentry.x_fcn.x_lnnoptr += bias;
>
> It worked but generated a huge bootstrap-emacs file, 4GB and is generating this error:
>
> [...]
>
> Finding pointers to doc strings...
> Finding pointers to doc strings...done
> Dumping under the name emacs
> 82139 pure bytes used
> [...]
>
> gmake[2]: Entering directory '/data/src/emacs-25.1/leim'
> GEN ../lisp/leim/leim-list.el
> exec(): 0509-036 Cannot load program ../src/bootstrap-emacs because of the following errors:
> 0509-026 System error: There is not enough memory available now.

Can you try the latest emacs-25 branch?

Thanks.

[-- Attachment #2: Type: text/html, Size: 13408 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* bug#25141: Compilation issue on AIX 7.1 and 64 bits
  2016-12-24 14:05     ` Eric LeBlanc
@ 2016-12-24 16:11       ` Eli Zaretskii
  2016-12-25 14:42         ` Eric LeBlanc
  0 siblings, 1 reply; 10+ messages in thread
From: Eli Zaretskii @ 2016-12-24 16:11 UTC (permalink / raw)
  To: Eric LeBlanc; +Cc: 25141

> From: Eric LeBlanc <cognefou@hotmail.com>
> 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
dynamic linker is picking up the same Glib library whose header files
the compiler saw?  Do you have another Glib shared libraries installed
somewhere?





^ permalink raw reply	[flat|nested] 10+ messages in thread

* bug#25141: Compilation issue on AIX 7.1 and 64 bits
  2016-12-08 18:20 bug#25141: Compilation issue on AIX 7.1 and 64 bits Eric LeBlanc
  2016-12-08 20:48 ` Eric LeBlanc
@ 2016-12-25  7:31 ` Paul Eggert
  2020-08-12  0:25   ` Stefan Kangas
  1 sibling, 1 reply; 10+ messages in thread
From: Paul Eggert @ 2016-12-25  7:31 UTC (permalink / raw)
  To: Eric LeBlanc; +Cc: 25141

As far as I know Emacs has never worked on 64-bit AIX. We have plans to 
implement portable undumping one way or another, which should get it working. In 
the meantime I suggest doing a 32-bit build instead.





^ permalink raw reply	[flat|nested] 10+ messages in thread

* bug#25141: Compilation issue on AIX 7.1 and 64 bits
  2016-12-24 16:11       ` Eli Zaretskii
@ 2016-12-25 14:42         ` Eric LeBlanc
  2017-09-02 12:11           ` Eli Zaretskii
  0 siblings, 1 reply; 10+ messages in thread
From: Eric LeBlanc @ 2016-12-25 14:42 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 25141@debbugs.gnu.org

[-- Attachment #1: Type: text/plain, Size: 2273 bytes --]

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 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.


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 start.  I'm stuck at 'unexaix' operation and I'm not an expert in XCOFF binary file.  I know that 'unexaix.c' isn't adapted for 64 bits binaries and I tried to make some modifications as I wrote earlier by enabling __XCOFF64__ in "unexaix.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 <eliz@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>
> 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
dynamic linker is picking up the same Glib library whose header files
the compiler saw?  Do you have another Glib shared libraries installed
somewhere?

[-- Attachment #2: Type: text/html, Size: 3486 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* bug#25141: Compilation issue on AIX 7.1 and 64 bits
  2016-12-25 14:42         ` Eric LeBlanc
@ 2017-09-02 12:11           ` Eli Zaretskii
  0 siblings, 0 replies; 10+ messages in thread
From: Eli Zaretskii @ 2017-09-02 12:11 UTC (permalink / raw)
  To: Eric LeBlanc; +Cc: 25141

unblock 24655 by 25141
thanks

> From: Eric LeBlanc <cognefou@hotmail.com>
> Date: Sun, 25 Dec 2016 14:42:41 +0000
> Cc: "25141@debbugs.gnu.org" <25141@debbugs.gnu.org>
> 
> 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 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.
> 
> 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 start. I'm stuck at 'unexaix' operation and I'm not
> an expert in XCOFF binary file. I know that 'unexaix.c' isn't adapted for 64 bits binaries and I tried to make
> some modifications as I wrote earlier by enabling __XCOFF64__ in "unexaix.c" source code, without success
> since it generates a huge 4GB emacs binary, but I know I'm not so far to fix it.

Without any additional comments during the last 8 months, and AIX
being a platform of secondary importance, I don't see why this bug
should block the release of Emacs 26.1.

If you have any news on these issues, please tell.

Thanks.





^ permalink raw reply	[flat|nested] 10+ messages in thread

* bug#25141: Compilation issue on AIX 7.1 and 64 bits
  2016-12-25  7:31 ` Paul Eggert
@ 2020-08-12  0:25   ` Stefan Kangas
  2020-08-12  1:17     ` Paul Eggert
  0 siblings, 1 reply; 10+ messages in thread
From: Stefan Kangas @ 2020-08-12  0:25 UTC (permalink / raw)
  To: Paul Eggert; +Cc: 25141, Eric LeBlanc

Paul Eggert <eggert@cs.ucla.edu> writes:

> As far as I know Emacs has never worked on 64-bit AIX. We have plans to
> implement portable undumping one way or another, which should get it working. In
> the meantime I suggest doing a 32-bit build instead.

So should this work now that we have the portable dumper?  Anyone who
could test it, or who feels confident to say something about it?

Best regards,
Stefan Kangas





^ permalink raw reply	[flat|nested] 10+ messages in thread

* bug#25141: Compilation issue on AIX 7.1 and 64 bits
  2020-08-12  0:25   ` Stefan Kangas
@ 2020-08-12  1:17     ` Paul Eggert
  0 siblings, 0 replies; 10+ messages in thread
From: Paul Eggert @ 2020-08-12  1:17 UTC (permalink / raw)
  To: Stefan Kangas; +Cc: 25141-done, Eric LeBlanc

On 8/11/20 5:25 PM, Stefan Kangas wrote:

> So should this work now that we have the portable dumper? 

Yes, 64 bits works on AIX now, due to the portable dumper (I hacked on that a 
bit last year to get it to work on AIX). I double-checked just now by building 
on AIX 7.1 via:

export OBJECT_MODE=64 # not sure this is needed
mkdir build
cd build
../emacs-27.1/configure CC='gcc -maix64' --with-jpeg=ifavailable 
--with-png=ifavailable --with-gif=ifavailable --with-tiff=ifavailable 
--with-gnutls=ifavailable
gmake

This was with GCC 4.8.1 (in /opt/freeware/bin/gcc).

There were some compile-time warnings, all bogus that I could see, and I could 
run Emacs just fine after the build. The command 'file src/emacs' reports:

src/emacs: 64-bit XCOFF executable or object module not stripped

Since the 64-bit build is working on AIX 7.1 now, I'm closing the bug report.





^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2020-08-12  1:17 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-12-08 18:20 bug#25141: Compilation issue on AIX 7.1 and 64 bits Eric LeBlanc
2016-12-08 20:48 ` Eric LeBlanc
2016-12-23 20:27   ` Eli Zaretskii
2016-12-24 14:05     ` Eric LeBlanc
2016-12-24 16:11       ` Eli Zaretskii
2016-12-25 14:42         ` Eric LeBlanc
2017-09-02 12:11           ` Eli Zaretskii
2016-12-25  7:31 ` Paul Eggert
2020-08-12  0:25   ` Stefan Kangas
2020-08-12  1:17     ` Paul Eggert

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).