From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf1-x42d.google.com (mail-pf1-x42d.google.com [IPv6:2607:f8b0:4864:20::42d]) by sourceware.org (Postfix) with ESMTPS id 2EAEB3950C39 for ; Fri, 13 Nov 2020 20:30:38 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 2EAEB3950C39 Received: by mail-pf1-x42d.google.com with SMTP id w14so8590867pfd.7 for ; Fri, 13 Nov 2020 12:30:38 -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; bh=ofuxcEYzcOC3jE+IVLU3FjofNu2D0J/avS6/G5vDgrM=; b=T9iZ3fx0EXRrFDlJ0ST15vcatHsuflAtKO0HQ5tBF8foVp0ngDUtXxFoNCWlr0VdYx rejjvcXPRWqF2BjI5b3P07vXF3ReCfm4QWmsxg6VDTnFTXWya2RAp7TF0RvM8TsjH7s+ fg6cCyIq+iqVBN2MxwZoP/tM58lSJ0pQoy1p58/y3S5VWkuYgnewxaKQMwBEpisf8GU5 XI+zEQT4ccSxB97K6ybez/qjpvV7Ir3BdW8JcIAtzqDwFFMV1lhspvISrlh/bIBye5Z9 0FGxLMAiVQKWdAOqT2sY54lQByHB340X4E8IAYyDF3vnLkMjLvHKOHzkePSU2p4BKa9D zblg== X-Gm-Message-State: AOAM5300HtCQuKs8CPn/7ydCVV47l9Krrm/KCYgKlSuX9KEUT+3khMse Wv2PLS+0f/MOBktPOddRG2ig3K0j3SIhQhm1QG8= X-Google-Smtp-Source: ABdhPJxLAkm4Q7XRyg8c0KvvKtRMbrtMlE/0u9FYdq4x1drkn7V3NSdP4qnI1OzgG+deLVs/BsIESCwhafVYBD4a8hs= X-Received: by 2002:a63:5664:: with SMTP id g36mr3370785pgm.33.1605299437387; Fri, 13 Nov 2020 12:30:37 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: James Hudson Date: Fri, 13 Nov 2020 15:30:27 -0500 Message-ID: Subject: Re: Building on a Mac To: Ray Donnelly Cc: crossgcc@sourceware.org X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, HTML_MESSAGE, 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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 20:30:40 -0000 Hello, I am just wondering if there is any configuration where *ct-ng build* will succeed on the mac or are these tools broken right now on the mac? Regards, Eric On Fri, Nov 13, 2020 at 2:55 PM Ray Donnelly wrote: > 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 > wrote: > > > > Hello, > > > > Thank you for your reply. > > > > I can be (somewhat) flexible in how I configure. Do other configuration= s > work on the Mac? Or should I not even try to use these tools on the Mac a= nd > 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 > wrote: > >> > >> 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. Ho= w > can I > >> > workaround or resolve this issue? I am assuming I do not have > something > >> > configured correctly. > >> > > >> > > >> > [EXTRA] Building cross gdb > >> > [ERROR] > >> > > /Volumes/thedrive/build/x86_64-unknown-linux-gnu/src/gdb/readline/rltty.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/rltty.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/rltty.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, > in: > >> > [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 > pertinent > >> > 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 >