From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 39762 invoked by alias); 14 May 2019 22:17:10 -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 39754 invoked by uid 89); 14 May 2019 22:17:10 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=Scott, scott, HX-Languages-Length:2102 X-HELO: mail-wr1-f42.google.com Received: from mail-wr1-f42.google.com (HELO mail-wr1-f42.google.com) (209.85.221.42) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 14 May 2019 22:17:08 +0000 Received: by mail-wr1-f42.google.com with SMTP id d12so440482wrm.8 for ; Tue, 14 May 2019 15:17:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=pss803ZDKqp06nqCSTgaBkSUj/zdNqsk9RXKyHhugoA=; b=a4ODH5soBVSJpXdtSiG+MHmBRpjgvtnfkhthtw5eCUzlYDP3NwSstYjBQBn7kHNEQX hZ9RG7nr7JdNy+KouC7p10Hb508+X+GDTt3pprHeNO6BtnzaFdK7iXjXL8UVKiSkKkts GzbTxnWBFuO5kJ8C0akgOpOmnd0OjGYVfb1OxFvArkXX/+Ly/oHTcgqpN/H4kQnfCGUL 87TKX7h+JbqYD7IhDDBGPEVxcq+qLbBFCcCxoP/dqo3gvvDd6G7/vbU2xhA/0IgEazMH ezPqKhKAn4tBTTdKfj3QtQ4Yz4CJXn4ggyDSzsKX4g1H5AgApHFiHzT6NWpnvcqhppTO n7PA== Return-Path: Received: from [192.168.1.110] (92-249-130-111.digikabel.hu. [92.249.130.111]) by smtp.gmail.com with ESMTPSA id n15sm162843wru.67.2019.05.14.15.17.05 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 May 2019 15:17:05 -0700 (PDT) Subject: Re: Building Bedrockdb in cygwin To: cygwin@cygwin.com References: <2B56GKHZ.RA34LFTQ.YAKAGWCC@ZSAAQYFV.QHFNCGMV.ICZDFG7V> <054f8269-d9d8-290a-9b60-0139ce33f4a0@SystematicSw.ab.ca> From: =?UTF-8?Q?Csaba_R=c3=a1duly?= Message-ID: Date: Tue, 14 May 2019 22:17:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2019-05/txt/msg00133.txt.bz2 On 14/05/2019 19:11, Jose Isaias Cabrera wrote: (snip) > However, having jumped that huddle, I encountered a new one, which is probably easier to deal with. The make command does a lot of work, but once it's going to start compiling, I get, > > [good stuff clipped] > CC util/pem2der.c > CC util/strerror.c > CC x509/cert_app.c > CC x509/crl_app.c > CC x509/cert_req.c > CC x509/cert_write.c > CC x509/req_app.c > make[2]: Leaving directory '/home/e608313/Bedrock/mbedtls/programs' > make[1]: Leaving directory '/home/e608313/Bedrock/mbedtls' > g++-6 -g -std=c++14 -fpic -O2 -Wall -Werror -Wformat-security -DGIT_REVISION=ce62c88 -I/home/e608313/Bedrock -I/home/e608313/Bedrock/mbedtls/include -MMD -MF libstuff/libstuff.d -MT libstuff/libstuff.h.gch -c libstuff/libstuff.h > make: g++-6: Command not found > make: *** No rule to make target 'libstuff/libstuff.d', needed by '.build/libstuff/libstuff.d'. Stop. > > So, it appears that I need something called g++-6. I have both gcc and g++ > > $ ls /usr/bin/g++* > /usr/bin/g++.exe* > > So, the question is, what is g++-6, and how to I get it? I tried to find it with cygwin's setup, but it's not on the distro. I tried to duckduckgo it, but I didn't get anything useful. Thoughts? Thanks g++-6 is version 6 of the C++ compiler in the GNU Compiler Collection. Cygwin's gcc and g++ is version 7.4.0: $ g++.exe -dumpversion 7.4.0 Bedrockdb's makefile begins with: # Set the compiler, if it's not set by the environment. ifndef GXX GXX = g++-6 endif ifndef CC CC = gcc-6 endif so the C++ compiler (GXX) is set to g++-6 unless GXX is set explicitly. You need to run make like this: CC=gcc GXX=g++ make This will force make to use g++ instead of g++-6 Hope this helps, Csaba -- You can get very substantial performance improvements by not doing the right thing. - Scott Meyers, An Effective C++11/14 Sampler So if you're looking for a completely portable, 100% standards-conformat way to get the wrong information: this is what you want. - Scott Meyers (C++TDaWYK) -- 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