Linux Install from source ?


(Damien (dev)) #1

Hello everybody,

I'm using a custom Linux from scratch (x86_64). I have just built Swift, but I cannot find how to install it after the build process. Is there a script or something ?

I cannot even launch it from build dir since it seems to use my system LLVM and fails with a frustrating :

LLVM ERROR: Compiler-internal integrated REPL unimplemented for this platform.

Thanks

···

--
Damien BRUN


(Dmitri Gribenko) #2

Hi Damien,

Hello everybody,

I'm using a custom Linux from scratch (x86_64). I have just built Swift, but I cannot find how to install it after the build process. Is there a script or something ?

Yes:

build-script --preset=buildbot_linux_1404
installable_package=/tmp/swift.tar.gz
install_destdir=/tmp/swift-install

Unfortunately, that depends on the swift-package-tests directory,
which is currently missing from the repository. As a temporary
workaround, please disable those tests by commenting out
"test-installable-package=1" from utils/build-presets.ini.

I cannot even launch it from build dir since it seems to use my system LLVM and fails with a frustrating :

LLVM ERROR: Compiler-internal integrated REPL unimplemented for this platform.

See discussion in https://bugs.swift.org/browse/SR-39

This is because 'swift' and 'lldb' binaries need to be next to each
other for the REPL to work. This is not the case in the build tree. To
fix, either create a symlink in your build tree, or build the package,
where the two are installed next to each other.

Dmitri

···

On Fri, Dec 4, 2015 at 9:06 AM, Damien (dev) <dev@lanza.fr> 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>*/


(Dmitri Gribenko) #3

It looks like other tests are broken on master now, see
https://bugs.swift.org/browse/SR-39 again. We're looking into it.

Dmitri

···

On Fri, Dec 4, 2015 at 9:14 AM, Dmitri Gribenko <gribozavr@gmail.com> wrote:

Hi Damien,

On Fri, Dec 4, 2015 at 9:06 AM, Damien (dev) <dev@lanza.fr> wrote:

Hello everybody,

I'm using a custom Linux from scratch (x86_64). I have just built Swift, but I cannot find how to install it after the build process. Is there a script or something ?

Yes:

build-script --preset=buildbot_linux_1404
installable_package=/tmp/swift.tar.gz
install_destdir=/tmp/swift-install

Unfortunately, that depends on the swift-package-tests directory,
which is currently missing from the repository. As a temporary
workaround, please disable those tests by commenting out
"test-installable-package=1" from utils/build-presets.ini.

--
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>*/


(Damien (dev)) #4

Ok. Had to re-clone (previous build seems to have broken something), skip
cmark tests (same failure as
https://lists.swift.org/pipermail/swift-users/2015-December/000048.html),
install rsync, tweak my ncurses installation so that -lcurses works, but I
now have a working installation.

$ swift --version
Swift version 2.2-dev (LLVM 46be9ff861, Clang 4deb154edc, Swift f25b887686)
Target: x86_64-unknown-linux-gnu

All other tests passes (I did not even try swift-package-tests)

As for the cmark test failure, I do have python 3.5 installed, but it
should not be seen as default :
$ python --version
Python 2.7.10

Regards, and thanks for the help and for the good work. :slight_smile:

···

2015-12-04 18:34 GMT+01:00 Dmitri Gribenko <gribozavr@gmail.com>:

On Fri, Dec 4, 2015 at 9:14 AM, Dmitri Gribenko <gribozavr@gmail.com> > wrote:
> Hi Damien,
>
> On Fri, Dec 4, 2015 at 9:06 AM, Damien (dev) <dev@lanza.fr> wrote:
>> Hello everybody,
>>
>> I'm using a custom Linux from scratch (x86_64). I have just built
Swift, but I cannot find how to install it after the build process. Is
there a script or something ?
>
> Yes:
>
> build-script --preset=buildbot_linux_1404
> installable_package=/tmp/swift.tar.gz
> install_destdir=/tmp/swift-install
>
> Unfortunately, that depends on the swift-package-tests directory,
> which is currently missing from the repository. As a temporary
> workaround, please disable those tests by commenting out
> "test-installable-package=1" from utils/build-presets.ini.

It looks like other tests are broken on master now, see
https://bugs.swift.org/browse/SR-39 again. We're looking into it.

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>*/