Date: 26 May 2002 04:12:46 -0600 From: Eric Anholt <eanholt@gladstone.uoregon.edu> To: =?UTF-8?Q?=E5=B1=B1=E7=94=B0=E3=80=80?= =?UTF-8?Q?=E5=81=A5?= <ken@tydfam.jp> Cc: Freebsd-current@FreeBSD.ORG Subject: Re: crash when starting X Message-ID: <1022407966.458.98.camel@anholt.dyndns.org> In-Reply-To: <006901c2049a$40476290$0a00a8c0@TKPC120> References: <200205220505.g4M55Rl22601@whiskey.ucf.ics.uci.edu> <006901c2049a$40476290$0a00a8c0@TKPC120>
next in thread | previous in thread | raw e-mail | index | archive | help
--=-hUdY0zYvtjJ+RStcTKHD
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
On Sun, 2002-05-26 at 03:46, =E5=B1=B1=E7=94=B0=E3=80=80=E5=81=A5 wrote:
> I have the same symptom with binary package of XFree86-4. And furthermor=
e I
> cannot compile XFree86-4-libraries with FreeBSD-current.
> It says;
> UIThrStubs.c:102: alias arg not a string
> UIThrStubs.c:103: alias arg not a string
> : : :
> UIThrStubs.c:115: alias arg not a string
> UIThrStubs.c:131: warning: `_Xthr_self_stub_' defined but not used
> UIThrStubs.c:139: warning: `_Xthr_zero_stub_' defined but not used
>=20
> Any fix ?
I just made this patch today while working on X stuff. Unfortunately
after that it dies with a compiler error in the DRI compile for me. DRI
CVS doesn't have the compiler error.
making all in lib/GL/mesa/src...
<snip big compile line>
In file included from translate.c:779:
../../../../extras/Mesa/src/trans_tmp.h: In function
`trans_1_GLdouble_1ub_elt':
../../../../extras/Mesa/src/trans_tmp.h:124: could not find a spill
register
(insn 96 94 97 (set (subreg:SF (reg:QI 75) 0)
(plus:SF (reg:SF 8 st(0) [76])
(reg:SF 9 st(1) [80]))) 525 {*fop_sf_comm_nosse} (insn_list
87 (nil))
(expr_list:REG_DEAD (reg:SF 8 st(0) [76])
(nil)))
../../../../extras/Mesa/src/trans_tmp.h:124: Internal compiler error in
failed_reload, at reload1.c:5050
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
If someone is interested I can give them more full logs.
--=20
Eric Anholt <eanholt@gladstone.uoregon.edu>
http://gladstone.uoregon.edu/~eanholt/dri/
--=-hUdY0zYvtjJ+RStcTKHD
Content-Disposition: attachment; filename=thrstubsdiff
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; name=thrstubsdiff; charset=ISO-8859-1
--- lib/XThrStub/UIThrStubs.c.orig Sat May 25 16:01:07 2002
+++ lib/XThrStub/UIThrStubs.c Sat May 25 16:28:25 2002
@@ -99,6 +99,26 @@
#else
#include <pthread.h>
typedef pthread_t xthread_t;
+#if __GNUC__ >=3D 3
+static xthread_t _Xthr_self_stub_();
+static int _Xthr_zero_stub_();
+
+xthread_t pthread_self() __attribute__ ((weak, alias ("_Xthr_self_stub_"))=
);
+int pthread_mutex_init() __attribute__ ((weak, alias ("_Xthr_zero_stub_"))=
);
+int pthread_mutex_destroy() __attribute__ ((weak, alias ("_Xthr_zero_stub_=
")));
+int pthread_mutex_lock() __attribute__ ((weak, alias ("_Xthr_zero_stub_"))=
);
+int pthread_mutex_unlock() __attribute__ ((weak, alias ("_Xthr_zero_stub_"=
)));
+int pthread_cond_init() __attribute__ ((weak, alias ("_Xthr_zero_stub_")))=
;
+int pthread_cond_destroy() __attribute__ ((weak, alias ("_Xthr_zero_stub_"=
)));
+int pthread_cond_wait() __attribute__ ((weak, alias ("_Xthr_zero_stub_")))=
;
+int pthread_cond_signal() __attribute__ ((weak, alias ("_Xthr_zero_stub_")=
));
+int pthread_cond_broadcast() __attribute__ ((weak, alias ("_Xthr_zero_stub=
_")));
+/* These are added for libGL */
+int pthread_key_create() __attribute__ ((weak, alias ("_Xthr_zero_stub_"))=
);
+void * pthread_getspecific() __attribute__ ((weak, alias ("_Xthr_zero_stub=
_")));
+int pthread_setspecific() __attribute__ ((weak, alias ("_Xthr_zero_stub_")=
));
+/*int pthread_equal __attribute__ ((__weak__)) =3D _Xthr_equal_stub_;*/ /*=
See Xthreads.h! */
+#else
#pragma weak pthread_self =3D _Xthr_self_stub_
#pragma weak pthread_mutex_init =3D _Xthr_zero_stub_
#pragma weak pthread_mutex_destroy =3D _Xthr_zero_stub_
@@ -113,6 +133,7 @@
#pragma weak pthread_key_create =3D _Xthr_zero_stub_
#pragma weak pthread_getspecific =3D _Xthr_zero_stub_
#pragma weak pthread_setspecific =3D _Xthr_zero_stub_
+#endif /* __GNUC__ */
#if defined(_DECTHREADS_) || defined(linux)
#pragma weak pthread_equal =3D _Xthr_equal_stub_ /* See Xthreads.h! */
int
--=-hUdY0zYvtjJ+RStcTKHD--
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1022407966.458.98.camel>
