[swift-corelibs-dev] Building Foundation
I am trying to build Foundation on my Ubuntu 16.04 LTS version using: swift/utils/build-script --xctest --foundation -t And it fails with the following tests failing: Failing Tests (11): Swift-Unit :: runtime/SwiftRuntimeTests/RefcountingTest.release Swift-Unit :: runtime/SwiftRuntimeTests/RefcountingTest.retain_release Swift-Unit :: runtime/SwiftRuntimeTests/RefcountingTest.pin_unpin Swift-Unit :: runtime/SwiftRuntimeTests/RefcountingTest.pin_pin_unpin_unpin Swift-Unit :: runtime/SwiftRuntimeTests/RefcountingTest.unowned_retain_release_n Swift-Unit :: runtime/SwiftRuntimeTests/RefcountingTest.isUniquelyReferenced Swift-Unit :: runtime/SwiftRuntimeTests/RefcountingTest.isUniquelyReferencedOrPinned Swift-Unit :: runtime/SwiftRuntimeTests/RefcountingTest.nonatomic_release Swift-Unit :: runtime/SwiftRuntimeTests/RefcountingTest.nonatomic_retain_release Swift-Unit :: runtime/SwiftRuntimeTests/RefcountingTest.nonatomic_pin_unpin Swift-Unit :: runtime/SwiftRuntimeTests/RefcountingTest.nonatomic_pin_pin_unpin_unpin Every thing has been freshly cloned and no code has been modifed yet... Thanks, Mohit ___ swift-corelibs-dev mailing list [email protected] https://lists.swift.org/mailman/listinfo/swift-corelibs-dev
Re: [swift-corelibs-dev] Building Foundation
Hi Alex, I can see that all of the tests mentioned in my last mail failed on: SwiftRuntimeTests: /home/mohit/Documents/swift-source/swift/unittests/runtime/Refcounting.cpp:26: void destroyTestObject(swift::HeapObject *): Assertion `object->Addr && "object already deallocated"' failed. I am on the master branch for swift and swift-corelibs-foundation and on stable branch for llvm Thanks, Mohit On Thu, Mar 2, 2017 at 12:58 AM, Alex Blewitt wrote: > > On 2 Mar 2017, at 01:51, Mohit Athwani via swift-corelibs-dev < > [email protected]> wrote: > > > > I am trying to build Foundation on my Ubuntu 16.04 LTS version using: > > > > swift/utils/build-script --xctest --foundation -t > > > > And it fails with the following tests failing: > > OK, what happened when you looked in the logs to find out why the tests > were failing? > > > Every thing has been freshly cloned and no code has been modifed yet... > > Which version of the code were you working with? Are you on master, or a > stable branch? What branch is your 'swift-llvm' subproject checked out as? > > Alex > ___ swift-corelibs-dev mailing list [email protected] https://lists.swift.org/mailman/listinfo/swift-corelibs-dev
[swift-corelibs-dev] Foundation: build.ninja No such file or directory
I am trying to build Foundation and is anybody else getting build.ninja: No such file or directory error? I just cloned everything from github. This did not happen with me when I worked on my previous pull request. Cheers! Mohit ___ swift-corelibs-dev mailing list [email protected] https://lists.swift.org/mailman/listinfo/swift-corelibs-dev
[swift-corelibs-dev] Building swift with xctest and foundation fails
I'm trying to get back to work starting from scratch on Swift Foundation on my Ubuntu 16.04 LTS system. I cloned the main swift repo and all of it's dependencies via ssh ./swift/utils/update-checkout --clone-with-ssh and after running (taken from instructions from the Foundation site): swift/utils/build-script --xctest --foundation -t I get the following error: + make build-tests /bin/bash ../libtool --tag=CC --mode=link /home/mohit/Documents/swift-source/build/Ninja-DebugAssert/llvm-linux-x86_64/bin/clang -Wall -Wno-deprecated-declarations -fblocks -I/home/mohit/Documents/swift-source/swift-corelibs-libdispatch/src/BlocksRuntime -isystem /usr/include/bsd -DLIBBSD_OVERLAY -g -O0 -rpath /home/mohit/Documents/swift-source/build/Ninja-DebugAssert/swift-linux-x86_64/lib/swift/linux/x86_64 -o dispatch_apply dispatch_apply.o libbsdtests.la ../src/libdispatch.la -lbsd -L/home/mohit/Documents/swift-source/build/Ninja-DebugAssert/swift-linux-x86_64/lib/swift/linux/x86_64 -lswiftCore -lswiftSwiftOnoneSupport -lpthread libtool: link: /home/mohit/Documents/swift-source/build/Ninja-DebugAssert/llvm-linux-x86_64/bin/clang -Wall -Wno-deprecated-declarations -fblocks -I/home/mohit/Documents/swift-source/swift-corelibs-libdispatch/src/BlocksRuntime -isystem /usr/include/bsd -DLIBBSD_OVERLAY -g -O0 -o .libs/dispatch_apply dispatch_apply.o ./.libs/libbsdtests.a ../src/.libs/libdispatch.so -lbsd -L/home/mohit/Documents/swift-source/build/Ninja-DebugAssert/swift-linux-x86_64/lib/swift/linux/x86_64 -lswiftCore -lswiftSwiftOnoneSupport -lpthread -Wl,-rpath -Wl,//usr/lib/swift/linux -Wl,-rpath -Wl,/home/mohit/Documents/swift-source/build/Ninja-DebugAssert/swift-linux-x86_64/lib/swift/linux/x86_64 /home/mohit/Documents/swift-source/build/Ninja-DebugAssert/swift-linux-x86_64/lib/swift/linux/x86_64/libswiftCore.so: undefined reference to `objc_release' clang-4.0: error: linker command failed with exit code 1 (use -v to see invocation) Makefile:1123: recipe for target 'dispatch_apply' failed make: *** [dispatch_apply] Error 1 swift/utils/build-script: fatal error: command terminated with a non-zero exit status 2, aborting Looks like there is some undefined reference for objc_release in libswiftCore. >From the looks of the message it looks like swift was actually built but it's just that test cases weren't built. On this hunch, I went into my swift-corelibs-foundation folder and tried to execute: ninja Which tells me: ninja: error: loading 'build.ninja': No such file or directory Given my lack of experience here, I'm not quite sure how to go about resolving these issues. Could somebody help me out here please. Thanks, Mohit ___ swift-corelibs-dev mailing list [email protected] https://lists.swift.org/mailman/listinfo/swift-corelibs-dev
Re: [swift-corelibs-dev] Building swift with xctest and foundation fails
Hi Philippe, That doesn't solve the issue either! Cheers! Mohit On Wed, Mar 29, 2017 at 7:21 PM, Philippe Hausler wrote: > You need to also pass --libdispatch but I am not quite sure that will > fully fix the problem at hand. > > Sent from my iPhone > > On Mar 29, 2017, at 6:29 PM, Mohit Athwani via swift-corelibs-dev < > [email protected]> wrote: > > I'm trying to get back to work starting from scratch on Swift Foundation > on my Ubuntu 16.04 LTS system. > > I cloned the main swift repo and all of it's dependencies via ssh > > ./swift/utils/update-checkout --clone-with-ssh > > and after running (taken from instructions from the Foundation site): > > swift/utils/build-script --xctest --foundation -t > > I get the following error: > > + make build-tests > /bin/bash ../libtool --tag=CC --mode=link /home/mohit/Documents/swift- > source/build/Ninja-DebugAssert/llvm-linux-x86_64/bin/clang -Wall > -Wno-deprecated-declarations -fblocks -I/home/mohit/Documents/swift- > source/swift-corelibs-libdispatch/src/BlocksRuntime -isystem > /usr/include/bsd -DLIBBSD_OVERLAY -g -O0 -rpath > /home/mohit/Documents/swift-source/build/Ninja- > DebugAssert/swift-linux-x86_64/lib/swift/linux/x86_64 -o dispatch_apply > dispatch_apply.o libbsdtests.la ../src/libdispatch.la -lbsd > -L/home/mohit/Documents/swift-source/build/Ninja- > DebugAssert/swift-linux-x86_64/lib/swift/linux/x86_64 -lswiftCore > -lswiftSwiftOnoneSupport -lpthread > libtool: link: /home/mohit/Documents/swift-source/build/Ninja- > DebugAssert/llvm-linux-x86_64/bin/clang -Wall > -Wno-deprecated-declarations -fblocks -I/home/mohit/Documents/swift- > source/swift-corelibs-libdispatch/src/BlocksRuntime -isystem > /usr/include/bsd -DLIBBSD_OVERLAY -g -O0 -o .libs/dispatch_apply > dispatch_apply.o ./.libs/libbsdtests.a ../src/.libs/libdispatch.so -lbsd > -L/home/mohit/Documents/swift-source/build/Ninja- > DebugAssert/swift-linux-x86_64/lib/swift/linux/x86_64 -lswiftCore > -lswiftSwiftOnoneSupport -lpthread -Wl,-rpath -Wl,//usr/lib/swift/linux > -Wl,-rpath -Wl,/home/mohit/Documents/swift-source/build/Ninja- > DebugAssert/swift-linux-x86_64/lib/swift/linux/x86_64 > /home/mohit/Documents/swift-source/build/Ninja- > DebugAssert/swift-linux-x86_64/lib/swift/linux/x86_64/libswiftCore.so: > undefined reference to `objc_release' > clang-4.0: error: linker command failed with exit code 1 (use -v to see > invocation) > Makefile:1123: recipe for target 'dispatch_apply' failed > make: *** [dispatch_apply] Error 1 > swift/utils/build-script: fatal error: command terminated with a non-zero > exit status 2, aborting > > Looks like there is some undefined reference for objc_release in > libswiftCore. > > From the looks of the message it looks like swift was actually built but > it's just that test cases weren't built. On this hunch, I went into my > swift-corelibs-foundation folder and tried to execute: > > ninja > > Which tells me: > > ninja: error: loading 'build.ninja': No such file or directory > > Given my lack of experience here, I'm not quite sure how to go about > resolving these issues. > > Could somebody help me out here please. > > Thanks, > > Mohit > > > ___ > swift-corelibs-dev mailing list > [email protected] > https://lists.swift.org/mailman/listinfo/swift-corelibs-dev > > ___ swift-corelibs-dev mailing list [email protected] https://lists.swift.org/mailman/listinfo/swift-corelibs-dev
[swift-corelibs-dev] Unable to build swift master branch
I'm trying to get back to work starting from scratch on Swift Foundation on my Ubuntu 16.04 LTS system. I cloned the main swift repo and all of it's dependencies via ssh ./swift/utils/update-checkout --clone-with-ssh and after running (taken from instructions from the Foundation site): swift/utils/build-script --xctest --foundation -t I get the following error: + make build-tests /bin/bash ../libtool --tag=CC --mode=link /home/mohit/Documents/swift- source/build/Ninja-DebugAssert/llvm-linux-x86_64/bin/clang -Wall -Wno-deprecated-declarations -fblocks -I/home/mohit/Documents/swift- source/swift-corelibs-libdispatch/src/BlocksRuntime -isystem /usr/include/bsd -DLIBBSD_OVERLAY -g -O0 -rpath /home/mohit/Documents/swift-source/build/Ninja-DebugAssert/swift-linux-x86_64/lib/swift/linux/x86_64 -o dispatch_apply dispatch_apply.o libbsdtests.la ../src/libdispatch.la -lbsd -L/home/mohit/Documents/swift-source/build/Ninja- DebugAssert/swift-linux-x86_64/lib/swift/linux/x86_64 -lswiftCore -lswiftSwiftOnoneSupport -lpthread libtool: link: /home/mohit/Documents/swift-source/build/Ninja- DebugAssert/llvm-linux-x86_64/bin/clang -Wall -Wno-deprecated-declarations -fblocks -I/home/mohit/Documents/swift-source/swift-corelibs-libdispatch/src/BlocksRuntime -isystem /usr/include/bsd -DLIBBSD_OVERLAY -g -O0 -o .libs/dispatch_apply dispatch_apply.o ./.libs/libbsdtests.a ../src/.libs/libdispatch.so -lbsd -L/home/mohit/Documents/swift-source/build/Ninja- DebugAssert/swift-linux-x86_64/lib/swift/linux/x86_64 -lswiftCore -lswiftSwiftOnoneSupport -lpthread -Wl,-rpath -Wl,//usr/lib/swift/linux -Wl,-rpath -Wl,/home/mohit/Documents/swift-source/build/Ninja- DebugAssert/swift-linux-x86_64/lib/swift/linux/x86_64 /home/mohit/Documents/swift-source/build/Ninja-DebugAssert/swift-linux-x86_ 64/lib/swift/linux/x86_64/libswiftCore.so: undefined reference to `objc_release' clang-4.0: error: linker command failed with exit code 1 (use -v to see invocation) Makefile:1123: recipe for target 'dispatch_apply' failed make: *** [dispatch_apply] Error 1 swift/utils/build-script: fatal error: command terminated with a non-zero exit status 2, aborting Looks like there is some undefined reference for objc_release in libswiftCore. >From the looks of the message it looks like swift was actually built but it's just that test cases weren't built. On this hunch, I went into my swift-corelibs-foundation folder and tried to execute: ninja Which tells me: ninja: error: loading 'build.ninja': No such file or directory Given my lack of experience here, I'm not quite sure how to go about resolving these issues. Could somebody help me out here please. Thanks, Mohit ___ swift-corelibs-dev mailing list [email protected] https://lists.swift.org/mailman/listinfo/swift-corelibs-dev
Re: [swift-corelibs-dev] [swift-users] Unable to build swift master branch
Hi Michael, Thanks for checking up on me. I'm actually working on it right now. Will give you an update in an hour or so... Cheers! -- Mohit Athwani http://about.me/mohitathwani On Apr 2, 2017, 12:59 AM -0700, Michael Gottesman , wrote: > Hey Mohit! > > Were you able to build successfully? > > Michael > > > On Mar 30, 2017, at 4:29 PM, Michael Gottesman > (mailto:[email protected])> wrote: > > I was just informed that swift-corelibs-foundation is actually using ninja! > > My bad! > > > > Still I would use the preset from the bots. It should just work. Otherwise, > > you are missing a dependency or have differing versions/etc. > > > > Michael > > > > > On Mar 30, 2017, at 4:25 PM, Michael Gottesman > > (mailto:[email protected])> wrote: > > > > > > > > On Mar 30, 2017, at 4:22 PM, Michael Gottesman via swift-users > > > > mailto:[email protected])> wrote: > > > > > > > > > > On Mar 30, 2017, at 12:31 PM, Mohit Athwani via swift-users > > > > > mailto:[email protected])> wrote: > > > > > I'm trying to get back to work starting from scratch on Swift > > > > > Foundation on my Ubuntu 16.04 LTS system. > > > > > > > > > > I cloned the main swift repo and all of it's dependencies via ssh > > > > > ./swift/utils/update-checkout --clone-with-ssh and after running > > > > > (taken from instructions from the Foundation site): > > > > > > > > > > swift/utils/build-script --xctest --foundation -t > > > > > > > > > > I get the following error: > > > > > > > > > > + make build-tests > > > > > /bin/bash ../libtool --tag=CC --mode=link > > > > > /home/mohit/Documents/swift-source/build/Ninja-DebugAssert/llvm-linux-x86_64/bin/clang > > > > > -Wall -Wno-deprecated-declarations -fblocks > > > > > -I/home/mohit/Documents/swift-source/swift-corelibs-libdispatch/src/BlocksRuntime > > > > > -isystem /usr/include/bsd -DLIBBSD_OVERLAY -g -O0 -rpath > > > > > /home/mohit/Documents/swift-source/build/Ninja-DebugAssert/swift-linux-x86_64/lib/swift/linux/x86_64 > > > > > -o dispatch_apply dispatch_apply.o libbsdtests.la > > > > > (http://libbsdtests.la/) ../src/libdispatch.la > > > > > (http://libdispatch.la/) -lbsd > > > > > -L/home/mohit/Documents/swift-source/build/Ninja-DebugAssert/swift-linux-x86_64/lib/swift/linux/x86_64 > > > > > -lswiftCore -lswiftSwiftOnoneSupport -lpthread > > > > > libtool: link: > > > > > /home/mohit/Documents/swift-source/build/Ninja-DebugAssert/llvm-linux-x86_64/bin/clang > > > > > -Wall -Wno-deprecated-declarations -fblocks > > > > > -I/home/mohit/Documents/swift-source/swift-corelibs-libdispatch/src/BlocksRuntime > > > > > -isystem /usr/include/bsd -DLIBBSD_OVERLAY -g -O0 -o > > > > > .libs/dispatch_apply dispatch_apply.o ./.libs/libbsdtests.a > > > > > ../src/.libs/libdispatch.so -lbsd > > > > > -L/home/mohit/Documents/swift-source/build/Ninja-DebugAssert/swift-linux-x86_64/lib/swift/linux/x86_64 > > > > > -lswiftCore -lswiftSwiftOnoneSupport -lpthread -Wl,-rpath > > > > > -Wl,//usr/lib/swift/linux -Wl,-rpath > > > > > -Wl,/home/mohit/Documents/swift-source/build/Ninja-DebugAssert/swift-linux-x86_64/lib/swift/linux/x86_64 > > > > > /home/mohit/Documents/swift-source/build/Ninja-DebugAssert/swift-linux-x86_64/lib/swift/linux/x86_64/libswiftCore.so: > > > > > undefined reference to `objc_release' > > > > > clang-4.0: error: linker command failed with exit code 1 (use -v to > > > > > see invocation) > > > > > Makefile:1123: recipe for target 'dispatch_apply' failed > > > > > make: *** [dispatch_apply] Error 1 > > > > > swift/utils/build-script: fatal error: command terminated with a > > > > > non-zero exit status 2, aborting > > > > > > > > > > Looks like there is some undefined reference for objc_release in > > > > > libswiftCore. > > > > > > > > > > From the looks of the message it looks like swift was actually built > > > > > but it's just that test cases weren't built. On this hunch, I went > > > > > into my swift-corelibs-foundation folder and tried to execute: > > > > > > > > > > ninja > > > > > > > > > > Which tells me: > > > > > > > > > > ninja: error: loading 'build.ninja': No such file or directory > > > > > > > > swift-corelibs-foundation does not use ninja. I would use the > > > > build-script line from the bots. That way you know you are doing the > > > > right thing. > > > > > > > > Specifically: > > > > > > > > URL: > > > > https://ci.swift.org/job/oss-swift-incremental-RA-linux-ubuntu-16_04/2413/consoleFull > > > > > > > > Preset: buildbot_incremental_linux > > > > > > > > If that does not work on your system, then something is misconfigured. > > > > > > Let me elaborate, when I say misconfigured, I mean you are missing a > > > dependency. > > > > > > > > Also I wouldn't use --clone-with-ssh it is unnecessary. > > > > > > > > > > > > > > > > > > Given my lack of experience here, I'm not quite sure how to go about > > > > > resolving these issues. > > > > > > > > > > Could somebody help me out here please. > > > > > > > > > > Thanks
Re: [swift-corelibs-dev] [swift-users] Unable to build swift master branch
Hi Michael, I just submitted my pull request: https://github.com/apple/swift-corelibs-foundation/pull/928 Now waiting for an admin to initiate tests. Thanks so much for your help! Cheers! Mohit On Sun, Apr 2, 2017 at 12:36 PM, Michael Gottesman wrote: > No worries. Just trying to be helpful = ). > > Michael > > On Apr 2, 2017, at 12:27 PM, Mohit Athwani > wrote: > > Hi Michael, > > Thanks for checking up on me. I'm actually working on it right now. Will > give you an update in an hour or so... > > Cheers! > > > -- > Mohit Athwani > http://about.me/mohitathwani > > On Apr 2, 2017, 12:59 AM -0700, Michael Gottesman , > wrote: > > Hey Mohit! > > Were you able to build successfully? > > Michael > > On Mar 30, 2017, at 4:29 PM, Michael Gottesman > wrote: > > I was just informed that swift-corelibs-foundation is actually using > ninja! My bad! > > Still I would use the preset from the bots. It should just work. > Otherwise, you are missing a dependency or have differing versions/etc. > > Michael > > On Mar 30, 2017, at 4:25 PM, Michael Gottesman > wrote: > > > On Mar 30, 2017, at 4:22 PM, Michael Gottesman via swift-users < > [email protected]> wrote: > > > On Mar 30, 2017, at 12:31 PM, Mohit Athwani via swift-users < > [email protected]> wrote: > > I'm trying to get back to work starting from scratch on Swift Foundation > on my Ubuntu 16.04 LTS system. > > I cloned the main swift repo and all of it's dependencies via ssh > > ./swift/utils/update-checkout --clone-with-ssh > > and after running (taken from instructions from the Foundation site): > > swift/utils/build-script --xctest --foundation -t > > I get the following error: > > + make build-tests > /bin/bash ../libtool --tag=CC --mode=link /home/mohit/Documents/swift-so > urce/build/Ninja-DebugAssert/llvm-linux-x86_64/bin/clang -Wall > -Wno-deprecated-declarations -fblocks -I/home/mohit/Documents/swift- > source/swift-corelibs-libdispatch/src/BlocksRuntime -isystem > /usr/include/bsd -DLIBBSD_OVERLAY -g -O0 -rpath > /home/mohit/Documents/swift-source/build/Ninja-DebugAssert/ > swift-linux-x86_64/lib/swift/linux/x86_64 -o dispatch_apply > dispatch_apply.o libbsdtests.la ../src/libdispatch.la -lbsd > -L/home/mohit/Documents/swift-source/build/Ninja-DebugAssert > /swift-linux-x86_64/lib/swift/linux/x86_64 -lswiftCore > -lswiftSwiftOnoneSupport -lpthread > libtool: link: > /home/mohit/Documents/swift-source/build/Ninja-DebugAssert/llvm-linux-x86_64/bin/clang > -Wall -Wno-deprecated-declarations -fblocks -I/home/mohit/Documents/swift- > source/swift-corelibs-libdispatch/src/BlocksRuntime -isystem > /usr/include/bsd -DLIBBSD_OVERLAY -g -O0 -o .libs/dispatch_apply > dispatch_apply.o ./.libs/libbsdtests.a ../src/.libs/libdispatch.so -lbsd > -L/home/mohit/Documents/swift-source/build/Ninja-DebugAssert > /swift-linux-x86_64/lib/swift/linux/x86_64 -lswiftCore > -lswiftSwiftOnoneSupport -lpthread -Wl,-rpath -Wl,//usr/lib/swift/linux > -Wl,-rpath -Wl,/home/mohit/Documents/swift-source/build/Ninja-DebugAsse > rt/swift-linux-x86_64/lib/swift/linux/x86_64 > /home/mohit/Documents/swift-source/build/Ninja-DebugAssert/ > swift-linux-x86_64/lib/swift/linux/x86_64/libswiftCore.so: undefined > reference to `objc_release' > clang-4.0: error: linker command failed with exit code 1 (use -v to see > invocation) > Makefile:1123: recipe for target 'dispatch_apply' failed > make: *** [dispatch_apply] Error 1 > swift/utils/build-script: fatal error: command terminated with a non-zero > exit status 2, aborting > > Looks like there is some undefined reference for objc_release in > libswiftCore. > > From the looks of the message it looks like swift was actually built but > it's just that test cases weren't built. On this hunch, I went into my > swift-corelibs-foundation folder and tried to execute: > > ninja > > Which tells me: > > ninja: error: loading 'build.ninja': No such file or directory > > > swift-corelibs-foundation does not use ninja. I would use the build-script > line from the bots. That way you know you are doing the right thing. > > Specifically: > > URL: https://ci.swift.org/job/oss-swift-incremental-RA- > linux-ubuntu-16_04/2413/consoleFull > > Preset: buildbot_incremental_linux > > If that does not work on your system, then something is misconfigured. > > > Let me elaborate, when I say misconfigured, I mean you are missing a > dependency. > > > Also I wouldn't use --clone-with-ssh it is unnecessary. > > > > Given my lack of experience here, I'm not quite sure how to go about > resolving these issues. > > Could somebody help me out here please. > > Thanks, > > Mohit > ___ > swift-users mailing list > [email protected] > https://lists.swift.org/mailman/listinfo/swift-users > > > ___ > swift-users mailing list > [email protected] > https://lists.swift.org/mailman/listinfo/swift-users > > > > > ___ swift-corelibs-
