# Building Julia from source on old Cray XE/XK system

**URL:** https://discourse.julialang.org/t/building-julia-from-source-on-old-cray-xe-xk-system/48899
**Category:** Julia at Scale
**Tags:** question
**Created:** [October 23, 2020, 6:03pm UTC](https://discourse.julialang.org/t/building-julia-from-source-on-old-cray-xe-xk-system/48899 "2020-10-23T18:03:59Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![asaxton](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/asaxton/32/22216_2.png) [@asaxton](https://discourse.julialang.org/u/asaxton)
#### Post date: [October 23, 2020, 6:04pm UTC](https://discourse.julialang.org/t/building-julia-from-source-on-old-cray-xe-xk-system/48899/1 "2020-10-23T18:04:00Z")

</div>

Hi, as the title says, I’m building Julia from source on a Cray XE/XK system (Blue Waters). I keep getting compiler errors similar to `"error: expected ')' before 'PRIx32'"`. They have to do with macros defined under `inttypes.h`. I can fix these by simply adding  
`#define __STDC_FORMAT_MACROS`  
to the offending \*.cpp file. But there has to be a better way to configure this.

When I add `-D __STDC_FORMAT_MACROS` to Make.inc file, it doesn’t seem to have an effect. Neither does `export__ STDC_FORMAT_MACROS` from the shell, or `make CFLAGS=-D__STDC_FORMAT_MACROS.`

Any suggestions on the proper way to globally set `__STDC_FORMAT_MACROS` ?

Edit: Also, first time posting here or any Discourse channel. If this is the wrong topic or tags, I’m happy to adjust.
