[Mono-bugs] [Bug 648838] New: [Regression?] error: 'SIGTRAP' undeclared when cross-compiling with mingw

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sat Oct 23 07:02:33 EDT 2010


https://bugzilla.novell.com/show_bug.cgi?id=648838

https://bugzilla.novell.com/show_bug.cgi?id=648838#c0


           Summary: [Regression?] error: 'SIGTRAP' undeclared when
                    cross-compiling with mingw
    Classification: Mono
           Product: Mono: Runtime
           Version: 2.8.x
          Platform: x86-64
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: misc
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: htl10 at users.sourceforge.net
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (X11; U; Linux; en-GB) AppleWebKit/532.4 (KHTML,
like Gecko) konqueror/4.4.5 Safari/532.4

This appears to be a regression that got in during 2.8 rc2 and 2.8 proper.
(between the /8/ build and the /9/ build). I was able to cross-compile 2.8 rc2
, on an up-to-date fedora 13 x86_64 box.

but with 2.8 proper a couple of weeks later, some "error: 'SIGTRAP' undeclared"
happens:

---------------------------
./../../mono/mini/method-to-ir.c: In function 'get_basic_blocks':
./../../mono/mini/method-to-ir.c:4938: error: 'SIGTRAP' undeclared (first use
in this function)
./../../mono/mini/method-to-ir.c:4938: error: (Each undeclared identifier is
reported only once
./../../mono/mini/method-to-ir.c:4938: error: for each function it appears
in.)
./../../mono/mini/method-to-ir.c: In function 'mono_method_to_ir':
./../../mono/mini/method-to-ir.c:5513: error: 'SIGTRAP' undeclared (first use
in this function)
./../../mono/mini/method-to-ir.c:5598: warning: implicit declaration of
function 'alloca'
./../../mono/mini/method-to-ir.c:5598: warning: incompatible implicit
declaration of built-in function 'alloca'
make[4]: *** [libmono_2_0_la-method-to-ir.lo] Error 1
-------------------

For 2.8, inserting into "mono/mini/method-to-ir.c" and
"mono/mini/mini-exceptions.c" the following snipplet:

#ifndef SIGTRAP
#define SIGTRAP 5
#endif

allows the cross-compile to continue to completion.

For git head, "mono/mini/mini.c" also needs this snipplet. It seems to be due
to some sort of recent changes in the area of exceptions.

Reproducible: Always

Actual Results:  
compilation fails with error "SIGTRAP" undeclared

Expected Results:  
compilation goes to completion.

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list