All of lore.kernel.org
 help / color / mirror / Atom feed
* sparse and multiarch include paths
@ 2011-08-24 21:42 Josh Triplett
  2011-08-24 21:48 ` Chris Forbes
  2011-08-24 22:43 ` Ludovic Brenta
  0 siblings, 2 replies; 4+ messages in thread
From: Josh Triplett @ 2011-08-24 21:42 UTC (permalink / raw)
  To: linux-sparse; +Cc: debian-gcc, multiarch-devel

When trying to use sparse on some low-level userspace code, I ran into
the following error:

/usr/include/bits/socket.h:381:11: error: unable to open 'asm/socket.h'

It looks like that file lives in
/usr/include/x86_64-linux-gnu/asm/socket.h , and gcc has
/usr/include/x86_64-linux-gnu in its default include path.  This relates
to Debian's multiarch efforts, moving such headers to paths which
include the architecture to allow simultaneous installation of the
headers for multiple architectures.  I don't know how gcc ends up with
that directory in its include path, but sparse needs to follow suit to
compile any code which includes these architecture-specific
headers.

I've CCed the Debian GCC maintainers and multiarch developers, in the
hopes of getting some additional details that might help resolve this
problem.

- Josh Triplett

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

end of thread, other threads:[~2011-08-25  3:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-24 21:42 sparse and multiarch include paths Josh Triplett
2011-08-24 21:48 ` Chris Forbes
2011-08-24 22:43 ` Ludovic Brenta
2011-08-25  3:16   ` Josh Triplett

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.