question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

C++ code fails to build with clang 4.0

See original GitHub issue

On a Ubuntu 17.04 machine, with clang-4.0 installed, I get this error from Bazel for some straightforward C++ code:

this rule is missing dependency declarations for the following files included by 'C-Source/something/other.c':
  '/usr/lib/llvm-4.0/lib/clang/4.0.0/include/stdbool.h'
  '/usr/lib/llvm-4.0/lib/clang/4.0.0/include/stdint.h'
  '/usr/lib/llvm-4.0/lib/clang/4.0.0/include/stddef.h'

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:47 (32 by maintainers)

github_iconTop GitHub Comments

1reaction
ulfjackcommented, May 23, 2018

(That’s a no.)

0reactions
nicolasnoblecommented, Jun 26, 2018

I believe that since 0.14 has been released, this issue can be closed now, right ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

clang: error: linker command failed with exit code 1 ... - illumos
It's trying to use crtbegin.o and crtend.o without specifying a path. They're not looked for via the search paths. Clang is doing: "/usr/bin/ld"...
Read more >
Clang++ 4.0.0 compilation error in windows - Stack Overflow
I'm using clang 4.0.0 compiled from source on windows 10 (32-bit OS, x86 processor). I'm trying to compile my cpp code to llvm...
Read more >
Error: C Compiler is not able to compile a simple test program ...
Error: C Compiler is not able to compile a simple test program and clang-4.0: error: linker command failed with exit code 1 Follow....
Read more >
Expressive Diagnostics - Clang - LLVM
Clang captures and accurately tracks range information for expressions, statements, and other constructs in your program and uses this to make diagnostics ...
Read more >
clang: error: linker command faile… | Apple Developer Forums
Go to the build log (click the last icon across the top of the navigator pane), expand the transcript with the error, and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found