[swift-users] REPL failed

Daniel Dunbar daniel_dunbar at apple.com
Thu Dec 10 11:59:50 CST 2015

Actually, I am retracting this suggestion in favor of what I think is a better one:

What if we change the build process to build up a "composed package" as part of the regular build. We would clear this at the start of each build, and then build up the installed compiler + libraries + package manager as each project completed its build (basically just using the same install logic into a side location).

This has a number of benefits:

 - At the end of the build, we have a "build/<config>/bin" directory which has a functioning compiler.
 - Each project in the chain can use the composed build to work with. So for example, the package manager can build with the compiler + xctest as they are expected to look in a package. This would reduce some complexity in our build process, and be more maintainable.
 - This solution scales better if/when we add more projects.
 - This solution also lets the build easily sub in an "prebuilt package" into the build process (it just means pointing at a different composed package).


 - Daniel

> On Dec 10, 2015, at 8:43 AM, Daniel Dunbar <daniel_dunbar at apple.com> wrote:
> Dmitri, this seems to be a common problem. What would you think about creating symlinks in the build tree (when building the appropriate projects), just to smooth over the development process?
> - Daniel
>> On Dec 6, 2015, at 12:14 AM, Dmitri Gribenko via swift-users <swift-users at swift.org> wrote:
>> On Sun, Dec 6, 2015 at 12:10 AM, Thomas# Chiang via swift-users
>> <swift-users at swift.org> wrote:
>>> Hi,
>>> I built swift for Linux(openSUSE 13.2) from source code, by "./utils/build-script -R" command.
>>> It works for run test.swift file, but can not run on REPL mode,
>>> the error message is:
>>> "LLVM ERROR: Compiler-internal integrated REPL unimplemented for this platform; use the LLDB-enhanced REPL instead."
>>> since I always failed to build for Debug mode,  I need some help to run REPL,
>> Hi Thomas,
>> To run the REPL, the 'swift' and 'lldb' binaries need to be next to
>> each other. This is not the case in the build tree. Either create a
>> symlink, or build the package using 'build-script
>> --preset=buildbot_linux_1404 installable_package=/tmp/swift.tar.gz
>> install_destdir=/tmp/swift-install', and try again from the package.
>> 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 at gmail.com>*/
>> _______________________________________________
>> swift-users mailing list
>> swift-users at swift.org
>> https://lists.swift.org/mailman/listinfo/swift-users

More information about the swift-users mailing list