lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Tue, 23 Jul 2013 14:49:55 +0200
From:	Michal Marek <mmarek@...e.cz>
To:	Punit Agrawal <punit.agrawal@....com>
Cc:	linux-kernel@...r.kernel.org
Subject: Re: Problem using gtags target

On 8.7.2013 19:22, Punit Agrawal wrote:
> Hi,
> 
> I am trying to use GNU global for kernel source browsing but have run
> into a problem when using "gtags" target in Makefile. The index
> files(GTAGS, GSYMS, GPATH, GRTAGS) don't work and on further
> investigation turned out to be 16kb each in size. My command line is - 
> 
> make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j5 gtags

So you have a command that fails

> 
> On some digging, I traced the relevant code to scripts/tags.sh which
> produces reasonably sized indices (modulo some  missing environment
> variables) when run as - 
> 
> ./scripts/tags.sh gtags

...and a command that works. So you can start "bisecting" between these
two: Try removing -j5 or ARCH= or  CROSS_COMPILE= from the make command
line. Still failing? Add 'printenv >env.make' to the tags.sh script and
run it via make tags. Compare the env.make file with printenv output
from the shell. Try setting the variables from env.make in the shell and
see when ./scripts/tags.sh gtags starts failing.

FWIW, both your commands seem to work for me and produce a GRTAGS that
is 256MB big.

Michal
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ