Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SR-3826] Build on Linux (fedora) fails silently on Foundation/NSDecimalNumber.swift (?) #46411

Open
swift-ci opened this issue Feb 1, 2017 · 1 comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself

Comments

@swift-ci
Copy link
Collaborator

swift-ci commented Feb 1, 2017

Previous ID SR-3826
Radar None
Original Reporter zwoop (JIRA User)
Type Bug
Additional Detail from JIRA
Votes 2
Component/s Compiler
Labels Bug
Assignee None
Priority Medium

md5: 9255a75cbb7b96fb0a1ce67945124202

Issue Description:

I am seeing this fairly far into the builds:

[113/320] CompileSwift: Foundation/NSDecimalNumber.swift
ninja: build stopped: subcommand failed.
./utils/build-script: fatal error: command terminated with a non-zero exit status 1, aborting
./utils/build-script: fatal error: command terminated with a non-zero exit status 1, aborting

I tried enabling verbose ninja builds, but there is no more detail than the above. I'm building with llvm/clang v3.9.1, but I also tried v3.8.0 with the same result.

clang version 3.9.1 (http://llvm.org/git/clang.git 54f5752c3600d39ee8de62ba9ff304154baf5e80) (http://llvm.org/git/llvm.git a093ef43dd592b729da46db4ff3057fef9a46023)

My build command is

./utils/build-script --preset=buildbot_linux install-prefix=/opt/swift install_destdir=/homer/leif/swift/BUILD installable_package=/homer/leif/swift-linux-x86_64-fedora-2017-02-01--11:21:28.tgz

I checked out the source right now, with

git clone git@github.com:apple/swift.git
swift/utils/update-checkout --clone-with-ssh
@swift-ci
Copy link
Collaborator Author

swift-ci commented Feb 2, 2017

Comment by Leif Hedstrom (JIRA)

Seems this is related to this possibly?

LLVM ERROR: Compiler-internal integrated REPL unimplemented for this platform; use the LLDB-enhanced REPL instead

I tried to "fix" this, with

cp ./build/buildbot_linux/lldb-linux-x86_64/bin/lldb-4.0.0 ./build/buildbot_linux/swift-linux-x86_64/bin/lldb
export LD_LIBRARY_PATH=/homer/leif/swift/src/build/buildbot_linux/lldb-linux-x86_64/lib

This at least lets swift startup from the build tree, but is obviously not a real solution / fix.

tintin (11:32) 452/0 $ ../build/buildbot_linux/swift-linux-x86_64/bin/swift
Welcome to Swift version 3.1-dev (LLVM 4d7b6f3e1e, Clang 35c27fa953, Swift 7c7a8236c7). Type :help for assistance.
  1>

It still fails though, fairly non descriptive at (I think, there's a lot of warnings from compiling this area):

[1/199] CompileC: CoreFoundation/Collections.subproj/CFBasicHash.c
FAILED: ../build/buildbot_linux/foundation-linux-x86_64/Foundation/CoreFoundation/Collections.subproj/CFBasicHash.c.o
mkdir -p `dirname ../build/buildbot_linux/foundation-linux-x86_64/Foundation/CoreFoundation/Collections.subproj/CFBasicHash.c.o`; /homer/leif/swift/src/build/buildbot_linux/llvm-linux-x86_64/bin/clang -fcolor-diagnostics -fdollars-in-identifiers -fblocks -fobjc-runtime=macosx-10.11 -fintegrated-as -fPIC --target=x86_64-linux-gnu -O2   -Ibootstrap/common/usr/include -Ibootstrap/common/usr/local/include   -Ibootstrap/x86_64-linux-gnu/usr/include -Ibootstrap/x86_64-linux-gnu/usr/local/include  -I../build/buildbot_linux/foundation-linux-x86_64/Foundation -I../build/buildbot_linux/foundation-linux-x86_64 -I../build/buildbot_linux/foundation-linux-x86_64/Foundation/usr//lib/swift -I../build/buildbot_linux/foundation-linux-x86_64/Foundation/usr//lib/swift/CoreFoundation -I../build/buildbot_linux/foundation-linux-x86_64/Foundation/usr//lib/swift/CoreFoundation -I../build/buildbot_linux/foundation-linux-x86_64/Foundation/usr//lib/swift/CoreFoundation -DDEPLOYMENT_TARGET_LINUX -D_GNU_SOURCE -DCF_CHARACTERSET_DATA_DIR="CoreFoundation/CharacterSets"-DU_SHOW_DRAFT_API -DCF_BUILDING_CF -DDEPLOYMENT_RUNTIME_SWIFT -fconstant-cfstrings -fexceptions -Wno-shorten-64-to-32 -Wno-deprecated-declarations -Wno-unreachable-code -Wno-conditional-uninitialized -Wno-unused-variable -Wno-int-conversion -Wno-unused-function -I/usr/include/libxml2 -I/usr/include/curl -I./ -DDEPLOYMENT_ENABLE_LIBDISPATCH -I/homer/leif/swift/src/swift-corelibs-libdispatch -I/homer/leif/swift/src/build/buildbot_linux/libdispatch-linux-x86_64/tests -include CoreFoundation/Base.subproj/CoreFoundation_Prefix.h  -c CoreFoundation/Collections.subproj/CFBasicHash.c -o ../build/buildbot_linux/foundation-linux-x86_64/Foundation/CoreFoundation/Collections.subproj/CFBasicHash.c.o

But, no details as to why / how it's failing here?

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself
Projects
None yet
Development

No branches or pull requests

1 participant