[tlbuild] icu build fails on FreeBSD-5/i386: problem with pthread lib?

Nikola Lečić nikola.lecic at anthesphoria.net
Tue Mar 23 20:15:26 CET 2010

On Tue, Mar 23, 2010 at 06:10:08PM +0100
  in <alpine.LNX.2.00.1003231749470.11240 at pcl321.mppmu.mpg.de>
  Peter Breitenlohner <peb at mppmu.mpg.de> wrote:

> On Tue, 23 Mar 2010, Nikola Lecic wrote:
> > (Anyway, any use of -lpthread is incorrect on FreeBSD; -pthread should
> > be use instead. The official port (devel/icu4) treats icu sources like
> > this:
> > 1. patches config/mh-bsd-gcc to use PTHREAD_CFLAGS as THREADSCPPFLAGS,
> >   which defaults to nothing, e.g. -D_REENTRANT is removed;
> Can you patch your working copy accordingly and try if that works?

I tried, there is no difference regarding binaries used during the build --
the segmentation faults still occur.

> Why has this not been reported back to the ICU people? Or has it?

I am not aware that such a report has been made for this particular version.
Anyway, icu4 did not exist in the time of FreeBSD-5 and the current version
of icu4 that is maintained in FreeBSD Ports tree is 4.3.3. This means
that it is safe to say that not many people try to build icu-4.2.1 in
5-STABLE world.

> > 3. use '--enable-threads=no' or '--enable-weak-threads' depending on
> >   user's settings.)
> maybe we should always use that when building ICU.  For the moment, can you
> try to add '--disable-threads' (or '--enable-threads=no') at the top-level
> and see what happens.

Isn't that the purpose of TL_CONF_THREADS variable in Build? 
> > What can be done here? Is linking to pthread lib necessary or
> > intentional?
> I don't think we need threaded ICU libraries for TeX Live.

Can you try to disable -lpthread for icu *binaries*? Tweaking mh-bsd-gcc
and passing --disable-threads through TL_CONF_THREADS seem to have no
effect on this particular part of the build process.

Best wishes,
Nikola Lečić = Никола Лечић
fingerprint : FEF3 66AF C90E EDC3 D878  7CDC 956D F4AB A377 1C9B
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 314 bytes
Desc: not available
URL: <http://tug.org/pipermail/tlbuild/attachments/20100323/4f701e53/attachment.bin>

More information about the tlbuild mailing list