Failure: Swift master branch build failing on x86 (Ubuntu 16.04).

Hi,

Swift "master" branch is failing to build on x86 running Ubuntu 16,04 with
following error.

make[2]: Entering directory
'/root/swift/build/Unix_Makefiles-ReleaseAssert/swift-linux-x86_64'
make[2]: *** No rule to make target
'stdlib/public/runtime/CMakeFiles/section_magic_loader-linux-x86_64.dir/ImageInspectionInit.cpp.o',
needed by 'lib/swift/linux/x86_64/swift_begin.o'. Stop.
make[2]: Leaving directory
'/root/swift/build/Unix_Makefiles-ReleaseAssert/swift-linux-x86_64'
CMakeFiles/Makefile2:1112: recipe for target
'stdlib/public/runtime/CMakeFiles/lib-swift-linux-x86_64-swift_begin.o.dir/all'
failed
make[1]: ***
[stdlib/public/runtime/CMakeFiles/lib-swift-linux-x86_64-swift_begin.o.dir/all]
Error 2

I am using following build command from inside swift-source/swift directory:
utils/build-script -c -m -R --verbose-build

Has anybody seen similar failures? Is there any fix already committed for
this or, this needs to be investigated further?

Regards,
Atul.

Hi,

Swift "master" branch is failing to build on x86 running Ubuntu 16,04 with following error.

Most of the recent builds appear to be working:

https://ci.swift.org/view/swift-master-next/job/oss-swift-incremental-RA-linux-ubuntu-16_04-master-next/

I am using following build command from inside swift-source/swift directory:
utils/build-script -c -m -R --verbose-build

What version of the 'swift' project do you have checked out? Have you done a clean/reset to make sure those aren't issues at the moment?

You can run swift/utils/update-checkout --clean --reset-to-remote --scheme master (which will get rid of any cruft if you haven't got anything you need to keep) and then re-run the build to see if that resolves the errors.

Alex

···

On 6 Oct 2017, at 12:42, Atul Sowani via swift-dev <swift-dev@swift.org> wrote:

Thanks Alex! I used the clean/reset command and then tried rebuilding it,
but got the very same error. I am using master branch, latest
(top-of-the-tree) version:

git clone GitHub - apple/swift: The Swift Programming Language
./swift/utils/update-checkout --clone
cd swift
utils/build-script -c -m -R --verbose-build

Hope this is correct.

Thanks,
Atul.

···

On Fri, Oct 6, 2017 at 5:51 PM, Alex Blewitt <alblue@apple.com> wrote:

> On 6 Oct 2017, at 12:42, Atul Sowani via swift-dev <swift-dev@swift.org> > wrote:
>
> Hi,
>
> Swift "master" branch is failing to build on x86 running Ubuntu 16,04
with following error.

Most of the recent builds appear to be working:

https://ci.swift.org/view/swift-master-next/job/oss-
swift-incremental-RA-linux-ubuntu-16_04-master-next/

> I am using following build command from inside swift-source/swift
directory:
> utils/build-script -c -m -R --verbose-build

What version of the 'swift' project do you have checked out? Have you done
a clean/reset to make sure those aren't issues at the moment?

You can run swift/utils/update-checkout --clean --reset-to-remote --scheme
master (which will get rid of any cruft if you haven't got anything you
need to keep) and then re-run the build to see if that resolves the errors.

Alex

I still have no luck building swift on x86 using the master branch. Is it
recommended to use the master branch at all (considering a lot of fixes
would be coming in) or is it desirable to use 4.0 branch instead as a
general rule?

Thanks,
Atul.

···

On Fri, Oct 6, 2017 at 7:03 PM, Atul Sowani via swift-dev < swift-dev@swift.org> wrote:

Thanks Alex! I used the clean/reset command and then tried rebuilding it,
but got the very same error. I am using master branch, latest
(top-of-the-tree) version:

git clone GitHub - apple/swift: The Swift Programming Language
./swift/utils/update-checkout --clone
cd swift
utils/build-script -c -m -R --verbose-build

Hope this is correct.

Thanks,
Atul.

On Fri, Oct 6, 2017 at 5:51 PM, Alex Blewitt <alblue@apple.com> wrote:

> On 6 Oct 2017, at 12:42, Atul Sowani via swift-dev <swift-dev@swift.org> >> wrote:
>
> Hi,
>
> Swift "master" branch is failing to build on x86 running Ubuntu 16,04
with following error.

Most of the recent builds appear to be working:

https://ci.swift.org/view/swift-master-next/job/oss-swift-
incremental-RA-linux-ubuntu-16_04-master-next/

> I am using following build command from inside swift-source/swift
directory:
> utils/build-script -c -m -R --verbose-build

What version of the 'swift' project do you have checked out? Have you
done a clean/reset to make sure those aren't issues at the moment?

You can run swift/utils/update-checkout --clean --reset-to-remote
--scheme master (which will get rid of any cruft if you haven't got
anything you need to keep) and then re-run the build to see if that
resolves the errors.

Alex

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

Hi Atul,

The master branch is tested in CI, so any build failures are likely due to configuration problems on your end. While testing the swift-4.0-branch would provide an interesting data point, I would not expect it to work if building master fails.

Slava

···

On Oct 8, 2017, at 10:35 PM, Atul Sowani via swift-dev <swift-dev@swift.org> wrote:

I still have no luck building swift on x86 using the master branch. Is it recommended to use the master branch at all (considering a lot of fixes would be coming in) or is it desirable to use 4.0 branch instead as a general rule?

Thanks,
Atul.

On Fri, Oct 6, 2017 at 7:03 PM, Atul Sowani via swift-dev <swift-dev@swift.org <mailto:swift-dev@swift.org>> wrote:
Thanks Alex! I used the clean/reset command and then tried rebuilding it, but got the very same error. I am using master branch, latest (top-of-the-tree) version:

git clone GitHub - apple/swift: The Swift Programming Language
./swift/utils/update-checkout --clone
cd swift
utils/build-script -c -m -R --verbose-build

Hope this is correct.

Thanks,
Atul.

On Fri, Oct 6, 2017 at 5:51 PM, Alex Blewitt <alblue@apple.com <mailto:alblue@apple.com>> wrote:

> On 6 Oct 2017, at 12:42, Atul Sowani via swift-dev <swift-dev@swift.org <mailto:swift-dev@swift.org>> wrote:
>
> Hi,
>
> Swift "master" branch is failing to build on x86 running Ubuntu 16,04 with following error.

Most of the recent builds appear to be working:

https://ci.swift.org/view/swift-master-next/job/oss-swift-incremental-RA-linux-ubuntu-16_04-master-next/

> I am using following build command from inside swift-source/swift directory:
> utils/build-script -c -m -R --verbose-build

What version of the 'swift' project do you have checked out? Have you done a clean/reset to make sure those aren't issues at the moment?

You can run swift/utils/update-checkout --clean --reset-to-remote --scheme master (which will get rid of any cruft if you haven't got anything you need to keep) and then re-run the build to see if that resolves the errors.

Alex

_______________________________________________
swift-dev mailing list
swift-dev@swift.org <mailto:swift-dev@swift.org>
https://lists.swift.org/mailman/listinfo/swift-dev

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

I will note that the Makefile build is not something we test. What happens if you drop -m from your build command, to use Ninja instead?

Jordan

···

On Oct 8, 2017, at 22:36, Slava Pestov via swift-dev <swift-dev@swift.org> wrote:

Hi Atul,

The master branch is tested in CI, so any build failures are likely due to configuration problems on your end. While testing the swift-4.0-branch would provide an interesting data point, I would not expect it to work if building master fails.

Slava

On Oct 8, 2017, at 10:35 PM, Atul Sowani via swift-dev <swift-dev@swift.org <mailto:swift-dev@swift.org>> wrote:

I still have no luck building swift on x86 using the master branch. Is it recommended to use the master branch at all (considering a lot of fixes would be coming in) or is it desirable to use 4.0 branch instead as a general rule?

Thanks,
Atul.

On Fri, Oct 6, 2017 at 7:03 PM, Atul Sowani via swift-dev <swift-dev@swift.org <mailto:swift-dev@swift.org>> wrote:
Thanks Alex! I used the clean/reset command and then tried rebuilding it, but got the very same error. I am using master branch, latest (top-of-the-tree) version:

git clone GitHub - apple/swift: The Swift Programming Language
./swift/utils/update-checkout --clone
cd swift
utils/build-script -c -m -R --verbose-build

Hope this is correct.

Thanks,
Atul.

On Fri, Oct 6, 2017 at 5:51 PM, Alex Blewitt <alblue@apple.com <mailto:alblue@apple.com>> wrote:

> On 6 Oct 2017, at 12:42, Atul Sowani via swift-dev <swift-dev@swift.org <mailto:swift-dev@swift.org>> wrote:
>
> Hi,
>
> Swift "master" branch is failing to build on x86 running Ubuntu 16,04 with following error.

Most of the recent builds appear to be working:

https://ci.swift.org/view/swift-master-next/job/oss-swift-incremental-RA-linux-ubuntu-16_04-master-next/

> I am using following build command from inside swift-source/swift directory:
> utils/build-script -c -m -R --verbose-build

What version of the 'swift' project do you have checked out? Have you done a clean/reset to make sure those aren't issues at the moment?

You can run swift/utils/update-checkout --clean --reset-to-remote --scheme master (which will get rid of any cruft if you haven't got anything you need to keep) and then re-run the build to see if that resolves the errors.

Alex

_______________________________________________
swift-dev mailing list
swift-dev@swift.org <mailto:swift-dev@swift.org>
https://lists.swift.org/mailman/listinfo/swift-dev

_______________________________________________
swift-dev mailing list
swift-dev@swift.org <mailto:swift-dev@swift.org>
https://lists.swift.org/mailman/listinfo/swift-dev

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

I tried the same build command I found in one of passing CI jobs for Ubuntu
16.04 (e.g.
https://ci.swift.org/job/oss-swift-incremental-RA-linux-ubuntu-16_04/943/consoleFull
):

utils/build-script --assertions --release --test --validation-test
--lit-args=-v --build-subdir=buildbot_incremental --llbuild --swiftpm
--xctest --foundation --libdispatch -- --build-ninja --reconfigure --jobs 16

This seems to be passing (at least building swift) on my local x86_64
machine. There are few test failures but I am not worried about them at
this point. I tried this same command on ppc64le and got into trouble with
llvm/clang. The clang crashed while processing
swift/stdlib/public/runtime/Casting.cpp somewhere inside
swift::swift_getTypeName - so it looks like (1) I should not use Makefile
build and (2) investigate more on the CLang crash.

Thanks!

···

On Mon, Oct 9, 2017 at 11:19 PM, Jordan Rose <jordan_rose@apple.com> wrote:

I will note that the Makefile build is not something we test. What happens
if you drop -m from your build command, to use Ninja instead?

Jordan

On Oct 8, 2017, at 22:36, Slava Pestov via swift-dev <swift-dev@swift.org> > wrote:

Hi Atul,

The master branch is tested in CI, so any build failures are likely due to
configuration problems on your end. While testing the swift-4.0-branch
would provide an interesting data point, I would not expect it to work if
building master fails.

Slava

On Oct 8, 2017, at 10:35 PM, Atul Sowani via swift-dev < > swift-dev@swift.org> wrote:

I still have no luck building swift on x86 using the master branch. Is it
recommended to use the master branch at all (considering a lot of fixes
would be coming in) or is it desirable to use 4.0 branch instead as a
general rule?

Thanks,
Atul.

On Fri, Oct 6, 2017 at 7:03 PM, Atul Sowani via swift-dev < > swift-dev@swift.org> wrote:

Thanks Alex! I used the clean/reset command and then tried rebuilding it,
but got the very same error. I am using master branch, latest
(top-of-the-tree) version:

git clone GitHub - apple/swift: The Swift Programming Language
./swift/utils/update-checkout --clone
cd swift
utils/build-script -c -m -R --verbose-build

Hope this is correct.

Thanks,
Atul.

On Fri, Oct 6, 2017 at 5:51 PM, Alex Blewitt <alblue@apple.com> wrote:

> On 6 Oct 2017, at 12:42, Atul Sowani via swift-dev < >>> swift-dev@swift.org> wrote:
>
> Hi,
>
> Swift "master" branch is failing to build on x86 running Ubuntu 16,04
with following error.

Most of the recent builds appear to be working:

https://ci.swift.org/view/swift-master-next/job/oss-swift-in
cremental-RA-linux-ubuntu-16_04-master-next/

> I am using following build command from inside swift-source/swift
directory:
> utils/build-script -c -m -R --verbose-build

What version of the 'swift' project do you have checked out? Have you
done a clean/reset to make sure those aren't issues at the moment?

You can run swift/utils/update-checkout --clean --reset-to-remote
--scheme master (which will get rid of any cruft if you haven't got
anything you need to keep) and then re-run the build to see if that
resolves the errors.

Alex

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

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

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