Failed to resolve REPL breakpoint

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].

[1] http://linux.die.net/man/1/strip
[2]
https://github.com/RLovelett/swift-aur/blob/3498527dc392e391d77507579f075a8ebc4c78c0/PKGBUILD#L31-L33

ยทยทยท

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`

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

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:

override_dh_strip:
	dh_strip --exclude=swift/bin