Bug 203618

Summary: devel/llvm37: unable to build with Python 3.4 as default
Product: Ports & Packages Reporter: loic.blot
Component: Individual Port(s)Assignee: Brooks Davis <brooks>
Status: Closed Works As Intended    
Severity: Affects Many People CC: FreeBSD, loic.blot
Priority: --- Flags: bugzilla: maintainer-feedback? (brooks)
Version: Latest   
Hardware: Any   
OS: Any   

Description loic.blot 2015-10-07 12:44:00 UTC
Hello,
i changed my default python version to 3.4 recently because Python2.7 will became obsolete in some month, and Python 3.5 was released.

I noticed it's impossible to build LLVM 3.7 with Python 3.4 whereas LLVM 3.6 builds properly. I think there is a missing 2to3 in the build process but i don't know how to solve the problem.

[2783/3812] Linking CXX static library lib/liblldbBase.a
[2784/3812] Python script building LLDB Python wrapper
FAILED: cd /wrkdirs/usr/ports/devel/llvm37/work/.build/tools/lldb/scripts && /usr/local/bin/python3.4 /wrkdirs/usr/ports/devel/llvm37/work/llvm-3.7.0.src/tools/lldb/scripts/buildSwigWrapperClasses.py --srcRoot=/wrkdirs/usr/ports/devel/llvm37/work/llvm-3.7.0.src/tools/lldb --targetDir=/wrkdirs/usr/ports/devel/llvm37/work/.build/tools/lldb/scripts --cfgBldDir=/wrkdirs/usr/ports/devel/llvm37/work/.build/tools/lldb/scripts --prefix=/wrkdirs/usr/ports/devel/llvm37/work/.build --swigExecutable=/usr/local/bin/swig -m
  File "/wrkdirs/usr/ports/devel/llvm37/work/llvm-3.7.0.src/tools/lldb/scripts/buildSwigWrapperClasses.py", line 129
    print strMsg;

Can you fix it please ?

Thanks
Comment 1 commit-hook freebsd_committer freebsd_triage 2015-10-19 23:35:03 UTC
A commit references this bug:

Author: brooks
Date: Mon Oct 19 23:34:21 UTC 2015
New revision: 399795
URL: https://svnweb.freebsd.org/changeset/ports/399795

Log:
  Add an option to build extra clang tools.

  Add an insufficient set of patch toward building when the default python
  is python 3.  Scripts now run, but lldb uses APIs that have been
  removed in C code.

  Some small changes aimed at reducing future plist churn.

  PR:		203618

Changes:
  head/devel/llvm37/Makefile
  head/devel/llvm37/distinfo
  head/devel/llvm37/files/compiler-rt-patch-svn-249051
  head/devel/llvm37/files/extras-patch-cmake_include_hack.diff
  head/devel/llvm37/files/lldb-patch-svn-247116
  head/devel/llvm37/files/lldb-patch-svn-249467
  head/devel/llvm37/pkg-plist
Comment 2 Brooks Davis freebsd_committer freebsd_triage 2016-03-05 12:50:56 UTC
Upstream LLVM doesn't yet support python 3.  There is basically no chance they will ever support python 3 for any shipped release including 3.7 and probably 3.8.