CrossGCC has cygwin built into their search paths...

Adrian Michaud admich@nortelnetworks.com
Fri Sep 29 08:09:00 GMT 2000


Title: RE: CrossGCC has cygwin built into their search paths...







Hi Rob,


I'm just using the cross tools to generate bare bones PowerPC .ELF images (No C-runtine, or C-runtime startup code needed)...    I write my own startup-code for my embedded system..

The compiler/linker itself have all of these built-in search paths...  I can build and link my code if I stick libgcc.a in the current directory, otherwise I get this error:

C:\gcc_ppc>xgcc test.c
ld: cannot open libgcc.a: No such file or directory



If I copy libgcc.a into the current directory, it links fine....  The problem is, by default the linker is looking for libraries in the following directories that don't exist anymore:

libraries: /usr/target-powerpc/lib/gcc-lib/powerpc-unknown-eabi/2.95.2/:/usr/lib
/gcc/powerpc-unknown-eabi/2.95.2/:/usr/target-powerpc/powerpc-unknown-eabi/lib/p
owerpc-unknown-eabi/2.95.2/:/usr/target-powerpc/powerpc-unknown-eabi/lib/



My question is,  how do I get the tools to use the more conventional environment variables "LIB" and "INCLUDE", etc....  (Or strip the default search path listed above)....

Thanks,


Adrian


-----Original Message-----
From: Rob Taylor [ mailto:robt@flyingpig.com ]
Sent: Friday, September 29, 2000 7:50 AM
To: Michaud, Adrian [BL60:430:EXCH]; crossgcc
Subject: RE: CrossGCC has cygwin built into their search paths...



>When I run my new Cross compiler outside of Cygwin (as a standard Win32 app), I
>notice that the compiler is trying to find libgcc.a in the original cygwin
tree...


what do you mean, trying? is it failing? This isn't the error you get when
cygwin1.dll is not in your path? If not..


Is it that it can't find libgcc.a, or is it that it cant find references from
libgcc.a?
Have you written a suitable linker configuration file?
What sort of output are you trying to generate?
How are you uploading the complied code?
You're coding for an embedded platform, there's no way you can just
'powerpc-unknown-eabi-gcc hellow.c' and expect it to produce something that'll
link and run on your platform....


Rob Taylor
Flying Pig Systems






More information about the crossgcc mailing list