From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31242 invoked by alias); 6 Oct 2010 15:45:07 -0000 Received: (qmail 31230 invoked by uid 22791); 6 Oct 2010 15:45:06 -0000 X-SWARE-Spam-Status: No, hits=-0.8 required=5.0 tests=AWL,BAYES_00,TW_GC,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail.multimedia-labs.de (HELO mail.multimedia-labs.de) (82.149.226.172) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 06 Oct 2010 15:44:59 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.multimedia-labs.de (Postfix) with ESMTP id 6FFD83148C0C for ; Wed, 6 Oct 2010 17:44:57 +0200 (CEST) Received: from mail.multimedia-labs.de ([127.0.0.1]) by localhost (mail.multimedia-labs.de [127.0.0.1]) (amavisd-new, port 10024) with LMTP id sDRSflPxqJgS for ; Wed, 6 Oct 2010 17:44:51 +0200 (CEST) Received: from fox.localnet (p4FD65441.dip.t-dialin.net [79.214.84.65]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.multimedia-labs.de (Postfix) with ESMTPSA id 913B63148A7C for ; Wed, 6 Oct 2010 17:44:51 +0200 (CEST) From: Andreas Frisch To: java@gcc.gnu.org Subject: Re: gcj static crosscompiling raises issues with boehm-gc Date: Wed, 06 Oct 2010 15:45:00 -0000 User-Agent: KMail/4.5 beta1 (Linux/2.6.32-25-generic; KDE/4.5.1; x86_64; ; ) MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Message-Id: <20101006154451.913B63148A7C@mail.multimedia-labs.de> 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: 2010-10/txt/msg00002.txt.bz2 > This looks completely broken: it seems to be trying to statically link > gainst libgcj. Try it without -non_shared. > > Andrew. Hi Andrew, thanks for your prompt help! linking statically against libgcj is what i actually intend to do to save a lot of space on the embedded device with very limited capacity. other than that, if i omit the -non_shared parameter, then it doesn't seem to find the aacskeys.so which is a run-time include of in one of the java files where it does a System.loadLibrary("aacskeys"); the resulting error message is the infamous /dream/oe1.6/dm8000/build/tmp/cross/mipsel/lib/gcc/mipsel-oe- linux/4.4.4/../../../../mipsel-oe-linux/bin/ld: warning: cannot find entry symbol __start; defaulting to 0000000000406960 /tmp/cceZJsQ2.o:(.data+0x5638): undefined reference to `hidden alias for java::lang::String* dumphd::aacs::AACSKeys::getVersionString()' /tmp/cceZJsQ2.o:(.data+0x563c): undefined reference to `hidden alias for void dumphd::aacs::AACSKeys::getKeys(java::lang::String*, dumphd::core::KeyData*)' /tmp/cceZJsQ2.o:(.data+0x5680): undefined reference to `hidden alias for java::lang::String* dumphd::aacs::AACSKeys::getVersionString()' /tmp/cceZJsQ2.o:(.data+0x5694): undefined reference to `hidden alias for void dumphd::aacs::AACSKeys::getKeys(java::lang::String*, dumphd::core::KeyData*)' /dream/oe1.6/dm8000/build/tmp/cross/mipsel/lib/gcc/mipsel-oe- linux/4.4.4/../../../../mipsel-oe-linux/lib/libgcj.so: undefined reference to `__data_start' collect2: ld returned 1 exit status cheers Andreas