From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 41829 invoked by alias); 30 Oct 2018 19:31:33 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 41197 invoked by uid 89); 30 Oct 2018 19:31:32 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mail-qt1-f175.google.com Received: from mail-qt1-f175.google.com (HELO mail-qt1-f175.google.com) (209.85.160.175) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 30 Oct 2018 19:31:28 +0000 Received: by mail-qt1-f175.google.com with SMTP id l41-v6so14935339qtl.8 for ; Tue, 30 Oct 2018 12:31:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:openpgp:autocrypt:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=Jc4jk841QBFVrK6F79SMhTvFxsSIeZREO62Ado95d+4=; b=UtH9NKvvmcPP+hJJ6qU4JXqPCsYFhoBEVfuxLQvjOb/kQwQU+oHjGPPROgHGokdNwx PJgsS9NAd82RKU5DGjlrQXNOat8g7OPmb3Jst/l98cF3j4SIOnhUWEfrBqY6ij1tXJj/ 7nc1bCmcRbPptdG+l5VYdkDyIbbaZlTdvQLgkKgi+AFoHm0YWg56IgGRu1X5FBrp/8N4 6ODTvRZM5OX43QpBAiebncK9xRJPwkejHlAZTY7ax0Wwqy6J38xMprNQLJVF/mRWhEVa x3PdkMarM7Brx/qwWI5GYEMlDWyC5nzsJK36EUZ1X3uAKvd6c03c9P1cJg72vMQQpKA+ XAsA== Return-Path: Received: from [192.168.0.3] (d47-69-109-131.nap.wideopenwest.com. [69.47.131.109]) by smtp.gmail.com with ESMTPSA id l3-v6sm28948105qtl.2.2018.10.30.12.31.25 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 30 Oct 2018 12:31:26 -0700 (PDT) Subject: Re: Cross build of newlib-cygwin release tag cygwin-2_11_1-release. To: cygwin@cygwin.com References: <143b033e-1d26-16f2-988c-2634a2b1e06e@gmail.com> From: cyg Simple Openpgp: preference=signencrypt Message-ID: <276362f8-7162-21f7-00a1-3f5896a7ac75@gmail.com> Date: Tue, 30 Oct 2018 19:31:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <143b033e-1d26-16f2-988c-2634a2b1e06e@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes X-SW-Source: 2018-10/txt/msg00264.txt.bz2 On 10/30/2018 11:03 AM, cyg Simple wrote: > PING... Does no one have an idea? > > On 10/29/2018 12:09 PM, cyg Simple wrote: >> I'm trying to cross build the Cygwin source on a VirtualBox Arch Linux >> with GCC-7.3.0 and Binutils 2.31. The process I am using clones the >> master repository and then does a checkout of the release tag. Here is >> the configure command from the head of the config.log. >> >> ``` >> $ head /home/cygsimple/src/sf/build/newlib-cygwin/build/config.log | >> grep newlib-cygwin-2.11.1/configure >> $ >> /home/cygsimple/src/sf/build/newlib-cygwin/src/newlib-cygwin-2.11.1/configure >> --prefix=/usr --host=x86_64-pc-cygwin --build=x86_64-pc-linux-gnu >> --target=x86_64-pc-cygwin --sysconfdir=/etc --sharedstatedir=/var >> --localstatedir=/var >> ``` >> I tried this on the master Cygwin and get the same error. ``` $ head config.log | grep newlib-cygwin $ /usr/local/src/cygsimple/sf/build/newlib-cygwin/src/newlib-cygwin-2.11.1/configure --prefix=/usr --host=x86_64-pc-cygwin --build=x86_64-pc-cygwin --target=x86_64-pc-cygwin --sysconfdir=/etc --sharedstatedir=/var --localstatedir=/var ``` What configuration item should I add to avoid this? >> With this I get the following errors when compiling _cygwin_crt0_common.cc: >> >> ``` >> c++wrap -pedantic -fomit-frame-pointer -m64 -O2 -g -fno-rtti >> -fno-exceptions -fno-use-cxa-atexit -Wall -Wstrict-aliasing >> -Wwrite-strings -fno-common -pipe -fbuiltin -fmessage-length=0 -MMD >> -Werror -fmerge-constants -ftracer -mcmodel=small -std=gnu++98 -c -o >> _cygwin_crt0_common.o >> /home/cygsimple/src/sf/build/newlib-cygwin/src/newlib-cygwin-2.11.1/winsup/cygwin/lib/_cygwin_crt0_common.cc >> In file included from >> /home/cygsimple/src/sf/build/newlib-cygwin/src/newlib-cygwin-2.11.1/winsup/cygwin/winsup.h:104:0, >> from >> /home/cygsimple/src/sf/build/newlib-cygwin/src/newlib-cygwin-2.11.1/winsup/cygwin/lib/_cygwin_crt0_common.cc:9: >> /home/cygsimple/src/sf/build/newlib-cygwin/src/newlib-cygwin-2.11.1/winsup/cygwin/wchar.h:12:2: >> error: #include_next is a GCC extension [-Werror] >> #include_next >> ^~~~~~~~~~~~ >> In file included from >> /home/cygsimple/src/sf/build/newlib-cygwin/src/newlib-cygwin-2.11.1/winsup/cygwin/cygtls.h:284:0, >> from ./globals.h:5, >> from >> /home/cygsimple/src/sf/build/newlib-cygwin/src/newlib-cygwin-2.11.1/winsup/cygwin/winsup.h:287, >> from >> /home/cygsimple/src/sf/build/newlib-cygwin/src/newlib-cygwin-2.11.1/winsup/cygwin/lib/_cygwin_crt0_common.cc:9: >> /home/cygsimple/src/sf/build/newlib-cygwin/src/newlib-cygwin-2.11.1/winsup/cygwin/ntdll.h:1671:60: >> error: use of C++11 long long integer constant [-Werror=long-long] >> fbi.LastWriteTime.QuadPart = fbi.ChangeTime.QuadPart = 0LL; >> ^~~ >> In file included from >> /home/cygsimple/src/sf/build/newlib-cygwin/src/newlib-cygwin-2.11.1/winsup/cygwin/thread.h:25: >> , >> from ./globals.h:7, >> from >> /home/cygsimple/src/sf/build/newlib-cygwin/src/newlib-cygwin-2.11.1/winsup/cygwin/winsup.h:287, >> from >> /home/cygsimple/src/sf/build/newlib-cygwin/src/newlib-cygwin-2.11.1/winsup/cygwin/lib/_cygwin_crt0_common.cc:9: >> /home/cygsimple/src/sf/build/newlib-cygwin/src/newlib-cygwin-2.11.1/winsup/cygwin/security.h:112:51: >> error: ISO C++ does not permit named variadic macros >> [-Werror=variadic-macros] >> #define MKSID(name, comment, authority, count, rid...) \ >> ^~~ >> In file included from >> /home/cygsimple/src/sf/build/newlib-cygwin/src/newlib-cygwin-2.11.1/winsup/cygwin/thread.h:28: >> , >> from ./globals.h:7, >> from >> /home/cygsimple/src/sf/build/newlib-cygwin/src/newlib-cygwin-2.11.1/winsup/cygwin/winsup.h:287, >> from >> /home/cygsimple/src/sf/build/newlib-cygwin/src/newlib-cygwin-2.11.1/winsup/cygwin/lib/_cygwin_crt0_common.cc:9: >> /home/cygsimple/src/sf/build/newlib-cygwin/src/newlib-cygwin-2.11.1/winsup/cygwin/cygwait.h:42:31: >> error: use of C++11 long long integer constant [-Werror=long-long] >> li_howlong.QuadPart = -(10000ULL * howlong); >> ^~~~~~~~ >> In file included from >> /home/cygsimple/src/sf/build/newlib-cygwin/src/newlib-cygwin-2.11.1/winsup/cygwin/winsup.h:80: >> , >> from >> /home/cygsimple/src/sf/build/newlib-cygwin/src/newlib-cygwin-2.11.1/winsup/cygwin/lib/_cygwin_crt0_common.cc:9: >> /home/cygsimple/src/sf/build/newlib-cygwin/src/newlib-cygwin-2.11.1/winsup/cygwin/wincap.h:30:3: >> error: ISO C++ prohibits anonymous structs [-Werror=pedantic] >> }; >> ^ >> In file included from ./globals.h:5:0, >> from >> /home/cygsimple/src/sf/build/newlib-cygwin/src/newlib-cygwin-2.11.1/winsup/cygwin/winsup.h:287, >> from >> /home/cygsimple/src/sf/build/newlib-cygwin/src/newlib-cygwin-2.11.1/winsup/cygwin/lib/_cygwin_crt0_common.cc:9: >> /home/cygsimple/src/sf/build/newlib-cygwin/src/newlib-cygwin-2.11.1/winsup/cygwin/cygtls.h:58:2: >> error: ISO C++ prohibits anonymous structs [-Werror=pedantic] >> }; >> ^ >> In file included from >> /home/cygsimple/src/sf/build/newlib-cygwin/src/newlib-cygwin-2.11.1/winsup/cygwin/cygtls.h:284:0, >> from ./globals.h:5, >> from >> /home/cygsimple/src/sf/build/newlib-cygwin/src/newlib-cygwin-2.11.1/winsup/cygwin/winsup.h:287, >> from >> /home/cygsimple/src/sf/build/newlib-cygwin/src/newlib-cygwin-2.11.1/winsup/cygwin/lib/_cygwin_crt0_common.cc:9: >> /home/cygsimple/src/sf/build/newlib-cygwin/src/newlib-cygwin-2.11.1/winsup/cygwin/ntdll.h:291:33: >> error: comma at end of enumerator list [-Werror=pedantic] >> SystemPagefileInformation = 18, >> ^ >> /home/cygsimple/src/sf/build/newlib-cygwin/src/newlib-cygwin-2.11.1/winsup/cygwin/ntdll.h:366:15: >> error: comma at end of enumerator list [-Werror=pedantic] >> StateUnknown, >> ^ >> /home/cygsimple/src/sf/build/newlib-cygwin/src/newlib-cygwin-2.11.1/winsup/cygwin/ntdll.h: >> In function 'NTSTATUS NtSetAttributesFile(HANDLE, ULONG)': >> /home/cygsimple/src/sf/build/newlib-cygwin/src/newlib-cygwin-2.11.1/winsup/cygwin/ntdll.h:1672:32: >> error: ISO C++ does not allow ?: with omitted middle operand >> [-Werror=pedantic] >> fbi.FileAttributes = attr ?: FILE_ATTRIBUTE_NORMAL; >> ^ >> /home/cygsimple/src/sf/build/newlib-cygwin/src/newlib-cygwin-2.11.1/winsup/cygwin/ntdll.h:1672:31: >> error: ISO C++ forbids omitting the middle term of a ?: expression >> [-Werror=pedantic] >> fbi.FileAttributes = attr ?: FILE_ATTRIBUTE_NORMAL; >> ^ >> In file included from >> /home/cygsimple/src/sf/build/newlib-cygwin/src/newlib-cygwin-2.11.1/winsup/cygwin/winsup.h:30: >> , >> from >> /home/cygsimple/src/sf/build/newlib-cygwin/src/newlib-cygwin-2.11.1/winsup/cygwin/lib/_cygwin_crt0_common.cc:9: >> /home/cygsimple/src/sf/build/newlib-cygwin/src/newlib-cygwin-2.11.1/winsup/cygwin/security.h: >> In member function 'void cygpsid::debug_print(const char*) const': >> /home/cygsimple/src/sf/build/newlib-cygwin/src/newlib-cygwin-2.11.1/winsup/cygwin/security.h:181:38: >> error: ISO C++ does not allow ?: with omitted middle operand >> [-Werror=pedantic] >> debug_printf ("%s %s", prefix ?: "", string (buf) ?: "NULL"); >> ^ >> /home/cygsimple/src/sf/build/newlib-cygwin/src/newlib-cygwin-2.11.1/winsup/cygwin/security.h:181:37: >> error: ISO C++ forbids omitting the middle term of a ?: expression >> [-Werror=pedantic] >> debug_printf ("%s %s", prefix ?: "", string (buf) ?: "NULL"); >> ~~~~~~~^~~~ >> /home/cygsimple/src/sf/build/newlib-cygwin/src/newlib-cygwin-2.11.1/winsup/cygwin/security.h:181:58: >> error: ISO C++ does not allow ?: with omitted middle operand >> [-Werror=pedantic] >> debug_printf ("%s %s", prefix ?: "", string (buf) ?: "NULL"); >> ^ >> /home/cygsimple/src/sf/build/newlib-cygwin/src/newlib-cygwin-2.11.1/winsup/cygwin/security.h:181:57: >> error: ISO C++ forbids omitting the middle term of a ?: expression >> [-Werror=pedantic] >> debug_printf ("%s %s", prefix ?: "", string (buf) ?: "NULL"); >> ~~~~~~~~~~~~~^~~~ >> /home/cygsimple/src/sf/build/newlib-cygwin/src/newlib-cygwin-2.11.1/winsup/cygwin/security.h: >> In member function 'void cygsid::debug_print(const char*) const': >> /home/cygsimple/src/sf/build/newlib-cygwin/src/newlib-cygwin-2.11.1/winsup/cygwin/security.h:258:40: >> error: ISO C++ does not allow ?: with omitted middle operand >> [-Werror=pedantic] >> debug_printf ("%s %s%s", prefix ?: "", string (buf) ?: "NULL", >> well_known_sid ? " (*)" : " (+)"); >> ^ >> /home/cygsimple/src/sf/build/newlib-cygwin/src/newlib-cygwin-2.11.1/winsup/cygwin/security.h:258:39: >> error: ISO C++ forbids omitting the middle term of a ?: expression >> [-Werror=pedantic] >> debug_printf ("%s %s%s", prefix ?: "", string (buf) ?: "NULL", >> well_known_sid ? " (*)" : " (+)"); >> ~~~~~~~^~~~ >> /home/cygsimple/src/sf/build/newlib-cygwin/src/newlib-cygwin-2.11.1/winsup/cygwin/security.h:258:60: >> error: ISO C++ does not allow ?: with omitted middle operand >> [-Werror=pedantic] >> debug_printf ("%s %s%s", prefix ?: "", string (buf) ?: "NULL", >> well_known_sid ? " (*)" : " (+)"); >> ^ >> /home/cygsimple/src/sf/build/newlib-cygwin/src/newlib-cygwin-2.11.1/winsup/cygwin/security.h:258:59: >> error: ISO C++ forbids omitting the middle term of a ?: expression >> [-Werror=pedantic] >> debug_printf ("%s %s%s", prefix ?: "", string (buf) ?: "NULL", >> well_known_sid ? " (*)" : " (+)"); >> ~~~~~~~~~~~~~^~~~ >> In file included from ./globals.h:7:0, >> from >> /home/cygsimple/src/sf/build/newlib-cygwin/src/newlib-cygwin-2.11.1/winsup/cygwin/winsup.h:287, >> from >> /home/cygsimple/src/sf/build/newlib-cygwin/src/newlib-cygwin-2.11.1/winsup/cygwin/lib/_cygwin_crt0_common.cc:9: >> /home/cygsimple/src/sf/build/newlib-cygwin/src/newlib-cygwin-2.11.1/winsup/cygwin/thread.h: >> At global scope: >> /home/cygsimple/src/sf/build/newlib-cygwin/src/newlib-cygwin-2.11.1/winsup/cygwin/thread.h:657:37: >> error: ISO C++ 1998 does not support 'long long' [-Werror=long-long] >> static sem_t *open (unsigned long long hash, LUID luid, int fd, int >> oflag, >> ^~~~ >> /home/cygsimple/src/sf/build/newlib-cygwin/src/newlib-cygwin-2.11.1/winsup/cygwin/thread.h:666:63: >> error: ISO C++ 1998 does not support 'long long' [-Werror=long-long] >> static int getinternal (sem_t *sem, int *sfd, unsigned long long *shash, >> ^~~~ >> /home/cygsimple/src/sf/build/newlib-cygwin/src/newlib-cygwin-2.11.1/winsup/cygwin/thread.h:674:17: >> error: ISO C++ 1998 does not support 'long long' [-Werror=long-long] >> unsigned long long hash; >> ^~~~ >> /home/cygsimple/src/sf/build/newlib-cygwin/src/newlib-cygwin-2.11.1/winsup/cygwin/thread.h:679:28: >> error: ISO C++ 1998 does not support 'long long' [-Werror=long-long] >> semaphore (unsigned long long, LUID, int, sem_t *, int, mode_t, >> unsigned int); >> ^~~~ >> In file included from >> /home/cygsimple/src/sf/build/newlib-cygwin/src/newlib-cygwin-2.11.1/winsup/cygwin/winsup.h:287:0, >> from >> /home/cygsimple/src/sf/build/newlib-cygwin/src/newlib-cygwin-2.11.1/winsup/cygwin/lib/_cygwin_crt0_common.cc:9: >> ./globals.h:119:2: error: extra ';' [-Werror=pedantic] >> }; >> ^ >> cc1plus: all warnings being treated as errors >> make[3]: *** >> [/home/cygsimple/src/sf/build/newlib-cygwin/src/newlib-cygwin-2.11.1/winsup/cygwin/../Makefile.common:41: >> _cygwin_crt0_common.o] Error 1 >> make[3]: Leaving directory >> '/home/cygsimple/src/sf/build/newlib-cygwin/src/build/x86_64-pc-cygwin/winsup/cygwin' >> make[2]: *** [Makefile:81: cygwin] Error 1 >> make[2]: Leaving directory >> '/home/cygsimple/src/sf/build/newlib-cygwin/src/build/x86_64-pc-cygwin/winsup' >> make[1]: *** [Makefile:9464: all-target-winsup] Error 2 >> make[1]: Leaving directory >> '/home/cygsimple/src/sf/build/newlib-cygwin/src/build' >> make: *** [Makefile:883: all] Error 2 >> ==> ERROR: A failure occurred in build(). >> Aborting... >> ``` >> >> It appears that c++wrap isn't choosing the correct compiler but how can >> I tell and change that? >> > > > -- > cyg Simple > > -- > Problem reports: http://cygwin.com/problems.html > FAQ: http://cygwin.com/faq/ > Documentation: http://cygwin.com/docs.html > Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple > -- cyg Simple -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple