Help - Search - Members - Calendar
Full Version: Compiling Gforth On Z
OESF Forums > Distros, Development, and Model Specific Forums > Everything Development > Linux Applications
Meyer
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.
inode0
QUOTE(Meyer @ Sep 13 2005, 05:54 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.

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
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.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2014 Invision Power Services, Inc.