Could not find a package configuration file provided by "Clang"


(Erica Sadun) #1

I started with an absolutely clean re-clone, used bash (normally I use tcsh), made sure
to do `export PATH=/Applications/CMake.app/Contents/bin:$PATH`,

CMake Error at cmake/modules/SwiftSharedCMakeConfig.cmake:155 (find_package):
  Could not find a package configuration file provided by "Clang" with any of
  the following names:

    ClangConfig.cmake
    clang-config.cmake

  Add the installation prefix of "Clang" to CMAKE_PREFIX_PATH or set
  "Clang_DIR" to a directory containing one of the above files. If "Clang"
  provides a separate development package or SDK, be sure it has been
  installed.
Call Stack (most recent call first):
  cmake/modules/SwiftSharedCMakeConfig.cmake:212 (swift_common_standalone_build_config_clang)
  CMakeLists.txt:398 (swift_common_standalone_build_config)

-- Configuring incomplete, errors occurred!

I'm flummoxed. Anyone able to give me some pointers to get past this?

Thanks in advance, -- E


(Arnold Schwaighofer) #2

Somewhat wild guess. What is the version of your cmake install?

I think we started requiring some 3ish version recently.

Maybe you need a newer version …

···

On Jul 20, 2016, at 2:07 PM, Erica Sadun via swift-dev <swift-dev@swift.org> wrote:

I started with an absolutely clean re-clone, used bash (normally I use tcsh), made sure
to do `export PATH=/Applications/CMake.app/Contents/bin:$PATH`,

CMake Error at cmake/modules/SwiftSharedCMakeConfig.cmake:155 (find_package):
  Could not find a package configuration file provided by "Clang" with any of
  the following names:

    ClangConfig.cmake
    clang-config.cmake

  Add the installation prefix of "Clang" to CMAKE_PREFIX_PATH or set
  "Clang_DIR" to a directory containing one of the above files. If "Clang"
  provides a separate development package or SDK, be sure it has been
  installed.
Call Stack (most recent call first):
  cmake/modules/SwiftSharedCMakeConfig.cmake:212 (swift_common_standalone_build_config_clang)
  CMakeLists.txt:398 (swift_common_standalone_build_config)

-- Configuring incomplete, errors occurred!

I'm flummoxed. Anyone able to give me some pointers to get past this?

Thanks in advance, -- E

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


(Michael Gottesman) #3

Yes. 3.4.3.

Michael

···

On Jul 21, 2016, at 8:37 AM, Arnold Schwaighofer via swift-dev <swift-dev@swift.org> wrote:

Somewhat wild guess. What is the version of your cmake install?

I think we started requiring some 3ish version recently.

Maybe you need a newer version …

On Jul 20, 2016, at 2:07 PM, Erica Sadun via swift-dev <swift-dev@swift.org> wrote:

I started with an absolutely clean re-clone, used bash (normally I use tcsh), made sure
to do `export PATH=/Applications/CMake.app/Contents/bin:$PATH`,

CMake Error at cmake/modules/SwiftSharedCMakeConfig.cmake:155 (find_package):
Could not find a package configuration file provided by "Clang" with any of
the following names:

   ClangConfig.cmake
   clang-config.cmake

Add the installation prefix of "Clang" to CMAKE_PREFIX_PATH or set
"Clang_DIR" to a directory containing one of the above files. If "Clang"
provides a separate development package or SDK, be sure it has been
installed.
Call Stack (most recent call first):
cmake/modules/SwiftSharedCMakeConfig.cmake:212 (swift_common_standalone_build_config_clang)
CMakeLists.txt:398 (swift_common_standalone_build_config)

-- Configuring incomplete, errors occurred!

I'm flummoxed. Anyone able to give me some pointers to get past this?

Thanks in advance, -- E

_______________________________________________
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


(Erica Sadun) #4

3.6.0

-- E

···

On Jul 21, 2016, at 9:37 AM, Arnold Schwaighofer <aschwaighofer@apple.com> wrote:

Somewhat wild guess. What is the version of your cmake install?

I think we started requiring some 3ish version recently.

Maybe you need a newer version …

On Jul 20, 2016, at 2:07 PM, Erica Sadun via swift-dev <swift-dev@swift.org> wrote:

I started with an absolutely clean re-clone, used bash (normally I use tcsh), made sure
to do `export PATH=/Applications/CMake.app/Contents/bin:$PATH`,

CMake Error at cmake/modules/SwiftSharedCMakeConfig.cmake:155 (find_package):
Could not find a package configuration file provided by "Clang" with any of
the following names:

   ClangConfig.cmake
   clang-config.cmake

Add the installation prefix of "Clang" to CMAKE_PREFIX_PATH or set
"Clang_DIR" to a directory containing one of the above files. If "Clang"
provides a separate development package or SDK, be sure it has been
installed.
Call Stack (most recent call first):
cmake/modules/SwiftSharedCMakeConfig.cmake:212 (swift_common_standalone_build_config_clang)
CMakeLists.txt:398 (swift_common_standalone_build_config)

-- Configuring incomplete, errors occurred!

I'm flummoxed. Anyone able to give me some pointers to get past this?

Thanks in advance, -- E

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


(Erica Sadun) #5

So I got a successful build, and your suspicion was right. I deleted a very old /usr/local/bin/cmake and linked /usr/local/bin/cmake to /Applications/CMake.app/Contents/bin/cmake.

Now when I `where cmake`, every possible candidate is 3.6.

I deleted everything (including my github fork), and started with fresh cloning:

git clone https://github.com/apple/swift.git
utils/update-checkout --clone
utils/update-checkout --branch master
utils/build-script -R
And now I can build https://github.com/erica/swift/tree/unfold : https://twitter.com/ericasadun/status/756570453485817856/photo/1

Thank you all for pointing me in the right direction.

-- E

···

On Jul 21, 2016, at 11:53 PM, Erica Sadun via swift-dev <swift-dev@swift.org> wrote:

3.6.0

-- E

On Jul 21, 2016, at 9:37 AM, Arnold Schwaighofer <aschwaighofer@apple.com> wrote:

Somewhat wild guess. What is the version of your cmake install?

I think we started requiring some 3ish version recently.

Maybe you need a newer version …

On Jul 20, 2016, at 2:07 PM, Erica Sadun via swift-dev <swift-dev@swift.org> wrote:

I started with an absolutely clean re-clone, used bash (normally I use tcsh), made sure
to do `export PATH=/Applications/CMake.app/Contents/bin:$PATH`,

CMake Error at cmake/modules/SwiftSharedCMakeConfig.cmake:155 (find_package):
Could not find a package configuration file provided by "Clang" with any of
the following names:

  ClangConfig.cmake
  clang-config.cmake

Add the installation prefix of "Clang" to CMAKE_PREFIX_PATH or set
"Clang_DIR" to a directory containing one of the above files. If "Clang"
provides a separate development package or SDK, be sure it has been
installed.
Call Stack (most recent call first):
cmake/modules/SwiftSharedCMakeConfig.cmake:212 (swift_common_standalone_build_config_clang)
CMakeLists.txt:398 (swift_common_standalone_build_config)

-- Configuring incomplete, errors occurred!

I'm flummoxed. Anyone able to give me some pointers to get past this?

Thanks in advance, -- E

_______________________________________________
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


(Michael Gottesman) #6

It is partially my fault TBH. I still need to bump the version check in CMake. We run into a JIT failure when I do this on Linux I believe due to the way ELF forwards symbols (and my needing to work around it).

I have not had the time to fix it. = /.

If that was set, you would have gotten a nice error saying you needed to upgrade your cmake.

Michael

···

On Jul 22, 2016, at 12:26 PM, Erica Sadun via swift-dev <swift-dev@swift.org> wrote:

So I got a successful build, and your suspicion was right. I deleted a very old /usr/local/bin/cmake and linked /usr/local/bin/cmake to /Applications/CMake.app/Contents/bin/cmake.

Now when I `where cmake`, every possible candidate is 3.6.

I deleted everything (including my github fork), and started with fresh cloning:

git clone https://github.com/apple/swift.git
utils/update-checkout --clone
utils/update-checkout --branch master
utils/build-script -R
And now I can build https://github.com/erica/swift/tree/unfold : https://twitter.com/ericasadun/status/756570453485817856/photo/1

Thank you all for pointing me in the right direction.

-- E

On Jul 21, 2016, at 11:53 PM, Erica Sadun via swift-dev <swift-dev@swift.org <mailto:swift-dev@swift.org>> wrote:

3.6.0

-- E

On Jul 21, 2016, at 9:37 AM, Arnold Schwaighofer <aschwaighofer@apple.com <mailto:aschwaighofer@apple.com>> wrote:

Somewhat wild guess. What is the version of your cmake install?

I think we started requiring some 3ish version recently.

Maybe you need a newer version …

On Jul 20, 2016, at 2:07 PM, Erica Sadun via swift-dev <swift-dev@swift.org <mailto:swift-dev@swift.org>> wrote:

I started with an absolutely clean re-clone, used bash (normally I use tcsh), made sure
to do `export PATH=/Applications/CMake.app/Contents/bin:$PATH`,

CMake Error at cmake/modules/SwiftSharedCMakeConfig.cmake:155 (find_package):
Could not find a package configuration file provided by "Clang" with any of
the following names:

  ClangConfig.cmake
  clang-config.cmake

Add the installation prefix of "Clang" to CMAKE_PREFIX_PATH or set
"Clang_DIR" to a directory containing one of the above files. If "Clang"
provides a separate development package or SDK, be sure it has been
installed.
Call Stack (most recent call first):
cmake/modules/SwiftSharedCMakeConfig.cmake:212 (swift_common_standalone_build_config_clang)
CMakeLists.txt:398 (swift_common_standalone_build_config)

-- Configuring incomplete, errors occurred!

I'm flummoxed. Anyone able to give me some pointers to get past this?

Thanks in advance, -- E

_______________________________________________
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


(Erica Sadun) #7

So where do I find the "starter bugs for the humanities" how-to section? Is there a checklist that goes beyond fix this code and explains tests, comments, etc?

I came, I saw, I built. I want to try a bug.

-- E

···

On Jul 22, 2016, at 1:31 PM, Michael Gottesman <mgottesman@apple.com> wrote:

It is partially my fault TBH. I still need to bump the version check in CMake. We run into a JIT failure when I do this on Linux I believe due to the way ELF forwards symbols (and my needing to work around it).

I have not had the time to fix it. = /.

If that was set, you would have gotten a nice error saying you needed to upgrade your cmake.

Michael

On Jul 22, 2016, at 12:26 PM, Erica Sadun via swift-dev <swift-dev@swift.org <mailto:swift-dev@swift.org>> wrote:

So I got a successful build, and your suspicion was right. I deleted a very old /usr/local/bin/cmake and linked /usr/local/bin/cmake to /Applications/CMake.app/Contents/bin/cmake.

Now when I `where cmake`, every possible candidate is 3.6.

I deleted everything (including my github fork), and started with fresh cloning:

git clone https://github.com/apple/swift.git
utils/update-checkout --clone
utils/update-checkout --branch master
utils/build-script -R
And now I can build https://github.com/erica/swift/tree/unfold : https://twitter.com/ericasadun/status/756570453485817856/photo/1

Thank you all for pointing me in the right direction.

-- E

On Jul 21, 2016, at 11:53 PM, Erica Sadun via swift-dev <swift-dev@swift.org <mailto:swift-dev@swift.org>> wrote:

3.6.0

-- E

On Jul 21, 2016, at 9:37 AM, Arnold Schwaighofer <aschwaighofer@apple.com <mailto:aschwaighofer@apple.com>> wrote:

Somewhat wild guess. What is the version of your cmake install?

I think we started requiring some 3ish version recently.

Maybe you need a newer version …

On Jul 20, 2016, at 2:07 PM, Erica Sadun via swift-dev <swift-dev@swift.org <mailto:swift-dev@swift.org>> wrote:

I started with an absolutely clean re-clone, used bash (normally I use tcsh), made sure
to do `export PATH=/Applications/CMake.app/Contents/bin:$PATH`,

CMake Error at cmake/modules/SwiftSharedCMakeConfig.cmake:155 (find_package):
Could not find a package configuration file provided by "Clang" with any of
the following names:

  ClangConfig.cmake
  clang-config.cmake

Add the installation prefix of "Clang" to CMAKE_PREFIX_PATH or set
"Clang_DIR" to a directory containing one of the above files. If "Clang"
provides a separate development package or SDK, be sure it has been
installed.
Call Stack (most recent call first):
cmake/modules/SwiftSharedCMakeConfig.cmake:212 (swift_common_standalone_build_config_clang)
CMakeLists.txt:398 (swift_common_standalone_build_config)

-- Configuring incomplete, errors occurred!

I'm flummoxed. Anyone able to give me some pointers to get past this?

Thanks in advance, -- E

_______________________________________________
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 <mailto:swift-dev@swift.org>
https://lists.swift.org/mailman/listinfo/swift-dev


(Mark Lacey) #8

So where do I find the "starter bugs for the humanities" how-to section? Is there a checklist that goes beyond fix this code and explains tests, comments, etc?

I think this is what you’re looking for: https://swift.org/contributing/

I came, I saw, I built. I want to try a bug.

There’s a ‘StarterBug’ label in JIRA (bugs.swift.org <http://bugs.swift.org/>).

Mark

···

On Jul 22, 2016, at 12:35 PM, Erica Sadun via swift-dev <swift-dev@swift.org> wrote:

-- E

On Jul 22, 2016, at 1:31 PM, Michael Gottesman <mgottesman@apple.com <mailto:mgottesman@apple.com>> wrote:

It is partially my fault TBH. I still need to bump the version check in CMake. We run into a JIT failure when I do this on Linux I believe due to the way ELF forwards symbols (and my needing to work around it).

I have not had the time to fix it. = /.

If that was set, you would have gotten a nice error saying you needed to upgrade your cmake.

Michael

On Jul 22, 2016, at 12:26 PM, Erica Sadun via swift-dev <swift-dev@swift.org <mailto:swift-dev@swift.org>> wrote:

So I got a successful build, and your suspicion was right. I deleted a very old /usr/local/bin/cmake and linked /usr/local/bin/cmake to /Applications/CMake.app/Contents/bin/cmake.

Now when I `where cmake`, every possible candidate is 3.6.

I deleted everything (including my github fork), and started with fresh cloning:

git clone https://github.com/apple/swift.git
utils/update-checkout --clone
utils/update-checkout --branch master
utils/build-script -R
And now I can build https://github.com/erica/swift/tree/unfold : https://twitter.com/ericasadun/status/756570453485817856/photo/1

Thank you all for pointing me in the right direction.

-- E

On Jul 21, 2016, at 11:53 PM, Erica Sadun via swift-dev <swift-dev@swift.org <mailto:swift-dev@swift.org>> wrote:

3.6.0

-- E

On Jul 21, 2016, at 9:37 AM, Arnold Schwaighofer <aschwaighofer@apple.com <mailto:aschwaighofer@apple.com>> wrote:

Somewhat wild guess. What is the version of your cmake install?

I think we started requiring some 3ish version recently.

Maybe you need a newer version …

On Jul 20, 2016, at 2:07 PM, Erica Sadun via swift-dev <swift-dev@swift.org <mailto:swift-dev@swift.org>> wrote:

I started with an absolutely clean re-clone, used bash (normally I use tcsh), made sure
to do `export PATH=/Applications/CMake.app/Contents/bin:$PATH`,

CMake Error at cmake/modules/SwiftSharedCMakeConfig.cmake:155 (find_package):
Could not find a package configuration file provided by "Clang" with any of
the following names:

  ClangConfig.cmake
  clang-config.cmake

Add the installation prefix of "Clang" to CMAKE_PREFIX_PATH or set
"Clang_DIR" to a directory containing one of the above files. If "Clang"
provides a separate development package or SDK, be sure it has been
installed.
Call Stack (most recent call first):
cmake/modules/SwiftSharedCMakeConfig.cmake:212 (swift_common_standalone_build_config_clang)
CMakeLists.txt:398 (swift_common_standalone_build_config)

-- Configuring incomplete, errors occurred!

I'm flummoxed. Anyone able to give me some pointers to get past this?

Thanks in advance, -- E

_______________________________________________
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 <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