unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* bug#38516: [guile-2.9.6] make failed on Solaris x86/x64
       [not found] <972481016.1235720.1575677549583.JavaMail.yahoo.ref@mail.yahoo.co.jp>
@ 2019-12-07  0:12 ` Kiyoshi KANAZAWA
  2020-01-12 21:09   ` Andy Wingo
  0 siblings, 1 reply; 2+ messages in thread
From: Kiyoshi KANAZAWA @ 2019-12-07  0:12 UTC (permalink / raw)
  To: 38516

Hello,

Trying guile-2.9.6.
Make fails on Solaris x86/64 with 32 bit mode.
It does not happen with 64 bit mode.


$ uname -a
SunOS hidden 5.11 11.3 i86pc i386 i86pc


$ gcc --version
gcc (GCC) 7.5.0


$ ./configure --prefix=/opt/local --with-libiconv-prefix=/opt/local/locale --with-libunistring-prefix=/opt/local --with-libltdl-prefix=/opt/local --with-libgmp-prefix=/opt/local --with-libintl-prefix=/opt/local/locale --with-libreadline-prefix=/opt/local CC=gcc CXX=g++
(GNU software are installed in /opt/local)

$ make
  :
  CC       libguile_3.0_la-ioext.lo
  CC       libguile_3.0_la-jit.lo
jit.c: In function 'compile_s64_to_f64':
jit.c:4293:27: error: incompatible type for argument 3 of 'emit_sp_ref_s64'
   emit_sp_ref_s64 (j, T0, src);
                           ^~~
jit.c:1072:1: note: expected 'jit_gpr_t {aka struct jit_gpr}' but argument is of type 'uint16_t {aka short unsigned int}'
 emit_sp_ref_s64 (scm_jit_state *j, jit_gpr_t dst_lo, jit_gpr_t dst_hi,
 ^~~~~~~~~~~~~~~
jit.c:4293:3: error: too few arguments to function 'emit_sp_ref_s64'
   emit_sp_ref_s64 (j, T0, src);
   ^~~~~~~~~~~~~~~
jit.c:1072:1: note: declared here
 emit_sp_ref_s64 (scm_jit_state *j, jit_gpr_t dst_lo, jit_gpr_t dst_hi,
 ^~~~~~~~~~~~~~~
jit.c: In function 'scm_jit_compute_mcode':
jit.c:4943:44: warning: format '%d' expects argument of type 'int', but argument 3 has type 'pid_t {aka long int}' [-Wformat=]
               fprintf (stderr, "   gdb -p %d\n\n", getpid ());
                                           ~^       ~~~~~~~~~
                                           %ld
At top level:
jit.c:1018:1: warning: 'sp_s32_operand' defined but not used [-Wunused-function]
 sp_s32_operand (scm_jit_state *j, uint32_t src)
 ^~~~~~~~~~~~~~
jit.c:964:1: warning: 'sp_u64_operand' defined but not used [-Wunused-function]
 sp_u64_operand (scm_jit_state *j, uint32_t slot)
 ^~~~~~~~~~~~~~
make[3]: *** [Makefile:3126: libguile_3.0_la-jit.lo] Error 1
make[3]: Leaving directory '/tmp/guile-2.9.6/libguile'
make[2]: *** [Makefile:2426: all] Error 2
make[2]: Leaving directory '/tmp/guile-2.9.6/libguile'
make[1]: *** [Makefile:1849: all-recursive] Error 1
make[1]: Leaving directory '/tmp/guile-2.9.6'
make: *** [Makefile:1735: all] Error 2

Make passes with 64 bit mode, such as
$ ./configure --prefix=/opt/local/amd64 --with-libiconv-prefix=/opt/local/locale/amd64 --with-libunistring-prefix=/opt/local/amd64 --with-libltdl-prefix=/opt/local/amd64 --with-libgmp-prefix=/opt/local/amd64 --with-libintl-prefix=/opt/local/locale/amd64 --with-libreadline-prefix=/opt/local/amd64 CC="gcc -m64" CXX="g++ -m64" 



Regards,

--- Kiyoshi






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

* bug#38516: [guile-2.9.6] make failed on Solaris x86/x64
  2019-12-07  0:12 ` bug#38516: [guile-2.9.6] make failed on Solaris x86/x64 Kiyoshi KANAZAWA
@ 2020-01-12 21:09   ` Andy Wingo
  0 siblings, 0 replies; 2+ messages in thread
From: Andy Wingo @ 2020-01-12 21:09 UTC (permalink / raw)
  To: Kiyoshi KANAZAWA; +Cc: 38516-done

On Sat 07 Dec 2019 01:12, Kiyoshi KANAZAWA <yoi_no_myoujou@yahoo.co.jp> writes:

> Hello,
>
> Trying guile-2.9.6.
> Make fails on Solaris x86/64 with 32 bit mode.
> It does not happen with 64 bit mode.
>
> $ make
>   :
>   CC       libguile_3.0_la-ioext.lo
>   CC       libguile_3.0_la-jit.lo
> jit.c: In function 'compile_s64_to_f64':
> jit.c:4293:27: error: incompatible type for argument 3 of 'emit_sp_ref_s64'
>    emit_sp_ref_s64 (j, T0, src);

Fixed in git.  Thanks for the report!

Andy





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

end of thread, other threads:[~2020-01-12 21:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <972481016.1235720.1575677549583.JavaMail.yahoo.ref@mail.yahoo.co.jp>
2019-12-07  0:12 ` bug#38516: [guile-2.9.6] make failed on Solaris x86/x64 Kiyoshi KANAZAWA
2020-01-12 21:09   ` Andy Wingo

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