LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   make: *** No rule to make target `install-headers'. Stop. (https://www.linuxquestions.org/questions/linux-newbie-8/make-%2A%2A%2A-no-rule-to-make-target-%60install-headers%27-stop-733554/)

NightHorse 06-17-2009 04:17 AM

make: *** No rule to make target `install-headers'. Stop.
 
I am trying to build crosstool for old i386 Target. I was using this site as a reference. I have run in different issues with wrong version numbers when downloading from ftp servers. but i solved that all by editing the script files.

Now I am getting this error:

Quote:

make: *** No rule to make target `install-headers'. Stop.
I have looked on the script files for the line that made the error and it was:

Quote:

make cross-compiling=yes install_root=${SYSROOT} CFLAGS=-DBOOTSTRAP_GCC $GLIBC_SYSROOT_ARG install-headers
I have searched for what install-headers means but got nothing. I also searched for something with that name in all script files but I only got that line I posted above.

Now I have no clue what that problem means nor what to do.

That is one part of my continuous trials to build a cross compiler for i486sx system.

If anyone need more info just let me know.

Ahh am using Ubuntu 9.04 And gcc (gcc version 4.3.2 (Ubuntu 4.3.2-1ubuntu12))

jdkaye 06-17-2009 04:30 AM

Could it be that you need the headers for the kernel of the "old i386 Target"?
cheers,
jdk

NightHorse 06-17-2009 05:53 AM

ummm, Does it mean I need to recompile the kernel for the old i386?? And if so how can he knows which kernel to use since am gonna have 2 kernels??

jdkaye 06-17-2009 06:18 AM

Quote:

Originally Posted by NightHorse (Post 3576942)
ummm, Does it mean I need to recompile the kernel for the old i386?? And if so how can he knows which kernel to use since am gonna have 2 kernels??

You've lost me there. I'll shut up and maybe somebody else can help.
sorry about that.
jdk

NightHorse 06-17-2009 06:23 AM

It's ok jdkaye. Thanks a lot for help.

NightHorse 06-18-2009 01:19 AM

ok, I have been digging and found out what header it meant. It's glibc headers. Here is where it fails.

Quote:

Install glibc headers needed to build bootstrap compiler -- but only if gcc-3.x
checking build system type... x86_64-unknown-linux-gnu
checking host system type... i386-unknown-linux-gnu
configure: running configure fragment for add-on linuxthreads
I have searched for install-headers in Maefile in glibc dir in crosstool build dir and found that line:
Quote:

install-headers: install-headers-nosubdir
What install-headers-nosubdir means??? I haven't found any other instants of it in the MAkefile. !

NightHorse 06-18-2009 06:46 AM

Ok. I have fixed it. Played around in the scripts. changed the versions of (gcc, glibc, kernel, binutils...) and it worked. Faced several problems but i did workarounds so far. I still face more problems. But I never know till I get them. It takes so long to be compiled. :s

I will post again if i faced more problems. or if i got it done.

NightHorse 06-18-2009 07:49 AM

Welcome again. didn't take much to get another error. lol

Quote:

checking installed Linux kernel header files... 2.0.10 or later
checking for kernel header at least 2.6.27.11... too old!
configure: error: *** The available kernel headers are older than the requested
*** compatible kernel version
But the host kernel is 2.6.27 .. I have no clue where did he get 2.6.11

The 2.6.7.11 is the kernel he downloaded in the script not my host kernel. I am sure cause i changed it several times and checked the output. Any thoughts?

NightHorse 06-21-2009 12:54 AM

ok. I got it done. used same kernel version from another script. Now I have to dig a bit to know how can I work with it.

NightHorse 06-21-2009 05:16 AM

ok. I got it done. used same kernel version from another script. Now I have to dig a bit to know how can I work with it. LoL


All times are GMT -5. The time now is 09:21 PM.