[swift-users] libswiftCore.dylib was compiled with optimization - stepping may behave oddly;
David Liu
david.yang.liu at gmail.com
Sat Aug 27 20:09:35 CDT 2016
Hi Dimitri,
Thanks again for the help but unfortunately i am still stuck.
I added the --lldb flag and built it and ran in to some errors with this
command./utils/build-script -R --debug-swift-stdlib --lldb
So i decided to start clean and re clone everything and start on fresh
slate and try it with just the -l option ./utils/build-script -l
I got the same error both times, it looks like both of the scripts have to
do with code signing. I did not see any code sign related entry in the
README.md
Cheers
Dave
PBXCp
/Users/dyl/Documents/swift-source/build/Ninja-DebugAssert/lldb-macosx-x86_64/CustomSwift-Debug/repl_swift
/Users/dyl/Documents/swift-source/build/Ninja-DebugAssert/lldb-macosx-x86_64/CustomSwift-Debug/LLDB.framework/Resources/repl_swift
cd /Users/dyl/Documents/swift-source/lldb
builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude
.git -exclude .hg -resolve-src-symlinks
/Users/dyl/Documents/swift-source/build/Ninja-DebugAssert/lldb-macosx-x86_64/CustomSwift-Debug/repl_swift
/Users/dyl/Documents/swift-source/build/Ninja-DebugAssert/lldb-macosx-x86_64/CustomSwift-Debug/LLDB.framework/Resources
** BUILD FAILED **
The following build commands failed:
PhaseScriptExecution Run\ Script
/Users/dyl/Documents/swift-source/build/Ninja-DebugAssert/lldb-macosx-x86_64/lldb.build/CustomSwift-Debug/lldb-server.build/Script-4C3326CA18B2A2B800EB5DD7.sh
PhaseScriptExecution Run\ Script
/Users/dyl/Documents/swift-source/build/Ninja-DebugAssert/lldb-macosx-x86_64/debugserver.build/CustomSwift-Debug/debugserver.build/Script-4C3326CB18B2A2F600EB5DD7.sh
(2 failures)
./swift/utils/build-script: fatal error: command terminated with a non-zero
exit status 65, aborting
davids-Mac-Pro:swift-source dyl$ ./swift/utils/build-script -l
#!/bin/sh -x
if [ "${CONFIGURATION}" != BuildAndIntegration ]
then
if [ -n "${DEBUGSERVER_USE_FROM_SYSTEM}" ]
then
ditto
"${DEVELOPER_DIR}/../SharedFrameworks/LLDB.framework/Resources/debugserver"
"${TARGET_BUILD_DIR}/${TARGET_NAME}"
elif [ "${DEBUGSERVER_DISABLE_CODESIGN}" == "" ]
then
codesign -f -s lldb_codesign "${TARGET_BUILD_DIR}/${TARGET_NAME}"
fi
fi
if [ "${CONFIGURATION}" != BuildAndIntegration ]
then
if [ "${DEBUGSERVER_USE_FROM_SYSTEM}" == "" ]
then
if [ "${DEBUGSERVER_DISABLE_CODESIGN}" == "" ]
then
codesign -f -s lldb_codesign
"${TARGET_BUILD_DIR}/${TARGET_NAME}"
fi
fi
fi
On Sat, Aug 27, 2016 at 2:17 PM, Dmitri Gribenko <gribozavr at gmail.com>
wrote:
> On Sat, Aug 27, 2016 at 2:12 PM, David Liu <david.yang.liu at gmail.com>
> wrote:
> > Hi Dimitri,
> >
> > So i have built using ./utils/build-script -R --debug-swift-stdlib how
> ever
> > the REPL no longer has line numbers and i can not set a breakpoint via
> `:b`
> > and am unable to get to lldb to set breakpoints.
> > Thanks again for your help.
>
> This build does not include LLDB, only the components that I mentioned:
>
> > This will build the compiler, the standard library, and SDK overlays.
>
> Add '--lldb' if you need the debugger. (Note that you'd need to start
> the REPL from the LLDB build dir, or install everything. Running
> 'swift' from the build directory will always run the integrated REPL
> without LLDB.)
>
> 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>*/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20160827/0981151e/attachment.html>
More information about the swift-users
mailing list