Build Problems

Ehc

Wrongly built library

Symptom

When building ehc a build error like the following is encountered:
build/100/ehclib/ehcbase/EHC/Prelude.o:(.data+0x1e1e4): undefined reference to 
`gb_primUnsafeId'
This usually means that an internal library is wrongly built, in this case the runtime library. Its size should be significantly more than zero, as is the case for a build of variant 100:
[ravel:EHC/trunk/EHC] atze% ls -l install/100/lib/libEH-RTS.a
-rw-r--r--   1 atze  admin  46804 Nov 13 11:27 install/100/lib/libEH-RTS.a

Solution

Whenever possible 'libtool' is used to build libraries, but its interface varies across platforms. Its use can be switched of and replaced by lower level use of 'ld' and 'ar' by setting the configure variable 'libtoolStatic' in configure.ac:
libtoolStatic="no"
Rerun 'autoconf' and 'configure". Please let us know for which host platform you have changed this, so we can incorporate this in the development sources.

-- AtzeDijkstra - 14 Nov 2007