[m-users.] Installation of the compiler fails

Volker Wysk <[email protected]>
Newsgroups gmane.comp.lang.mercury.general
Message-ID <[email protected]>
Hi

I'm trying to build MMC from scratch, without an existing Mercury
installation. This is how I configured the sources:

./configure --enable-mm-grades \
            --disable-java-grade \
            --disable-csharp-grade \
            --enable-additional-
libgrades=asm_fast.par.gc.debug.stseg,asm_fast.par.gc.decldebug.stseg \
            --prefix=/usr/local/lib/mercury-srcdist-rotd-2022-11-11

The "configure" step outputs the grades to install:

the set of library grades to install will be
   asm_fast.gc
   asm_fast.gc.debug.stseg
   asm_fast.gc.decldebug.stseg
   asm_fast.gc.memprof
   asm_fast.gc.mmsc
   asm_fast.gc.mmsc.debug
   asm_fast.gc.prof
   asm_fast.gc.profdeep.stseg
   asm_fast.gc.tr
   asm_fast.gc.tr.debug.stseg
   asm_fast.par.gc.debug.stseg
   asm_fast.par.gc.decldebug.stseg
   asm_fast.par.gc.stseg
   hlc.gc
   hlc.gc.tr
   hlc.par.gc

I've added the grades asm_fast.par.gc.debug.stseg and  
asm_fast.par.gc.decldebug.stseg. The full "configure" log is attached.

In the install step I get:

gmake[2]: *** [/tmp/mmake.ars3MT:105923: integer.c_date] Fehler 1
gmake[2]: *** Auf noch nicht beendete Prozesse wird gewartet …
gmake[2]: Verzeichnis „/usr/local/src/mercury-srcdist-rotd-2022-11-
11/install_grade_dir.asm_fast.par.gc.decldebug.stseg/library“ wird verlassen
To clean up from failed install, remove /usr/local/src/mercury-srcdist-rotd-
2022-11-11/install_grade_dir.asm_fast.par.gc.decldebug.stseg
gmake[1]: *** [/tmp/mmake.dt2CYU:1464: install_grades] Fehler 1
gmake[1]: Verzeichnis „/usr/local/src/mercury-srcdist-rotd-2022-11-11“ wird
verlassen
make: *** [Makefile:34: install] Fehler 2

("Fehler" means "error", "wird verlassen" means "is being left") I haven't 
attached the "make install" log, because it is too big. Instead, I've uploaded it here:

https://volker-wysk.de/tmp/make_install.log

And I've attached the log of the "make" step.

TIA,
Volker

_______________________________________________
users mailing list
[email protected]
https://lists.mercurylang.org/listinfo/users
configure.log (text/x-log, 15.3 KB)
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking what the C compiler type really is... gcc
checking what the gcc version is... 11_3_0
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for cygpath... echo
checking for cygpath... echo
looking for an already installed Mercury compiler to bootstrap with...
checking for mmc... no
checking whether to enable large heaps when using conservative GC... yes
checking whether to enable unmapping of unused pages when using Boehm GC... yes
checking whether to use mmap for Boehm GC... yes
looking for GNU Make...
checking for gmake... gmake
found GNU Make: gmake
looking for a way to create named pipes...
checking for mkfifo... /usr/bin/mkfifo
looking for a way to create temporary files...
checking for mktemp... /usr/bin/mktemp
checking for install-info... /usr/bin/install-info
checking for texi2dvi... /usr/bin/texi2dvi
checking for pdftex... /usr/bin/pdftex
checking for lynx... no
checking for dvips... /usr/bin/dvips
checking for makeinfo... /usr/bin/makeinfo
checking for info... /usr/bin/info
checking for perl... /usr/bin/perl
checking for hostname... /usr/bin/hostname
checking whether C compiler needs -no-cpp-precomp... no
checking whether we can make error messages filterable... yes
checking whether we can use -fno-move-loop-invariants... yes
checking whether we can use -fno-reorder-functions... yes
checking whether we can use -fno-tree-dominator-opts... yes
checking whether to pass -I/usr/local/include to C compiler... no
checking whether to pass -L/usr/local/lib to the linker... no
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for use of a Microsoft C compiler... no
checking for ar... ar
checking for ranlib... ranlib
checking for nm... nm
checking for sin in -lm... yes
checking for ilasm... no
checking for gacutil... no
checking for Microsoft.NET Framework SDK... no
checking for al... no
checking for ilalink... no
checking for mono... no
checking for a C sharp compiler... 
checking for csc... no
checking for mcs... no
checking for javac... no
checking for java... /usr/bin/java
checking for jar... no
checking for sysconf... yes
checking for getpagesize... yes
checking for gethostname... yes
checking for mmap... yes
checking for mprotect... yes
checking for memalign... yes
checking for posix_memalign... yes
checking for sbrk... yes
checking for memmove... yes
checking for sigaction... yes
checking for siginterrupt... yes
checking for setitimer... yes
checking for strerror... yes
checking for strerror_r... yes
checking for strerror_s... no
checking for open... yes
checking for close... yes
checking for dup... yes
checking for dup2... yes
checking for fdopen... yes
checking for fileno... yes
checking for fstat... yes
checking for stat... yes
checking for lstat... yes
checking for isatty... yes
checking for getpid... yes
checking for setpgid... yes
checking for fork... yes
checking for execlp... yes
checking for wait... yes
checking for kill... yes
checking for grantpt... yes
checking for unlockpt... yes
checking for ptsname... yes
checking for tcgetattr... yes
checking for tcsetattr... yes
checking for ioctl... yes
checking for access... yes
checking for sleep... yes
checking for opendir... yes
checking for readdir... yes
checking for closedir... yes
checking for mkdir... yes
checking for symlink... yes
checking for readlink... yes
checking for gettimeofday... yes
checking for setenv... yes
checking for putenv... yes
checking for _putenv... no
checking for posix_spawn... yes
checking for sched_setaffinity... yes
checking for sched_getaffinity... yes
checking for sched_getcpu... yes
checking for sched_yield... yes
checking for mkstemp... yes
checking for mkdtemp... yes
checking for setrlimit... yes
checking for getcontext... yes
checking for dl_iterate_phdr... yes
checking whether snprintf is declared... yes
checking whether _snprintf is declared... no
checking whether vsnprintf is declared... yes
checking whether _vsnprintf is declared... no
checking for fma... yes
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for unistd.h... (cached) yes
checking sys/wait.h usability... yes
checking sys/wait.h presence... yes
checking for sys/wait.h... yes
checking sys/siginfo.h usability... no
checking sys/siginfo.h presence... no
checking for sys/siginfo.h... no
checking sys/signal.h usability... yes
checking sys/signal.h presence... yes
checking for sys/signal.h... yes
checking ucontext.h usability... yes
checking ucontext.h presence... yes
checking for ucontext.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/times.h usability... yes
checking sys/times.h presence... yes
checking for sys/times.h... yes
checking for sys/types.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/resource.h usability... yes
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking sys/stropts.h usability... no
checking sys/stropts.h presence... no
checking for sys/stropts.h... no
checking windows.h usability... no
checking windows.h presence... no
checking for windows.h... no
checking dirent.h usability... yes
checking dirent.h presence... yes
checking for dirent.h... yes
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking semaphore.h usability... yes
checking semaphore.h presence... yes
checking for semaphore.h... yes
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking spawn.h usability... yes
checking spawn.h presence... yes
checking for spawn.h... yes
checking fenv.h usability... yes
checking fenv.h presence... yes
checking for fenv.h... yes
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking sys/sem.h usability... yes
checking sys/sem.h presence... yes
checking for sys/sem.h... yes
checking sched.h usability... yes
checking sched.h presence... yes
checking for sched.h... yes
checking utmpx.h usability... yes
checking utmpx.h presence... yes
checking for utmpx.h... yes
checking dispatch/dispatch.h usability... no
checking dispatch/dispatch.h presence... no
checking for dispatch/dispatch.h... no
checking for stdint.h... (cached) yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking for fesetround function... yes
checking whether we have __builtin_bswap16... yes
checking whether we have __builtin_bswap32... yes
checking whether we have __builtin_bswap64... yes
checking for getopt... yes
checking for SA_SIGINFO and siginfo_t... yes
checking for PC access from signal handler context... REG_RIP
checking for an integer type with the same size as a pointer... long
checking for an integer type of at least 64 bits... long
checking for an integer type of at least 32 bits... int
checking for pid_t... yes
checking for dev_t... yes
checking for ino_t... yes
checking for an integer type of at least 16 bits... short
checking the number of low tag bits available... 3
checking the number of bytes per word... 8
checking the number of bits per word... 64
checking whether int is 32-bit... yes
checking whether long is 64-bit... yes
checking whether we can use unboxed floats... yes
checking whether float is 64-bit... no
checking whether double is 64-bit... yes
checking whether long double is 64-bit... no
checking whether we can use unboxed 64-bit integers... yes
checking whether architecture is big-endian... no
checking whether architecture is little-endian... yes
checking whether we can use files as locks... yes
checking return values of system... yes
checking to see if we can handle contexts blocking on IO... yes
checking for sched.h cpuset macros... yes
checking to see if strings.h is needed for bzero... no
checking whether C compiler targets x86... no
checking whether we can use gcc labels... yes
checking whether we can use asm labels... yes
checking whether we can use gcc labels and global registers... yes
checking whether we can use global registers without gcc labels... yes
checking whether we can support time profiling on this system... yes
checking whether to enable the deep profiler... yes
checking where to install deep profiler CGI script... /usr/lib/cgi-bin
checking for pthread_mutexattr_setpshared... yes
checking whether we can use thread-local storage class extension... yes
using grade 'asm_fast.gc' as the default grade for applications
configure: WARNING: Mercury compiler not yet installed -
****    cannot use grade 'asm_fast.gc'.
****    Using grade 'hlc.gc.pregen' to compile the compiler.
****    After installation is complete, you may reinstall
****    from scratch to have a faster compiler.
****    NOTE: before reinstalling from scratch, ensure that the
****    source tree is clean by running 'make realclean'. Not doing
****    this may result in a broken Mercury installation.
checking whether the assembler handles .type... yes
checking for as... /usr/bin/as
checking whether the assembler does full preprocessing... no
checking whether structure assignment conflicts with global registers... yes
checking whether Mercury supports shared libraries on this system... yes
checking if linker supports --no-undefined... yes
checking for ld-linux.so... no
checking options for static linking... -static
checking for struct tms and times function... yes
checking for environ global variable... yes
checking for Sleep function... no
checking ieeefp.h usability... no
checking ieeefp.h presence... no
checking for ieeefp.h... no
checking for isnan function... yes
checking for isnanf function... yes
checking for isinf function... yes
checking for isinff function... yes
checking for finite function... yes
checking for isfinite function... yes
checking for socket in -lsocket... no
checking for inet_addr in -lnsl... yes
checking whether we can use sockets (for Morphine)... yes
checking whether to enable the external debugger... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for dlopen in -ldl... yes
checking for dlopen... yes
checking for dlclose... yes
checking for dlsym... yes
checking for dlerror... yes
checking whether to enable the new MercuryFile struct... no
checking whether to use the MS Visual C Runtime... no
checking readline/readline.h usability... no
checking readline/readline.h presence... no
checking for readline/readline.h... no
checking readline/history.h usability... no
checking readline/history.h presence... no
checking for readline/history.h... no
checking editline/readline.h usability... no
checking editline/readline.h presence... no
checking for editline/readline.h... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for flex... flex
checking lex output file root... lex.yy
checking lex library... -lfl
checking whether yytext is a pointer... yes
checking for bison... bison -y
checking for xdg-open... /usr/bin/xdg-open
checking whether any C files need to be rebuilt...
no - they are compatible with autoconfigured settings
checking for C shell executable... no
configure: creating ./config.status
config.status: creating Mmake.common
config.status: creating scripts/Mmake.vars
config.status: WARNING:  'scripts/Mmake.vars.in' seems to ignore the --datarootdir setting
config.status: creating scripts/parse_ml_options.sh-subr
config.status: creating scripts/mdbrc
config.status: creating scripts/Mercury.config
config.status: creating scripts/Mercury.config.bootstrap
config.status: creating bindist/bindist.INSTALL
config.status: creating bindist/bindist.Makefile
config.status: creating runtime/mercury_dotnet.cs
config.status: creating java/runtime/Constants.java
config.status: creating java/runtime/Native.java
config.status: creating compiler/COMP_FLAGS
config.status: creating grade_lib/GRADE_LIB_FLAGS
config.status: creating library/LIB_FLAGS
config.status: creating mdbcomp/MDBCOMP_FLAGS
config.status: creating browser/MDB_FLAGS
config.status: creating ssdb/SSDB_FLAGS
config.status: creating slice/SLICE_FLAGS
config.status: creating profiler/PROF_FLAGS
config.status: creating deep_profiler/DEEP_FLAGS
config.status: creating tests/TESTS_FLAGS
config.status: creating tests/DEFNS_FOR_TESTS
config.status: creating mfilterjavac/MFILTERJAVAC_FLAGS
config.status: creating scripts/mmc
config.status: creating scripts/mercury
config.status: creating scripts/mercury.bat
config.status: creating scripts/mprof
config.status: creating scripts/mprof.bat
config.status: creating scripts/mercury_update_interface
config.status: creating scripts/mgnuc
config.status: creating scripts/ml
config.status: creating scripts/c2init
config.status: creating scripts/mmake
config.status: creating scripts/mdb
config.status: creating scripts/mdb.bat
config.status: creating scripts/mdprof
config.status: creating scripts/mtags
config.status: creating scripts/canonical_grade
config.status: creating scripts/mkfifo_using_mknod
config.status: creating scripts/mercury_config
config.status: creating scripts/prepare_install_dir
config.status: creating tools/lmc
config.status: creating tools/dotime
config.status: creating runtime/mercury_conf.h
config.status: creating robdd/robdd_conf.h
config.status: executing default commands

using asm_fast.gc as the default grade for applications
using asm_fast.gc to compile the compiler

using mmc as the installed compiler

using /usr/local/lib/mercury-srcdist-rotd-2022-11-11 as the install prefix

the set of library grades to install will be
   asm_fast.gc
   asm_fast.gc.debug.stseg
   asm_fast.gc.decldebug.stseg
   asm_fast.gc.memprof
   asm_fast.gc.mmsc
   asm_fast.gc.mmsc.debug
   asm_fast.gc.prof
   asm_fast.gc.profdeep.stseg
   asm_fast.gc.tr
   asm_fast.gc.tr.debug.stseg
   asm_fast.par.gc.debug.stseg
   asm_fast.par.gc.decldebug.stseg
   asm_fast.par.gc.stseg
   hlc.gc
   hlc.gc.tr
   hlc.par.gc

Configuring to install 16 grades.
This will likely take 3 to 8 hours.

You can make the install faster by installing fewer grades,
as shown by the fine-tuning section of the INSTALL file,
or by compiling the files of each grade in parallel,
which you can do via a command such as make PARALLEL=-j2 install.
make.log (text/x-log, 212.8 KB) - not displayed
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEE6QXGh82Ov3+2nrxp+K4ydFOsHoUFAmNvX3sACgkQ+K4ydFOs
HoVpdA/9E0J16KkNW3WXTZZpwg20XZZ2NEAimhAOmimL16+nmjsx1Wwdbv7VuIN/
M/9CkO+nloMvsUk4A4T2JKSa0Ayt/H6Qc2zcb9+oh4aeIPjdaK3sQwk4mTtdjqmN
aVUljD3q8stVfFh5B4nSzvTr/XXIoet03wPkj8ODc/O1HvG7bBU7m0q+iKWe8l8M
tKjnFRqDJtIvlep9vIZE98zABjWFTqOKB2iAbW0pf9UCzpIR3KVWAK4dZu2OmhZz
RFGB+aY2fe3LoY+oRljosXmJC5A2enICvq7CIvP2XGkPnPVFdIJZO91Ce+ovE+F/
GllKJeIWTF07Blwn6jrSZINnaCnIVtEG01zhqQ5j7Lmx+wTAGfCntgsusGqztG6D
PZJXUevUuoWf3FUNaqIiU49VQdrHEqwIwdHU+7d92NJDAPVwjBDTbMIMfl3Gw4ga
IRTi25h9he5KR1cCTdvZbM/8qs4qbeTNbZJzzSO6o3XDiCjqHV4OicrDb1F+CEAy
JDjrSE6MUWKKSRhxZVrhxZvDie/YbfIHpS3sr/0PFeJJhjC07fubDDaS7kIEpVuw
Mf6X626IzvcwK1F1hosTD3eR42pH7F2yexM4Iwg3JxAK4SZOJeMdR/19vd+sjTTk
yrX1/bCQBR+1mT4sUBR1dZOdvBMbzs0xGJBAg7Q+tg88hBAMkQo=
=Zv/r
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.