bugGnash - The GNU Flash player - Bugs: bug #18200, make check fails - preprocessor...

 
 

bug #18200: make check fails - preprocessor errors

Submitted by:  Deanna Phillips <deanna>
Submitted on:  Sat 04 Nov 2006 06:58:23 PM UTC  
 
Category: buildSeverity: 3 - Normal
Release: NoneStatus: Fixed
Privacy: PublicAssigned to: Sandro Santilli <strk>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sun 08 Apr 2007 02:51:09 PM UTC, comment #4:

This is fixed by the following patch (added to Ming CVS). You can close this.

--- util/makeswf.c.orig Sun Mar 11 14:24:21 2007
+++ util/makeswf.c Sun Mar 11 14:25:32 2007
@@ -70,7 +70,7 @@
#define DEFSWFVERSION 6
#define DEFSWFCOMPRESSION 9

-#define CPP "cpp -P -C -Wall"
+#define CPP "cpp -xc++ -P -C -Wall"
#define MAXERRORMSG 1024

/* prototypes */

Deanna Phillips <deanna>
Sun 26 Nov 2006 11:05:57 PM UTC, comment #3:

Deanna, can you try invoking cpp against this file:

------------------------------------------
#define check(expr) \
if ( expr ) pass_check(#expr + \
" [" + _LINE_ + "]" ); \
else fail_check(#expr + \
" [" + _LINE_ + "]" ); \

check(true);
--------------------------------------------

Then, if it works, try adding the -P -C -Wall
flags to cpp, as that's how 'makeswf' calls it.

Sandro Santilli <strk>
Project MemberIn charge of this item.
Fri 17 Nov 2006 12:25:47 AM UTC, comment #2:

Actually, this seems a Ming bug, and more specifically
a CPP bug (makeswf invokes the C preprocessor, which seems
unable to understand complex macros, using text expansion)

Sandro Santilli <strk>
Project MemberIn charge of this item.
Sun 05 Nov 2006 12:42:52 PM UTC, comment #1:

Deanna, could you see if latest Rob patches fix this ?
(we really want you to run make check, with propolice and all :)

Sandro Santilli <strk>
Project MemberIn charge of this item.
Sat 04 Nov 2006 06:58:23 PM UTC, original submission:

Test Run By deanna on Sat Nov 4 13:51:35 2006
Native configuration is i386-unknown-openbsd4.0

=== tests ===

Schedule of variations:
unix

Running target unix
Using /usr/local/share/dejagnu/baseboards/unix.exp as board description file for target.
Using /usr/local/share/dejagnu/config/unix.exp as generic interface file for target.
WARNING: Couldn't find tool config file for unix, using default.
Running ./swf_exists.exp ...
ERROR: Output file name: out.swf
Output compression level: 9
Output SWF version: 5
Preprocessing ./Boolean.as... done.
Compiling `./Boolean.as.pp' into frame 1... failed:
Unrecognized character: #
child process exited abnormally
ERROR: Please install Ming to run the actionscript testsuite.

=== Summary ===

Output file name: array.swf
Output compression level: 9
Output SWF version: 6
Preprocessing array.as... array.as:172: macro "check_equals" requires 2 arguments, but only 1 given
No valid input files

      • Error code 1
Deanna Phillips <deanna>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by deanna (Posted a comment)
  • -unavailable- added by strk (Posted a comment)
  •  

    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 7 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 08 Apr 2007 06:50:49 PM UTCstrkStatusNeed Info=>Fixed
      Open/ClosedOpen=>Closed
    Tue 12 Dec 2006 01:24:18 AM UTCstrkStatusIn Progress=>Need Info
    Sun 26 Nov 2006 11:05:57 PM UTCstrkStatusConfirmed=>In Progress
    Sun 05 Nov 2006 09:52:49 AM UTCnihilusCategoryNone=>build
      StatusNone=>Confirmed
      Assigned toNone=>strk

    Back to the top


    Powered by Savane 3.1-cleanup1