From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 07 12:24:48 2012 Received: (at submit) by debbugs.gnu.org; 7 Jun 2012 16:24:48 +0000 Received: from localhost ([127.0.0.1]:33722 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1ScfVS-00044r-Es for submit@debbugs.gnu.org; Thu, 07 Jun 2012 12:24:48 -0400 Received: from eggs.gnu.org ([208.118.235.92]:57305) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1ScaV0-0002kq-UU for submit@debbugs.gnu.org; Thu, 07 Jun 2012 07:03:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ScaSg-0006YC-Dx for submit@debbugs.gnu.org; Thu, 07 Jun 2012 07:01:12 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:53612) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ScaSg-0006Xd-A6 for submit@debbugs.gnu.org; Thu, 07 Jun 2012 07:01:06 -0400 Received: from eggs.gnu.org ([208.118.235.92]:57160) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ScaSZ-0002Oi-NT for bug-guile@gnu.org; Thu, 07 Jun 2012 07:01:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ScaSL-0006N8-NT for bug-guile@gnu.org; Thu, 07 Jun 2012 07:00:59 -0400 Received: from mga12.intel.com ([143.182.124.36]:34501 helo=azsmga102.ch.intel.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ScaSL-0006MT-7o for bug-guile@gnu.org; Thu, 07 Jun 2012 07:00:45 -0400 Received: from mail-vc0-f180.google.com ([209.85.220.180]) by mga14.intel.com with ESMTP/TLS/RC4-MD5; 07 Jun 2012 04:00:41 -0700 Received: by vcbfk26 with SMTP id fk26so203558vcb.25 for ; Thu, 07 Jun 2012 04:00:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type :x-gm-message-state; bh=INZ4PycRL6FH8Ml6f9qk7lCBsnr3uMsBM+kX2x2xieA=; b=O7orISvu/tz3EFH5ih0QWNZxRCoFDU937Gnlr3VdAUZe9EoFhoySxLeqx13iPoeDxa PV1k7GK4Qr8r274VBgFxSF/Jt7PvXR1h/vZMlywEBqQPiZ5nlw/w6d+/TTYLxgAl7N+H 2+uaVoOOmnyuIDHyC3mlfDy05aZZ8YgLbDfVbJYZkDa32S1xbENkw/J9t7am02Xy5lsg ms9O+vYsRCaJUKNuiHM4s6I2muBHI5Rv8YMmQihlGNNDTLaFSB3Wc8mR1x5l5qSyE4TU joVbcrfPawZp/m/msiL2VA5qA04Xbw7IAyNFKUbrHDDdM3vSpw6LIMVl6P7V7Qt7Bi25 IxjQ== Received: by 10.52.34.73 with SMTP id x9mr1404291vdi.27.1339066839884; Thu, 07 Jun 2012 04:00:39 -0700 (PDT) MIME-Version: 1.0 Received: by 10.52.169.200 with HTTP; Thu, 7 Jun 2012 04:00:19 -0700 (PDT) From: "Marinescu, Bogdan A" Date: Thu, 7 Jun 2012 14:00:19 +0300 Message-ID: Subject: Unable to cross compile guile 2.0.5 for MIPS/PPC on x86_64 To: bug-guile@gnu.org Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQmmZhggBim8RkRxzpzGWkA8cJ8XKbAlqgX7E4oURUv8WMTEBzaG0e2QnA7DZaEfTwm7s09x X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -6.9 (------) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Thu, 07 Jun 2012 12:24:16 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) Compiling guile 2.0.5 for MIPS and PowerPC (both in big endian mode) fails with a segmentation fault. guile 2.0.5 is built first for x86_64 and this version is used to cross-compile guile for MIPS. The compilation stops with this error: GUILE_AUTO_COMPILE=0 \ ../meta/uninstalled-env \ guild compile --target="mips-poky-linux-gnu" -Wunbound-variable -Warity-mismatch -Wformat \ -L "/ssd/build/tmp/work/mips32-poky-linux/guile-2.0.5-r0/guile-2.0.5/module" -L "/ssd/build/tmp/work/mips32-poky-linux/guile-2.0.5-r0/guile-2.0.5/module" \ -L "/ssd/build/tmp/work/mips32-poky-linux/guile-2.0.5-r0/guile-2.0.5/guile-readline" \ -o "ice-9/occam-channel.go" "ice-9/occam-channel.scm" make[2]: *** [ice-9/occam-channel.go] Segmentation fault (core dumped) This is the stack trace: Core was generated by `/ssd/build/tmp/sysroots/x86_64-linux/usr/bin/x86_64-linux-guile.real -e (@@ (gu'. Program terminated with signal 11, Segmentation fault. #0 0x00007f76a81450fd in vm_regular_engine (vm=0x26b76c0, program=0x2d0a8e0, argv=0x0, nargs=0) at vm-i-loader.c:80 80 NEXT; (gdb) bt #0 0x00007f76a81450fd in vm_regular_engine (vm=0x26b76c0, program=0x2d0a8e0, argv=0x0, nargs=0) at vm-i-loader.c:80 #1 0x00007f76a8160e09 in scm_c_vm_run (vm=0x26b76c0, program=0x2b8dc60, argv=0x0, nargs=0) at vm.c:567 #2 0x00007f76a8161ae5 in scm_load_compiled_with_vm (file=0x2b8dca0) at vm.c:878 #3 0x00007f76a8096a86 in scm_primitive_load_path (args=0x2aec5d0) at load.c:913 #4 0x00007f76a8136555 in vm_regular_engine (vm=0x26b76c0, program=0x7f76a83e36a0, argv=0x7fff60d8d860, nargs=1) at vm-i-system.c:892 #5 0x00007f76a8160e09 in scm_c_vm_run (vm=0x26b76c0, program=0x26c69c0, argv=0x7fff60d8d858, nargs=1) at vm.c:567 #6 0x00007f76a800010c in scm_primitive_eval (exp=0x28907c0) at eval.c:685 #7 0x00007f76a80001d2 in scm_eval (exp=0x28907c0, module_or_state=0x2871d80) at eval.c:719 #8 0x00007f76a80f6fd4 in scm_shell (argc=19, argv=0x7fff60d8eb68) at script.c:441 #9 0x0000000000400bc8 in inner_main (closure=0x0, argc=19, argv=0x7fff60d8eb68) at guile.c:62 #10 0x00007f76a808ad8b in invoke_main_func (body_data=0x7fff60d8ea30) at init.c:336 #11 0x00007f76a7ff25f2 in c_body (d=0x7fff60d8e910) at continuations.c:512 #12 0x00007f76a812a2e4 in apply_catch_closure (clo=0x2870b40, args=0x304) at throw.c:146 #13 0x00007f76a8136d10 in vm_regular_engine (vm=0x26b76c0, program=0x2870a00, argv=0x7fff60d8e7d0, nargs=1) at vm-i-system.c:960 #14 0x00007f76a8160e09 in scm_c_vm_run (vm=0x26b76c0, program=0x279ea50, argv=0x7fff60d8e7b0, nargs=4) at vm.c:567 #15 0x00007f76a7fff7d3 in scm_call_4 (proc=0x279ea50, arg1=0x404, arg2=0x2870b40, arg3=0x2870b20, arg4=0x2870b00) at eval.c:507 #16 0x00007f76a8129f67 in scm_catch_with_pre_unwind_handler (key=0x404, thunk=0x2870b40, handler=0x2870b20, pre_unwind_handler=0x2870b00) at throw.c:86 #17 0x00007f76a812a3cc in scm_c_catch (tag=0x404, body=0x7f76a7ff25ca , body_data=0x7fff60d8e910, handler=0x7f76a7ff2601 , handler_data=0x7fff60d8e910, pre_unwind_handler=0x7f76a7ff2655 , pre_unwind_handler_data=0x26b75f0) at throw.c:213 #18 0x00007f76a7ff2466 in scm_i_with_continuation_barrier (body=0x7f76a7ff25ca , body_data=0x7fff60d8e910, handler=0x7f76a7ff2601 , handler_data=0x7fff60d8e910, pre_unwind_handler=0x7f76a7ff2655 , pre_unwind_handler_data=0x26b75f0) at continuations.c:450 #19 0x00007f76a7ff26ec in scm_c_with_continuation_barrier (func=0x7f76a808ad38 , data=0x7fff60d8ea30) at continuations.c:546 #20 0x00007f76a8126b82 in with_guile_and_parent (base=0x7fff60d8e980, data=0x7fff60d8e9c0) at threads.c:902 #21 0x00007f76a7d28d75 in GC_call_with_stack_base () from /ssd/build/tmp/sysroots/x86_64-linux/usr/bin/../../usr/lib/libgc.so.1 #22 0x00007f76a8126c62 in scm_i_with_guile_and_parent (func=0x7f76a808ad38 , data=0x7fff60d8ea30, parent=0x0) at threads.c:945 #23 0x00007f76a8126c8e in scm_with_guile (func=0x7f76a808ad38 , data=0x7fff60d8ea30) at threads.c:951 #24 0x00007f76a808ad19 in scm_boot_guile (argc=19, argv=0x7fff60d8eb68, main_func=0x400ba4 , closure=0x0) at init.c:319 #25 0x0000000000400c20 in main (argc=19, argv=0x7fff60d8eb68) at guile.c:79 (gdb) While debugging this issue, I modified the "NEXT" macro in vm-engine.h to output information about the current IP and the next instruction: #define NEXT \ { \ NEXT_HOOK (); \ CHECK_STACK_LEAK (); \ if(getenv("GUILELOGS")) fprintf(stderr,"->NEXT:%d IP=%p\n", (*ip) & SCM_VM_INSTRUCTION_MASK, ip); \ NEXT_JUMP (); \ } Below are the last lines of the output that I get with this modification (the complete output is too large to attach): ->NEXT:11 IP=0x260df6d ->NEXT:1 IP=0x260df6e ->NEXT:52 IP=0x7f76a85e2d0a ->NEXT:21 IP=0x7f76a85e2d0b ->NEXT:62 IP=0x7f76a85e2d0d ->NEXT:93 IP=0x7f76a84e3548 ->NEXT:52 IP=0x7f76a84e354a ->NEXT:27 IP=0x7f76a84e354b ->NEXT:76 IP=0x7f76a84e354d ->NEXT:62 IP=0x7f76a84e354f ->NEXT:44 IP=0x7f76a8187c50 ->NEXT:19 IP=0x7f76a8187c53 ->NEXT:55 IP=0x7f76a8187c55 ->NEXT:2 IP=0x7f76a84e3554 ->NEXT:34 IP=0x7f76a84e3555 ->NEXT:52 IP=0x7f76a84e355c ->NEXT:76 IP=0x7f76a84e355d ->NEXT:53 IP=0x7f76a84e355f ->NEXT:93 IP=0x28acaa0 ->NEXT:6 IP=0x28acaa2 ->NEXT:6 IP=0x28acaa3 ->NEXT:18 IP=0x28acaa4 ->NEXT:29 IP=0x28acaa7 ->NEXT:52 IP=0x28acaa9 ->NEXT:21 IP=0x28acaaa ->NEXT:0 IP=0x28acaac ->NEXT:0 IP=0x28acaad ->NEXT:0 IP=0x28acaae ->NEXT:104 IP=0x28acaaf Segmentation fault (core dumped) From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 20 09:38:06 2012 Received: (at 11645-done) by debbugs.gnu.org; 20 Jun 2012 13:38:06 +0000 Received: from localhost ([127.0.0.1]:49591 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1ShL6k-0003Xl-2f for submit@debbugs.gnu.org; Wed, 20 Jun 2012 09:38:06 -0400 Received: from xanadu.aquilenet.fr ([88.191.123.111]:52640) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1ShL6J-0003Wi-KN for 11645-done@debbugs.gnu.org; Wed, 20 Jun 2012 09:37:41 -0400 Received: from localhost (localhost [127.0.0.1]) by xanadu.aquilenet.fr (Postfix) with ESMTP id 8C0617AD0; Wed, 20 Jun 2012 15:34:10 +0200 (CEST) Received: from xanadu.aquilenet.fr ([127.0.0.1]) by localhost (xanadu.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5gYQrQ6a80b1; Wed, 20 Jun 2012 15:34:10 +0200 (CEST) Received: from pluto (reverse-83.fdn.fr [80.67.176.83]) by xanadu.aquilenet.fr (Postfix) with ESMTPSA id 0FEF67AC4; Wed, 20 Jun 2012 15:34:10 +0200 (CEST) From: ludo@gnu.org (Ludovic =?iso-8859-1?Q?Court=E8s?=) To: "Marinescu\, Bogdan A" Subject: Re: bug#11645: Unable to cross compile guile 2.0.5 for MIPS/PPC on x86_64 References: Date: Wed, 20 Jun 2012 15:34:09 +0200 In-Reply-To: (Bogdan A. Marinescu's message of "Thu, 7 Jun 2012 14:00:19 +0300") Message-ID: <87sjdqnm3y.fsf@gnu.org> User-Agent: Gnus/5.130005 (Ma Gnus v0.5) Emacs/24.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -1.2 (-) X-Debbugs-Envelope-To: 11645-done Cc: 11645-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.2 (-) Hi, "Marinescu, Bogdan A" skribis: > Compiling guile 2.0.5 for MIPS and PowerPC (both in big endian mode) > fails with a segmentation fault. guile 2.0.5 is built first for x86_64 > and this version is used to cross-compile guile for MIPS. The > compilation stops with this error: > > GUILE_AUTO_COMPILE=3D0 \ > ../meta/uninstalled-env \ > guild compile --target=3D"mips-poky-linux-gnu" -Wunbound-variable > -Warity-mismatch -Wformat \ > -L "/ssd/build/tmp/work/mips32-poky-linux/guile-2.0.5-r0/guile-2.0.5/= module" > -L "/ssd/build/tmp/work/mips32-poky-linux/guile-2.0.5-r0/guile-2.0.5/modu= le" > \ > -L "/ssd/build/tmp/work/mips32-poky-linux/guile-2.0.5-r0/guile-2.0.5/= guile-readline" > \ > -o "ice-9/occam-channel.go" "ice-9/occam-channel.scm" > make[2]: *** [ice-9/occam-channel.go] Segmentation fault (core dumped) This is fixed by commit f3b312a19d70293d7a3407fc4ef479183edd7cca, which will be in 2.0.6 (the fix was simple, but the investigation trickier ;-)). There were only little-endian cross-compilation targets under continuous integration, so I=E2=80=99ve added this one: . Thanks for the report! Ludo=E2=80=99. From unknown Sun Sep 07 18:03:20 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 19 Jul 2012 11:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator