# Compiling nvopencc from source code

**URL:** <https://forums.developer.nvidia.com/t/compiling-nvopencc-from-source-code/34979>\
**Category:** CUDA Programming and Performance\
**Created:** [September 28, 2014, 6:54pm UTC](https://forums.developer.nvidia.com/t/compiling-nvopencc-from-source-code/34979 "2014-09-28T18:54:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![HadrienMilano](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@HadrienMilano](https://forums.developer.nvidia.com/u/HadrienMilano)\
**Post date:** [September 28, 2014, 6:54pm UTC](https://forums.developer.nvidia.com/t/compiling-nvopencc-from-source-code/34979/1 "2014-09-28T18:54:51Z")

</div>

Hi all,

I’m currently trying to compile nvopencc from the sources available at ftp://download.nvidia.com/CUDAOpen64/nvopencc\_4.0\_src\_10003849.tar.gz on Ubuntu precise(32).  
I’m using the target “targia32\_nvisa” and I’m having a really bad time trying to make it work. First I had to edit ROOT\_DIR in linux/make/gcommondefs to point the right directory. Then a header called “syscall\_names.h” was missing as well as an entire source directory (namely “src/be/cmc”).  
I must admit I have no idea what most of these modules do and I just want the whole project to compile. However for some reason the building looks totally broken. Can anyone tell me how I’m supposed to compile nvopencc ?

Thanks in advance,

Hadrien

ps: I already searched and it looks like very few people succeeded in this task…

---

<div class="post-metadata">

**Author:** ![Gregory\_Diamos](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@Gregory\_Diamos](https://forums.developer.nvidia.com/u/Gregory_Diamos)\
**Post date:** [September 29, 2014, 3:33am UTC](https://forums.developer.nvidia.com/t/compiling-nvopencc-from-source-code/34979/2 "2014-09-29T03:33:00Z")

</div>

Is there any reason in particular why you want to use the Open64 CUDA compiler? If you are just looking for an open source compiler that targets NVIDIA, CLANG/LLVM has a PTX backend in the trunk.

---

<div class="post-metadata">

**Author:** ![HadrienMilano](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@HadrienMilano](https://forums.developer.nvidia.com/u/HadrienMilano)\
**Post date:** [September 30, 2014, 2:58pm UTC](https://forums.developer.nvidia.com/t/compiling-nvopencc-from-source-code/34979/3 "2014-09-30T14:58:33Z")

</div>

Thanks for your answer, I’ll look into that.
