Hi,

I noticed that the thread support in sbcl isn't working at all.
Seems that the ports Makefile passes wrong configure flag and needs following
tweak:

Index: Makefile
===================================================================
RCS file: /cvs/ports/lang/sbcl/Makefile,v
retrieving revision 1.29
diff -w -u -b -r1.29 Makefile
--- Makefile    2 Nov 2016 13:26:07 -0000       1.29
+++ Makefile    1 Feb 2017 04:34:35 -0000
@@ -11,6 +11,7 @@
 PKGNAME=               sbcl-${V}
 WRKDIST=               ${WRKDIR}/sbcl-${V}
 EXTRACT_SUFX=          .tar.bz2
+REVISION=              0
 
 CATEGORIES=            lang
 HOMEPAGE=              http://www.sbcl.org/
@@ -35,7 +36,7 @@
 .if ${FLAVOR:Mthreads}
 # XXX
 BROKEN-powerpc=                no support yet
-EXTRA_PARAMS+=         --with-sb-threads
+EXTRA_PARAMS+=         --with-sb-thread
 .endif
 

Though I haven't been able to verify that the above actually works as I hit
following error when I try to build sbcl.

...
gmake: Entering directory 
'/usr/ports/pobj/sbcl-1.3.10-threads-native_bootstrap/sbcl-1.3.10/tools-for-build'
cc -O2 -pipe -fno-omit-frame-pointer -fno-pie -I../src/runtime -nopie  
determine-endianness.c   -lutil -o determine-endianness
gmake: Leaving directory 
'/usr/ports/pobj/sbcl-1.3.10-threads-native_bootstrap/sbcl-1.3.10/tools-for-build'
make-config.sh[760]: tools-for-build/determine-endianness: Permission denied
*** Error 1 in . (Makefile:73 'do-build')
*** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2683 
'/usr/ports/pobj/sbcl-1.3.10-threads-native_bootstrap/.build_done')
*** Error 1 in /usr/ports/lang/sbcl 
(/usr/ports/infrastructure/mk/bsd.port.mk:2389 'all')
...

I'm pretty suprised why I don't have permissions to run that. If I manually
change to that dir and compile the file manually things work.

tmy@phobos sbcl $ cd 
/usr/ports/pobj/sbcl-1.3.14-threads-native_bootstrap/sbcl-1.3.14/tools-for-build
     
tmy@phobos tools-for-build $ cc -O2 -pipe -fno-omit-frame-pointer 
-I../src/runtime   determine-endianness.c   -lutil -o determine-endianness 
tmy@phobos tools-for-build $ ./determine-endianness                             
                                                                                
                                       :little-endiantmy@phobos tools-for-build 
$ 

Is the SBCL build process doing something else behind the scenes or what?
Anyone else seeing this?

Timo

Reply via email to