{"action":"created","issue":{"url":"https://api.github.com/repos/libffi/libffi/issues/329","repository_url":"https://api.github.com/repos/libffi/libffi","labels_url":"https://api.github.com/repos/libffi/libffi/issues/329/labels{/name}","comments_url":"https://api.github.com/repos/libffi/libffi/issues/329/comments","events_url":"https://api.github.com/repos/libffi/libffi/issues/329/events","html_url":"https://github.com/libffi/libffi/issues/329","id":267384266,"number":329,"title":"Build failure on HP-UX hppa 32-bit","user":{"login":"bhaible","id":1690467,"avatar_url":"https://avatars1.githubusercontent.com/u/1690467?v=4","gravatar_id":"","url":"https://api.github.com/users/bhaible","html_url":"https://github.com/bhaible","followers_url":"https://api.github.com/users/bhaible/followers","following_url":"https://api.github.com/users/bhaible/following{/other_user}","gists_url":"https://api.github.com/users/bhaible/gists{/gist_id}","starred_url":"https://api.github.com/users/bhaible/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhaible/subscriptions","organizations_url":"https://api.github.com/users/bhaible/orgs","repos_url":"https://api.github.com/users/bhaible/repos","events_url":"https://api.github.com/users/bhaible/events{/privacy}","received_events_url":"https://api.github.com/users/bhaible/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-10-21T14:15:47Z","updated_at":"2018-03-30T12:36:59Z","closed_at":null,"author_association":"NONE","body":"libffi-3.2.1 fails to build from source on HP-UX 11.31, on HP-PA with 32-bit ABI.\r\n\r\nMy setup for this configuration:\r\n$ CC=\"cc -AC99 -D_XOPEN_SOURCE=500\"; CXX=\"aCC -O\"; export CC CXX\r\n\r\nConfiguration and make output:\r\n```\r\nchecking build system type... hppa2.0w-hp-hpux11.31\r\nchecking host system type... hppa2.0w-hp-hpux11.31\r\nchecking target system type... hppa2.0w-hp-hpux11.31\r\nchecking for gsed... /opt/fsw/bin/gsed\r\nchecking for a BSD-compatible install... /opt/fsw/bin/ginstall -c\r\nchecking whether build environment is sane... yes\r\nchecking for a thread-safe mkdir -p... ../install-sh -c -d\r\nchecking for gawk... gawk\r\nchecking whether make sets $(MAKE)... yes\r\nchecking whether make supports nested variables... yes\r\nchecking for gcc... cc -AC99 -D_XOPEN_SOURCE=500\r\nchecking whether the C compiler works... yes\r\nchecking for C compiler default output file name... a.out\r\nchecking for suffix of executables... \r\nchecking whether we are cross compiling... no\r\nchecking for suffix of object files... o\r\nchecking whether we are using the GNU C compiler... no\r\nchecking whether cc -AC99 -D_XOPEN_SOURCE=500 accepts -g... yes\r\nchecking for cc -AC99 -D_XOPEN_SOURCE=500 option to accept ISO C89... none needed\r\nchecking for style of include used by make... GNU\r\nchecking dependency style of cc -AC99 -D_XOPEN_SOURCE=500... none\r\nchecking whether we are using the GNU C++ compiler... no\r\nchecking whether aCC -O accepts -g... yes\r\nchecking dependency style of aCC -O... hp2\r\nchecking dependency style of cc -AC99 -D_XOPEN_SOURCE=500... none\r\nchecking whether cc -AC99 -D_XOPEN_SOURCE=500 and cc understand -c and -o together... yes\r\nchecking how to print strings... print -r\r\nchecking for a sed that does not truncate output... /opt/fsw/bin/gsed\r\nchecking for grep that handles long lines and -e... /opt/fsw/bin/ggrep\r\nchecking for egrep... /opt/fsw/bin/ggrep -E\r\nchecking for fgrep... /opt/fsw/bin/ggrep -F\r\nchecking for non-GNU ld... /usr/ccs/bin/ld\r\nchecking if the linker (/usr/ccs/bin/ld) is GNU ld... no\r\nchecking for BSD- or MS-compatible name lister (nm)... /usr/ccs/bin/nm -p\r\nchecking the name lister (/usr/ccs/bin/nm -p) interface... BSD nm\r\nchecking whether ln -s works... yes\r\nchecking the maximum length of command line arguments... 1536000\r\nchecking whether the shell understands some XSI constructs... yes\r\nchecking whether the shell understands \"+=\"... no\r\nchecking how to convert hppa2.0w-hp-hpux11.31 file names to hppa2.0w-hp-hpux11.31 format... func_convert_file_noop\r\nchecking how to convert hppa2.0w-hp-hpux11.31 file names to toolchain format... func_convert_file_noop\r\nchecking for /usr/ccs/bin/ld option to reload object files... -r\r\nchecking for objdump... no\r\nchecking how to recognize dependent libraries... file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\\.[0-9]) shared library\r\nchecking for dlltool... no\r\nchecking how to associate runtime and link libraries... print -r --\r\nchecking for ar... ar\r\nchecking for archiver @FILE support... no\r\nchecking for strip... strip\r\nchecking for ranlib... ranlib\r\nchecking command to parse /usr/ccs/bin/nm -p output from cc -AC99 -D_XOPEN_SOURCE=500 object... ok\r\nchecking for sysroot... no\r\nchecking for mt... mt\r\nchecking if mt is a manifest tool... no\r\nchecking how to run the C preprocessor... cc -AC99 -D_XOPEN_SOURCE=500 -E\r\nchecking for ANSI C header files... yes\r\nchecking for sys/types.h... yes\r\nchecking for sys/stat.h... yes\r\nchecking for stdlib.h... yes\r\nchecking for string.h... yes\r\nchecking for memory.h... yes\r\nchecking for strings.h... yes\r\nchecking for inttypes.h... yes\r\nchecking for stdint.h... yes\r\nchecking for unistd.h... yes\r\nchecking for dlfcn.h... yes\r\nchecking for objdir... .libs\r\nchecking for cc -AC99 -D_XOPEN_SOURCE=500 option to produce PIC... +Z -DPIC\r\nchecking if cc -AC99 -D_XOPEN_SOURCE=500 PIC flag +Z -DPIC works... yes\r\nchecking if cc -AC99 -D_XOPEN_SOURCE=500 static flag -Wl,-a -Wl,archive works... yes\r\nchecking if cc -AC99 -D_XOPEN_SOURCE=500 supports -c -o file.o... yes\r\nchecking if cc -AC99 -D_XOPEN_SOURCE=500 supports -c -o file.o... (cached) yes\r\nchecking whether the cc -AC99 -D_XOPEN_SOURCE=500 linker (/usr/ccs/bin/ld) supports shared libraries... checking if cc -AC99 -D_XOPEN_SOURCE=500 understands -b... yes\r\nyes\r\nchecking dynamic linker characteristics... hpux11.31 dld.sl\r\nchecking how to hardcode library paths into programs... relink\r\nchecking whether stripping libraries is possible... no\r\nchecking if libtool supports shared libraries... yes\r\nchecking whether to build shared libraries... yes\r\nchecking whether to build static libraries... yes\r\nchecking how to run the C++ preprocessor... aCC -O -E\r\nchecking whether the aCC -O linker (/usr/ccs/bin/ld) supports shared libraries... yes\r\nchecking for aCC -O option to produce PIC... +Z -DPIC\r\nchecking if aCC -O PIC flag +Z -DPIC works... yes\r\nchecking if aCC -O static flag -Wl,-a -Wl,archive works... yes\r\nchecking if aCC -O supports -c -o file.o... yes\r\nchecking if aCC -O supports -c -o file.o... (cached) yes\r\nchecking whether the aCC -O linker (/usr/ccs/bin/ld) supports shared libraries... yes\r\nchecking dynamic linker characteristics... hpux11.31 dld.sl\r\nchecking how to hardcode library paths into programs... relink\r\nchecking size of size_t... 4\r\nchecking for C compiler vendor... hp\r\nchecking whether C compiler accepts +Oall +Optrs_ansi +DSnative... yes\r\nchecking CFLAGS for maximum warnings... -warn all\r\nchecking whether to enable maintainer-specific portions of Makefiles... no\r\nchecking sys/mman.h usability... yes\r\nchecking sys/mman.h presence... yes\r\nchecking for sys/mman.h... yes\r\nchecking for mmap... no\r\nchecking for mkostemp... no\r\nchecking for sys/mman.h... (cached) yes\r\nchecking for mmap... (cached) no\r\nchecking for ANSI C header files... (cached) yes\r\nchecking for memcpy... no\r\nchecking for size_t... yes\r\nchecking for working alloca.h... no\r\nchecking for alloca... no\r\nchecking whether `alloca.c' needs Cray hooks... no\r\nchecking stack direction for C alloca... -1\r\nchecking size of double... 0\r\nchecking size of long double... 0\r\nchecking whether byte ordering is bigendian... yes\r\nchecking assembler .cfi pseudo-op support... no\r\nchecking for _ prefix in compiled symbols... no\r\nchecking that generated files are newer than configure... done\r\nconfigure: creating ./config.status\r\nconfig.status: creating include/Makefile\r\nconfig.status: creating include/ffi.h\r\nconfig.status: creating Makefile\r\nconfig.status: creating testsuite/Makefile\r\nconfig.status: creating man/Makefile\r\nconfig.status: creating libffi.pc\r\nconfig.status: creating fficonfig.h\r\nconfig.status: linking ../src/pa/ffitarget.h to include/ffitarget.h\r\nconfig.status: executing buildir commands\r\nconfig.status: skipping top_srcdir/Makefile - not created\r\nconfig.status: executing depfiles commands\r\nconfig.status: executing libtool commands\r\nconfig.status: executing include commands\r\nconfig.status: executing src commands\r\ngmake 'AR_FLAGS=' 'CC_FOR_BUILD=' 'CFLAGS=+Oall +Optrs_ansi +DSnative  -warn all' 'CXXFLAGS=-g' 'CFLAGS_FOR_BUILD=' 'CFLAGS_FOR_TARGET=' 'INSTALL=/opt/fsw/bin/ginstall -c' 'INSTALL_DATA=/opt/fsw/bin/ginstall -c -m 644' 'INSTALL_PROGRAM=/opt/fsw/bin/ginstall -c' 'INSTALL_SCRIPT=/opt/fsw/bin/ginstall -c' 'JC1FLAGS=' 'LDFLAGS=-L/home/haible/prefix-hpux113-cc/lib' 'LIBCFLAGS=' 'LIBCFLAGS_FOR_TARGET=' 'MAKE=gmake' 'MAKEINFO=/bin/sh /home/haible/libffi-bugs/libffi-3.2.1/missing makeinfo ' 'PICFLAG=' 'PICFLAG_FOR_TARGET=' 'RUNTESTFLAGS=' 'SHELL=/bin/sh' 'exec_prefix=/home/haible/prefix-hpux113-cc' 'infodir=/home/haible/prefix-hpux113-cc/share/info' 'libdir=/home/haible/prefix-hpux113-cc/lib' 'mandir=/home/haible/prefix-hpux113-cc/share/man' 'prefix=/home/haible/prefix-hpux113-cc' 'AR=ar' 'AS=as' 'CC=cc -AC99 -D_XOPEN_SOURCE=500' 'CXX=aCC -O' 'LD=/usr/ccs/bin/ld' 'NM=/usr/ccs/bin/nm -p' 'RANLIB=ranlib' 'DESTDIR=' all-recursive\r\ngmake[1]: Entering directory `/home/haible/libffi-bugs/libffi-3.2.1/build-hpux-hppa-32'\r\nMaking all in include\r\ngmake[2]: Entering directory `/home/haible/libffi-bugs/libffi-3.2.1/build-hpux-hppa-32/include'\r\ngmake[2]: Nothing to be done for `all'.\r\ngmake[2]: Leaving directory `/home/haible/libffi-bugs/libffi-3.2.1/build-hpux-hppa-32/include'\r\nMaking all in testsuite\r\ngmake[2]: Entering directory `/home/haible/libffi-bugs/libffi-3.2.1/build-hpux-hppa-32/testsuite'\r\ngmake[2]: Nothing to be done for `all'.\r\ngmake[2]: Leaving directory `/home/haible/libffi-bugs/libffi-3.2.1/build-hpux-hppa-32/testsuite'\r\nMaking all in man\r\ngmake[2]: Entering directory `/home/haible/libffi-bugs/libffi-3.2.1/build-hpux-hppa-32/man'\r\ngmake[2]: Nothing to be done for `all'.\r\ngmake[2]: Leaving directory `/home/haible/libffi-bugs/libffi-3.2.1/build-hpux-hppa-32/man'\r\ngmake[2]: Entering directory `/home/haible/libffi-bugs/libffi-3.2.1/build-hpux-hppa-32'\r\nsource='../src/prep_cif.c' object='src/prep_cif.lo' libtool=yes \\\r\nDEPDIR=.deps depmode=none /bin/sh ../depcomp \\\r\n/bin/sh ./libtool  --tag=CC   --mode=compile cc -AC99 -D_XOPEN_SOURCE=500 -DHAVE_CONFIG_H -I. -I..  -I. -I../include -Iinclude -I../src -I/home/haible/prefix-hpux113-cc/include  +Oall +Optrs_ansi +DSnative  -warn all -c -o src/prep_cif.lo ../src/prep_cif.c\r\nlibtool: compile:  cc -AC99 -D_XOPEN_SOURCE=500 -DHAVE_CONFIG_H -I. -I.. -I. -I../include -Iinclude -I../src -I/home/haible/prefix-hpux113-cc/include +Oall +Optrs_ansi +DSnative -warn all -c ../src/prep_cif.c  +Z -DPIC -o src/.libs/prep_cif.o\r\ncpp: \"include/ffi.h\", line 152: error 4044: Constant literal too large.\r\ncpp: \"include/ffi.h\", line 153: error 4062: \"no 64-bit data type supported\"\r\ngmake[2]: *** [src/prep_cif.lo] Error 1\r\ngmake[2]: Leaving directory `/home/haible/libffi-bugs/libffi-3.2.1/build-hpux-hppa-32'\r\ngmake[1]: *** [all-recursive] Error 1\r\ngmake[1]: Leaving directory `/home/haible/libffi-bugs/libffi-3.2.1/build-hpux-hppa-32'\r\ngmake: *** [all] Error 2\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/libffi/libffi/issues/comments/377515677","html_url":"https://github.com/libffi/libffi/issues/329#issuecomment-377515677","issue_url":"https://api.github.com/repos/libffi/libffi/issues/329","id":377515677,"user":{"login":"atgreen","id":89993,"avatar_url":"https://avatars2.githubusercontent.com/u/89993?v=4","gravatar_id":"","url":"https://api.github.com/users/atgreen","html_url":"https://github.com/atgreen","followers_url":"https://api.github.com/users/atgreen/followers","following_url":"https://api.github.com/users/atgreen/following{/other_user}","gists_url":"https://api.github.com/users/atgreen/gists{/gist_id}","starred_url":"https://api.github.com/users/atgreen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atgreen/subscriptions","organizations_url":"https://api.github.com/users/atgreen/orgs","repos_url":"https://api.github.com/users/atgreen/repos","events_url":"https://api.github.com/users/atgreen/events{/privacy}","received_events_url":"https://api.github.com/users/atgreen/received_events","type":"User","site_admin":false},"created_at":"2018-03-30T12:36:59Z","updated_at":"2018-03-30T12:36:59Z","author_association":"OWNER","body":"Can you please try adding the \"-ext\" flag to the compile line?  I think it enables 'long long' support."}}
{"actor":{"display_login":"atgreen"}}