<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">Hi,</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">When I use "<span class="gmail-gr_ gmail-gr_233 gmail-gr-alert gmail-gr_spell gmail-gr_inline_cards gmail-gr_run_anim gmail-ContextualSpelling" id="gmail-233">gcc</span>  -E -P -v -dD test.c" from MingW shell it gives (Last few lines)<br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><span style="font-family:monospace,monospace">int main()<br>{<br> while(1);<br> return 0;<br>}<br>ignoring duplicate directory "C:/msys64/mingw64/lib/gcc/../../lib/gcc/x86_64-w64-mingw32/8.3.0/include"<br>ignoring nonexistent directory "C:/building/msys64/mingw64/include"<br>ignoring nonexistent directory "/mingw64/include"<br>ignoring duplicate directory "C:/msys64/mingw64/lib/gcc/../../lib/gcc/x86_64-w64-mingw32/8.3.0/include-fixed"<br>ignoring duplicate directory "C:/msys64/mingw64/lib/gcc/../../lib/gcc/x86_64-w64-mingw32/8.3.0/../../../../x86_64-w64-mingw32/include"<br>ignoring nonexistent directory "C:/building/msys64/mingw64/x86_64-w64-mingw32/include"<br>#include "..." search starts here:<br>#include <...> search starts here:<br> C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.3.0/include<br> C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.3.0/../../../../include<br> C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.3.0/include-fixed<br> C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.3.0/../../../../x86_64-w64-mingw32/include<br>End of search list.<br>COMPILER_PATH=C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.3.0/;C:/msys64/mingw64/bin/../lib/gcc/;C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.3.0/../../../../x86_64-w64-mingw32/bin/<br>LIBRARY_PATH=C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.3.0/;C:/msys64/mingw64/bin/../lib/gcc/;C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.3.0/../../../../x86_64-w64-mingw32/lib/../lib/;C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.3.0/../../../../lib/;C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.3.0/../../../../x86_64-w64-mingw32/lib/;C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.3.0/../../../<br>COLLECT_GCC_OPTIONS='-E' '-P' '-v' '-dD' '-mtune=generic' '-march=x86-64'</span><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">But when I give "arm-rtems5-gcc  -E -P -v -dD test.c"<br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><span style="font-family:monospace,monospace">int main()<br>{<br> while(1);<br> return 0;<br>}<br>ignoring nonexistent directory "c:\opt\rtems\5.00\compiler\5\bin\../lib/gcc/arm-rtems5/7.4.0/../../../../arm-rtems5/sys-include"<br>ignoring duplicate directory "C:/opt/RTEMS/5.00/compiler/5/lib/gcc/../../lib/gcc/arm-rtems5/7.4.0/include"<br>ignoring duplicate directory "C:/opt/RTEMS/5.00/compiler/5/lib/gcc/../../lib/gcc/arm-rtems5/7.4.0/include-fixed"<br>ignoring nonexistent directory "C:/opt/RTEMS/5.00/compiler/5/lib/gcc/../../lib/gcc/arm-rtems5/7.4.0/../../../../arm-rtems5/sys-include"<br>ignoring duplicate directory "C:/opt/RTEMS/5.00/compiler/5/lib/gcc/../../lib/gcc/arm-rtems5/7.4.0/../../../../arm-rtems5/include"<br>#include "..." search starts here:<br><span style="color:rgb(255,0,0)">#include <...> search starts here:<br> c:\opt\rtems\5.00\compiler\5\bin\../lib/gcc/arm-rtems5/7.4.0/include<br> c:\opt\rtems\5.00\compiler\5\bin\../lib/gcc/arm-rtems5/7.4.0/include-fixed<br> c:\opt\rtems\5.00\compiler\5\bin\../lib/gcc/arm-rtems5/7.4.0/../../../../arm-rtems5/include<br>End of search list.</span><br>COMPILER_PATH=c:/opt/rtems/5.00/compiler/5/bin/../libexec/gcc/arm-rtems5/7.4.0/;c:/opt/rtems/5.00/compiler/5/bin/../libexec/gcc/;c:/opt/rtems/5.00/compiler/5/bin/../lib/gcc/arm-rtems5/7.4.0/../../../../arm-rtems5/bin/<br>LIBRARY_PATH=c:/opt/rtems/5.00/compiler/5/bin/../lib/gcc/arm-rtems5/7.4.0/;c:/opt/rtems/5.00/compiler/5/bin/../lib/gcc/;c:/opt/rtems/5.00/compiler/5/bin/../lib/gcc/arm-rtems5/7.4.0/../../../../arm-rtems5/lib/<br>COLLECT_GCC_OPTIONS='-E' '-P' '-v' '-dD'</span><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">Why does the path shown like <span style="font-family:monospace,monospace"><span style="color:rgb(255,0,0)">c:\opt\rtems\5.00\compiler\5\bin\../lib/gcc/arm-rtems5/7.4.0/include</span></span>?</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">Is there a way to change it back to <span style="font-family:monospace,monospace"><span style="color:rgb(255,0,0)">c:/opt/rtems/5.00/compiler/5/bin/../lib/gcc/arm-rtems5/7.4.0/include?</span></span>

</div><div><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><p><b><span style="font-family:arial,helvetica,sans-serif"><span style="font-weight:normal"><span class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"> </span>Thank you & Regards,</span></span></b></p><span style="font-family:arial,helvetica,sans-serif"><b><span style="font-weight:bold;font-size:9pt">Amarnath MB</span></b><b><span style="font-weight:bold;font-size:9pt"></span></b></span><br><span style="font-family:arial,helvetica,sans-serif"><b><span style="font-weight:bold;font-size:9pt"></span></b></span><span style="font-family:arial,helvetica,sans-serif"><br></span></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div><br></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Mar 28, 2019 at 3:20 PM Sebastian Huber <<a href="mailto:sebastian.huber@embedded-brains.de">sebastian.huber@embedded-brains.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 28/03/2019 09:49, Amarnath MB wrote:<br>
> My development platform is MingW64 on Windows 10.<br>
> The strange part is that when I build my BSP from MingW shell then <br>
> this error is not reported and everything gets built successfully. <br>
> Once I install my bsp and use it in eclipse to build application it <br>
> gives the above error.<br>
><br>
> After some googling, I came to know that this is some issue related to <br>
> the Linker standard path.<br>
<br>
The GCC cannot find its internal target libraries. I guess you don't <br>
call GCC in a MSYS shell in eclipse so the behaviour is different. You <br>
can print out the compiler search paths with "gcc -E -P -v -dD <br>
empty-file.c".<br>
<br>
-- <br>
Sebastian Huber, embedded brains GmbH<br>
<br>
Address : Dornierstr. 4, D-82178 Puchheim, Germany<br>
Phone   : +49 89 189 47 41-16<br>
Fax     : +49 89 189 47 41-09<br>
E-Mail  : <a href="mailto:sebastian.huber@embedded-brains.de" target="_blank">sebastian.huber@embedded-brains.de</a><br>
PGP     : Public key available on request.<br>
<br>
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.<br>
<br>
</blockquote></div>