Bug#1057117: swiftlang: Totally unusable - fails to build a simple Hello World project.

neil futurejonesapps at gmail.com
Thu Nov 30 02:26:52 GMT 2023


Package: swiftlang
Version: 5.6.3-2
Severity: important
X-Debbugs-Cc: futurejonesapps at gmail.com

Dear Maintainer,

   * What led up to the situation?

Installed swiftlang and tried to build and run a simple Hello World project

   * What exactly did you do (or not do) that was effective (or
     ineffective)?

run this command to setup project - 

mkdir hello && cd hello && swift package init --type executable

run this cammand to build the project -

swift build

   * What was the outcome of this action?

fails with the following error - 

'hello': error: invalidManifestFormat("<module-includes>:1:10: 
note: in file included from <module-includes>:1:\n#include \"CoreFoundation.h\"\n         
^\n/usr/libexec/swift/lib/swift/CoreFoundation/CoreFoundation.h:25:10: error: \'sys/types.h\' file not found\n#include <sys/types.h>\n         
^\n/usr/libexec/swift/lib/swift/CoreFoundation/CFStream.h:20:10: note: while building module \'CDispatch\' imported from /usr/libexec/swift/lib/swift/CoreFoundation/CFStream.h:20:\n#include <dispatch/dispatch.h>\n         
^\n<module-includes>:1:10: note: in file included from <module-includes>:1:\n#include \"dispatch.h\"\n         ^\n/usr/libexec/swift/lib/swift/dispatch/dispatch.h:32:10: note: in file included from /usr/libexec/swift/lib/swift/dispatch/dispatch.h:32:\n#include <os/generic_unix_base.h>\n         
^\n/usr/libexec/swift/lib/swift/os/generic_unix_base.h:24:10: error: \'sys/param.h\' file not found\n#include <sys/param.h>\n         
^\n<unknown>:0: error: could not build C module \'CoreFoundation\'", diagnosticFile: nil)




   * What outcome did you expect instead?

The project should build with any errors


-- System Information:
Debian Release: trixie/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 5.4.0-167-generic (SMP w/4 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect

Versions of packages swiftlang depends on:
ii  debconf [debconf-2.0]  1.5.82
ii  libc6                  2.37-12
ii  libedit2               3.1-20230828-1
ii  libgcc-s1              13.2.0-7
ii  libicu72               72.1-4
ii  libncurses6            6.4+20231121-1
ii  libpython3.11          3.11.6-3
ii  libsqlite3-0           3.44.2-1
ii  libstdc++6             13.2.0-7
ii  libswiftlang           5.6.3-2
ii  libtinfo6              6.4+20231121-1
ii  libuuid1               2.39.2-6
ii  libxml2                2.9.14+dfsg-1.3
ii  libyaml-0-2            0.2.5-1
ii  swiftlang-dev          5.6.3-2
ii  zlib1g                 1:1.3.dfsg-3

swiftlang recommends no packages.

Versions of packages swiftlang suggests:
ii  python3        3.11.4-5+b1
pn  swiftlang-doc  <none>

-- debconf information:
  swiftlang/other_swift:
* swiftlang/link_swift: true



More information about the Pkg-llvm-team mailing list