From cmake Thu Jun 29 10:37:38 2017 From: Alex Turbov Date: Thu, 29 Jun 2017 10:37:38 +0000 To: cmake Subject: Re: [CMake] hang in FindDoxygen.cmake on ppc64le Message-Id: X-MARC-Message: https://marc.info/?l=cmake&m=149873267324929 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--===============0335187113==" --===============0335187113== Content-Type: multipart/alternative; boundary="001a11436c30c61e13055316e35a" --001a11436c30c61e13055316e35a Content-Type: text/plain; charset="UTF-8" > 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 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 > --001a11436c30c61e13055316e35a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
> Linux does not u= nderstand '(' in name of files and directories; e.g.

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

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

and everything will be fine. As for the code mentioned, all paths are quoted h= ere,=20 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=3DFindDoxygen.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 ppc64= le:


103 set(_x86 "(x86)")
104 f= ile(GLOB _Doxygen_GRAPHVIZ_BIN_DIRS
105=C2=A0 =C2=A0"$ENV{ProgramFi= les}/Graphviz*/bin"
106=C2=A0 =C2=A0"$ENV{ProgramFiles${_= x86}}/Graphviz*/bin"
107=C2=A0 =C2=A0)
108 unset(_x86)
<= br>Linux does not understand '(' in name of files and directories; = e.g.


--> find /ProgramFiles(x86)/Graphviz= */bin
-bash: syntax error near unexpected token `('

<= font size=3D"2" face=3D"sans-serif">
and it appears the "file"= command goes into a wild spin (never returns.)

Can this be do= ne only for Windows?=C2=A0 I notice some paths are added regardless of platform, even if they are specif= ic to a single platform, which seems to be unecessary.

Thanks,


Serban Maerean
HPC Tools
T/L: 293-9770, Tel.: 845-433= -9770
E-mail: ser= ban@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 in= formation on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html=
CMake Consulting: http://cmake.org/cmake/help/consul= ting.html
CMake Training Courses: http://cmake.org/cmake/help/tr= aining.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/cmak= e

--001a11436c30c61e13055316e35a-- --===============0335187113== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- 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 --===============0335187113==--