[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cmake
Subject:    Re: [CMake] hang in FindDoxygen.cmake on ppc64le
From:       Alex Turbov <i.zaufi () gmail ! com>
Date:       2017-06-29 10:37:38
Message-ID: CANktQtubXQokoYOBZeS86tJTEoatX36bfuaqk9oU17ZNHsN61A () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


> Linux does not understand '(' in name of files and directories; e.g.

actually it does. (and Bash != Linux). Anyway, just like a space symbol,
you can quote argument w/ braces:

$ mkdir -p '/tmp/Just Test (it)'

and everything will be fine. As for the code mentioned, all paths are
quoted here, so CMake should see the correct paths here.
To get more details please try to run cmake w/ `--trace-expand` and maybe
w/ `--trace-source=FindDoxygen.cmake` options.

On Mon, Jun 26, 2017 at 7:05 PM, Serban Maerean <serban@us.ibm.com> wrote:

> Hi,
>
> I get a hang in the "file" command in FindDoxygen.cmake, on ppc64le:
>
> 103 set(_x86 "(x86)")
> 104 file(GLOB _Doxygen_GRAPHVIZ_BIN_DIRS
> 105   "$ENV{ProgramFiles}/Graphviz*/bin"
> 106   "$ENV{ProgramFiles${_x86}}/Graphviz*/bin"
> 107   )
> 108 unset(_x86)
>
> Linux does not understand '(' in name of files and directories; e.g.
>
> --> find /ProgramFiles(x86)/Graphviz*/bin
> -bash: syntax error near unexpected token `('
>
> and it appears the "file" command goes into a wild spin (never returns.)
>
> Can this be done only for Windows?  I notice some paths are added
> regardless of platform, even if they are specific to a single platform,
> which seems to be unecessary.
>
> Thanks,
>
>
> Serban Maerean
> HPC Tools
> T/L: 293-9770, Tel.: 845-433-9770
> E-mail: serban@us.ibm.com
>
> --
>
> Powered by www.kitware.com
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Kitware offers various services to support the CMake community. For more
> information on each offering, please visit:
>
> CMake Support: http://cmake.org/cmake/help/support.html
> CMake Consulting: http://cmake.org/cmake/help/consulting.html
> CMake Training Courses: http://cmake.org/cmake/help/training.html
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/cmake
>

[Attachment #5 (text/html)]

<div dir="ltr"><div><div><div><div>&gt; <font size="3">Linux does not understand \
&#39;(&#39; in name of files and directories; e.g.</font><br><font \
size="3"><br></font></div><font size="3">actually it does. (and Bash != Linux). \
Anyway, just like a space symbol, you can quote argument w/ \
braces:<br><br></font></div><font size="3">$ mkdir -p &#39;/tmp/Just Test \
(it)&#39;<br><br></font></div><font size="3">and  everything will be fine. As for the \
code mentioned, all paths are quoted here,  so CMake should see the correct paths \
here.<br></font></div><font size="3">To get more details please try to run cmake w/ \
`--trace-expand` and maybe w/ `--trace-source=FindDoxygen.cmake` \
options.<br></font></div><div class="gmail_extra"><br><div class="gmail_quote">On \
Mon, Jun 26, 2017 at 7:05 PM, Serban Maerean <span dir="ltr">&lt;<a \
href="mailto:serban@us.ibm.com" target="_blank">serban@us.ibm.com</a>&gt;</span> \
wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px \
#ccc solid;padding-left:1ex"><font size="3">Hi,</font><br><font size="3"><br>I get a \
hang in the &quot;file&quot; command in FindDoxygen.cmake, on \
ppc64le:</font><br><font size="3"><br>103 set(_x86 &quot;(x86)&quot;)<br>104 \
file(GLOB _Doxygen_GRAPHVIZ_BIN_DIRS<br>105     \
&quot;$ENV{ProgramFiles}/Graphviz*<wbr>/bin&quot;<br>106     \
&quot;$ENV{ProgramFiles${_x86}}/<wbr>Graphviz*/bin&quot;<br>107     )<br>108 \
unset(_x86)<br><br>Linux does not understand &#39;(&#39; in name of files and \
directories; e.g.</font><br><font size="3"><br>--&gt; find \
/ProgramFiles(x86)/Graphviz*/<wbr>bin<br>-bash: syntax error near unexpected token \
`(&#39;</font><br><font size="2" face="sans-serif"><br>and it appears the \
&quot;file&quot; command goes into a wild spin (never returns.)</font><br><br><font \
size="2" face="sans-serif">Can this be done only for Windows?   I notice some paths \
are added regardless of platform, even if they are specific to a single platform, \
which seems to be unecessary.</font><br><br><font size="2" \
face="sans-serif">Thanks,</font><br><br><font size="2" face="sans-serif"><br>Serban \
Maerean<br>HPC Tools<br>T/L: 293-9770, Tel.: 845-433-9770<br>E-mail: <a \
href="mailto:serban@us.ibm.com" target="_blank">serban@us.ibm.com</a> \
</font><br><br>--<br> <br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" \
target="_blank">www.kitware.com</a><br> <br>
Please keep messages on-topic and check the CMake FAQ at: <a \
href="http://www.cmake.org/Wiki/CMake_FAQ" rel="noreferrer" \
target="_blank">http://www.cmake.org/Wiki/<wbr>CMake_FAQ</a><br> <br>
Kitware offers various services to support the CMake community. For more information \
on each offering, please visit:<br> <br>
CMake Support: <a href="http://cmake.org/cmake/help/support.html" rel="noreferrer" \
target="_blank">http://cmake.org/cmake/help/<wbr>support.html</a><br> CMake \
Consulting: <a href="http://cmake.org/cmake/help/consulting.html" rel="noreferrer" \
target="_blank">http://cmake.org/cmake/help/<wbr>consulting.html</a><br> CMake \
Training Courses: <a href="http://cmake.org/cmake/help/training.html" \
rel="noreferrer" target="_blank">http://cmake.org/cmake/help/<wbr>training.html</a><br>
 <br>
Visit other Kitware open-source projects at <a \
href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" \
target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br> <br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/cmake" rel="noreferrer" \
target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/cmake</a><br></blockquote></div><br></div>




-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: \
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more information \
on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at \
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic