Author Topic: Compiling Gforth On Z  (Read 4661 times)

Meyer

  • Jr. Member
  • **
  • Posts: 87
    • View Profile
    • http://papa.motd.org/cgi-bin/blosxom.cgi
Compiling Gforth On Z
« on: September 13, 2005, 01:54:49 pm »
Anyone else tried to compile gforth 0.6.2 on their Z using dev_img 1.5? I keep failing on the link step with "undefined reference to `fstat64'" errors in engine.o and engine2.o. I want to compile the latest version of gforth because although Skip Carter's version 0.5.0 binary on ZSI is useful, it lacks a few standard modules I need.
David Meyer, Takarazuka, Japan
1. Zaurus iGeti MI-P10-S (retired)
2. "Liza" Zaurus SL-C860, Sharp ROM 1.31 JP R.I.P.
3. "Slee 2" Zaurus SL-C860, Sharp ROM 1.40 JP (retired)
4. "iZa" Zaurus SL-C1000, Sharp ROM 1.01 JP

inode0

  • Jr. Member
  • **
  • Posts: 97
    • View Profile
Compiling Gforth On Z
« Reply #1 on: September 13, 2005, 02:23:54 pm »
Quote
Anyone else tried to compile gforth 0.6.2 on their Z using dev_img 1.5? I keep failing on the link step with "undefined reference to `fstat64'" errors in engine.o and engine2.o. I want to compile the latest version of gforth because although Skip Carter's version 0.5.0 binary on ZSI is useful, it lacks a few standard modules I need.
This sounds like the same problem I mentioned with zgcc. See if the comments in this thread solve it. I can give it a try later tonight.

John

Meyer

  • Jr. Member
  • **
  • Posts: 87
    • View Profile
    • http://papa.motd.org/cgi-bin/blosxom.cgi
Compiling Gforth On Z
« Reply #2 on: September 13, 2005, 09:47:02 pm »
Quote
The fault lies not in our gforth, but in our image_setup. -- William Geekspeare

Thanks, John. That looks like it explains my trouble.

Actually, after my initial post random surfing through the forums led me to this thread, which deals with the same problem.

Apparently the problem is not with gforth or whatever else is being built, and not that any necessary modules are missing from dev_img, but that the script image_setup.sh that comes with at least versions 1.5 and 1.6 of dev_img fails to create a number of links that are required for ld to find some of the modules.

The thread cited above includes a script that makes up for image_setup.sh's shortcomings. I ran it on my Z and can now successfully build Gforth 0.6.2.
David Meyer, Takarazuka, Japan
1. Zaurus iGeti MI-P10-S (retired)
2. "Liza" Zaurus SL-C860, Sharp ROM 1.31 JP R.I.P.
3. "Slee 2" Zaurus SL-C860, Sharp ROM 1.40 JP (retired)
4. "iZa" Zaurus SL-C1000, Sharp ROM 1.01 JP