bugGNUstep - Bugs: bug #31721, gdomap fails to compile with clang

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #31721: gdomap fails to compile with clang

Submitted by:  Truls Becken <bogomipz>
Submitted on:  Sun 21 Nov 2010 12:43:20 PM UTC  
 
Category: Base/FoundationSeverity: 3 - Normal
Item Group: BugStatus: Invalid
Privacy: PublicAssigned to: None
Open/Closed: Closed

Wed 12 Jan 2011 09:40:07 AM UTC, comment #1:

This looks like a clang bug ... though I suppose it could be a problem with your system headers ... though again that would presumably be an issue of clang compatibility.
Either way, I think it needs to be addressed to the clang project as the assembler instruction causing the problem is presumably being generated by clang (it's certainly not being added directly by gdomap.c).

Richard Frith-Macdonald <CaS>
Project Member
Sun 21 Nov 2010 12:43:20 PM UTC, original submission:

When compiling -base with clang, I get:

gdomap.c:2499:12: error: invalid instruction mnemonic 'setcb'
if (FD_ISSET(i, &rfds))

Using GNUstep trunk r31638 on GNU/Linux 2.6.35, LLVM/clang from trunk r119905, and glibc 2.12.1 from distro repository.

It does not matter if I use libobjc2 from GNUstep or libobjc from GCC 4.5.1. The attached build logs are with the latter, only installing -make and -base using:

-make: ./configure --with-layout=gnustep --prefix=/
-base: ./configure --with-ffi-include=`pkg-config --variable=includedir libffi`

Interestingly, GSRunLoopCtxt.m also uses FD_ISSET, but compiles fine. Both libgnustep-base.so.1.21.1 and all the objc tools are built by the time gdomap compile fails.

Truls Becken <bogomipz>

 

Attached Files
file #22075:  gnustep-make.log added by bogomipz (14KiB - application/octet-stream)
file #22076:  gnustep-base.log added by bogomipz (216KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by CaS (Posted a comment)
  • -unavailable- added by bogomipz (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 12 Jan 2011 09:40:07 AM UTCCaSStatusNone=>Invalid
      Open/ClosedOpen=>Closed
    Sun 21 Nov 2010 12:43:20 PM UTCbogomipzAttached File-=>Added gnustep-make.log, #22075
      Attached File-=>Added gnustep-base.log, #22076

    Back to the top


    Powered by Savane 3.1-cleanup1