guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: guile-1.8.0 on HP-UX 11.23/IA-64


From: Ludovic Courtès
Subject: Re: guile-1.8.0 on HP-UX 11.23/IA-64
Date: Thu, 06 Jul 2006 10:44:24 +0200
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux)

Hi,

Albert Chin <address@hidden> writes:

> I tried compiling guile-1.8.0 on HP-UX 11.23/IA-64 with the HP-UX C
> compiler. It compiles fine on HP-UX 11.23/PA-RISC. On IA-64, it fails:
>  cc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.. -I/opt/TWWfsw/libtool15/include 
> -I/opt/TWWfsw/libgmp42/include -D_REENTRANT -mthreads -g -c environments.c  
> -DPIC -o .libs/libguile_la-environments.o
> cc: warning 901: unknown option: `-hreads': use +help for online 
> documentation. 
> "environments.c", line 146: warning #2940-D: missing return statement at end
>           of non-void function "scm_environment_ref"
>   }

Actually, you don't need `environments.c' (it's currently unused and
undocumented).  So one easy way to work around this is to remove
`environments.c' from `Makefile.am', and then re-generate the makefile
(`make Makefile' should do the trick).

When using GCC, these missing return statements are not caught because
`scm_error_environment_unbound ()' and friends are declared with
attribute `noreturn'.  As for this:

> "environments.c", line 692: error #2042: operand types are incompatible 
> ("void"
>           and "SCM")
>                 : SCM_SET_CORE_ENVIRONMENT_OBSERVERS (env, rest);
>                 ^

This could be rewritten with an `if' to avoid this problem, if need be.

Thanks,
Ludovic.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]