Latte logo

Latte home

User manual

API manual



Latte News


Build notes



Latte build notes

If you have problems building Latte, or even if you don't, we'd love to hear about your experience. Please let us know how it goes.

Building Latte from source requires a C++ compiler and the C++ "STL" library (which is included with modern C++ compilers).

Latte is known to trigger fatal compiler errors under g++ 2.8.1 on some platforms. On others, it may be necessary to disable the optimizer (the -O flag) in order to make the compiler work properly. The setting of the CXXFLAGS environment variable will override the default compiler flags; set CXXFLAGS before running configure.

Line 123 of the file closure.cxx in Latte 2.0 causes a compiler error with gcc 2.95. The line in question is:

      throw Useless(*this, (tangible ? *tangible : loc));

To solve the problem, change that line to:

      throw Useless(*this, (tangible ? tangible->fileloc() : loc));

This is fixed in Latte 2.1.

The file definitions.cxx appears to trigger a fatal compiler bug in gcc; specifically, in references to Latte_List::const_iterator operations in DefOp::apply().

If during "make check" the test undefined-x fails, you probably need to upgrade to a newer version of the "binutils" package (that includes the programs ld, as, and others). This problem also manifests as a core dump in some situations where Latte should report an error, such as referring to an undefined variable.

When building an RPM distribution of latte, note that for maximum portability you should "make LDFLAGS=-all-static latte-rpm" to create a static-linked latte-html. However, this disables distribution of

Latte is known to compile and run successfully on these platforms:

  • i686-linux 2.2.5, egcs 2.91.66
  • i586-linux 2.0.33, egcs 2.90.27
  • i686-linux 2.0.33, egcs 2.90.29
  • i686-linux 2.0.35, egcs 2.90.27
  • sparc-sunos 5.5.1, gcc 2.7.2 (no -O)
  • sgi-irix 6.2, gcc 2.8.1 (with -O2 -g)
  • ppc-linux 2.0.33, egcs 2.90.25

Latte passes all tests except error-handling on this platform:

  • sgi-irix 6.2, gcc 2.7.2.x (GNU make, no -O)

This document was produced by Latte from the file buildnotes.latte (with extra definitions from style.latte).

Copyright © 1998,1999 Zanshin, Inc.