This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: glibc can not be installed anywhere than in /usr


Jean-Michel, All,

[Sorry for the dupe]

On Wednesday 08 June 2011 11:23:15 Jean-Michel Hautbois wrote:
> 2011/6/8 Yann E. MORIN <yann.morin.1998@anciens.enib.fr>:
> > On Monday 06 June 2011 21:07:28 Jean-Michel Hautbois wrote:
> >> I am now trying to make a cross compiler, and it also asks me for
> >> removing the /usr/include/limits.
> >
> > You must not set CT_PREFIX_DIR to '/'. By default, crosstool-NG will
> > try to remove that directory.
> 
> It is not set to '/'. It is set to a /home/... directory.

OK, I just hit this issue myself, and had a real hard time debugging it...
I just googled for:
  site:sourceware.org glibc cannot remove /usr/include/limits.h

(I did limit to sourceware.org to search this ML archives, just in case.)

First pointer is:
  http://sourceware.org/ml/crossgcc/2010-11/msg00043.html

In there, Khem Raj said:
  Are you using make 3.82 by any chance ?

Huho... Rings a bell here. My Debian Squeeze comes with 3.81, I'm pretty
sure of that. Let's check it:
  $ make --version
  GNU Make 3.82
  $ which make
  /opt/make/bin/make

Haha! :-) I did install that make a few days ago to test things, but was
preempted in the meantime, and forgot about it. Sigh.

Removing it makes the issue disapear. Sigh, again...

Please, check your make version. If it is 3.82, a quick *workaround* is to
ask crosstool-NG to build make-3.81 for you, and it will be used only for
this build session. If you want a more permanent *workaround*, build your
own make-3.81, and install it so it takes precedence of 3.82. If you want
a definitive *fix*, then that'd require a patch to glibc... :-/

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  _               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

--
For unsubscribe information see http://sourceware.org/lists.html#faq


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]