From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Albert Chin Newsgroups: gmane.lisp.guile.devel Subject: guile-1.8.0 on HP-UX 11.23/IA-64 Date: Wed, 7 Jun 2006 11:06:41 -0500 Message-ID: <20060607160641.GA27430@mail1.thewrittenword.com> Reply-To: guile-devel@gnu.org NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1149696561 10415 80.91.229.2 (7 Jun 2006 16:09:21 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 7 Jun 2006 16:09:21 +0000 (UTC) Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Wed Jun 07 18:09:20 2006 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Fo0aV-0002P5-Fo for guile-devel@m.gmane.org; Wed, 07 Jun 2006 18:08:55 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fo0aU-0003sb-Ev for guile-devel@m.gmane.org; Wed, 07 Jun 2006 12:08:54 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Fo0YZ-0002tH-St for guile-devel@gnu.org; Wed, 07 Jun 2006 12:06:55 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Fo0YY-0002si-QT for guile-devel@gnu.org; Wed, 07 Jun 2006 12:06:55 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fo0YY-0002sc-H8 for guile-devel@gnu.org; Wed, 07 Jun 2006 12:06:54 -0400 Original-Received: from [67.95.107.114] (helo=mail1.thewrittenword.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Fo0g9-000253-Qb for guile-devel@gnu.org; Wed, 07 Jun 2006 12:14:47 -0400 Original-Received: by mail1.thewrittenword.com (Postfix, from userid 1000) id 72F1F2AC; Wed, 7 Jun 2006 11:06:41 -0500 (CDT) Original-To: guile-devel@gnu.org Content-Disposition: inline User-Agent: Mutt/1.5.6i X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:5965 Archived-At: 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" } ^ "environments.c", line 253: warning #2940-D: missing return statement at end of non-void function "scm_environment_define" } ^ "environments.c", line 279: warning #2940-D: missing return statement at end of non-void function "scm_environment_undefine" } ^ "environments.c", line 309: warning #2940-D: missing return statement at end of non-void function "scm_environment_set_x" } ^ "environments.c", line 344: warning #2940-D: missing return statement at end of non-void function "scm_environment_cell" } ^ "environments.c", line 692: error #2042: operand types are incompatible ("void" and "SCM") : SCM_SET_CORE_ENVIRONMENT_OBSERVERS (env, rest); ^ 1 error detected in the compilation of "environments.c". Passing this through -E, the problematic line expands to: if ((((scm_t_bits) (0? (*(SCM*)0=(first)): first)) == ((scm_t_bits) (0 ? (*(SCM*)0=(observer)): observer)))) { handling_weaks ? (scm_c_vector_set_x ((((struct core_environments_base *) ((((scm_t_bits) (0? (*(SCM*)0=((((SCM *)((scm_t_cell *) (((scm_t_bits) (0? (*(SCM*)0=((((env))))): (((env)))))))) [((1))]))): (((SCM *)((scm_t_cell *) (((scm_t_bits)(0? (*(SCM*)0=((((env))))): (((env)))))))) [((1))]))))))->weak_observers), 0, (rest))) : ((((struct core_environments_base *) ((((scm_t_bits) (0? (*(SCM*)0=((((SCM *)((scm_t_cell *) (((scm_t_bits) (0? (*(SCM*)0=((((env))))): (((env)))))))) [((1))]))): (((SCM *)((scm_t_cell *) (((scm_t_bits) (0? (*(SCM*)0=((((env))))): (((env)))))))) [((1))]))))))->observers) = (rest)); return; } I then rebuilt with gcc-3.4.3 and got as far as the following: gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.. -I/opt/TWWfsw/libtool15/include -I/opt/TWWfsw/libgmp42/include -D_REENTRANT -pthread -g -Wall -Wmissing-prototypes -Werror -c async.c -DPIC -o .libs/libguile_la-async.o async.c:139: warning: missing braces around initializer async.c:139: warning: (near initialization for `async_mutex.m_short') gmake[2]: *** [libguile_la-async.lo] Error 1 Passing this through -E, the problematic line expands to: static pthread_mutex_t async_mutex = { 0x36, 0, (0x80 | 0x1), 1, 1, 1, 1, 0, ((void *) 1L), 1, 0, 0, 0, -1, 0, 0, 2368, 0, 1, 1, 1, 1, 0, 0 }; and pthread_mutex_t on this platform is: struct pthread_mutex { short m_short[2]; int m_int; int m_int1[4]; int m_pad; void *m_ptr; int m_int2[2]; int m_int3[4]; short m_short2[2]; int m_int4[5]; int m_int5[2]; }; typedef struct pthread_mutex pthread_mutex_t; Rebuilding with --without-threads and GCC, the build errors out further with: gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.. -I/opt/TWWfsw/libtool15/include -I/opt/TWWfsw/libgmp42/include -g -Wall -Wmissing-prototypes -Werror -c continuations.c -DPIC -o .libs/libguile_la-continuations.o continuations.c: In function `scm_make_continuation': continuations.c:147: error: structure has no member named `sc_ar_bsp' This is the bigger problem. The getcontext() stuff for Linux/IA-64 is not compatible with HP-UX/IA-64 (Ruby has problems with this as well). We'll will to pay someone to solve this if anyone wants to attempt it. BTW, HP-UX cc defines __ia64 and not __ia64__. GCC defines both __ia64 and __ia64__. -- albert chin (china@thewrittenword.com) _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://lists.gnu.org/mailman/listinfo/guile-devel