title: Facebook warpdrive build - D Programming language
body: <p>Of late, facebook opensourced warp, <strong>C</strong>/C++ preprocessor.
  <a href="https://github.com/facebook/warp" rel="nofollow">https://github.com/facebook/warp</a></p>
  
  <p>I'm trying to build it using dmd and stuck with some build errors.
  I downloaded dmd.2.065.0.zip for dmd compiler - dmd2/linux/bin64/dmd
  I also see a bunch of libraries, for example libphobos2.a</p>
  
  <p>Then when I build warp, I see some errors from ld, that keep complaining that phobos2.a could not be found. I exported LD_LIBRARY_PATH to the dir where this library is stored but no luck.</p>
  
  <p>I compiled in verbose mode, and it doesn't give more info.</p>
  
  <p>Command:</p>
  
  <pre><code>/path/to//building_stuff/dmd2/linux/bin64/dmd -O -inline -release -ofwarp cmdline.d constexpr.d context.d directive.d expanded.d file.d id.d lexer.d loc.d macros.d main.d number.d outdeps.d ranges.d skip.d sources.d stringlit.d textbuf.d -v
  </code></pre>
  
  <p>Error excerpt:</p>
  
  <pre><code>function  textbuf.Textbuf!char.Textbuf.length
  function  textbuf.Textbuf!char.Textbuf.resize
  gcc warp.o -o warp -m64 -L/path/to/building_stuff/dmd2/linux/bin64/../lib64 -Xlinker --export-dynamic -l:libphobos2.a -lpthread -lm -lrt 
  /usr/bin/ld: cannot find -l:libphobos2.a
  collect2: ld returned 1 exit status
  --- errorlevel 1
  </code></pre>
  
  <p>I was hoping the D language experts here, or those who know about warp already could give me some hint.</p>
  
  <p>I was not on CentOS, as warp demands. I wonder if that could anyway be the reason.
  I was not using gcc 4.7.x as warp demands, but, to me, the library could just not be located doesn't look like a problem from old gcc I have.</p>
  
  <p>I was on redhat5.5 machine with 4.1 gcc.</p>