From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27152 invoked by alias); 12 Oct 2009 15:49:21 -0000 Received: (qmail 27141 invoked by uid 22791); 12 Oct 2009 15:49:21 -0000 X-SWARE-Spam-Status: No, hits=-1.6 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail-yw0-f194.google.com (HELO mail-yw0-f194.google.com) (209.85.211.194) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 12 Oct 2009 15:49:17 +0000 Received: by ywh32 with SMTP id 32so5625251ywh.14 for ; Mon, 12 Oct 2009 08:49:15 -0700 (PDT) MIME-Version: 1.0 Received: by 10.90.198.4 with SMTP id v4mr3708164agf.79.1255362555567; Mon, 12 Oct 2009 08:49:15 -0700 (PDT) Date: Mon, 12 Oct 2009 15:49:00 -0000 Message-ID: <898285d30910120849v771f35f7pb13675e261490dfb@mail.gmail.com> Subject: FFI closure on mips From: abhishek desai To: java@gcc.gnu.org Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes Mailing-List: contact java-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-owner@gcc.gnu.org X-SW-Source: 2009-10/txt/msg00036.txt.bz2 Hi, I am compiling sources of gcc 3.4.6 with libgcj interpreter support for the mipsel platform. When compiling with --enable-interpreter flag I get a compilation error in the file resolve.cc in function void * _Jv_InterpMethod::ncode () when it tries to use the ffi_raw_closure structure. The usage is not under any #ifdef. In newer versions of gcc this function is in interpret.cc. This structure is defined in the ffi.h header file of libffi under the flag FFI_CLOSURES. FFI_CLOSURES is defined for each target. For mips it is defined as #define FFI_CLOSURES 0 Is ffi closure necessay for libgcj compilation ? Can we compile libgcj without the ffi closure support ? How can I get it compiled on a mipsel system ? I have to use gcc 3.4.6 since it is a project requirement. --- abhi