Bug 203618 - devel/llvm37: unable to build with Python 3.4 as default
Summary: devel/llvm37: unable to build with Python 3.4 as default
Status: Closed Works As Intended
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Brooks Davis
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-07 12:44 UTC by loic.blot
Modified: 2016-03-05 12:50 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (brooks)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 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 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.