LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 11-14-2008, 11:05 AM   #1
krizzz
Member
 
Registered: Oct 2004
Location: NY
Distribution: Slackware
Posts: 200

Rep: Reputation: 30
Crosstool problem


Hi,

I'm using crosstool to generate toolchains for my target platform. I started experiencing weird problem with the latest glibc, kernel and others.
Basically, the process fails with the error saying that it was unable to find include/asm-i368. I have some friends who are being bothered by the same issue. Anyone experienced the same/managed to solve it? My target platform is regular i686.

Best,
Chris

Last edited by krizzz; 11-14-2008 at 11:06 AM.
 
Old 11-14-2008, 02:27 PM   #2
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
Do you have a link from asm-i386 to just plain asm? This is the way it is usually setup.
 
Old 11-14-2008, 04:25 PM   #3
krizzz
Member
 
Registered: Oct 2004
Location: NY
Distribution: Slackware
Posts: 200

Original Poster
Rep: Reputation: 30
I compared the kernel source tree that I was using previously (2.6.18.1) with the one that I'm using now (2.6.24.1) and it seems that the there is no asm-i386 subdirectory in the include directory. There's is asm-x86 though. I guess it should be ok to create the asm-i386 link that points to asm-x86 ?
 
Old 11-14-2008, 04:58 PM   #4
pinniped
Senior Member
 
Registered: May 2008
Location: planet earth
Distribution: Debian
Posts: 1,732

Rep: Reputation: 50
Quote:
Originally Posted by krizzz View Post
I guess it should be ok to create the asm-i386 link that points to asm-x86 ?
I believe that is the case; in the past year a lot of work was done to merge the asm-i386 and asm-x86_64 code (after all, why can't 386 be handled as a subset of AMD64). I remember an lkml post a few moths ago about some cleanup being done, so that merge may have been completed by now. (Do you dare search the lkml archive?)

Anyway, the definitive test is to go into the asm-x86 directory and grep for the following: 386 486 585 686 AMD64 x86_64
If they all show something then you do have merged code.

What instructions are you following for cross-tools? Obviously something is outdated if it is referring to asm-i386 when you have a kernel source that does not have that. It is possible that the problem is with the "sanitized" headers - in which case you need to configure and compile a kernel just to get the sanitized headers; fortunately you can build the kernel for your existing system to get the headers you need. Unfortunately there doesn't seem to be an option to generate the headers only; or at least it's not documented when you type 'make help'.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ARM crosstool chain thirumalesh Linux - Embedded & Single-board computer 9 06-06-2008 01:07 PM
crosstool usage gobi_dgm Linux - Software 8 09-19-2006 12:02 AM
perl problem? apache problem? cgi problem? WorldBuilder Linux - Software 1 09-17-2003 07:45 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration