Questions tagged [clang]

6 questions
10
votes
1 answer

Objective C enviroment

Do any of the standard distributions come with an Objective C environment? Is there anywhere to get prebuilt Objective-C compiler and libraries? I would prefer an answer which is based on Clang/LLVM but will settle for something based on gcc.
Maria Zverina
  • 5,188
  • 5
  • 32
  • 42
9
votes
2 answers

How can I cross-compile to the Raspberry Pi using Clang/LLVM?

I would like to cross-compile C-family languages (C, C++, Objective-C, and Objective-C++) to the Raspberry Pi using Clang and LLVM on a build computer of a different architecture. How may I do this?
fouric
  • 1,809
  • 4
  • 18
  • 26
5
votes
2 answers

Compiling Objective C with Clang

I have installed clang on my Raspberry Pi. How can I compile a .m file (Objective C) through the terminal? Let's say I called it bob.m and I want the output file to be called bob and I'm already in the correct directory, what is the exact command?
user1628
  • 161
  • 1
  • 3
1
vote
2 answers

How do I get Swift working on my Pi 3b

I am a longtime iOS OS X developer who's switched most of his work to Swift. Now that Swift is open source, it has been offered for non-Apple ARM devices like the Pi. Based on my reading, it looks like you need to install Ubuntu on your Pi in order…
Duncan C
  • 119
  • 2
1
vote
1 answer

Is t possible/feasible to use android's NDK toolchain to cross-compile for Pi?

That's it, really. I have an x86_64 host that already cross-compiles a C application for android's 4 supported architectures, could I use the existing toolchain to build armeabi-v7a for a Pi (running Linux like Raspbian or whatever)? Edit 1 I…
vesperto
  • 151
  • 1
  • 1
  • 7
0
votes
0 answers

Clang sanitizers fail

On my Pi 4 Model B with 4GB running the 64-bit Raspberry Pi OS: $ uname -a Linux pi4b 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch64 GNU/Linux I have installed Clang 16 from llvm.org: $ clang-16 --version Debian clang version…
Mark Adler
  • 123
  • 5