Menu

#27 Wrong search dirs on sygwin?

open
nobody
None
3
2011-02-05
2009-11-02
Anonymous
No

I run Cygwin 1.7 and installed the mingw32ce 0.59.1 package downloaded from cegcc's SF project page. The package is unarchived in /opt, meaning everything ends up in /opt/mingw32ce/... I added /opt/mingw32ce/arm-mingw32ce/bin to my path evinronment variable. Running gcc.exe/g++.exe works fine. I have no other GCC installed on my system.

The problem is when I link object files compiled with the compiler into an executable. I get an error abot crt3.o not found:

ld: crt3.o: No such file: No such file or directory

This file is located in /opt/mingw32ce/arm-mingw32ce/lib. Running gcc -print-search-dirs give the following output:

install: /opt/mingw32ce/arm-mingw32ce/bin/../lib/gcc/arm-mingw32ce/4.4.0/programs: =/opt/mingw32ce/arm-mingw32ce/bin/../libexec/gcc/arm-mingw32ce/4.4.0/:/opt/mingw32ce/arm-mingw32ce/bin/../libexec/gcc/:/opt/mingw32ce/arm-mingw32ce/bin/../lib/gcc/arm-mingw32ce/4.4.0/../../../../arm-mingw32ce/bin/arm-mingw32ce/4.4.0/:/opt/mingw32ce/arm-mingw32ce/bin/../lib/gcc/arm-mingw32ce/4.4.0/../../../../arm-mingw32ce/bin/
libraries: =/opt/mingw32ce/arm-mingw32ce/bin/../lib/gcc/arm-mingw32ce/4.4.0/:/opt/mingw32ce/arm-mingw32ce/bin/../lib/gcc/:/opt/mingw32ce/arm-mingw32ce/bin/../lib/gcc/arm-mingw32ce/4.4.0/../../../../arm-mingw32ce/lib/arm-mingw32ce/4.4.0/:/opt/mingw32ce/arm-mingw32ce/bin/../lib/gcc/arm-mingw32ce/4.4.0/../../../../arm-mingw32ce/lib/

As far as I can tell, the correct path for crt3.o is missing. I have also had to add /opt/mingw32ce/libexec/gcc/arm-mingw32ce/4.4.0 in order for the compiler to find cc1(plus).exe.

Discussion

  • Danny Backx

    Danny Backx - 2009-11-02

    The output is different on my Linux box. The last element of "libraries" does evaluate to the right place for me (/opt/mingw32ce/lib/gcc/arm-mingw32ce/4.4.0/../../../../arm-mingw32ce/lib/ -> /opt/mingw32ce/arm-mingw32ce/lib/crt3.o) .

    Does someone with a cygwin system know what's wrong ?

     
  • Paul Sokolovsky

    Paul Sokolovsky - 2011-02-05
    • priority: 5 --> 3
    • summary: Wrong search dirs? --> Wrong search dirs on sygwin?
     
  • Paul Sokolovsky

    Paul Sokolovsky - 2011-02-05

    Thanks for your bug report!

    To ease maintenance of the project, we are migrating bug tracking facilities to Trac. We would appreciate if you re-posted this bug on Trac via https://sourceforge.net/apps/trac/cegcc/newticket . Please include link to this bug for reference.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.