I have compiled from the latest Swift source and built a package for my
system using the install to destination. However, after installing the
package and running `swift` to test the REPL it dies with the following
error: `error: failed to resolve REPL breakpoint for 'repl_main'`.
Not really sure what this means. Did I fail to compile something
properly?
The script that I used to run was this `utils/build-script
--preset=buildbot_linux install_destdir="$pkgdir/"
installable_package=/tmp/swift.tar.gz`
For future reference I figured out what was causing this. The Arch Linux
`makepkg` command was calling strip [1] by default. This was obviously
stripping out some things that was necessary for build.
The fix was obviously to tell the packager to skip calling strip [2].
On Wed, Dec 23, 2015, at 08:32 PM, Ryan Lovelett via swift-users wrote:
I have compiled from the latest Swift source and built a package for my
system using the install to destination. However, after installing the
package and running `swift` to test the REPL it dies with the following
error: `error: failed to resolve REPL breakpoint for 'repl_main'`.
Not really sure what this means. Did I fail to compile something
properly?
The script that I used to run was this `utils/build-script
--preset=buildbot_linux install_destdir="$pkgdir/"
installable_package=/tmp/swift.tar.gz`
My thanks to @rlovelett for posting this error and fix a few years ago. I ran
into this same issue while packaging Swift for Debian and was struggling to
figure it out until I found this old post.
The fix I used for Debian was to add the following to d/rules: