LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Need help building x86_64 Cross compiler on x86 linux (Red Hat) (https://www.linuxquestions.org/questions/linux-software-2/need-help-building-x86_64-cross-compiler-on-x86-linux-red-hat-450561/)

torque_dwf 06-01-2006 08:50 AM

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

TheBrick 06-01-2006 10:00 AM

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!

torque_dwf 06-01-2006 10:05 AM

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!

TheBrick 06-01-2006 10:23 AM

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

Mandar123 01-08-2009 03:37 AM

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.


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