{"id":866,"date":"2014-08-22T07:34:24","date_gmt":"2014-08-22T14:34:24","guid":{"rendered":"http:\/\/somethingk.com\/main\/?p=866"},"modified":"2014-08-22T07:34:24","modified_gmt":"2014-08-22T14:34:24","slug":"compiling-mesa-7-9-1-error-brw_program-c3920-error-talloc-h-no-such-file-or-directory","status":"publish","type":"post","link":"https:\/\/somethingk.com\/main\/compiling-mesa-7-9-1-error-brw_program-c3920-error-talloc-h-no-such-file-or-directory\/","title":{"rendered":"Compiling Mesa 7.9.1 Error: brw_program.c:39:20: error: talloc.h: No such file or directory"},"content":{"rendered":"<h3>Error<\/h3>\n<p>I received the following error while configuring <a title=\"The Mesa 3D Graphics Library\" href=\"http:\/\/www.mesa3d.org\/\" target=\"_blank\">mesa <\/a>version 7.9.1 from its source code (running .\/configure).<\/p>\n<pre>Error: \u201cbrw_program.c:39:20: error: talloc.h: No such file or directory\u201d<\/pre>\n<h3><a href=\"http:\/\/somethingk.com\/main\/wp-content\/uploads\/2014\/08\/image0011.png\"><img fetchpriority=\"high\" decoding=\"async\" class=\"aligncenter size-full wp-image-867\" src=\"http:\/\/somethingk.com\/main\/wp-content\/uploads\/2014\/08\/image0011.png\" alt=\"Mesa compile error\" width=\"641\" height=\"145\" srcset=\"https:\/\/somethingk.com\/main\/wp-content\/uploads\/2014\/08\/image0011.png 641w, https:\/\/somethingk.com\/main\/wp-content\/uploads\/2014\/08\/image0011-300x67.png 300w\" sizes=\"(max-width: 641px) 100vw, 641px\" \/><\/a><br \/>\nSolution<\/h3>\n<p>To solve this issue, I added a statement to the .\/configure line that added talloc&#8217;s include directory into the CPPFLAGS.<\/p>\n<pre>CPPFLAGS=\"-I&lt;PATH TO TALLOC INCLUDE DIRECTORY&gt;\" .\/configure<\/pre>\n<p>Make sure to keep the &#8220;-I&#8221; before the path with no spaces between them. I had talloc installed in a unique location, with a different prefix than the norm. Mesa wasn&#8217;t looking in the right places for it. To provide mesa with the correct path, I added it into CPPFLAGS. These flags are used to define include directory paths for the compiler.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Error I received the following error while configuring mesa version 7.9.1 from its source code (running .\/configure). Error: \u201cbrw_program.c:39:20: error: talloc.h: No such file or directory\u201d Solution To solve this issue, I added a statement to the .\/configure line that added talloc&#8217;s include directory into the CPPFLAGS. CPPFLAGS=&#8221;-I&lt;PATH TO TALLOC INCLUDE DIRECTORY&gt;&#8221; .\/configure Make sure to keep the &#8220;-I&#8221; before [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[177,6],"tags":[274,257,258,273,276,249,275],"class_list":["post-866","post","type-post","status-publish","format-standard","hentry","category-development","category-linux","tag-7-9-1","tag-compile","tag-error","tag-mesa","tag-missing-file","tag-source-code","tag-talloc"],"_links":{"self":[{"href":"https:\/\/somethingk.com\/main\/wp-json\/wp\/v2\/posts\/866","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/somethingk.com\/main\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/somethingk.com\/main\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/somethingk.com\/main\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/somethingk.com\/main\/wp-json\/wp\/v2\/comments?post=866"}],"version-history":[{"count":1,"href":"https:\/\/somethingk.com\/main\/wp-json\/wp\/v2\/posts\/866\/revisions"}],"predecessor-version":[{"id":868,"href":"https:\/\/somethingk.com\/main\/wp-json\/wp\/v2\/posts\/866\/revisions\/868"}],"wp:attachment":[{"href":"https:\/\/somethingk.com\/main\/wp-json\/wp\/v2\/media?parent=866"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/somethingk.com\/main\/wp-json\/wp\/v2\/categories?post=866"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/somethingk.com\/main\/wp-json\/wp\/v2\/tags?post=866"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}