
Hi All, I am trying to cross-compile YHC to the ARM7 using the arm-elf-gcc compiler. In particular I am just running a basic compile and link of all the source code in the Yhi kernel folder (starting with main.c). My question is regarding the config.h file, as I am getting errors that say that config.h is not the right version. Is it possible to use the config.htemplate file in the root folder of YHC? If I use the configure script to generate config.h, does anyone know what the params should be for targetting arm-elf-gcc? Thanks

My question is regarding the config.h file, as I am getting errors that say that config.h is not the right version. Is it possible to use the config.h template file in the root folder of YHC?
Hi. I once tried to port yhi to arm7 too. I remember that I use the origin config.h file, with only a few configuration fields modified. Compiling goes well. But I failed when linking, because shared library is not supported on the target system. I wish if anyone could help me, though actually I have giving up doing that thing. Is SHARED LIBRARY REQUIRED by yhi?

Hi Alexis, Usually the config.h in the root folder is autogenerated by scons, but since you're cross compiling easiest thing is probably to edit it by hand. It's not too complicated, just deciding the sizes of various types and what libraries are available. The scons file for compiling yhi automatically puts the root folder in as an include path, so you'll probably want to do the same with your makefile or whatever. As for the issue of shared libraries, raised by someone else, no they aren't strictly necessary, indeed I'll add a patch to optionally remove them (should take about 2 minutes). Hope that helps Tom Alexis Morris wrote:
Hi All,
I am trying to cross-compile YHC to the ARM7 using the arm-elf-gcc compiler. In particular I am just running a basic compile and link of all the source code in the Yhi kernel folder (starting with main.c).
My question is regarding the config.h file, as I am getting errors that say that config.h is not the right version. Is it possible to use the config.h template file in the root folder of YHC?
If I use the configure script to generate config.h, does anyone know what the params should be for targetting arm-elf-gcc?
Thanks
------------------------------------------------------------------------
_______________________________________________ Yhc mailing list Yhc@haskell.org http://www.haskell.org/mailman/listinfo/yhc

Wonderfull!!! :-) So straightforward. And I can pick up my plan again.
Thank you very much.
2007/6/26, Thomas Shackell
Thomas Shackell wrote:
As for the issue of shared libraries, raised by someone else, no they aren't strictly necessary, indeed I'll add a patch to optionally remove them (should take about 2 minutes).
Done :-) Uncomment
#define NO_SHARED
in platform.h
Tom
_______________________________________________ Yhc mailing list Yhc@haskell.org http://www.haskell.org/mailman/listinfo/yhc

Hi Tom,
Thanks for the updates and the clarification about config.h.
Cheers
On 6/26/07, pierric
Wonderfull!!! :-) So straightforward. And I can pick up my plan again. Thank you very much.
2007/6/26, Thomas Shackell
: Thomas Shackell wrote:
As for the issue of shared libraries, raised by someone else, no they aren't strictly necessary, indeed I'll add a patch to optionally remove them (should take about 2 minutes).
Done :-) Uncomment
#define NO_SHARED
in platform.h
Tom
_______________________________________________ Yhc mailing list Yhc@haskell.org http://www.haskell.org/mailman/listinfo/yhc
_______________________________________________ Yhc mailing list Yhc@haskell.org http://www.haskell.org/mailman/listinfo/yhc
-- </Alexis>
participants (3)
-
Alexis Morris
-
pierric
-
Thomas Shackell