From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf1-x42a.google.com (mail-pf1-x42a.google.com [IPv6:2607:f8b0:4864:20::42a]) by sourceware.org (Postfix) with ESMTPS id 9DC63385481B for ; Fri, 13 Nov 2020 19:32:46 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 9DC63385481B Received: by mail-pf1-x42a.google.com with SMTP id b63so4861261pfg.12 for ; Fri, 13 Nov 2020 11:32:46 -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=KBxmbSf81zJiq+82GuNq2llaWAN8YbqYMyf5Lsv6iVY=; b=ap7V8iOAMm3EatQiiAlz9LjlErWqHtsFpnWPIglGYEC53ZfxAej+b91HfNzAEFd8or pF2egvompNQba2ZvoYjVpnxzODaQrIEy4C1ifPU5w02erFVV9jr0kAnSVouZaW12WMsj rLdpoqgkOIocSRCUr/o8rajc+tYB6m4n8/GB7Gow8GqLE5h/FJ//uIi13P27MD0RdS2k siNcgOuhyMkZkS4DhK8Tdm3GQ/cO1r3F2f4fE8q2F7n2ELNetFhLuzdt9obFJAp2QhR7 Vmi70vPiGJplwrjcDaH5RRdpyXmYOz/VG6kmTwOUNpMETxcI/fW4ttOPzw0tyD7lozfF 2+fA== X-Gm-Message-State: AOAM532sG+7mVggXFuFlEpAHA9c4tag72EZSnLK9sphbpT+wNW3QsRor wOKXPMOAbWDdcQaGG1JL5CjKy5rRaok4Qz/o8EcKpZj4pfJ4XA== X-Google-Smtp-Source: ABdhPJyTZACweOUY4d1wFeZAmwaVUfyP4Io3VszlLX0tCpHn1AnGGDkNfpi1F1jxbrdxqAb0H8C8PiWRQJ78TNJIWHg= X-Received: by 2002:a17:90a:f0c7:: with SMTP id fa7mr4704129pjb.3.1605295965720; Fri, 13 Nov 2020 11:32:45 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: James Hudson Date: Fri, 13 Nov 2020 14:32:35 -0500 Message-ID: Subject: Re: Building on a Mac To: Ray Donnelly Cc: crossgcc@sourceware.org X-Spam-Status: No, score=-1.5 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 19:32:48 -0000 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 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. How > 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 pertine= nt > > 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 >