LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 06-01-2006, 09:50 AM   #1
torque_dwf
LQ Newbie
 
Registered: Aug 2005
Location: Upstate NY
Posts: 3

Rep: Reputation: 0
Need help building x86_64 Cross compiler on x86 linux (Red Hat)


Hi All, firts post, not a total newbie to linux but have not done much in the building of linux guts just using comercial distrbutions.

We have a build machine that is a P-4 red hat enterprise 3
machine that we want to be able to build x86_64 for AMD64 EMT64 platforms on that machine. I have been trying to build a cross compiler based on GCC 3.3.6 binutuils 2.16 and glibc 2.4 I have (Finally apparently succesfully) built them all but it seems as though a lot of the std lib headers are not there. Am I missing a library?

Any advice will be greatly appreciated.

Thanks, Dan Ferguson
 
Old 06-01-2006, 11:00 AM   #2
TheBrick
Member
 
Registered: Mar 2006
Location: London
Distribution: SUSE 10.0 Home soon to go (no internet conection), gentoo laptop, slack on development box
Posts: 81

Rep: Reputation: 15
Do you mean once you have compiled a program and then try and run it on your 64 bit machine it complains about not having the headers? If so I have had a similar problem and find adding this
-Wl,-rpath= pathtocompilerlib
to your make file or on the comanline when you compile the program sorts out these problems -Wl passes a comand diectly to the linker which hence should remove missing header file problems. Your header files shoould be in a sub dir where you installed the cross compiler. If that is not your problem sorry that all I know!
 
Old 06-01-2006, 11:05 AM   #3
torque_dwf
LQ Newbie
 
Registered: Aug 2005
Location: Upstate NY
Posts: 3

Original Poster
Rep: Reputation: 0
Have lib dirs in makefile

No I have the lib directories in the makefile but there are only a few files in include driectories installed by glibc:
emmintrin.h
float.h
iso646.h
limits.h
mmintrin.h
pmmintrin.h
stdarg.h
stdbool.h
stddef.h
syslimits.h
unwind.h
varargs.h
xmmintrin.h

My code is including a lot more files than that and I thought the std C lib would have at least stdio.h, iostream.h etc. where are they?

Thanks!
 
Old 06-01-2006, 11:23 AM   #4
TheBrick
Member
 
Registered: Mar 2006
Location: London
Distribution: SUSE 10.0 Home soon to go (no internet conection), gentoo laptop, slack on development box
Posts: 81

Rep: Reputation: 15
Short of locate iostream.h to see if they are hidden any where on your system I don't know I am afraid. I would agree though that the standard libary should incluide iostream.h, if it's dosen't it's not very standard! Sorry I can't help any more it was just an off chance that I was able to help. I will be interested to find out what the solution is though so if you find it out on your own please post it.

Thanks

T
 
Old 01-08-2009, 04:37 AM   #5
Mandar123
LQ Newbie
 
Registered: Jan 2009
Posts: 1

Rep: Reputation: 0
Need help building x86_64 Cross compiler

Hi all,

I am newbie to Linux.
I am building cross compiler for x86_64.I followed the steps given in GCC cross compiler tutorial given on OS Wiki site.
All installation is completed successfully.
But i am getting error when compiling simple Helloworld program as -

root# x86_64-elf-gcc test.c

"/usr/cross/../../x86_64-elf/bin/ld : crt0.o no such file or directory.

Please share me what procedure/steps followed by for this installation.

for any query please revert..

Thanks,
Mandar.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Is there a Red Hat that works for x86_64? JBailey742 Red Hat 10 05-09-2006 01:29 AM
windows to linux cross-compiler back2morrie Linux - General 8 07-13-2005 04:15 AM
Building cross-compiler gcc for powerpc-linux ccool Linux - General 3 09-17-2004 07:33 AM
Cross-compiler for x86-64 ogre7299 Linux - Software 0 10-27-2003 12:27 PM
Building an ARM7 cross compiler from gcc Charlie_B Linux - Software 2 08-20-2003 09:59 AM


All times are GMT -5. The time now is 01:42 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration