Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 May 2002 08:20:04 -0700 (PDT)
From:      Stanislav Grozev <tacho@factline.com>
To:        freebsd-ports@FreeBSD.org
Subject:   Re: ports/38224: "make install of XFree86-4-libraries fails on -CURRENT"
Message-ID:  <200205291520.g4TFK4I28501@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/38224; it has been noted by GNATS.

From: Stanislav Grozev <tacho@factline.com>
To: Sid Carter <sidcarter@symonds.net>
Cc: FreeBSD-gnats-submit@FreeBSD.org
Subject: Re: ports/38224: "make install of XFree86-4-libraries fails on -CURRENT"
Date: Wed, 29 May 2002 17:19:13 +0200

 the patch on the bottom of this fixes that particular error and the thread
 stubs are compiled OK. but, at a later stage I get:
 
 --------
 
 LD_LIBRARY_PATH=../../../../../exports/lib cc -c -O -pipe -march=pentium -march=pentium  -ansi -pedantic -Dasm=__asm -Wall -Wpointer-arith   -I../../../../../exports/include/X11 -I../../../../../include/extensions -I../../../../../extras/Mesa/src/OSmesa -I../../../../../extras/Mesa/src          -I../../../../../extras/Mesa/include   -I../../../../.. -I../../../../../exports/include   -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO -DXTHREADS   -DXUSE_MTSAFE_API -DXNO_MTSAFE_PWDAPI    -DMALLOC_0_RETURNS_NULL      -ansi -pedantic -Dasm=__asm -Wall -Wpointer-arith  -I../../../../../exports/include/X11 -I../../../../../include/extensions -I../../../../../extras/Mesa/src/OSmesa -I../../../../../extras/Mesa/src    -I../../../../../extras/Mesa/include   -I../../../../.. -I../../../../../exports/include   -DCSRG_BASED  -DFUNCPROTO=15 -DNARROWPROTO -DXTHREADS   -DXUSE_MTSAFE_API -DXNO_MTSAFE_PWDAPI    -DMALLOC_0_RETURNS_NULL      -fPIC ../../../../../lib/GL/mesa/src/translate.c
 In file included from ../../../../../lib/GL/mesa/src/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.
 *** Error code 1
 
 Stop in /home/scratch/ports/x11/XFree86-4-libraries/work/xc/lib/GL/mesa/src/OSmesa.
 *** Error code 1
 
 Stop in /home/scratch/ports/x11/XFree86-4-libraries/work/xc/lib/GL.
 *** Error code 1
 
 Stop in /home/scratch/ports/x11/XFree86-4-libraries/work/xc/lib.
 *** Error code 1
 
 Stop in /home/scratch/ports/x11/XFree86-4-libraries/work/xc.
 *** Error code 1
 
 Stop in /home/scratch/ports/x11/XFree86-4-libraries/work/xc.
 *** Error code 1
 
 Stop in /home/scratch/ports/x11/XFree86-4-libraries.
 *** Error code 1
 
 Stop in /home/scratch/ports/x11/XFree86-4-libraries.
 
 -----------
 
 any ideas to that?
 
 oh, and here's the patch for #pragma weak in lib/XthrStub/UIThrStubs.c
 
 --- UIThrStubs.c.orig	Sun Nov 18 22:13:26 2001
 +++ UIThrStubs.c	Wed May 29 17:14:24 2002
 @@ -99,6 +99,25 @@
  #else
  #include <pthread.h>
  typedef pthread_t xthread_t;
 +#if __GNUC__ >= 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_")));
 +#else
  #pragma weak pthread_self = _Xthr_self_stub_
  #pragma weak pthread_mutex_init = _Xthr_zero_stub_
  #pragma weak pthread_mutex_destroy = _Xthr_zero_stub_
 @@ -113,6 +132,7 @@
  #pragma weak pthread_key_create = _Xthr_zero_stub_
  #pragma weak pthread_getspecific = _Xthr_zero_stub_
  #pragma weak pthread_setspecific = _Xthr_zero_stub_
 +#endif /* __GNUC__ */
  #if defined(_DECTHREADS_) || defined(linux)
  #pragma weak pthread_equal = _Xthr_equal_stub_	/* See Xthreads.h! */
  int

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200205291520.g4TFK4I28501>