From: Albert Chin <guile-devel@mlists.thewrittenword.com>
Subject: guile-1.8.0 on HP-UX 11.23/IA-64
Date: Wed, 7 Jun 2006 11:06:41 -0500 [thread overview]
Message-ID: <20060607160641.GA27430@mail1.thewrittenword.com> (raw)
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
next reply other threads:[~2006-06-07 16:06 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-07 16:06 Albert Chin [this message]
2006-06-12 17:11 ` guile-1.8.0 on HP-UX 11.23/IA-64 Steve Ellcey
-- strict thread matches above, loose matches on Subject: below --
2006-07-05 21:40 Albert Chin
2006-07-06 8:44 ` Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060607160641.GA27430@mail1.thewrittenword.com \
--to=guile-devel@mlists.thewrittenword.com \
--cc=guile-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).