Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: build with clang fails for me



On Tue, Feb 19, 2013 at 11:38:02PM +0100, Thomas Klausner wrote:
> checking for python... result:: not found
> no
> checking for python >= 2.5... -c: not found
> test: : bad number
> not found
> configure: error: found python  (); required >= 2.5
> See `config.log' for more details.
> *** [config/config.status] Error code 1
> nbmake: stopped in /archive/cvs/src/tools/llvm
> 1 error

I am aware of it. You can try something like the attached patch as
workaround.

Joerg
Index: Makefile
===================================================================
RCS file: /home/joerg/repo/netbsd/src/tools/llvm/Makefile,v
retrieving revision 1.15
diff -u -p -r1.15 Makefile
--- Makefile    17 Jun 2012 07:40:25 -0000      1.15
+++ Makefile    19 Feb 2013 23:02:13 -0000
@@ -13,8 +13,11 @@ realdepends realall: config/config.statu
 
 config/config.status: ${LLVM_SRCDIR}/configure
        mkdir -p config
+       printf '#!/bin/sh\necho 2.7.3' > config/python
+       chmod 755 config/python
        cd config && ${LLVM_SRCDIR}/configure ${LLVM_CONFIGURE_ARGS} \
-           --enable-optimized CC=${HOST_CC:Q}
+           --enable-optimized CC=${HOST_CC:Q} \
+           --with-python=${.OBJDIR}/config/python
 # --disable-assertions
 
 need-dl:


Home | Main Index | Thread Index | Old Index