mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Re: 2.6.18-rc6-mm1 breaks glibc build
  2006-09-09 13:44 2.6.18-rc6-mm1 breaks glibc build Mike Galbraith
@ 2006-09-09 11:49 ` David Woodhouse
  2006-09-09 14:25   ` Mike Galbraith
  0 siblings, 1 reply; 3+ messages in thread
From: David Woodhouse @ 2006-09-09 11:49 UTC (permalink / raw)
  To: Mike Galbraith; +Cc: LKML, Andrew Morton

On Sat, 2006-09-09 at 13:44 +0000, Mike Galbraith wrote:
> For whatever reason, glibc sets sysincludes to point to the running
> kernel's include directory ala...
>         sysincludes = -I /lib/modules/2.6.18-rc6-mm1-smp/build/include
> in it's config.make instead of using installed headers, and this leads
> to the compile failure below.

That's wrong. When you run 'make headers_install', the result is placed
in /lib/modules/`uname -r`/abi/include/ 

It looks like glibc is pointed at the raw kernel headers in the build
tree.

> I just edited config.make to point to different headers, dunno if it
> _should_ work as before (2.6.18-rc6 does) or not. 
>
> /lib/modules/2.6.18-rc6-mm1-smp/build/include/linux/err.h: Assembler messages:

Don't care. <linux/err.h> is not a header which is exported to userspace
by 'make headers_install'. No userspace build, including glibc, should
ever be able to see it.

-- 
dwmw2


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

* 2.6.18-rc6-mm1 breaks glibc build
@ 2006-09-09 13:44 Mike Galbraith
  2006-09-09 11:49 ` David Woodhouse
  0 siblings, 1 reply; 3+ messages in thread
From: Mike Galbraith @ 2006-09-09 13:44 UTC (permalink / raw)
  To: LKML; +Cc: Andrew Morton

Greetings,

For whatever reason, glibc sets sysincludes to point to the running
kernel's include directory ala...
	sysincludes = -I /lib/modules/2.6.18-rc6-mm1-smp/build/include
in it's config.make instead of using installed headers, and this leads
to the compile failure below.

I just edited config.make to point to different headers, dunno if it
_should_ work as before (2.6.18-rc6 does) or not.

/lib/modules/2.6.18-rc6-mm1-smp/build/include/linux/err.h: Assembler messages:
/lib/modules/2.6.18-rc6-mm1-smp/build/include/linux/err.h:22: Error: no such instruction: `static inline void *ERR_PTR(long error)'
/lib/modules/2.6.18-rc6-mm1-smp/build/include/linux/err.h:23: Error: junk at end of line, first unrecognized character is `{'
/lib/modules/2.6.18-rc6-mm1-smp/build/include/linux/err.h:24: Error: no such instruction: `return (void *)error'
/lib/modules/2.6.18-rc6-mm1-smp/build/include/linux/err.h:25: Error: junk at end of line, first unrecognized character is `}'
/lib/modules/2.6.18-rc6-mm1-smp/build/include/linux/err.h:27: Error: no such instruction: `static inline long PTR_ERR(const void *ptr)'
/lib/modules/2.6.18-rc6-mm1-smp/build/include/linux/err.h:28: Error: junk at end of line, first unrecognized character is `{'
/lib/modules/2.6.18-rc6-mm1-smp/build/include/linux/err.h:29: Error: no such instruction: `return (long)ptr'
/lib/modules/2.6.18-rc6-mm1-smp/build/include/linux/err.h:30: Error: junk at end of line, first unrecognized character is `}'
/lib/modules/2.6.18-rc6-mm1-smp/build/include/linux/err.h:32: Error: no such instruction: `static inline long IS_ERR(const void *ptr)'
/lib/modules/2.6.18-rc6-mm1-smp/build/include/linux/err.h:33: Error: junk at end of line, first unrecognized character is `{'
/lib/modules/2.6.18-rc6-mm1-smp/build/include/linux/err.h:34: Error: no such instruction: `return unlikely(((unsigned long)ptr)>=(unsigned long)-4095)'
/lib/modules/2.6.18-rc6-mm1-smp/build/include/linux/err.h:35: Error: junk at end of line, first unrecognized character is `}'
make[2]: *** [/usr/local/src/gnu/glibc/snapshots/glibc-20060904/i686-suse-linux/csu/sysdep.o] Error 1
make[2]: Leaving directory `/usr/local/src/gnu/glibc/snapshots/glibc-20060904/csu'
make[1]: *** [csu/subdir_lib] Error 2
make[1]: Leaving directory `/usr/local/src/gnu/glibc/snapshots/glibc-20060904'
make: *** [all] Error 2


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

* Re: 2.6.18-rc6-mm1 breaks glibc build
  2006-09-09 11:49 ` David Woodhouse
@ 2006-09-09 14:25   ` Mike Galbraith
  0 siblings, 0 replies; 3+ messages in thread
From: Mike Galbraith @ 2006-09-09 14:25 UTC (permalink / raw)
  To: David Woodhouse; +Cc: LKML, Andrew Morton

On Sat, 2006-09-09 at 12:49 +0100, David Woodhouse wrote:
> On Sat, 2006-09-09 at 13:44 +0000, Mike Galbraith wrote:

> > /lib/modules/2.6.18-rc6-mm1-smp/build/include/linux/err.h: Assembler messages:
> 
> Don't care. <linux/err.h> is not a header which is exported to userspace
> by 'make headers_install'. No userspace build, including glibc, should
> ever be able to see it.

I kinda figured that was going to be the answer, but not knowing why
glibc was doing that, I thought it was worth a mention.  Thanks.

	-Mike


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

end of thread, other threads:[~2006-09-09 12:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-09 13:44 2.6.18-rc6-mm1 breaks glibc build Mike Galbraith
2006-09-09 11:49 ` David Woodhouse
2006-09-09 14:25   ` Mike Galbraith

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®