public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug go/58075] New: Unable to build go on ia64-hp-hpux11.31
@ 2013-08-04 2:42 pda at freeshell dot org
2013-08-04 18:44 ` [Bug go/58075] " ian at airs dot com
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: pda at freeshell dot org @ 2013-08-04 2:42 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58075
Bug ID: 58075
Summary: Unable to build go on ia64-hp-hpux11.31
Product: gcc
Version: 4.7.3
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: go
Assignee: ian at airs dot com
Reporter: pda at freeshell dot org
Excuse the lack of further detail, but the message looks pretty
self-explanatory.
.../gcc-4.7.3/libgo/runtime/proc.c:114:4: error: #error unknown case for
SETCONTEXT_CLOBBERS_TLS
Is this just a case of go not being ready for this platform yet?
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug go/58075] Unable to build go on ia64-hp-hpux11.31
2013-08-04 2:42 [Bug go/58075] New: Unable to build go on ia64-hp-hpux11.31 pda at freeshell dot org
@ 2013-08-04 18:44 ` ian at airs dot com
2013-08-12 23:48 ` pda at freeshell dot org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: ian at airs dot com @ 2013-08-04 18:44 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58075
--- Comment #1 from Ian Lance Taylor <ian at airs dot com> ---
That compilation error means that a configure test detected that the setcontext
call modified TLS variables, which should not happen. That does happen on some
older versions of Solaris and NetBSD, and the code in libgo/runtime/proc.c has
a workaround for those versions. Apparently HP/UX also has this bug, and
somebody will need to write a workaround there as well.
The test case can be found in libgo/configure.ac, and I've appended it below.
The test case should compile and run and exit with a zero exit status (you may
need to provide the -pthread option when compiling and linking, I don't know
what HP/UX requires in that regard). If the program does not exit with a zero
status, there is a bug in the implementation of setcontext. I encourage you to
report that bug to HP.
#include <pthread.h>
#include <stdlib.h>
#include <ucontext.h>
#include <unistd.h>
__thread int tls;
static char stack[10 * 1024 * 1024];
static ucontext_t c;
/* Called via makecontext/setcontext. */
static void
cfn (void)
{
exit (tls);
}
/* Called via pthread_create. */
static void *
tfn (void *dummy)
{
/* The thread should still see this value after calling
setcontext. */
tls = 0;
setcontext (&c);
/* The call to setcontext should not return. */
abort ();
}
int
main ()
{
pthread_t tid;
/* The thread should not see this value. */
tls = 1;
if (getcontext (&c) < 0)
abort ();
c.uc_stack.ss_sp = stack;
c.uc_stack.ss_flags = 0;
c.uc_stack.ss_size = sizeof stack;
c.uc_link = NULL;
makecontext (&c, cfn, 0);
if (pthread_create (&tid, NULL, tfn, NULL) != 0)
abort ();
if (pthread_join (tid, NULL) != 0)
abort ();
/* The thread should have called exit. */
abort ();
}
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug go/58075] Unable to build go on ia64-hp-hpux11.31
2013-08-04 2:42 [Bug go/58075] New: Unable to build go on ia64-hp-hpux11.31 pda at freeshell dot org
2013-08-04 18:44 ` [Bug go/58075] " ian at airs dot com
@ 2013-08-12 23:48 ` pda at freeshell dot org
2013-08-13 0:00 ` ian at airs dot com
2015-02-03 20:04 ` ian at airs dot com
3 siblings, 0 replies; 5+ messages in thread
From: pda at freeshell dot org @ 2013-08-12 23:48 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58075
--- Comment #2 from Paul Ackersviller <pda at freeshell dot org> ---
Thanks, I have sent this on to HP.
Should I report back a patch number, or whatever they end up responding with?
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug go/58075] Unable to build go on ia64-hp-hpux11.31
2013-08-04 2:42 [Bug go/58075] New: Unable to build go on ia64-hp-hpux11.31 pda at freeshell dot org
2013-08-04 18:44 ` [Bug go/58075] " ian at airs dot com
2013-08-12 23:48 ` pda at freeshell dot org
@ 2013-08-13 0:00 ` ian at airs dot com
2015-02-03 20:04 ` ian at airs dot com
3 siblings, 0 replies; 5+ messages in thread
From: ian at airs dot com @ 2013-08-13 0:00 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58075
--- Comment #3 from Ian Lance Taylor <ian at airs dot com> ---
Yes, please. Thanks.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug go/58075] Unable to build go on ia64-hp-hpux11.31
2013-08-04 2:42 [Bug go/58075] New: Unable to build go on ia64-hp-hpux11.31 pda at freeshell dot org
` (2 preceding siblings ...)
2013-08-13 0:00 ` ian at airs dot com
@ 2015-02-03 20:04 ` ian at airs dot com
3 siblings, 0 replies; 5+ messages in thread
From: ian at airs dot com @ 2015-02-03 20:04 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58075
Ian Lance Taylor <ian at airs dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
Last reconfirmed| |2015-02-03
Ever confirmed|0 |1
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-02-03 20:04 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-04 2:42 [Bug go/58075] New: Unable to build go on ia64-hp-hpux11.31 pda at freeshell dot org
2013-08-04 18:44 ` [Bug go/58075] " ian at airs dot com
2013-08-12 23:48 ` pda at freeshell dot org
2013-08-13 0:00 ` ian at airs dot com
2015-02-03 20:04 ` ian at airs dot com
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).