From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS31976 209.132.180.0/23 X-Spam-Status: No, score=-4.0 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by dcvr.yhbt.net (Postfix) with ESMTP id E9FC820248 for ; Sat, 23 Mar 2019 12:14:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727066AbfCWMOg (ORCPT ); Sat, 23 Mar 2019 08:14:36 -0400 Received: from smtp-32.italiaonline.it ([213.209.10.32]:36638 "EHLO libero.it" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726909AbfCWMOg (ORCPT ); Sat, 23 Mar 2019 08:14:36 -0400 Received: from DESKTOP-E4U7JCE ([5.168.27.57]) by smtp-32.iol.local with ESMTPA id 7fXjhAd3L6rc57fXjh1DlF; Sat, 23 Mar 2019 13:14:32 +0100 x-libjamoibt: 1601 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=libero.it; s=s2014; t=1553343272; bh=5bU72M5Tzx1OISvlwbyo9L/JlZlTx/1I4DX041OzWdw=; h=Subject:From:To:Date:In-Reply-To:References; b=WR2REo4G5WPIbwylzwX47jVRYu3IvEnj+ZJ8KKcrcAAlkC6meXTTozfLqMeINEw3d 7YPVIYMgj9m8pIeFOhjsynsjvxZF1Q9MWoixnqtvhJyGTH0L8sd+2D8OHAkv0VKkFl jMIwTfqyln3A3eqECr7lzYmI75xH8PeG+vjfpMw2HUSUqeUUKSSAUfsJC9ot7qBI8O wVRH1mhjN+8e5N5rjGxdoSaSgQ2TAjIsaNVXuaOX07zsw3/gz8oAj4KTLwAuXajGAR Luz9tA1Xrj7m7GhJqxFZAFTZnvQNL9uTA+S5jiBg06GM3882mUsTNP0uPYs2PQh1ba nzBuFwOl4gwTg== X-CNFS-Analysis: v=2.3 cv=d7kkNirE c=1 sm=1 tr=0 a=Docq1LM3Rd8MKGMM10gaLw==:117 a=Docq1LM3Rd8MKGMM10gaLw==:17 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=IkcTkHD0fZMA:10 a=Dx4yW56zAAAA:8 a=VwQbUJbxAAAA:8 a=Md6HsupoLesJ3362ms4A:9 a=QEXdDO2ut3YA:10 a=X_u8qhY6y2Nm79co_leF:22 a=AjGcO6oz07-iQ99wixmX:22 Message-ID: <1553343271.1639.1.camel@libero.it> Subject: Re: Semantic errors From: Fabio Aiuto To: "Randall S. Becker" , git@vger.kernel.org Date: Sat, 23 Mar 2019 13:14:31 +0100 In-Reply-To: <001c01d4e100$a5feb610$f1fc2230$@nexbridge.com> References: <1553195171.1436.1.camel@libero.it> <002901d4e01a$88bdd220$9a397660$@nexbridge.com> <1553196739.1436.3.camel@libero.it> <000501d4e029$93624940$ba26dbc0$@nexbridge.com> <1553289910.1481.4.camel@libero.it> <001301d4e0f7$c061b600$41252200$@nexbridge.com> <1553290862.1481.9.camel@libero.it> <001c01d4e100$a5feb610$f1fc2230$@nexbridge.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.22.6-1+deb9u1 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-CMAE-Envelope: MS4wfHRb9rXI4TMlBJou2B8HCfjWcMoWJ91Vnye+Ey0qTj6YCjjej4AU8egqqyqSeuWCvEp0yxdxqAKbHhiZKY79Jc+WRdB4/a6rRqWtTxgL5onO1XfX1ldJ ywzkIVayiqds144Yn+jZPoN1U1Z8/3hDgBtfu4SOvtigaT8aJAwY7bK70cS6wYm+2Bn7WdJ+7yCZXAxK2X2k3jkldfSktW1fg7A= Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Il giorno ven, 22/03/2019 alle 18.43 -0400, Randall S. Becker ha scritto: > > -----Original Message----- > > From: Fabio Aiuto > > Sent: March 22, 2019 17:41 > > To: Randall S. Becker ; git@vger.kernel.org > > Subject: Re: Semantic errors > > > > Il giorno ven, 22/03/2019 alle 17.39 -0400, Randall S. Becker ha > > scritto: > > > On March 22, 2019 17:25, Fabio Aiuto > > > > Il giorno gio, 21/03/2019 alle 17.03 -0400, Randall S. Becker > > > > ha > > > > scritto: > > > > > > Of On March 21, 2019 15:32, Fabio Aiuto wrote: > > > > > > Il giorno gio, 21/03/2019 alle 15.16 -0400, Randall S. > > > > > > Becker ha > > > > > > scritto: > > > > > > > On March 21, 2019 15:06, Fabio Aiuto wrote: > > > > > > > > I'm browsins git code with Eclipse. I'm on a local > > > > > > > > branch > > > > > > > > called "studio" based on master (last public commit > > > > > > > > e902e9b > > > > > > > > by Junio C Hamano on Monday March 11 2019). I've built > > > > > > > > everything by > > > > > > > > changing: > > > > > > > > CFLAGS = -g -Wall (removing -O2 to have smooth trace in > > > > > > > > debugging). > > > > > > > > But the environment detects the following semantic > > > > > > > > errors (I > > > > > > > > made no > > > > > > > > edits!!!): > > > > > > > > Description Resource Path Location > > > > > > > > Type > > > > > > > > Symbol 'GIT_HTML_PATH' could not be resolved git > > > > > > > > .c > > > > > > > > /g > > > > > > > > it > > > > > > > > line 154 Semantic Error > > > > > > > > Symbol 'GIT_MAN_PATH' could not be resolved git. > > > > > > > > c > > > > > > > > /gi > > > > > > > > t > > > > > > > > line 158 Semantic Error > > > > > > > > Symbol 'GIT_INFO_PATH' could not be resolved git > > > > > > > > .c > > > > > > > > /g > > > > > > > > it > > > > > > > > line 162 Semantic Error > > > > > > > > Symbol 'active_cache' could not be resolved comm > > > > > > > > it.c > > > > > > > > /git > > > > > > > > /builtin line 899 Semantic Error > > > > > > > > Field 'ce_intent_to_add(active_cache[i])' could not be > > > > > > > > resolved > > > > > > > > commit.c /git/builtin line 899 Sem > > > > > > > > anti > > > > > > > > c > > > > > > > > Error > > > > > > > > Symbol 'active_nr' could not be resolved commit. > > > > > > > > c > > > > > > > > /gi > > > > > > > > t/bu > > > > > > > > iltin line 889 Semantic Error > > > > > > > > Symbol 'active_nr' could not be resolved commit. > > > > > > > > c > > > > > > > > /gi > > > > > > > > t/bu > > > > > > > > iltin line 898 Semantic Error > > > > > > > > Field 'oid' could not be resolved commit.c > > > > > > > > /g > > > > > > > > it/b > > > > > > > > uilt > > > > > > > > in > > > > > > > > line 1654 Semantic Error > > > > > > > > Symbol 'active_nr' could not be resolved commit. > > > > > > > > c > > > > > > > > /gi > > > > > > > > t/bu > > > > > > > > iltin line 901 Semantic Error > > > > > > > > Symbol 'active_cache_tree' could not be resolved > > > > > > > > com > > > > > > > > mit. > > > > > > > > c > > > > > > > > /git/builtin line 1654 Semantic Error > > > > > > > > Symbol 'active_cache_changed' could not be resolved > > > > > > > > comm > > > > > > > > it.c > > > > > > > > /git/builtin line 418 Semantic Error > > > > > > > > Symbol 'active_cache_tree' could not be resolved > > > > > > > > com > > > > > > > > mit. > > > > > > > > c > > > > > > > > /git/builtin line 419 Semantic Error > > > > > > > > Symbol 'active_nr' could not be resolved commit. > > > > > > > > c > > > > > > > > /gi > > > > > > > > t/bu > > > > > > > > iltin line 254 Semantic Error > > > > > > > > Symbol 'active_cache' could not be resolved comm > > > > > > > > it.c > > > > > > > > /git > > > > > > > > /builtin line 255 Semantic Error > > > > > > > > > > > > > > > > I can debug without problems, but what if I should > > > > > > > > trece > > > > > > > > through one of those errors? > > > > > > > > How can I fix them? > > > > > > > > > > > > > > This situation occurs in many projects in ECLIPSE, not > > > > > > > only > > > > > > > git. > > > > > > > The > > > > > > > errors are likely coming from one of the error parsers > > > > > > > that > > > > > > > you have enabled in your workspace. Look in the Project > > > > > > > Properties or Workspace Preferences under C/C++ > > > > > > > Build/Settings > > > > > > > in the Error Parsers tab for your build configuration. > > > > > > > You may > > > > > > > have to turn off some of those. > > > > > > > There is also the C/C++ General/Code Analysis Preferences > > > > > > > setting where you might have to turn off the problematic > > > > > > > errors. I have found that this is a common situation for > > > > > > > code > > > > > > > that is imported into ECLIPSE from other platforms, where > > > > > > > the > > > > > > > GNU error and analysis tools are overly aggressive by > > > > > > > default. > > > > > > > > > > > > > > Good luck. > > > > > > > Randall > > > > > > > > > > > > > > -- Brief whoami: > > > > > > >  NonStop developer since approximately 211288444200000000 > > > > > > >  UNIX developer since approximately 421664400 > > > > > > > -- In my real life, I talk too much. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Thank you I tried to disable all of them, but they all > > > > > > remain. > > > > > > For > > > > > > example the variable 'active_nr' is actually never > > > > > > declared. > > > > > > That's > > > > > > so strange. > > > > > > Hope to > > > > > > solve this all soon. I'm freezed... > > > > > > > > > > It is very likely in ECLIPSE either in workstation or project > > > > > settings relating to error parsers (turn everything off). It > > > > > still > > > > > may be an error parser issue. One key thing... do not use > > > > > -Wall. > > > > > There are also settings about what to do in some error > > > > > conditions > > > > > configured in ECLIPSE. -Wall could be probably triggering a > > > > > response from one of the error parsers. But the Semantic > > > > > Error > > > > > type is not normally from the compiler; rather, it is from > > > > > ECLIPSE > > > > > CDT pre- scanning the code. Anyway, check out other -W > > > > > settings to > > > > > disable all warnings as a start. If you are building in > > > > > Cygwin or > > > > > Mingw, you probably can ignore the ECLIPSE errors, especially > > > > > if > > > > > git actually built. If you are trying to mix a managed build > > > > > and a > > > > > non-managed build in the same project, you are going to be > > > > > out of > > > > > luck. > > > > > > > > > > > > > If I run a make inside the git working directory, this will > > > > just > > > > create binaries in the working directory. But in my > > > > home/{myname}/bin/ I have found the following files: > > > > > > > > git git-cvsserver gitk git-receive-pack git-shell git-upload- > > > > archive git-upload- pack > > > > > > > > Maybe they are deployed by a make install I run accidentally (I > > > > think that's possible). How could I clean the effect of this > > > > accidental install? > > > > If I don't > > > > clean this install could I have problems in the future? > > > > > > I haven't done a Windows build so I really can't help here. > > > Anyone > > > else able to chime in? > > > > > > > I'm on debian stretch. > > Unless /home/{yourname}/bin is on your PATH, the make install should > not cause a problem and cleaning up from it probably is fine. I'm > surprised there is no /home/{yourname}/share also because make > install will move man pages into it - although you might not have all > of the man pages installed (that is another topic and make target - > my platform does not have a port of the Asciidoctor tool, so I can't > build git man pages, so I use quick-install-man, which depends on > having a clone of the man page repository that the really awesome git > team creates). It might be helpful to specify some of the option > defines described in the Makefile so that the install goes to the > proper place (like /usr/local). Run 'uname -s' to figure out which > system type config.mak.uname is going to use, and go from there. > > Good luck. > > Randall > > -- Brief whoami: >  NonStop developer since approximately 211288444200000000 >  UNIX developer since approximately 421664400 > -- In my real life, I talk too much. > > > Yes I found a home/{myname}/bin and a home/{myname}/share filled with files related to documentation. My uname is: $uname -s Linux My PATH environment variable is: $env ... PATH=~/bin:/home/{myname}/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/g ames:/usr/games:/usr/sbin:/sbin ... This means that my /home/fabio/bin is in my PATH (fabio is my name;-)). What are the implications? So, is it enough to delete all files related to the git installation in the two directories /home/fabio/bin and /home/fabio/share? Are there some other places where I have to delete things? In a nutshell my fear is that the make install I did could interfere with the git package installed on my machine. Thank you. Fabio.