linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Re: problems about __cli()
@ 2000-07-20 13:45 Iain Sandoe
  2000-07-20 15:44 ` Josh Huber
  2000-07-21 14:15 ` Michel Dänzer
  0 siblings, 2 replies; 12+ messages in thread
From: Iain Sandoe @ 2000-07-20 13:45 UTC (permalink / raw)
  To: Josh Huber, linuxppc-dev


Thu, Jul 20, 2000,  Josh Huber wrote:
> On Thu, Jul 20, 2000 at 10:19:54AM +0100, Iain Sandoe wrote:
>>
> [snip]
>>
>> It is *vital* to make sure that there is a symlink named 'linux' in /usr/src
>> that points to your /usr/src/your-kernel-foo-bar/ because there are symlinks
>> in /usr/include that expect to use this to find the build-specific headers.
>
> A couple notes:
>
> You don't have to put your kernel in /usr/src, and you DON'T have to
> symlink /usr/src/linux to it before you build.  The symlinks (on
> broken RedHat derivatives) in /usr/include should point to the kernel
> headers that your libc was built againt, otherwise you risk breaking
> binary compatibility.

I guess I *must* have one of those broken derivatives... and it doesn't work
for me without that step...  Admittedly, this is mostly an issue between
2.2.xx and 2.4.0 - but I do have to remember to change it back between
whiles... a better way would be ?

Iain.

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 12+ messages in thread
* Re: problems about __cli()
@ 2000-07-21 14:37 Iain Sandoe
  0 siblings, 0 replies; 12+ messages in thread
From: Iain Sandoe @ 2000-07-21 14:37 UTC (permalink / raw)
  To: Michel Dänzer; +Cc: Josh Huber, linuxppc-dev


On  Fri, Jul 21, 2000,  Michel Dänzer wrote:
> Iain Sandoe schrieb:
>> Thu, Jul 20, 2000,  Josh Huber wrote:
>> > On Thu, Jul 20, 2000 at 10:19:54AM +0100, Iain Sandoe wrote:
>> >>
>> > [snip]
>> >>
>> >> It is *vital* to make sure that there is a symlink named 'linux' in
>> >> /usr/src that points to your /usr/src/your-kernel-foo-bar/ because there
>> >> are symlinks in /usr/include that expect to use this to find the
>> >> build-specific headers.
>> >
>> > A couple notes:
>> >
>> > You don't have to put your kernel in /usr/src, and you DON'T have to
>> > symlink /usr/src/linux to it before you build.  The symlinks (on
>> > broken RedHat derivatives) in /usr/include should point to the kernel
>> > headers that your libc was built againt, otherwise you risk breaking
>> > binary compatibility.
>>
>> I guess I *must* have one of those broken derivatives... and it doesn't work
>> for me without that step...  Admittedly, this is mostly an issue between
>> 2.2.xx and 2.4.0 - but I do have to remember to change it back between
>> whiles... a better way would be ?
>
> Have you tried 'make mrproper' (backup your .config ;), put back the old
> config, then 'make oldconfig dep vmlinux'? AFAIK the directory where the tree
> resides only matters after make dep, and the connection is untied with make
> mrproper.

Well, I *usually* do  (on average once a day..):
save .config
make mrproper
restore .config
make menuconfig (just to check out that I'm certain of the conditions for
*this* compile :)
make dep vmlinux.... etc.

However, I'm not immune from 'finger trouble' ;-)

Next time I do a 2.4.0 build I'll note more carefully what I do and see what
happens... I'm concentrating on IRQ stuff on 2.2.17 until prob. Sunday.

Thanks for the suggestions,
Iain.

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 12+ messages in thread
* Re: problems about __cli()
@ 2000-07-20  9:19 Iain Sandoe
  2000-07-20 12:55 ` Josh Huber
  2000-07-20 13:36 ` Michael Schmitz
  0 siblings, 2 replies; 12+ messages in thread
From: Iain Sandoe @ 2000-07-20  9:19 UTC (permalink / raw)
  To: Rolf Liu, linuxppc-dev


Hi Rolf,

 Thu, Jul 20, 2000, Rolf Liu wrote:
> I am currently compiling the kernel 2.2.13.
> A problem occours, it said the "__cli() is not defined".
> I wonder where the __cli() is defined in the kernel tree, which file is it
> in ?
> thanks a  lot.

(at 2.2.17preZZ - any reason for using 2.2.13?)

Where "your-kernel-foo-bar" is the source tree you are working with:

__cli() is defined in:

/usr/src/your-kernel-foo-bar/include/asm-ppc/system.h

asm-ppc is symlinked to /usr/src/your-kernel-foo-bar/include/asm by the
build process.

the function is implemented in:

/usr/src/your-kernel-foo-bar/arch/ppc/kernel/misc.S

It is *vital* to make sure that there is a symlink named 'linux' in /usr/src
that points to your /usr/src/your-kernel-foo-bar/ because there are symlinks
in /usr/include that expect to use this to find the build-specific headers.

hope this helps,
Iain.

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 12+ messages in thread
* problems about __cli()
@ 2000-07-20  7:29 Rolf Liu
  0 siblings, 0 replies; 12+ messages in thread
From: Rolf Liu @ 2000-07-20  7:29 UTC (permalink / raw)
  To: linuxppc-dev


Hi, all
I am currently compiling the kernel 2.2.13.
A problem occours, it said the "__cli() is not defined".
I wonder where the __cli() is defined in the kernel tree, which file is it
in ?
thanks a  lot.

Rolf Liu
Software Center Motorola China
Global Software Division, Motorola,Inc.
No 2 Dong San Huan Nan Lu (7th Floor)
Chao Yang District, Beijing 100022, P. R. China
Email: rolfl@sc.mcel.mot.com
Phone: 86-10-65642023            Fax: 86-10-65668458
-----------------------------------------------------------------
[  ] General Business Information
[  ] Motorola Internal Use Only
[  ] Motorola Confidential Proprietary


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

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

end of thread, other threads:[~2000-07-24 15:01 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-07-20 13:45 problems about __cli() Iain Sandoe
2000-07-20 15:44 ` Josh Huber
2000-07-22 14:10   ` Geert Uytterhoeven
2000-07-22 18:11     ` Martin Costabel
2000-07-24 12:19       ` Josh Huber
2000-07-24 15:01         ` Jeff Garzik
2000-07-21 14:15 ` Michel Dänzer
  -- strict thread matches above, loose matches on Subject: below --
2000-07-21 14:37 Iain Sandoe
2000-07-20  9:19 Iain Sandoe
2000-07-20 12:55 ` Josh Huber
2000-07-20 13:36 ` Michael Schmitz
2000-07-20  7:29 Rolf Liu

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).