X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:references:in-reply-to:from:date :message-id:subject:to:content-type; q=dns; s=default; b=hhKTjIp hDYv1i6djDtwkJYewr35cDwUz3t7mGBgtaQfJ+TKKSaemseUvCiEYSssK0bbIp31 OSUQvroforJT4uyql/CwFA/iyKUe8aWmMynzr+5chAK+ZXe4axuFVzKX45dERii5 fB/TlsDpchuOIOp3oDNFOXiTH/5IsC1bF5oQ= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:references:in-reply-to:from:date :message-id:subject:to:content-type; s=default; bh=nQh7rAJIbyOwk 5DQmisXiqLcd4M=; b=xac38kQfPHr0sx4Hdkf2rhmupBe9zokdCxYo7miQiJDsp 5Hy+HBK1mS8ZAmx+U11Yf5btnwfj9QWaTFaJsHLVS0I+Rcygs2kN2H3/kRsBS1CM 6HW+KVGtv7EonZkIe00GpUkkSLOXWV59P7KfQD2lNCjwQPW2BFAihT64XESoSI= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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.1 spammy=HX-Received:Sun X-HELO: mail-qt1-f180.google.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=UmCxUKdLgexXfs97BYJhskXwy4ngOGp6gumNW8lXSIQ=; b=bXOXJSwCRfYisfHwWatv1EW3zBObGw0gymFyuyiS7Poblb/+yh96dkuadGNy6s97uT CwdjUUzVnQ7ZdgO6JdpOG+Ny/R7s2u6lmraOaIwTZN5SXlM4Eqo+nPQeHfia0YvA9I3s 8H37UPO8ooNqvB6mZT8sWiwH6dph9rLh2SmvFkKiTEKSZoRx4X5euqpKFRRBJWljMAUa 2uJpkJtisbAy9QSxaJeIlPp5N90qE2TorKSxk+OKzO0+0mTaVcyT1GdVczMBxSWM7P3l wqWehJxum68a8yrI24CE0qQHq2VTsZIwfhd8D0ic6SU0NG1xleUsu8okXGLEusxl4BA+ DHNw== MIME-Version: 1.0 References: <6eb060d0-545b-4c7d-f6c6-a40772dda74f AT gmail DOT com> <94231473-d378-952e-a450-d0323e3906dd AT cs DOT umass DOT edu> <9f039049-77bd-1b62-9e6c-9d33740ccc70 AT cornell DOT edu> <88f3f480-7e05-4979-bd5a-8bb169f428a5 AT ostroff DOT xyz> In-Reply-To: <88f3f480-7e05-4979-bd5a-8bb169f428a5@ostroff.xyz> From: Csaba Raduly Date: Sun, 19 May 2019 10:37:16 +0200 Message-ID: Subject: Re: How to install gcc and g++ 6 on cygwin which are not on the setup.exe To: cygwin list Content-Type: text/plain; charset="UTF-8" On Sun, May 19, 2019 at 4:57 AM Jack wrote: > > On 5/18/19 9:24 PM, Jose Isaias Cabrera wrote: > > How do I uninstall the installation that I created with the building of gcc6? I did a search on duckduckgo for, > > > > cygwin how to uninstall gcc after building it > > > > and found nothing that could help me. Right now I have two installs of gcc: v7.4.and v6.4.0. That is not necessarily a problem. "Hand-built" GCC usually gets installed into /usr/local (so g++-6 is /usr/local/bin/g++), whereas the built-in GCC is installed into /usr (so the default GCC 7.4 is /usr/bin/g++). Unfortunately, whether one or the other is picked depends on your PATH. I tend to configure my hand-built GCC with --program-suffix= (e.g. GCC 6 with --program-suffix=-6, so the name of the compiler ends up being g++-6). > If you did "make install" then you can do "make uninstall" unless you > deleted the build folder. In that case, you just have to find all the > pieces and manually delete them. Unfortunately, gcc doesn't support "make uninstall". A workaround is to make a fake install with "make install DESTDIR=/tmp/usr/local" and then make a list of all the files under that directory, remove the "/tmp" and delete the files based on the list, something like find /tmp/usr/local -type f | perl -pwle 's!/tmp!!' | xargs rm (disclaimer: untested) This would leave empty directories behind. 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