linux-sparse.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* unable to open limits.h
@ 2008-11-25 11:07 Christoph Hellwig
  2008-11-25 12:18 ` Alexey Zaytsev
  0 siblings, 1 reply; 7+ messages in thread
From: Christoph Hellwig @ 2008-11-25 11:07 UTC (permalink / raw)
  To: linux-sparse

On Ubuntu 8.10 (glibc 2.8.90) I get the following warnings when
compiling any program using limits.h:

/usr/include/limits.h:125:17: error: unable to open 'limits.h'

The easiest testcase is:

cat > test.c  << EOF
#include <limits.h>
EOF
cgcc -c test.c 


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: unable to open limits.h
  2008-11-25 11:07 unable to open limits.h Christoph Hellwig
@ 2008-11-25 12:18 ` Alexey Zaytsev
  2008-11-25 12:27   ` Sam Ravnborg
  2008-11-25 12:36   ` Christoph Hellwig
  0 siblings, 2 replies; 7+ messages in thread
From: Alexey Zaytsev @ 2008-11-25 12:18 UTC (permalink / raw)
  To: Christoph Hellwig; +Cc: linux-sparse, Josh Triplett

On Tue, Nov 25, 2008 at 14:07, Christoph Hellwig <hch@infradead.org> wrote:
> On Ubuntu 8.10 (glibc 2.8.90) I get the following warnings when
> compiling any program using limits.h:
>
> /usr/include/limits.h:125:17: error: unable to open 'limits.h'

This is probably fixed by
http://git.zaytsev.su/git?p=sparse.git;a=commitdiff;h=6f089b22a222dd086d14c985c5a67f8b3afd2177

Josh, please pull the gsoc2008-up branch from git://zaytsev.su/git/sparse.git

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: unable to open limits.h
  2008-11-25 12:18 ` Alexey Zaytsev
@ 2008-11-25 12:27   ` Sam Ravnborg
  2008-11-25 13:03     ` Alexey Zaytsev
  2008-11-25 12:36   ` Christoph Hellwig
  1 sibling, 1 reply; 7+ messages in thread
From: Sam Ravnborg @ 2008-11-25 12:27 UTC (permalink / raw)
  To: Alexey Zaytsev; +Cc: Christoph Hellwig, linux-sparse, Josh Triplett

On Tue, Nov 25, 2008 at 03:18:58PM +0300, Alexey Zaytsev wrote:
> On Tue, Nov 25, 2008 at 14:07, Christoph Hellwig <hch@infradead.org> wrote:
> > On Ubuntu 8.10 (glibc 2.8.90) I get the following warnings when
> > compiling any program using limits.h:
> >
> > /usr/include/limits.h:125:17: error: unable to open 'limits.h'
> 
> This is probably fixed by
> http://git.zaytsev.su/git?p=sparse.git;a=commitdiff;h=6f089b22a222dd086d14c985c5a67f8b3afd2177

Is this the right fix?
We should not rely on that sparse is built with the same gcc as currently installed.

The fix should be that we automagically uses the right path which
is available on the system.

> 
> Josh, please pull the gsoc2008-up branch from git://zaytsev.su/git/sparse.git
For a pull request itis prefarable that you always include:
- diffstat
- shortlog
- short intor what is contained

I assume patches has been on sparse ml.


	Sam

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: unable to open limits.h
  2008-11-25 12:18 ` Alexey Zaytsev
  2008-11-25 12:27   ` Sam Ravnborg
@ 2008-11-25 12:36   ` Christoph Hellwig
  2008-11-25 12:37     ` Christoph Hellwig
  1 sibling, 1 reply; 7+ messages in thread
From: Christoph Hellwig @ 2008-11-25 12:36 UTC (permalink / raw)
  To: Alexey Zaytsev; +Cc: Christoph Hellwig, linux-sparse, Josh Triplett

On Tue, Nov 25, 2008 at 03:18:58PM +0300, Alexey Zaytsev wrote:
> On Tue, Nov 25, 2008 at 14:07, Christoph Hellwig <hch@infradead.org> wrote:
> > On Ubuntu 8.10 (glibc 2.8.90) I get the following warnings when
> > compiling any program using limits.h:
> >
> > /usr/include/limits.h:125:17: error: unable to open 'limits.h'
> 
> This is probably fixed by
> http://git.zaytsev.su/git?p=sparse.git;a=commitdiff;h=6f089b22a222dd086d14c985c5a67f8b3afd2177
> 
> Josh, please pull the gsoc2008-up branch from git://zaytsev.su/git/sparse.git

I still see the error with a sparse built from your repository.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: unable to open limits.h
  2008-11-25 12:36   ` Christoph Hellwig
@ 2008-11-25 12:37     ` Christoph Hellwig
  2008-11-25 13:04       ` Alexey Zaytsev
  0 siblings, 1 reply; 7+ messages in thread
From: Christoph Hellwig @ 2008-11-25 12:37 UTC (permalink / raw)
  To: Alexey Zaytsev; +Cc: Christoph Hellwig, linux-sparse, Josh Triplett

On Tue, Nov 25, 2008 at 07:36:22AM -0500, Christoph Hellwig wrote:
> On Tue, Nov 25, 2008 at 03:18:58PM +0300, Alexey Zaytsev wrote:
> > On Tue, Nov 25, 2008 at 14:07, Christoph Hellwig <hch@infradead.org> wrote:
> > > On Ubuntu 8.10 (glibc 2.8.90) I get the following warnings when
> > > compiling any program using limits.h:
> > >
> > > /usr/include/limits.h:125:17: error: unable to open 'limits.h'
> > 
> > This is probably fixed by
> > http://git.zaytsev.su/git?p=sparse.git;a=commitdiff;h=6f089b22a222dd086d14c985c5a67f8b3afd2177
> > 
> > Josh, please pull the gsoc2008-up branch from git://zaytsev.su/git/sparse.git
> 
> I still see the error with a sparse built from your repository.

Oh, looks like your have the change in some bloody branch.  Care to send
a patch or publish a proper repository?

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: unable to open limits.h
  2008-11-25 12:27   ` Sam Ravnborg
@ 2008-11-25 13:03     ` Alexey Zaytsev
  0 siblings, 0 replies; 7+ messages in thread
From: Alexey Zaytsev @ 2008-11-25 13:03 UTC (permalink / raw)
  To: Sam Ravnborg; +Cc: Christoph Hellwig, linux-sparse, Josh Triplett

On Tue, Nov 25, 2008 at 15:27, Sam Ravnborg <sam@ravnborg.org> wrote:
> On Tue, Nov 25, 2008 at 03:18:58PM +0300, Alexey Zaytsev wrote:
>> On Tue, Nov 25, 2008 at 14:07, Christoph Hellwig <hch@infradead.org> wrote:
>> > On Ubuntu 8.10 (glibc 2.8.90) I get the following warnings when
>> > compiling any program using limits.h:
>> >
>> > /usr/include/limits.h:125:17: error: unable to open 'limits.h'
>>
>> This is probably fixed by
>> http://git.zaytsev.su/git?p=sparse.git;a=commitdiff;h=6f089b22a222dd086d14c985c5a67f8b3afd2177
>
> Is this the right fix?
> We should not rely on that sparse is built with the same gcc as currently installed.
>
> The fix should be that we automagically uses the right path which
> is available on the system.
>
I see no magic way to find the right path, except specifying which gcc version
sparse would have to follow. Probably cgcc could pass it to sparse, but anyway,
this would probably be an other patch. Mine does not change the way
sparse works,
only adds the new include dir, which should not harm the

>>
>> Josh, please pull the gsoc2008-up branch from git://zaytsev.su/git/sparse.git
> For a pull request itis prefarable that you always include:
> - diffstat
> - shortlog
> - short intor what is contained

The branch contains cleanups and other straight-forward changes gained as as a
side-effect of my sparse linker work this summer. Josh has already agreed on the
patches, but was too busy and pobably forgot to pull. Anyway, there is
the shortlog:

Alexey Zaytsev (9):
      Make show_symbol newline-consistent
      Looks more evident this way.
      Handle a terminal -o option properly.
      Mark handle_switch as static and don't export it from lib.h
      Handle missing argument to -D.
      Gdb macros to get a better look at some sparse data structures.
      A slightly edited irc discussion with Josh Triplett.
      Add $GCC_BASE/include-fixed to the include list.
      Warning should be enough for an unhandled transparent union

The patches seem to be too trivial to discuss. For the non-trivial
patches from the
gsoc2008-linker branch I got constructive feedback and will probably
rework the idea.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: unable to open limits.h
  2008-11-25 12:37     ` Christoph Hellwig
@ 2008-11-25 13:04       ` Alexey Zaytsev
  0 siblings, 0 replies; 7+ messages in thread
From: Alexey Zaytsev @ 2008-11-25 13:04 UTC (permalink / raw)
  To: Christoph Hellwig; +Cc: linux-sparse, Josh Triplett

On Tue, Nov 25, 2008 at 15:37, Christoph Hellwig <hch@infradead.org> wrote:
> On Tue, Nov 25, 2008 at 07:36:22AM -0500, Christoph Hellwig wrote:
>> On Tue, Nov 25, 2008 at 03:18:58PM +0300, Alexey Zaytsev wrote:
>> > On Tue, Nov 25, 2008 at 14:07, Christoph Hellwig <hch@infradead.org> wrote:
>> > > On Ubuntu 8.10 (glibc 2.8.90) I get the following warnings when
>> > > compiling any program using limits.h:
>> > >
>> > > /usr/include/limits.h:125:17: error: unable to open 'limits.h'
>> >
>> > This is probably fixed by
>> > http://git.zaytsev.su/git?p=sparse.git;a=commitdiff;h=6f089b22a222dd086d14c985c5a67f8b3afd2177
>> >
>> > Josh, please pull the gsoc2008-up branch from git://zaytsev.su/git/sparse.git
>>
>> I still see the error with a sparse built from your repository.
>
> Oh, looks like your have the change in some bloody branch.  Care to send
> a patch or publish a proper repository?
>
Yes, the commit is located in the gsoc2008-up branch, but you've probably
already found it by the time. ;)

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2008-11-25 13:04 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-25 11:07 unable to open limits.h Christoph Hellwig
2008-11-25 12:18 ` Alexey Zaytsev
2008-11-25 12:27   ` Sam Ravnborg
2008-11-25 13:03     ` Alexey Zaytsev
2008-11-25 12:36   ` Christoph Hellwig
2008-11-25 12:37     ` Christoph Hellwig
2008-11-25 13:04       ` Alexey Zaytsev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).