swift-build-tool crash when compiling a project with C dependencies (Ubuntu 14.04)

I’m trying to swift build this package: https://github.com/harlanhaskins/Postgres.swift
on Ubuntu 14.04.3

System information:
harlan@8ball ~/Postgres.swift> lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.3 LTS
Release: 14.04
Codename: trusty

Swift-build-tool error message:

Cloning Packages/CLibPQ
swift-build-tool: /home/buildslave/jenkins/workspace/oss-swift-linux-packages-ubuntu_14_04-one-off-build/llbuild/lib/Basic/FileInfo.cpp:54: static llbuild::basic::FileInfo llbuild::basic::FileInfo::getInfoForPath(const std::string &): Assertion `result.device == (unsigned)buf.st_dev && result.inode == (unsigned)buf.st_ino && result.size == (unsigned)buf.st_size && result.modTime.seconds == (unsigned)seconds && result.modTime.nanoseconds == (unsigned)nanoseconds' failed.
0 swift-build-tool 0x00000000004f138e llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 46
1 swift-build-tool 0x00000000004f22f9
2 swift-build-tool 0x00000000004f2603
3 libpthread.so.0 0x00007f96383e7340
4 libc.so.6 0x00007f9637624cc9 gsignal + 57
5 libc.so.6 0x00007f96376280d8 abort + 328
6 libc.so.6 0x00007f963761db86
7 libc.so.6 0x00007f963761dc32
8 swift-build-tool 0x00000000004df22e llbuild::basic::FileInfo::getInfoForPath(std::string const&) + 430
9 swift-build-tool 0x00000000004bdc21 llbuild::buildsystem::BuildNode::getFileInfo() const + 129
10 swift-build-tool 0x00000000004ae74a
11 swift-build-tool 0x00000000004c5600
12 swift-build-tool 0x00000000004be39d
13 swift-build-tool 0x00000000004be29b llbuild::core::BuildEngine::build(std::string const&) + 43
14 swift-build-tool 0x00000000004aaa32
15 swift-build-tool 0x00000000004aa963 llbuild::buildsystem::BuildSystem::build(llvm::StringRef) + 67
16 swift-build-tool 0x000000000048901f llbuild::buildsystem::BuildSystemFrontend::build(llvm::StringRef) + 1263
17 swift-build-tool 0x00000000004862db
18 swift-build-tool 0x0000000000485f5a main + 170
19 libc.so.6 0x00007f963760fec5 __libc_start_main + 245
20 swift-build-tool 0x0000000000485de4
swift-build: Child process exited with signal

Any ideas? I’ll gladly file a JIRA ticket if it’s not my fault :grin:.

— Harlan Haskins

Hi Harlan, thanks for this report. Please JIRA this with the component llbuild.

···

On Dec 4, 2015, at 12:14 PM, Harlan Haskins <harlan@harlanhaskins.com> wrote:

I’m trying to swift build this package: https://github.com/harlanhaskins/Postgres.swift
on Ubuntu 14.04.3

System information:
harlan@8ball ~/Postgres.swift> lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.3 LTS
Release: 14.04
Codename: trusty

Swift-build-tool error message:

Cloning Packages/CLibPQ
swift-build-tool: /home/buildslave/jenkins/workspace/oss-swift-linux-packages-ubuntu_14_04-one-off-build/llbuild/lib/Basic/FileInfo.cpp:54: static llbuild::basic::FileInfo llbuild::basic::FileInfo::getInfoForPath(const std::string &): Assertion `result.device == (unsigned)buf.st <http://buf.st/&gt;\_dev && result.inode == (unsigned)buf.st <http://buf.st/&gt;\_ino && result.size == (unsigned)buf.st <http://buf.st/&gt;\_size && result.modTime.seconds == (unsigned)seconds && result.modTime.nanoseconds == (unsigned)nanoseconds' failed.
0 swift-build-tool 0x00000000004f138e llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 46
1 swift-build-tool 0x00000000004f22f9
2 swift-build-tool 0x00000000004f2603
3 libpthread.so.0 0x00007f96383e7340
4 libc.so.6 0x00007f9637624cc9 gsignal + 57
5 libc.so.6 0x00007f96376280d8 abort + 328
6 libc.so.6 0x00007f963761db86
7 libc.so.6 0x00007f963761dc32
8 swift-build-tool 0x00000000004df22e llbuild::basic::FileInfo::getInfoForPath(std::string const&) + 430
9 swift-build-tool 0x00000000004bdc21 llbuild::buildsystem::BuildNode::getFileInfo() const + 129
10 swift-build-tool 0x00000000004ae74a
11 swift-build-tool 0x00000000004c5600
12 swift-build-tool 0x00000000004be39d
13 swift-build-tool 0x00000000004be29b llbuild::core::BuildEngine::build(std::string const&) + 43
14 swift-build-tool 0x00000000004aaa32
15 swift-build-tool 0x00000000004aa963 llbuild::buildsystem::BuildSystem::build(llvm::StringRef) + 67
16 swift-build-tool 0x000000000048901f llbuild::buildsystem::BuildSystemFrontend::build(llvm::StringRef) + 1263
17 swift-build-tool 0x00000000004862db
18 swift-build-tool 0x0000000000485f5a main + 170
19 libc.so.6 0x00007f963760fec5 __libc_start_main + 245
20 swift-build-tool 0x0000000000485de4
swift-build: Child process exited with signal

Any ideas? I’ll gladly file a JIRA ticket if it’s not my fault :grin:.

— Harlan Haskins

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

Please file a JIRA ticket to the Package Manager component. Thank you!

- mish

···

On Dec 4, 2015, at 12:14 PM, Harlan Haskins <harlan@harlanhaskins.com> wrote:

I’m trying to swift build this package: https://github.com/harlanhaskins/Postgres.swift
on Ubuntu 14.04.3

System information:
harlan@8ball ~/Postgres.swift> lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.3 LTS
Release: 14.04
Codename: trusty

Swift-build-tool error message:

Cloning Packages/CLibPQ
swift-build-tool: /home/buildslave/jenkins/workspace/oss-swift-linux-packages-ubuntu_14_04-one-off-build/llbuild/lib/Basic/FileInfo.cpp:54: static llbuild::basic::FileInfo llbuild::basic::FileInfo::getInfoForPath(const std::string &): Assertion `result.device == (unsigned)buf.st <http://buf.st/&gt;\_dev && result.inode == (unsigned)buf.st <http://buf.st/&gt;\_ino && result.size == (unsigned)buf.st <http://buf.st/&gt;\_size && result.modTime.seconds == (unsigned)seconds && result.modTime.nanoseconds == (unsigned)nanoseconds' failed.
0 swift-build-tool 0x00000000004f138e llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 46
1 swift-build-tool 0x00000000004f22f9
2 swift-build-tool 0x00000000004f2603
3 libpthread.so.0 0x00007f96383e7340
4 libc.so.6 0x00007f9637624cc9 gsignal + 57
5 libc.so.6 0x00007f96376280d8 abort + 328
6 libc.so.6 0x00007f963761db86
7 libc.so.6 0x00007f963761dc32
8 swift-build-tool 0x00000000004df22e llbuild::basic::FileInfo::getInfoForPath(std::string const&) + 430
9 swift-build-tool 0x00000000004bdc21 llbuild::buildsystem::BuildNode::getFileInfo() const + 129
10 swift-build-tool 0x00000000004ae74a
11 swift-build-tool 0x00000000004c5600
12 swift-build-tool 0x00000000004be39d
13 swift-build-tool 0x00000000004be29b llbuild::core::BuildEngine::build(std::string const&) + 43
14 swift-build-tool 0x00000000004aaa32
15 swift-build-tool 0x00000000004aa963 llbuild::buildsystem::BuildSystem::build(llvm::StringRef) + 67
16 swift-build-tool 0x000000000048901f llbuild::buildsystem::BuildSystemFrontend::build(llvm::StringRef) + 1263
17 swift-build-tool 0x00000000004862db
18 swift-build-tool 0x0000000000485f5a main + 170
19 libc.so.6 0x00007f963760fec5 __libc_start_main + 245
20 swift-build-tool 0x0000000000485de4
swift-build: Child process exited with signal

Any ideas? I’ll gladly file a JIRA ticket if it’s not my fault :grin:.

— Harlan Haskins

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

Oh sorry, llbuild is correct.

- mish

···

On Dec 4, 2015, at 12:31 PM, Mish Awadah <mawadah@apple.com> wrote:

Please file a JIRA ticket to the Package Manager component. Thank you!

- mish

On Dec 4, 2015, at 12:14 PM, Harlan Haskins <harlan@harlanhaskins.com <mailto:harlan@harlanhaskins.com>> wrote:

I’m trying to swift build this package: https://github.com/harlanhaskins/Postgres.swift
on Ubuntu 14.04.3

System information:
harlan@8ball ~/Postgres.swift> lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.3 LTS
Release: 14.04
Codename: trusty

Swift-build-tool error message:

Cloning Packages/CLibPQ
swift-build-tool: /home/buildslave/jenkins/workspace/oss-swift-linux-packages-ubuntu_14_04-one-off-build/llbuild/lib/Basic/FileInfo.cpp:54: static llbuild::basic::FileInfo llbuild::basic::FileInfo::getInfoForPath(const std::string &): Assertion `result.device == (unsigned)buf.st <http://buf.st/&gt;\_dev && result.inode == (unsigned)buf.st <http://buf.st/&gt;\_ino && result.size == (unsigned)buf.st <http://buf.st/&gt;\_size && result.modTime.seconds == (unsigned)seconds && result.modTime.nanoseconds == (unsigned)nanoseconds' failed.
0 swift-build-tool 0x00000000004f138e llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 46
1 swift-build-tool 0x00000000004f22f9
2 swift-build-tool 0x00000000004f2603
3 libpthread.so.0 0x00007f96383e7340
4 libc.so.6 0x00007f9637624cc9 gsignal + 57
5 libc.so.6 0x00007f96376280d8 abort + 328
6 libc.so.6 0x00007f963761db86
7 libc.so.6 0x00007f963761dc32
8 swift-build-tool 0x00000000004df22e llbuild::basic::FileInfo::getInfoForPath(std::string const&) + 430
9 swift-build-tool 0x00000000004bdc21 llbuild::buildsystem::BuildNode::getFileInfo() const + 129
10 swift-build-tool 0x00000000004ae74a
11 swift-build-tool 0x00000000004c5600
12 swift-build-tool 0x00000000004be39d
13 swift-build-tool 0x00000000004be29b llbuild::core::BuildEngine::build(std::string const&) + 43
14 swift-build-tool 0x00000000004aaa32
15 swift-build-tool 0x00000000004aa963 llbuild::buildsystem::BuildSystem::build(llvm::StringRef) + 67
16 swift-build-tool 0x000000000048901f llbuild::buildsystem::BuildSystemFrontend::build(llvm::StringRef) + 1263
17 swift-build-tool 0x00000000004862db
18 swift-build-tool 0x0000000000485f5a main + 170
19 libc.so.6 0x00007f963760fec5 __libc_start_main + 245
20 swift-build-tool 0x0000000000485de4
swift-build: Child process exited with signal

Any ideas? I’ll gladly file a JIRA ticket if it’s not my fault :grin:.

— Harlan Haskins

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

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

I’m trying to swift build this package: https://github.com/harlanhaskins/Postgres.swift

Is this public? I was unable to access it.

As Mish pointed out, please file in JIRA. You can go ahead and assign it to me, too.

- Daniel

···

On Dec 4, 2015, at 12:14 PM, Harlan Haskins <harlan@harlanhaskins.com> wrote:

on Ubuntu 14.04.3

System information:
harlan@8ball ~/Postgres.swift> lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.3 LTS
Release: 14.04
Codename: trusty

Swift-build-tool error message:

Cloning Packages/CLibPQ
swift-build-tool: /home/buildslave/jenkins/workspace/oss-swift-linux-packages-ubuntu_14_04-one-off-build/llbuild/lib/Basic/FileInfo.cpp:54: static llbuild::basic::FileInfo llbuild::basic::FileInfo::getInfoForPath(const std::string &): Assertion `result.device == (unsigned)buf.st <http://buf.st/&gt;\_dev && result.inode == (unsigned)buf.st <http://buf.st/&gt;\_ino && result.size == (unsigned)buf.st <http://buf.st/&gt;\_size && result.modTime.seconds == (unsigned)seconds && result.modTime.nanoseconds == (unsigned)nanoseconds' failed.
0 swift-build-tool 0x00000000004f138e llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 46
1 swift-build-tool 0x00000000004f22f9
2 swift-build-tool 0x00000000004f2603
3 libpthread.so.0 0x00007f96383e7340
4 libc.so.6 0x00007f9637624cc9 gsignal + 57
5 libc.so.6 0x00007f96376280d8 abort + 328
6 libc.so.6 0x00007f963761db86
7 libc.so.6 0x00007f963761dc32
8 swift-build-tool 0x00000000004df22e llbuild::basic::FileInfo::getInfoForPath(std::string const&) + 430
9 swift-build-tool 0x00000000004bdc21 llbuild::buildsystem::BuildNode::getFileInfo() const + 129
10 swift-build-tool 0x00000000004ae74a
11 swift-build-tool 0x00000000004c5600
12 swift-build-tool 0x00000000004be39d
13 swift-build-tool 0x00000000004be29b llbuild::core::BuildEngine::build(std::string const&) + 43
14 swift-build-tool 0x00000000004aaa32
15 swift-build-tool 0x00000000004aa963 llbuild::buildsystem::BuildSystem::build(llvm::StringRef) + 67
16 swift-build-tool 0x000000000048901f llbuild::buildsystem::BuildSystemFrontend::build(llvm::StringRef) + 1263
17 swift-build-tool 0x00000000004862db
18 swift-build-tool 0x0000000000485f5a main + 170
19 libc.so.6 0x00007f963760fec5 __libc_start_main + 245
20 swift-build-tool 0x0000000000485de4
swift-build: Child process exited with signal

Any ideas? I’ll gladly file a JIRA ticket if it’s not my fault :grin:.

— Harlan Haskins

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

Actually, I just noticed we already have a report of this issue here:
  https://bugs.swift.org/browse/SR-57

- Daniel

···

On Dec 4, 2015, at 12:41 PM, Daniel Dunbar <daniel_dunbar@apple.com> wrote:

On Dec 4, 2015, at 12:14 PM, Harlan Haskins <harlan@harlanhaskins.com <mailto:harlan@harlanhaskins.com>> wrote:

I’m trying to swift build this package: https://github.com/harlanhaskins/Postgres.swift

Is this public? I was unable to access it.

As Mish pointed out, please file in JIRA. You can go ahead and assign it to me, too.

- Daniel

on Ubuntu 14.04.3

System information:
harlan@8ball ~/Postgres.swift> lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.3 LTS
Release: 14.04
Codename: trusty

Swift-build-tool error message:

Cloning Packages/CLibPQ
swift-build-tool: /home/buildslave/jenkins/workspace/oss-swift-linux-packages-ubuntu_14_04-one-off-build/llbuild/lib/Basic/FileInfo.cpp:54: static llbuild::basic::FileInfo llbuild::basic::FileInfo::getInfoForPath(const std::string &): Assertion `result.device == (unsigned)buf.st <http://buf.st/&gt;\_dev && result.inode == (unsigned)buf.st <http://buf.st/&gt;\_ino && result.size == (unsigned)buf.st <http://buf.st/&gt;\_size && result.modTime.seconds == (unsigned)seconds && result.modTime.nanoseconds == (unsigned)nanoseconds' failed.
0 swift-build-tool 0x00000000004f138e llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 46
1 swift-build-tool 0x00000000004f22f9
2 swift-build-tool 0x00000000004f2603
3 libpthread.so.0 0x00007f96383e7340
4 libc.so.6 0x00007f9637624cc9 gsignal + 57
5 libc.so.6 0x00007f96376280d8 abort + 328
6 libc.so.6 0x00007f963761db86
7 libc.so.6 0x00007f963761dc32
8 swift-build-tool 0x00000000004df22e llbuild::basic::FileInfo::getInfoForPath(std::string const&) + 430
9 swift-build-tool 0x00000000004bdc21 llbuild::buildsystem::BuildNode::getFileInfo() const + 129
10 swift-build-tool 0x00000000004ae74a
11 swift-build-tool 0x00000000004c5600
12 swift-build-tool 0x00000000004be39d
13 swift-build-tool 0x00000000004be29b llbuild::core::BuildEngine::build(std::string const&) + 43
14 swift-build-tool 0x00000000004aaa32
15 swift-build-tool 0x00000000004aa963 llbuild::buildsystem::BuildSystem::build(llvm::StringRef) + 67
16 swift-build-tool 0x000000000048901f llbuild::buildsystem::BuildSystemFrontend::build(llvm::StringRef) + 1263
17 swift-build-tool 0x00000000004862db
18 swift-build-tool 0x0000000000485f5a main + 170
19 libc.so.6 0x00007f963760fec5 __libc_start_main + 245
20 swift-build-tool 0x0000000000485de4
swift-build: Child process exited with signal

Any ideas? I’ll gladly file a JIRA ticket if it’s not my fault :grin:.

— Harlan Haskins

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

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