Off-Topic > Off-Topic - Tiny Tux's Corner
Building guile 2.2.x fails
jazzbiker:
--- Quote from: Rich on July 27, 2023, 12:35:20 PM ---You might be able to accomplish this by just deleting the
make files under the doc directory tree.
--- End quote ---
Hi Rich,
Sorry but no luck too. Error thrown after the number of
--- Code: ---...
SNARF values.doc
SNARF variable.doc
SNARF vectors.doc
SNARF version.doc
SNARF vports.doc
SNARF weak-set.doc
SNARF weak-table.doc
SNARF weak-vector.doc
SNARF posix.doc
SNARF net_db.doc
SNARF socket.doc
SNARF regex-posix.doc
GEN guile-procedures.texi
Uncaught exception:
Throw to key encoding-error with args ("scm_to_stringn" "cannot convert narrow string to output locale" 38 #f #f)
--- End code ---
inside libguile directory.
There are warnings during compile about
--- Code: ---if (sizeof (c) == 8)
ret = (((unsigned long)c) << 32) | b;
else
ret = b;
--- End code ---
shifting of 32-bit variable. But sizeof (c) is not 8. Strange and suspicious is that those warnings are issued exactly from narrow_string_hash() function in libguile/hash.c. But this shift must not be performed - normally.
Anyway time to take the pause. Thank You and Juanito for the help.
GNUser:
Hi jazzbiker. FWIW I tried to compile guile 2.2.7 on TCL 14.x x86_64 and am able to reproduce your problem.
My locale is en_US.UTF-8. Changing locale to C did not help. Installing the additional extensions that Juanito recommneded also did not help. I tried to find the configure option that disables documentation but was unsuccessful.
The build instructions that I found (here and here) are missing the instructions of what to edit in the configure script. Note the incomplete "for...do..done" statement:
--- Code: ---edit configure
for termlib in ncursesw curses termcap terminfo termlib pdcurses ; do
CC="gcc -flto -mtune=generic -Os -pipe" CXX="g++ -flto -mtune=generic -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local --disable-static --localstatedir=/var
--- End code ---
The mystery edit could be totally unrelated to the compilation error or could be the secret to success.
jazzbiker:
I'm now at TC10 x86 and I want to say that guile 2.2.7 compiled successfully. Now it is very slowly building some prebuild object files. Seems that it will take all night long at my slow box.
GNUser:
I'm glad you figured it out!
jazzbiker:
Error thrown during module/scripts/snarf-check-and-output-texi.scm
While building 2.2.7 it is uncaught exception and build hangs.Building 3.0.9 manages to catch an exception and exits with error messages.
snarf-check-and-output-texi.scm seems to use C functions through ffi. libffi version changed from 3.2.1 (TC11) to 3.3 (TC12 and later).
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version