From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-il1-x12b.google.com (mail-il1-x12b.google.com [IPv6:2607:f8b0:4864:20::12b]) by sourceware.org (Postfix) with ESMTPS id 42E4F385481B for ; Fri, 13 Nov 2020 19:55:01 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 42E4F385481B Received: by mail-il1-x12b.google.com with SMTP id z2so9519415ilh.11 for ; Fri, 13 Nov 2020 11:55:01 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=A1GW8uFQ3y4uM/IsTTfnGfkLN0kFaYKgSn/1QUZ/NyA=; b=ET5HrejYR4da8wjsT0NFQ845P7PpmApVNsdtDxvu3LyQWoNTssiC8h+jEsehX0fJ0+ wHh0V4QNKCz2lYJGhw8FzlvGWzDsnCNq5lYYu5AT+1uQPJmiSJ2YoAm9lG4a9rQKA+Tn UUw+Lrwpls4TMwmEOYfMQOEPatlvPuzaL4un5cvmwBhPSvGcSUeQZ78/EPq03+Adn8wI Rz4yNKtYgv0eam+xH7ruWT//4e/hWoE3RxNw2mhIZ8Fu7Ne3oC5wC9z1GpJtuTtpBqIs NrFbHuo4ZA1k+1AGqUCwvhVowyhh0XR+MM3BF3WoK757jPIgyXmGtbZA3QfF/GYSmOIr KB5g== X-Gm-Message-State: AOAM531vb5tlzy8LARl2J/O3JPAYSCJ3J8rpSyP6ZMh+s3Wjp79/GBq1 bqHDMdjdFyosxfy5haw+PsmwKzR2X/xQQwKtYbpg7mjHpgQ= X-Google-Smtp-Source: ABdhPJxGTF88gzJRWTJALpUl842/+fI/8jp/fR4DXEZDFqV5JIlmEt5fRTRcSMZkLlB4826csS/pcWWLqEhU24sF07E= X-Received: by 2002:a92:c94e:: with SMTP id i14mr1197593ilq.86.1605297300545; Fri, 13 Nov 2020 11:55:00 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Ray Donnelly Date: Fri, 13 Nov 2020 20:54:49 +0100 Message-ID: Subject: Re: Building on a Mac To: James Hudson Cc: crossgcc@sourceware.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-3.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: crossgcc@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: crossgcc mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Nov 2020 19:55:03 -0000 GCC on mac will probably be able to make you a native compiler. It won't be able to make you a cross compiler (easily) or (even more tricky) a canadian cross compiler. Whether you should give up or not is up to you! Certainly technologies like docker do offer alternatives but they come at an execution cost. For sure, I'd love to see some patches developed to fix the issues with macOS GCC-based-toolchains in these more exotic scenarios! I did, at some point in the distant past, create cross compilers that ran on macOS and targeted Linux. For fun I did the same for Windows as host. On Fri, Nov 13, 2020 at 8:32 PM James Hudson wr= ote: > > Hello, > > Thank you for your reply. > > I can be (somewhat) flexible in how I configure. Do other configurations = work on the Mac? Or should I not even try to use these tools on the Mac and= move to Ubuntu? > > A summary of what I changed from the defaults is: > > Debug facilities =E2=86=92 gdb > Debug facilities =E2=86=92 ltrace > Debug facilities =E2=86=92 strace > > Companion tools =E2=86=92 autoconf > Companion tools =E2=86=92 automake > > Operating system =E2=86=92 Version of Linux =E2=86=92 4.19.21 > Binary utilities =E2=86=92 Version of binutils =E2=86=92 2.30 > C-library =E2=86=92 Version of glibc =E2=86=92 2.27 > C compiler =E2=86=92 Version of gcc =E2=86=92 7.4.0 > > > The complete .config file is at https://gist.github.com/James-Hudson3010/= 5736b2c258807c516eef4636dbd21cfc > > Regards, > Eric > > On Fri, Nov 13, 2020 at 2:08 PM Ray Donnelly wr= ote: >> >> GCC on macOS is basically unmaintained. you would have to investigate >> and fix these things for yourself I think. >> >> On Fri, Nov 13, 2020 at 3:50 PM James Hudson via crossgcc >> wrote: >> > >> > I am trying to build crosstool-NG on my mac ( Catalina -- 10.15.7 ). >> > >> > After executing *ct-ng build*, I eventually get the errors below. How = can I >> > workaround or resolve this issue? I am assuming I do not have somethin= g >> > configured correctly. >> > >> > >> > [EXTRA] Building cross gdb >> > [ERROR] >> > /Volumes/thedrive/build/x86_64-unknown-linux-gnu/src/gdb/readline/rlt= ty.c:83:7: >> > error: implicit declaration of function 'ioctl' is invalid in C99 >> > [-Werror,-Wimplicit-function-declaration] >> > [ERROR] >> > /Volumes/thedrive/build/x86_64-unknown-linux-gnu/src/gdb/readline/rlt= ty.c:720:3: >> > error: implicit declaration of function 'ioctl' is invalid in C99 >> > [-Werror,-Wimplicit-function-declaration] >> > [ERROR] >> > /Volumes/thedrive/build/x86_64-unknown-linux-gnu/src/gdb/readline/rlt= ty.c:759:3: >> > error: implicit declaration of function 'ioctl' is invalid in C99 >> > [-Werror,-Wimplicit-function-declaration] >> > [ERROR] make[3]: *** [Makefile:97: rltty.o] Error 1 >> > [ERROR] make[3]: *** Waiting for unfinished jobs.... >> > [ERROR] make[2]: *** [Makefile:7804: all-readline] Error 2 >> > [ERROR] make[2]: *** Waiting for unfinished jobs.... >> > [ERROR] make[1]: *** [Makefile:879: all] Error 2 >> > [ERROR] >> > [ERROR] >> >> > [ERROR] >> Build failed in step 'Installing cross-gdb' >> > [ERROR] >> called in step '(top-level)' >> > [ERROR] >> >> > [ERROR] >> Error happened in: CT_DoExecLog[scripts/functions@376] >> > [ERROR] >> called from: >> > do_gdb_backend[scripts/build/debug/300-gdb.sh@281] >> > [ERROR] >> called from: >> > do_debug_gdb_build[scripts/build/debug/300-gdb.sh@59] >> > [ERROR] >> called from: do_debug[scripts/build/debug.sh@35] >> > [ERROR] >> called from: main[scripts/crosstool-NG.sh@696] >> > [ERROR] >> >> > [ERROR] >> For more info on this error, look at the file: 'build.log= ' >> > [ERROR] >> There is a list of known issues, some with workarounds, i= n: >> > [ERROR] >> https://crosstool-ng.github.io/docs/known-issues/ >> > [ERROR] >> >> > [ERROR] >> If you feel this is a bug in crosstool-NG, report it at: >> > [ERROR] >> https://github.com/crosstool-ng/crosstool-ng/issues/ >> > [ERROR] >> >> > [ERROR] >> Make sure your report includes all the information pertin= ent >> > to this issue. >> > [ERROR] >> Read the bug reporting guidelines here: >> > [ERROR] >> http://crosstool-ng.github.io/support/ >> > -- >> > For unsubscribe information see http://sourceware.org/lists.html#faq