gnupic: Re: [gnupic] Objects compiled on FreeBSD: Compatible with MPLINK on Windows?


Previous by date: 19 Apr 2005 02:12:58 +0100 Re: [gnupic] Objects compiled on FreeBSD: Compatible with MPLINK on Windows?, Craig Franklin
Next by date: 19 Apr 2005 02:12:58 +0100 Re: [gnupic] What About GCC and PIC's, Fox
Previous in thread: 19 Apr 2005 02:12:58 +0100 Re: [gnupic] Objects compiled on FreeBSD: Compatible with MPLINK on Windows?, Craig Franklin
Next in thread: 19 Apr 2005 02:12:58 +0100 Re: [gnupic] Objects compiled on FreeBSD: Compatible with MPLINK on Windows?, Craig Franklin

Subject: Re: [gnupic] Objects compiled on FreeBSD: Compatible with MPLINK on Windows?
From: Iain Dooley ####@####.####
Date: 19 Apr 2005 02:12:58 +0100
Message-Id: <4264E98B.9000700@iaindooley.com>

hi craig,

>> hi there, i've got some object files that i compiled on my FreeBSD box 
>> with:
>>
>> gpasm -c -I /path/to/includes files.asm
>>
>> i run FreeBSD at home but the labs at uni use Windows and the MPLAB 
>> IDE to program the PicDem2 Demo board using an ICD2 USB hardware 
>> programmer.
>>
>> the first hiccup came when i wrote a test program at home and then 
>> tried to build it on the windows machine. the MPLAB IDE recognises 
>> Unix line endings, but MPASM doesn't. i ran unix2dos on my source file 
>> and include files and the project then assembled properly, however 
>> when it came time to link with the object files i compiled at home, 
>> the IDE crashed (stopped responding).
>> when i got the source files from home and compiled them on the windows 
>> machine they linked fine. has anyone else experienced this? i looked 
>> for an 'mpasm safe' type option to the gpasm assembler but couldn't 
>> find one.
>> cheers
>>
> I don't see any gpasm problems in your description.  There is an issue 
> with debug info.  They will point to the files on the FreeBSD system 
> (i.e. /path/to/includes/myfile.asm).  When you link them in windows, it 
> can't find the files to generate the list file.

okay, so perhaps all i need to do is tell MPLAB not to generate a .lst file and it will work with those objects.

> gpasm doesn't care about the file format.  Only mpasm.  So you can 
> either use DOS formatted files or use the gputils MPLAB plugin.

what i thought it might be is that the line endings in the object files were Unix and that was crashing MPASM, but when i run unix2dos on an object file it ruins it. i was wondering if there was a switch to gpasm to compile objects with dos line endings, but it may be that it's crashing at link time because it can't find the assembly files.

i'll test it out telling it not to generate a list file

cheers

iain

Previous by date: 19 Apr 2005 02:12:58 +0100 Re: [gnupic] Objects compiled on FreeBSD: Compatible with MPLINK on Windows?, Craig Franklin
Next by date: 19 Apr 2005 02:12:58 +0100 Re: [gnupic] What About GCC and PIC's, Fox
Previous in thread: 19 Apr 2005 02:12:58 +0100 Re: [gnupic] Objects compiled on FreeBSD: Compatible with MPLINK on Windows?, Craig Franklin
Next in thread: 19 Apr 2005 02:12:58 +0100 Re: [gnupic] Objects compiled on FreeBSD: Compatible with MPLINK on Windows?, Craig Franklin


Powered by ezmlm-browse 0.20.