David, this is Jerry White again. I am writing you from my personal email 
because I am having to do this testing away from the office.

I deleted my previous download of libobjc2 and obtained the trunk, as you 
suggested. The compilation appears to get a little further now in that we get 
past block_trampolines.S. Now we appear to get stuck on objc_msgSend.S (as you 
guessed would happen). I am including the pertinent output below.

Assembling block_trampolines.S...
Assembling objc_msgSend.S...
c:/gnustep/bin/../lib/gcc/mingw32/4.6.1/../../../../mingw32/bin/as.exe: BFD 
(GNU Binutils) 2.21.53.2
0110804 assertion fail ../../binutils-2.21.53/bfd/coff-i386.c:584
./objc_msgSend.x86-32.S: Assembler messages:
./objc_msgSend.x86-32.S:98: Error: cannot represent relocation type 
BFD_RELOC_386_GOTPC
c:/gnustep/bin/../lib/gcc/mingw32/4.6.1/../../../../mingw32/bin/as.exe: BFD 
(GNU Binutils) 2.21.53.2
0110804 assertion fail ../../binutils-2.21.53/bfd/coff-i386.c:584
./objc_msgSend.x86-32.S:102: Error: cannot represent relocation type 
BFD_RELOC_386_GOTPC
c:/gnustep/bin/../lib/gcc/mingw32/4.6.1/../../../../mingw32/bin/as.exe: BFD 
(GNU Binutils) 2.21.53.2
0110804 assertion fail ../../binutils-2.21.53/bfd/coff-i386.c:584
./objc_msgSend.x86-32.S:106: Error: cannot represent relocation type 
BFD_RELOC_386_GOTPC
clang.exe: error: assembler (via gcc) command failed with exit code 1 (use -v 
to see invocation)
make: *** [objc_msgSend.o] Error 1

Please let me know if I can perform any additional testing and I very much 
appreciate your attention to this issue. We are trying to use a custom-written 
application on many platforms, particularly Windows.

Jerry White
[email protected]
If you want to call me click here:
https://me.vonage.com/white8052 

On Jul 10, 2013, at 3:54 PM, "White, Jerry P" <[email protected]> wrote:

> 
> 
> -----Original Message-----
> From: David Chisnall [mailto:[email protected]] 
> Sent: Tuesday, July 09, 2013 6:59 PM
> To: White, Jerry P
> Cc: [email protected]
> Subject: Re: libobjc compile issue on mingw
> 
> Hi Jerry,
> 
> So far, my requests for someone with a Windows machine to test this code have 
> been met with silence, so thank you for at least trying to build it...
> 
> The .type attribute is specific to ELF, and so is likely not required on 
> Windows.  Eric recently committed a change to trunk that disables it on Mac 
> OS X, and I've now tweaked it so that it will (hopefully) build on Windows.
> 
> Note that Windows uses different calling conventions to... everything else, 
> so objc_msgSend is broken.  I think the block trampolines should work because 
> I think that the first two argument registers are the same on Windows as 
> elsewhere, but I'm not 100% sure about that without checking the 
> documentation.  
> 
> The runtime is probably missing dllexport declarations from objc_msgSend as 
> well, so hopefully that isn't a problem.
> 
> Please try with trunk, and let me know what problems you encounter.  Thank 
> you again for testing.
> 
> David
> 
> On 9 Jul 2013, at 07:23, "White, Jerry P" <[email protected]> wrote:
> 
>> I am using the mingw environment with clang installed. I downloaded libobjc2 
>> by executing:
>> svn co http://svn.gna.org/svn/gnustep/libs/libobjc2/releases/1.7/ 
>> libobjc2 At this point I am getting stuck on block_trampolines.S. I have 
>> read everything I can find on the web and do not see a solution. If I 
>> understand properly, this file is used for assembly code, which is well 
>> beyond my skill set.
>> 
>> Any suggestions you have would be appreciated. Is there a way just to 
>> download libobjc2.dll.a directly?
>> 
>> Here are the steps I followed once I obtained the libobjc2 svn distribution.
>> 1.      I ran gnustep make (not cmake because I don't have it) by executing: 
>>          make CC=clang CXX=clang++
>> 2.      I saw that I was missing mman.h under mingw, so I obtained a 
>> workaround by:
>> o   svn co http://man-win32.googlecode.com/svn/trunk mman-win32-read-only
>> o   cd mman-win32-read-only
>> o   make && make install
>> 3.      I then went back to libobjc2 to continue working on compiling it
>> o   cd ../libobjc2
>> o   make CC=clang CXX=clang++
>> o   compilation went ok until I encountered block_trampolines.S
>> §  block_trampolines.S:26: Warning: .type pseudo-op used outside of 
>> .def/.endef ignored.
>> §  block_trampolines.S:26: Error: junk at end of line. First unrecognized 
>> character is '_'
>> §  similar messages appear on lines 29 and 110
>> 
>> Jerry White
>> Petroleum Consultant
>> Event Solution
>> Reservoir Simulation Division
>> Reservoir Description and Simulation Department
>> 
>> Office 966-3-873-0195
>> 
>> 
>> 
>> The contents of this email, including all related responses, files and 
>> attachments transmitted with it (collectively referred to as "this Email"), 
>> are intended solely for the use of the individual/entity to whom/which they 
>> are addressed, and may contain confidential and/or legally privileged 
>> information. This Email may not be disclosed or forwarded to anyone else 
>> without authorization from the originator of this Email. If you have 
>> received this Email in error, please notify the sender immediately and 
>> delete all copies from your system. Please note that the views or opinions 
>> presented in this Email are those of the author and may not necessarily 
>> represent those of Saudi Aramco. The recipient should check this Email and 
>> any attachments for the presence of any viruses. Saudi Aramco accepts no 
>> liability for any damage caused by any virus/error transmitted by this Email.
>> _______________________________________________
>> Gnustep-dev mailing list
>> [email protected]
>> https://lists.gnu.org/mailman/listinfo/gnustep-dev
> 
> 
> 
> --
> This email complies with ISO 3103
> 

_______________________________________________
Gnustep-dev mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/gnustep-dev

Reply via email to