gnustep-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: libobjc compile issue on mingw


From: David Chisnall
Subject: Re: libobjc compile issue on mingw
Date: Tue, 9 Jul 2013 16:59:21 +0100

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" <address@hidden> 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
> address@hidden
> https://lists.gnu.org/mailman/listinfo/gnustep-dev



--
This email complies with ISO 3103




reply via email to

[Prev in Thread] Current Thread [Next in Thread]