build error: INSTALL cannot find readline.so


(Rob Allen) #1

Hi,

I'm trying to compile swift manually using this command:

swift/utils/build-script --preset=buildbot_linux_1510 installable_package=/home/rob/swift.tar.gz install_destdir=/home/rob/swift-install

It all seems to go okay until this error:

Make Error at scripts/Python/modules/readline/cmake_install.cmake:44 (file):
  file INSTALL cannot find
  "/home/rob/swift-dev/build/buildbot_linux/lldb-linux-x86_64/scripts/Python/modules/readline/CMakeFiles/CMakeRelink.dir/readline.so".
Call Stack (most recent call first):
  scripts/Python/modules/cmake_install.cmake:37 (include)
  scripts/cmake_install.cmake:41 (include)
  cmake_install.cmake:42 (include)

How do I solve this?

Regards,

Rob...


(Joe Bell) #2

Rob, this is a known build bug tracked by
https://bugs.swift.org/browse/SR-1287. I have only been able to reproduce
this by restarting a build after some previous failure. The workaround
(for me at least) is to delete the build directory and restart from the
beginning (not ideal to be sure).

Joe

···

On Mon, Apr 25, 2016 at 5:19 AM, Rob Allen via swift-dev < swift-dev@swift.org> wrote:

Hi,

I'm trying to compile swift manually using this command:

swift/utils/build-script --preset=buildbot_linux_1510
installable_package=/home/rob/swift.tar.gz
install_destdir=/home/rob/swift-install

It all seems to go okay until this error:

Make Error at scripts/Python/modules/readline/cmake_install.cmake:44
(file):
  file INSTALL cannot find

"/home/rob/swift-dev/build/buildbot_linux/lldb-linux-x86_64/scripts/Python/modules/readline/CMakeFiles/CMakeRelink.dir/readline.so".
Call Stack (most recent call first):
  scripts/Python/modules/cmake_install.cmake:37 (include)
  scripts/cmake_install.cmake:41 (include)
  cmake_install.cmake:42 (include)

How do I solve this?

Regards,

Rob...
_______________________________________________
swift-dev mailing list
swift-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-dev

--
Joseph Bell
http://dev.iachieved.it/iachievedit/
@iachievedit


(Joe Bell) #3

I understand a native ARM compile, much less an incremental ARM compile, is
low on the priority list, but https://bugs.swift.org/browse/SR-1287 ("INSTALL
cannot find readline.so") is hampering x86 incremental builds as well. I
was curious as to whether there were any Cmake experts that have time to
invest in looking at it? It was also noticed that
https://github.com/rintaro has a number of PRs in the Python/Cmake system,
but I don't know how to contact them directly.

Regards,
Joe

···

On Mon, Apr 25, 2016 at 7:55 AM, Joseph Bell <joe@iachieved.it> wrote:

Rob, this is a known build bug tracked by
https://bugs.swift.org/browse/SR-1287. I have only been able to
reproduce this by restarting a build after some previous failure. The
workaround (for me at least) is to delete the build directory and restart
from the beginning (not ideal to be sure).

Joe

On Mon, Apr 25, 2016 at 5:19 AM, Rob Allen via swift-dev < > swift-dev@swift.org> wrote:

Hi,

I'm trying to compile swift manually using this command:

swift/utils/build-script --preset=buildbot_linux_1510
installable_package=/home/rob/swift.tar.gz
install_destdir=/home/rob/swift-install

It all seems to go okay until this error:

Make Error at scripts/Python/modules/readline/cmake_install.cmake:44
(file):
  file INSTALL cannot find

"/home/rob/swift-dev/build/buildbot_linux/lldb-linux-x86_64/scripts/Python/modules/readline/CMakeFiles/CMakeRelink.dir/readline.so".
Call Stack (most recent call first):
  scripts/Python/modules/cmake_install.cmake:37 (include)
  scripts/cmake_install.cmake:41 (include)
  cmake_install.cmake:42 (include)

How do I solve this?

Regards,

Rob...
_______________________________________________
swift-dev mailing list
swift-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-dev

--
Joseph Bell
http://dev.iachieved.it/iachievedit/
@iachievedit

--
Joseph Bell
http://dev.iachieved.it/iachievedit/
@iachievedit


(Todd Fiala) #4

I think that bug has details in it, but specifically I think you need to delete just the lldb and maybe the llbuild (?) build directories. This should cut down the (painful) rebuild time.

This looks to be some kind of known deficiency in the cmake/ninja generator handling. We found links to other projects hitting this as well.

-Todd

···

On Apr 25, 2016, at 5:55 AM, Joseph Bell <joe@iachieved.it> wrote:

Rob, this is a known build bug tracked by https://bugs.swift.org/browse/SR-1287. I have only been able to reproduce this by restarting a build after some previous failure. The workaround (for me at least) is to delete the build directory and restart from the beginning (not ideal to be sure).

Joe

On Mon, Apr 25, 2016 at 5:19 AM, Rob Allen via swift-dev <swift-dev@swift.org <mailto:swift-dev@swift.org>> wrote:
Hi,

I'm trying to compile swift manually using this command:

swift/utils/build-script --preset=buildbot_linux_1510 installable_package=/home/rob/swift.tar.gz install_destdir=/home/rob/swift-install

It all seems to go okay until this error:

Make Error at scripts/Python/modules/readline/cmake_install.cmake:44 (file):
  file INSTALL cannot find
  "/home/rob/swift-dev/build/buildbot_linux/lldb-linux-x86_64/scripts/Python/modules/readline/CMakeFiles/CMakeRelink.dir/readline.so".
Call Stack (most recent call first):
  scripts/Python/modules/cmake_install.cmake:37 (include)
  scripts/cmake_install.cmake:41 (include)
  cmake_install.cmake:42 (include)

How do I solve this?

Regards,

Rob...
_______________________________________________
swift-dev mailing list
swift-dev@swift.org <mailto:swift-dev@swift.org>
https://lists.swift.org/mailman/listinfo/swift-dev

--
Joseph Bell
http://dev.iachieved.it/iachievedit/
@iachievedit


#5

I'm not sure I can fix this.
But I'm looking into it.

rintaro

···

2016-05-04 6:06 GMT+09:00 Joseph Bell via swift-dev <swift-dev@swift.org>:

I understand a native ARM compile, much less an incremental ARM compile,
is low on the priority list, but https://bugs.swift.org/browse/SR-1287 ("INSTALL
cannot find readline.so") is hampering x86 incremental builds as well. I
was curious as to whether there were any Cmake experts that have time to
invest in looking at it? It was also noticed that
https://github.com/rintaro has a number of PRs in the Python/Cmake
system, but I don't know how to contact them directly.

Regards,
Joe

On Mon, Apr 25, 2016 at 7:55 AM, Joseph Bell <joe@iachieved.it> wrote:

Rob, this is a known build bug tracked by
https://bugs.swift.org/browse/SR-1287. I have only been able to
reproduce this by restarting a build after some previous failure. The
workaround (for me at least) is to delete the build directory and restart
from the beginning (not ideal to be sure).

Joe

On Mon, Apr 25, 2016 at 5:19 AM, Rob Allen via swift-dev < >> swift-dev@swift.org> wrote:

Hi,

I'm trying to compile swift manually using this command:

swift/utils/build-script --preset=buildbot_linux_1510
installable_package=/home/rob/swift.tar.gz
install_destdir=/home/rob/swift-install

It all seems to go okay until this error:

Make Error at scripts/Python/modules/readline/cmake_install.cmake:44
(file):
  file INSTALL cannot find

"/home/rob/swift-dev/build/buildbot_linux/lldb-linux-x86_64/scripts/Python/modules/readline/CMakeFiles/CMakeRelink.dir/readline.so".
Call Stack (most recent call first):
  scripts/Python/modules/cmake_install.cmake:37 (include)
  scripts/cmake_install.cmake:41 (include)
  cmake_install.cmake:42 (include)

How do I solve this?

Regards,

Rob...
_______________________________________________
swift-dev mailing list
swift-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-dev

--
Joseph Bell
http://dev.iachieved.it/iachievedit/
@iachievedit

--
Joseph Bell
http://dev.iachieved.it/iachievedit/
@iachievedit

_______________________________________________
swift-dev mailing list
swift-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-dev


#6

And I found that was my fault. X(

Posted a PR https://github.com/apple/swift/pull/2393

···

2016-05-04 11:46 GMT+09:00 rintaro ishizaki <fs.output@gmail.com>:

I'm not sure I can fix this.
But I'm looking into it.

rintaro

2016-05-04 6:06 GMT+09:00 Joseph Bell via swift-dev <swift-dev@swift.org>:

I understand a native ARM compile, much less an incremental ARM compile,
is low on the priority list, but https://bugs.swift.org/browse/SR-1287 ("INSTALL
cannot find readline.so") is hampering x86 incremental builds as well. I
was curious as to whether there were any Cmake experts that have time to
invest in looking at it? It was also noticed that
https://github.com/rintaro has a number of PRs in the Python/Cmake
system, but I don't know how to contact them directly.

Regards,
Joe

On Mon, Apr 25, 2016 at 7:55 AM, Joseph Bell <joe@iachieved.it> wrote:

Rob, this is a known build bug tracked by
https://bugs.swift.org/browse/SR-1287. I have only been able to
reproduce this by restarting a build after some previous failure. The
workaround (for me at least) is to delete the build directory and restart
from the beginning (not ideal to be sure).

Joe

On Mon, Apr 25, 2016 at 5:19 AM, Rob Allen via swift-dev < >>> swift-dev@swift.org> wrote:

Hi,

I'm trying to compile swift manually using this command:

swift/utils/build-script --preset=buildbot_linux_1510
installable_package=/home/rob/swift.tar.gz
install_destdir=/home/rob/swift-install

It all seems to go okay until this error:

Make Error at scripts/Python/modules/readline/cmake_install.cmake:44
(file):
  file INSTALL cannot find

"/home/rob/swift-dev/build/buildbot_linux/lldb-linux-x86_64/scripts/Python/modules/readline/CMakeFiles/CMakeRelink.dir/readline.so".
Call Stack (most recent call first):
  scripts/Python/modules/cmake_install.cmake:37 (include)
  scripts/cmake_install.cmake:41 (include)
  cmake_install.cmake:42 (include)

How do I solve this?

Regards,

Rob...
_______________________________________________
swift-dev mailing list
swift-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-dev

--
Joseph Bell
http://dev.iachieved.it/iachievedit/
@iachievedit

--
Joseph Bell
http://dev.iachieved.it/iachievedit/
@iachievedit

_______________________________________________
swift-dev mailing list
swift-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-dev


(Ryan Lovelett) #7

Big help! Thank you Rintaro.


(Joe Bell) #8

Confirmed as well, pulled in Rintaro's fix and was able to turn around an
incremental ARM compile in 30 minutes. Thanks Rintaro!

···

On Wed, May 4, 2016 at 9:49 AM, Ryan Lovelett <swift-dev@ryan.lovelett.me> wrote:

Big help! Thank you Rintaro.

--
Joseph Bell
http://dev.iachieved.it/iachievedit/
@iachievedit