<div dir="ltr">Hi,<div><br></div><div>I have an issue running the 16.1 DS-5 Arm compiler tool suite that is based around the GNU arm embedded toolchain.</div><div><br></div><div>The problem is that these compilers cannot process the Cygwin path structure ( Ie /cygdrive/c/....path/to/file ).</div><div><br></div><div>I have a build that works perfectly under Linux using CMake and a CMAKE_TOOLCHAIN_FILE using this same DS-5 compiler build for Linux. </div><div>The problem is that my teammates develop under Cygwin and I wanted to port this build (hence the reason for Cmake ) to Cygwin.</div><div><br></div><div><br></div><div><br></div><div>1. The first problem I have is that when I try to run </div><div>cmake -DCMAKE_TOOLCHAIN_FILE=../../Toolchain-arm.cmake .. </div><div><div><br></div><div><br></div><div>Is that Cmake tries to run testCCompiler.cc , but it uses the Cygwin absolute path to this file and fails.</div><div><br></div><div>As a result my compiler errors out saying <br><br></div><div><div> /cygdrive/c/intelFPGA/16.1/embedded/ds-5/sw/gcc/bin/arm-linux-gnueabihf-gcc</div><div> -o CMakeFiles/cmTC_05821.dir/testCCompiler.c.obj -c</div><div> /home/JDamon/device-mcb-apps/mavcore/build/CMakeFiles/CMakeTmp/testCCompiler.c</div><div><br></div><div><br></div><div> arm-linux-gnueabihf-gcc.exe: error:</div><div> /home/JDamon/device-mcb-apps/mavcore/build/CMakeFiles/CMakeTmp/testCCompiler.c:</div><div> No such file or directory #< This is the indicator that it doesn't like Cygwin paths.</div></div><div><br></div><div><br></div><div>You can verify this very easily just by creating a simple hello_world.c and run the compiler with the absolute path to that file.</div><div><br></div><div><br></div><div><br></div><div>How can I get past this compiler check ? </div><div><br></div><div><br></div><div><br></div><div>2. Is there a way to force Cmake to use relative file names or Native file names ( something like <span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">TO_NATIVE_PATH ) </span>when when performing the regular compilation ? I ask this because I already ran into the problem porting the manual Makefile from Linux to Cygwin and expressions like $(CC) -I/absolute/path/to/file ( rest of the line ) all failed because the compiler cannot handle the Cygwin paths.</div><div><br></div><div><br></div><div><br></div><div>Thanks,</div><div><br></div><div>-Jimi</div>--</div></div>
<br>
<font color="gray" size="1">WARNING - This e-mail or its attachments may contain controlled technical data or controlled technology within the definition of the International Traffic in Arms Regulations (ITAR) or Export Administration Regulations (EAR), and are subject to the export control laws of the U.S. Government. Transfer of this data or technology by any means to a foreign person, whether in the United States or abroad, without an export license or other approval from the U.S. Government, is prohibited. The information contained in this document is CONFIDENTIAL and property of ACCES I/O Products, Inc. Any unauthorized review, use, disclosure or distribution is prohibited without express written consent of ACCES I/O Products, Inc. If you are not the intended recipient, please contact the sender and destroy all copies of the original message and enclosed attachments.</font>