Re: [GHC] #2469: Linking fails with "multiple definition of `deRefStablePtr'"

2008-09-16 Thread GHC
#2469: Linking fails with "multiple definition of `deRefStablePtr'"
--+-
 Reporter:  meteficha |  Owner:  simonmar
 Type:  bug   | Status:  closed  
 Priority:  high  |  Milestone:  6.10.1  
Component:  Compiler (FFI)|Version:  6.8.2   
 Severity:  normal| Resolution:  fixed   
 Keywords:  linker ffi stableptr  | Difficulty:  Unknown 
 Testcase:|   Architecture:  Unknown 
   Os:  Multiple  |  
--+-
Changes (by simonmar):

  * status:  new => closed
  * resolution:  => fixed

Comment:

 Fixed:
 {{{
 Tue Sep 16 14:22:22 BST 2008  Simon Marlow <[EMAIL PROTECTED]>
   * FIX #2469: sort out our static/extern inline story
   gcc has changed the meaning of "extern inline" when certain flags are
   on (e.g. --std=gnu99), and this broke our use of it in the header
   files.
 }}}

-- 
Ticket URL: 
GHC 
The Glasgow Haskell Compiler___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: [GHC] #2469: Linking fails with "multiple definition of `deRefStablePtr'"

2008-09-02 Thread GHC
#2469: Linking fails with "multiple definition of `deRefStablePtr'"
--+-
 Reporter:  meteficha |  Owner:  simonmar
 Type:  bug   | Status:  new 
 Priority:  high  |  Milestone:  6.10.1  
Component:  Compiler (FFI)|Version:  6.8.2   
 Severity:  normal| Resolution:  
 Keywords:  linker ffi stableptr  | Difficulty:  Unknown 
 Testcase:|   Architecture:  Unknown 
   Os:  Multiple  |  
--+-
Changes (by simonmar):

  * owner:  => simonmar

Comment:

 `deRefStablePtr` is defined like this:

 {{{
 #if defined(__GNUC__)
 # ifndef RTS_STABLE_C
 extern inline
 # endif
 StgPtr deRefStablePtr(StgStablePtr sp)
 {
 ASSERT(stable_ptr_table[(StgWord)sp].ref > 0);
 return stable_ptr_table[(StgWord)sp].addr;
 }
 #else
 /* No support for 'extern inline' */
 extern StgPtr deRefStablePtr(StgStablePtr sp);
 #endif
 }}}

 and `extern inline` is supposed to treat the definition as a macro; that
 is, it never gets emitted into the object file, which is what we want.
 This seems to be working correctly with the various gcc versions I have
 here.

 What gcc versions are installed on the boxes that fail?

-- 
Ticket URL: 
GHC 
The Glasgow Haskell Compiler___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: [GHC] #2469: Linking fails with "multiple definition of `deRefStablePtr'"

2008-09-02 Thread GHC
#2469: Linking fails with "multiple definition of `deRefStablePtr'"
--+-
 Reporter:  meteficha |  Owner: 
 Type:  bug   | Status:  new
 Priority:  high  |  Milestone:  6.10.1 
Component:  Compiler (FFI)|Version:  6.8.2  
 Severity:  normal| Resolution: 
 Keywords:  linker ffi stableptr  | Difficulty:  Unknown
 Testcase:|   Architecture:  Unknown
   Os:  Multiple  |  
--+-
Changes (by simonmar):

  * priority:  normal => high

Comment:

 Looks like a show-stopper => high priority

-- 
Ticket URL: 
GHC 
The Glasgow Haskell Compiler___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: [GHC] #2469: Linking fails with "multiple definition of `deRefStablePtr'"

2008-08-31 Thread GHC
#2469: Linking fails with "multiple definition of `deRefStablePtr'"
--+-
 Reporter:  meteficha |  Owner: 
 Type:  bug   | Status:  new
 Priority:  normal|  Milestone:  6.10.1 
Component:  Compiler (FFI)|Version:  6.8.2  
 Severity:  normal| Resolution: 
 Keywords:  linker ffi stableptr  | Difficulty:  Unknown
 Testcase:|   Architecture:  Unknown
   Os:  Multiple  |  
--+-
Changes (by igloo):

  * difficulty:  => Unknown
  * milestone:  => 6.10.1

Comment:

 Thanks, we'll take a look.

 Looks like this example depends on GLFW and OpenGL.

-- 
Ticket URL: 
GHC 
The Glasgow Haskell Compiler___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: [GHC] #2469: Linking fails with "multiple definition of `deRefStablePtr'"

2008-07-27 Thread GHC
#2469: Linking fails with "multiple definition of `deRefStablePtr'"
-+--
Reporter:  meteficha |Owner:  
Type:  bug   |   Status:  new 
Priority:  normal|Milestone:  
   Component:  Compiler (FFI)|  Version:  6.8.2   
Severity:  normal|   Resolution:  
Keywords:  linker ffi stableptr  | Testcase:  
Architecture:  Unknown   |   Os:  Multiple
-+--
Changes (by guest):

 * cc: [EMAIL PROTECTED] (added)

Comment:

 Upgrading my Mac to 6.8.3 and typeing "cabal install HipmunkPlayround"
 produces the same error, if that's any help.

 -Antoine

-- 
Ticket URL: 
GHC 
The Glasgow Haskell Compiler___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs