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