From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#13479: Cross Compiling for ARM Date: Wed, 10 Jan 2024 03:11:14 -0800 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9813"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 13479@debbugs.gnu.org To: Ross Biro Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jan 10 12:12:26 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rNWVW-0002LG-4p for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 10 Jan 2024 12:12:26 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rNWV3-00011F-2M; Wed, 10 Jan 2024 06:11:57 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rNWV2-000103-Ab for bug-gnu-emacs@gnu.org; Wed, 10 Jan 2024 06:11:56 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rNWV0-0005r2-Vz for bug-gnu-emacs@gnu.org; Wed, 10 Jan 2024 06:11:56 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rNWV8-0008GC-BD for bug-gnu-emacs@gnu.org; Wed, 10 Jan 2024 06:12:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 10 Jan 2024 11:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13479 X-GNU-PR-Package: emacs Original-Received: via spool by 13479-submit@debbugs.gnu.org id=B13479.170488509031679 (code B ref 13479); Wed, 10 Jan 2024 11:12:02 +0000 Original-Received: (at 13479) by debbugs.gnu.org; 10 Jan 2024 11:11:30 +0000 Original-Received: from localhost ([127.0.0.1]:42183 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rNWUc-0008Es-Cx for submit@debbugs.gnu.org; Wed, 10 Jan 2024 06:11:30 -0500 Original-Received: from mail-ed1-x52c.google.com ([2a00:1450:4864:20::52c]:50617) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rNWUa-0008Ef-2h for 13479@debbugs.gnu.org; Wed, 10 Jan 2024 06:11:28 -0500 Original-Received: by mail-ed1-x52c.google.com with SMTP id 4fb4d7f45d1cf-55569b59f81so4906462a12.1 for <13479@debbugs.gnu.org>; Wed, 10 Jan 2024 03:11:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1704885075; x=1705489875; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:from:to:cc:subject:date:message-id:reply-to; bh=vOml0LCuID+CFqQEJBxWk9aUtvf615VT2UO8e8Hrw2o=; b=fNW7pD4FDsVlVawT4QrpCYxnb4X41Nsz0lnI0ldG99Civ6ibLV3UgPWLEX1ya9i5QR iBSOHKZmrYP2GEkG4ZB8eDZcIbgNtuFFTIM3CFbZe0Ctn30l+cLNcnpldRtFfqxd7UmD 1Th5Y+ZdeOifL8dBeCdwO5Uyf2kw+wfnW2cbrWrVSUNJc+LZuMCOhPcUSGYk1i94B5Rg OT0a4j/I6Js1DXkdtk0iR7Y/KpqvSe+uMtwgXGjFzRxpelQjP9n4LbEO+/+IP94JrLDl W2OZ+7NE/xqE379ysYHSLF9/BW7TgQFVCGWRbN0jTNvJCGqXfHw+0KvybTvmmtxG0TlA tMhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704885075; x=1705489875; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=vOml0LCuID+CFqQEJBxWk9aUtvf615VT2UO8e8Hrw2o=; b=h6flfBRxEfa1lC1pw/3ElgtiZjuvlZNXQAw86AXdZX26mKBz/gRgCgSuPAiUIFu5+6 fyvk9XWTsDPXschJa5NS21+gFXiFqHRq+/oDc8dY2lyGDwNLnkT1DJ3W8sHtPTahTlty BDyQCklHPtcPP3NyH3Za8j3fMvKgMqvqZTiAsegt6idgYWzc3dLVVtyei4d7QWvVAGCg 4h6N4SpO8SqOJtk2BekhuLi+1E69TRrxiQqPEN8mWv+QYYLVuaUr0nzpEZ6XpBsrrv4f 5QBnlyX9CFuTufbEFN9z/tv7wXBkekw19R/4qJZZxl90USMERt8imdnQ//uynLY1nvdp mwnw== X-Gm-Message-State: AOJu0YzmmjhXPN2YCn5EFjYxVvMVWwBANIv7IRxDM0jrJYKUJ7hk1Y3V tDVswO0xhYCEWuEeoiDdLHCAw++0CDIk3BlKkP7MeefYU8zOyA== X-Google-Smtp-Source: AGHT+IEY2Y91fAGCTsPJGRZJwGJ0g/sx4i8zCAATfo2HLAkvt9nvytx8ZmpXk/W8C6Cv0C2fsgu6Iy/RhOoMo8Ahsdw= X-Received: by 2002:a50:8a9e:0:b0:556:95bb:8112 with SMTP id j30-20020a508a9e000000b0055695bb8112mr372353edj.19.1704885074746; Wed, 10 Jan 2024 03:11:14 -0800 (PST) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Wed, 10 Jan 2024 03:11:14 -0800 In-Reply-To: (Ross Biro's message of "Thu, 17 Jan 2013 14:36:08 -0500") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:277713 Archived-At: Ross Biro writes: > I just more or less successfully compiled emacs-24.2 for a Samsung Chromebook. I did it by using the chrooted build > environment for chromiumos. In the process I learned a couple of things. > > I used the configuration: > > ../emacs-24.2/configure --build=x86_64-pc-linux-gnu --host=arm-none-linux-gnueabi --target=arm-none-linux-gnueabi - > -with-x-toolkit=no --with-xpm=no --with-jpeg=no --with-png=no --with-gif=no --with-tiff=no --without-xml2 --without-gnutls - > -without-x --without-dbus --with-crt-dir=/build/arm-generic/usr/lib/ > > Obviously, I also had to CANNOT_DUMP=yes as well. > > 1) It doesn't look like emacs has a concept of a BUILDCC. I like to set CC to the cross compiler since that seems to be what most > things need. However make-docfile and test-distrib need to be built with the local compiler. Usually the path to the local compiler > is stored in BUILDCC. I just changed the $(CC) to $(BUILDCC) in the makefile for those two file and everything compiled ok. > > 2) The lisp and leim directories really want a local copy of emacs to compile. Since I didn't have one available in the chrooted > environment, I just used /bin/true. Suboptimal, but it let the compile complete. I didn't see an obvious way to set the path to an > external emacs, I just edited the makefile. > > 3) Now, a real bug. With an undumpped emacs, window__resize_root_window_vertically is called before it's defined. Even > putting if (initialzed) before the call didn't help. I had to put if (!EQ (XSYMBOL > (Qwindow_resize_root_window_vertically)->function, Qunbound)) before the two calls to call2 > (Qwindow_resize_root_window_vertically, in window.c. > > Now, I'm going to try to and some more libraries and do some additional testing. If anyone has questions, email me directly. > > Ross That was 10 years ago. I'm therefore reaching out to ask if this bug is still relevant, or if it has since been fixed? If I don't hear back from you within a couple of months, Ill just assume that this has been fixed and close this bug. Thanks in advance.