Boost C++ Libraries: Ticket #4939: bjam fails when LD_LIBRARY_PATH empty https://svn.boost.org/trac10/ticket/4939 <p> bjam fails when the environment variable LD_LIBRARY_PATH is set to empty: </p> <pre class="wiki">export LD_LIBRARY_PATH= </pre><p> Here the error output: </p> <pre class="wiki">error: Empty path passed to 'make-UNIX' path/boost/tools/build/v2/util/path.jam:44: in path.make from module path path/boost/tools/build/v2/build/property.jam:455: in property.translate-paths from module property path/boost/tools/build/v2/build/property-set.jam:386: in property-set.create-from-user-input from module property-set path/boost/tools/build/v2/build/targets.jam:1589: in targets.main-target-usage-requirements from module targets path/boost/tools/build/v2/build/alias.jam:68: in alias from module alias path/sandbox/etk/variant/../abaqus/abaqus.jam:169: in load from module ../abaqus/abaqus path/boost/tools/build/v2/kernel/modules.jam:283: in modules.import from module modules path/boost/tools/build/v2/build/project.jam:900: in import from module Jamfile&lt;path/sandbox/etk/variant&gt; variant/Jamfile:4: in modules.load from module Jamfile&lt;path/sandbox/etk/variant&gt; path/boost/tools/build/v2/build/project.jam:310: in load-jamfile from module project path/boost/tools/build/v2/build/project.jam:62: in load from module project path/boost/tools/build/v2/build/project.jam:168: in project.find from module project path/boost/tools/build/v2/build/targets.jam:369: in find-really from module object(project-target)@78 path/boost/tools/build/v2/build/targets.jam:435: in object(project-target)@78.find from module object(project-target)@78 path/boost/tools/build/v2/build/targets.jam:816: in resolve-reference from module targets path/boost/tools/build/v2/build/targets.jam:833: in targets.generate-from-reference from module targets path/boost/tools/build/v2/build/targets.jam:1217: in generate-dependencies from module object(alias-target-class)@156 path/boost/tools/build/v2/build/targets.jam:1269: in object(alias-target-class)@156.generate from module object(alias-target-class)@156 path/boost/tools/build/v2/build/targets.jam:732: in generate-really from module object(main-target)@900 path/boost/tools/build/v2/build/targets.jam:704: in object(main-target)@900.generate from module object(main-target)@900 path/boost/tools/build/v2/build/targets.jam:848: in targets.generate-from-reference from module targets path/boost/tools/build/v2/build/targets.jam:1217: in generate-dependencies from module object(typed-target)@1425 path/boost/tools/build/v2/build/targets.jam:1269: in object(typed-target)@1425.generate from module object(typed-target)@1425 path/boost/tools/build/v2/build/targets.jam:732: in generate-really from module object(main-target)@1428 path/boost/tools/build/v2/build/targets.jam:704: in object(main-target)@1428.generate from module object(main-target)@1428 path/boost/tools/build/v2/build/targets.jam:848: in targets.generate-from-reference from module targets path/boost/tools/build/v2/build/targets.jam:1217: in generate-dependencies from module object(typed-target)@1426 path/boost/tools/build/v2/build/targets.jam:1269: in object(typed-target)@1426.generate from module object(typed-target)@1426 path/boost/tools/build/v2/build/targets.jam:732: in generate-really from module object(main-target)@1429 path/boost/tools/build/v2/build/targets.jam:704: in object(main-target)@1429.generate from module object(main-target)@1429 path/boost/tools/build/v2/build/targets.jam:848: in targets.generate-from-reference from module targets path/boost/tools/build/v2/build/targets.jam:1217: in generate-dependencies from module object(alias-target-class)@963 path/boost/tools/build/v2/build/targets.jam:1269: in object(alias-target-class)@963.generate from module object(alias-target-class)@963 path/boost/tools/build/v2/build/targets.jam:732: in generate-really from module object(main-target)@1081 path/boost/tools/build/v2/build/targets.jam:704: in object(main-target)@1081.generate from module object(main-target)@1081 path/boost/tools/build/v2/build/targets.jam:848: in targets.generate-from-reference from module targets path/boost/tools/build/v2/build/targets.jam:1217: in generate-dependencies from module object(typed-target)@969 path/boost/tools/build/v2/build/targets.jam:1269: in object(typed-target)@969.generate from module object(typed-target)@969 path/boost/tools/build/v2/build/targets.jam:732: in generate-really from module object(main-target)@1087 path/boost/tools/build/v2/build/targets.jam:704: in object(main-target)@1087.generate from module object(main-target)@1087 path/boost/tools/build/v2/build/targets.jam:848: in targets.generate-from-reference from module targets path/boost/tools/build/v2/build/targets.jam:1217: in generate-dependencies from module object(typed-target)@196 path/boost/tools/build/v2/build/targets.jam:1269: in object(typed-target)@196.generate from module object(typed-target)@196 path/boost/tools/build/v2/build/targets.jam:732: in generate-really from module object(main-target)@921 path/boost/tools/build/v2/build/targets.jam:704: in object(main-target)@921.generate from module object(main-target)@921 path/boost/tools/build/v2/build/targets.jam:848: in targets.generate-from-reference from module targets path/boost/tools/build/v2/build/targets.jam:1217: in generate-dependencies from module object(install-target-class)@238 path/boost/tools/build/v2/build/targets.jam:1269: in object(install-target-class)@238.generate from module object(install-target-class)@238 path/boost/tools/build/v2/build/targets.jam:732: in generate-really from module object(main-target)@922 path/boost/tools/build/v2/build/targets.jam:704: in object(main-target)@922.generate from module object(main-target)@922 path/boost/tools/build/v2/build-system.jam:735: in load from module build-system path/boost/tools/build/v2/kernel/modules.jam:283: in import from module modules path/boost/tools/build/v2/kernel/bootstrap.jam:142: in boost-build from module path/boost/tools/build/v2/boost-build.jam:8: in module scope from module </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/4939 Trac 1.4.3 Vladimir Prus Mon, 06 Dec 2010 10:26:55 GMT <link>https://svn.boost.org/trac10/ticket/4939#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4939#comment:1</guid> <description> <p> Could you please specify exactly what commands do you use to get this error. Your bug report does not appear to even contain any bjam invocation, for starters. Further, it's highly unlikely that this specific error is related to LD_LIBRARY_PATH treatment inside Boost.Buid. Rather, it looks like something at path/sandbox/etk/variant/../abaqus/abaqus.jam:169 is not able to tolerate empty LD_LIBRARY_PATH. </p> </description> <category>Ticket</category> </item> <item> <author>jan.boehme@…</author> <pubDate>Mon, 06 Dec 2010 12:35:30 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/4939#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4939#comment:2</guid> <description> <p> I'm sorry and you're right: There the following line be found </p> <pre class="wiki">alias intel_librarys : : &lt;os&gt;LINUX &lt;toolset&gt;intel : : &lt;library-path&gt;$(LD_LIBRARY_PATH) &lt;dll-path&gt;$(LD_LIBRARY_PATH) ; </pre><p> which is bogus BTW and the error is legitimate. </p> <p> Sorry again </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Vladimir Prus</dc:creator> <pubDate>Mon, 06 Dec 2010 13:21:26 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/4939#comment:3 https://svn.boost.org/trac10/ticket/4939#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> Oh, apparently </p> <pre class="wiki"> export LD_LIBRARY_PATH= </pre><p> makes LD_LIBRARY_PATH be defined with an empty value. I suppose that </p> <pre class="wiki"> undef LD_LIBRARY_PATH </pre><p> will work matter. One might argue that maybe empty value of LD_LIBRARY_PATH should be treated as no value, but it's not obvious. </p> Ticket