Problem with m68k-elf-ar and absolute Cygwin paths

Anders Ejdeling aejdeling at nordic.imaje.com
Thu Feb 1 13:59:59 UTC 2007


I am using Sourcery G++ Lite from within the Cygwin shell to build eCos. I have followed the instructions in the Getting Started guide to set the CYGPATH variable.

Everything works fine except for calling m68k-elf-ar with an absolute path to the target. ar creates a temporary file but fails to rename it to the proper target name.

$ m68k-elf-ar -r /m68k-elf-ar_test/test.a m68k-elf-ar_test/testobj.o
c:\IB\gcc\m68k-elf-gcc-4.1-32\bin\m68k-elf-ar.exe: creating /m68k-elf-ar_test/test.a
c:\IB\gcc\m68k-elf-gcc-4.1-32\bin\m68k-elf-ar.exe: unable to rename '/m68k-elf-ar_test/test.a' reason: No such file or directory

Left in the directory 'm68k-elf-ar_test' is test.a (contains only an 8 byte header) and sta11296 (the temporary lib file).

Absolute paths works fine with m68k-elf-gcc and other Sourcery G++ Lite tools.

Tested with Sourcery G++ 4.1-32 for Coldfire ELF.

--
Anders Ejdeling
Imaje AB

**********************************************************************
IMAJE: This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. They may contain confidential or legally privileged information. If you have received this email by mistake please notify Imaje immediately by responding to this e-mail and then delete it from your system without producing, distributing or retaining copies hereof. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. Finally, the recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. 



More information about the coldfire-gnu-discuss mailing list