Building on Fedora


(Brad Erickson) #1

I've got Swift building now on Fedora 23. The only problem issue I'm
running into is probably related to:
https://llvm.org/bugs/show_bug.cgi?id=23785

CMake Error at scripts/cmake_install.cmake:36 (file):
  file INSTALL cannot find
  "/build/buildbot_linux/lldb-linux-x86_64/lib/python2.7".
Call Stack (most recent call first):
  cmake_install.cmake:42 (include)
FAILED: cd /build/buildbot_linux/lldb-linux-x86_64 && /usr/bin/cmake -P
cmake_install.cmake
ninja: build stopped: subcommand failed.

The workaround is:
ln -s /build/buildbot_linux/lldb-linux-x86_64/lib64/python2.7
/build/buildbot_linux/lldb-linux-x86_64/lib/python2.7

​Should I add the list of required packages to the readme with disclaimer
than only OS X and Ubuntu 14.04/15.10 a​re officially supported?

-Brad


(Meador Inge) #2

I've got Swift building now on Fedora 23. The only problem issue I'm

running into is probably related to:
https://llvm.org/bugs/show_bug.cgi?id=23785

CMake Error at scripts/cmake_install.cmake:36 (file):
  file INSTALL cannot find
  "/build/buildbot_linux/lldb-linux-x86_64/lib/python2.7".
Call Stack (most recent call first):
  cmake_install.cmake:42 (include)
FAILED: cd /build/buildbot_linux/lldb-linux-x86_64 && /usr/bin/cmake -P
cmake_install.cmake
ninja: build stopped: subcommand failed.

The workaround is:
ln -s /build/buildbot_linux/lldb-linux-x86_64/lib64/python2.7
/build/buildbot_linux/lldb-linux-x86_64/lib/python2.7

It is related. This was mentioned in SR-100 as well:
https://bugs.swift.org/browse/SR-100

Cheers,

Meador

···

On Sun, Dec 13, 2015 at 12:17 PM, Brad Erickson via swift-dev < swift-dev@swift.org> wrote:


(Dmitri Gribenko) #3

I've got Swift building now on Fedora 23.

Hi Brad,

Thank you for working on this!

The only problem issue I'm running into is probably related to:
https://llvm.org/bugs/show_bug.cgi?id=23785

CMake Error at scripts/cmake_install.cmake:36 (file):
  file INSTALL cannot find
  "/build/buildbot_linux/lldb-linux-x86_64/lib/python2.7".
Call Stack (most recent call first):
  cmake_install.cmake:42 (include)
FAILED: cd /build/buildbot_linux/lldb-linux-x86_64 && /usr/bin/cmake -P
cmake_install.cmake
ninja: build stopped: subcommand failed.

The workaround is:
ln -s /build/buildbot_linux/lldb-linux-x86_64/lib64/python2.7
/build/buildbot_linux/lldb-linux-x86_64/lib/python2.7

​Should I add the list of required packages to the readme with disclaimer
than only OS X and Ubuntu 14.04/15.10 a​re officially supported?

LLDB is a very important component of the Swift distribution, I'd be
hesitant to advertise support until we can get LLDB working and passing the
testsuite.

From the activity in the bug report, it seems to me that making progress on

the upstream LLDB bug will require some initiative from someone familiar
with Fedora / RHEL -- at least starting with providing a "hacky" patch, and
improving according to the core developer's suggestions.

Dmitri

···

On Sun, Dec 13, 2015 at 10:17 AM, Brad Erickson via swift-dev < swift-dev@swift.org> wrote:

--
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr@gmail.com>*/


(Brad Erickson) #4

Works for me. I'll look into the LLDB bug.

I've created some buildbot Docker containers:
https://github.com/eosrei/docker-swift-dev-buildbot
if someone wants to build a snapshot on Fedora (or Ubuntu for that matter):

cd /path/to/swift
docker run --name swift-f23 -v $PWD:/src -v $PWD:/output
eosrei/swift-dev-buildbot:fedora23
docker run --name swift-15 -v $PWD:/src -v $PWD:/output
eosrei/swift-dev-buildbot:15.10

When needed, the Fedora dnf package requirements are listed in the
Dockerfile:
https://github.com/eosrei/docker-swift-dev-buildbot/blob/master/fedora/23/Dockerfile

-Brad

···

On Mon, Dec 14, 2015 at 1:04 AM, Dmitri Gribenko <gribozavr@gmail.com> wrote:

On Sun, Dec 13, 2015 at 10:17 AM, Brad Erickson via swift-dev < > swift-dev@swift.org> wrote:

I've got Swift building now on Fedora 23.

Hi Brad,

Thank you for working on this!

The only problem issue I'm running into is probably related to:
https://llvm.org/bugs/show_bug.cgi?id=23785

CMake Error at scripts/cmake_install.cmake:36 (file):
  file INSTALL cannot find
  "/build/buildbot_linux/lldb-linux-x86_64/lib/python2.7".
Call Stack (most recent call first):
  cmake_install.cmake:42 (include)
FAILED: cd /build/buildbot_linux/lldb-linux-x86_64 && /usr/bin/cmake -P
cmake_install.cmake
ninja: build stopped: subcommand failed.

The workaround is:
ln -s /build/buildbot_linux/lldb-linux-x86_64/lib64/python2.7
/build/buildbot_linux/lldb-linux-x86_64/lib/python2.7

​Should I add the list of required packages to the readme with disclaimer
than only OS X and Ubuntu 14.04/15.10 a​re officially supported?

LLDB is a very important component of the Swift distribution, I'd be
hesitant to advertise support until we can get LLDB working and passing the
testsuite.

From the activity in the bug report, it seems to me that making progress
on the upstream LLDB bug will require some initiative from someone familiar
with Fedora / RHEL -- at least starting with providing a "hacky" patch, and
improving according to the core developer's suggestions.

Dmitri

--
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr@gmail.com>*/