Ticket #341 (closed bug: None)

Opened 8 years ago

Last modified 43 years ago

Syntax errors in HsBase.h when using -fvia-c

Reported by: nobody Owned by: simonmar
Priority: normal Milestone:
Component: Compiler Version: None
Keywords: Cc:
Operating System: Architecture:
Type of failure: Difficulty:
Test Case: Blocked By:
Blocking: Related Tickets:

Description

When compiling any file with -fvia-c I get:

/usr/local/lib/ghc-6.4/include/HsBase.h:219: error: syntax error before "int"
/usr/local/lib/ghc-6.4/include/HsBase.h:220: error: syntax error before "void"
/usr/local/lib/ghc-6.4/include/HsBase.h:223: error: syntax error before "int"
...
...

That's probably because the INLINE keyword is not part of the ANSI C standard.

The system I'm running is FreeBSD 5.3 on i386.

Change History

Changed 8 years ago by simonmar

Logged In: YES 
user_id=48280

Could you please attach or send the complete output from
ghc, with the -v flag, when used to compile a simple test
module with -fvia-C. Thanks.

Changed 8 years ago by simonmar

Logged In: YES 
user_id=48280

No followup from submitter, and we know that GHC 6.4 works
fine on FreeBSD 5.3.  Perhaps a non-GCC C compiler was being
used.

Changed 8 years ago by simonmar

  • status changed from assigned to closed
Note: See TracTickets for help on using tickets.