Bug 92401 - make check fails on AIX: FAIL: test-bz89617
Summary: make check fails on AIX: FAIL: test-bz89617
Status: RESOLVED MOVED
Alias: None
Product: fontconfig
Classification: Unclassified
Component: conf (show other bugs)
Version: 2.11
Hardware: PowerPC All
: medium normal
Assignee: fontconfig-bugs
QA Contact: Behdad Esfahbod
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-10 16:20 UTC by Michael Felt
Modified: 2018-08-20 21:50 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Michael Felt 2015-10-10 16:20:05 UTC
============================================================================
See test/test-suite.log
Please report to https://bugs.freedesktop.org/enter_bug.cgi?product=fontconfig
============================================================================

root@x064:[/data/prj/freedesktop/fontconfig/fontconfig-2.11.94]ls -l test/test-suite.log
-rw-r--r--   1 root     system          314 Oct 10 2015  test/test-suite.log
root@x064:[/data/prj/freedesktop/fontconfig/fontconfig-2.11.94]cat test/test-suite.log
=============================================
   fontconfig 2.11.94: test/test-suite.log
=============================================

# TOTAL: 2
# PASS:  1
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0

.. contents:: :depth: 2

FAIL: test-bz89617
==================

FAIL test-bz89617 (exit status: 1)

Looking further:

int
main (void)
{
    FcConfig *config = FcConfigGetCurrent ();

    if (!FcConfigAppFontAddFile (config, SRCDIR "/4x6.pcf") ||
        FcConfigAppFontAddFile (config, "/dev/null"))
        return 1;

    return 0;
}

and

The file 4x6.pcf is present

root@x064:[/data/prj/freedesktop/fontconfig/fontconfig-2.11.94]find . -name 4x6.pcf
./test/4x6.pcf

And SRCDIR seem to be properly defined.

root@x064:[/data/prj/freedesktop/fontconfig/fontconfig-2.11.94]grep SRCDIR test/*
test/Makefile:  -DSRCDIR="\"$(abs_srcdir)\""
test/Makefile.am:       -DSRCDIR="\"$(abs_srcdir)\""
test/Makefile.in:       -DSRCDIR="\"$(abs_srcdir)\""
test/test-bz89617:relink_command="(cd /data/prj/freedesktop/fontconfig/fontconfig-2.11.94/test; { test -z \"\${LIBPATH+set}\" || unset LIBPATH || { LIBPATH=; export LIBPATH; }; }; PATH=/data/prj/freedesktop/fontconfig/fontconfig-2.11.94/buildaix/bin:/opt/bin:/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/usr/java14/jre/bin:/usr/java14/bin:/usr/vacpp/bin:; export PATH; xlc_r -DSRCDIR=\\\"/data/prj/freedesktop/fontconfig/fontconfig-2.11.94/test\\\" -I/opt/include -I/opt/buildaix/include -O2 -D_THREAD_SAFE -o \$progdir/\$file test_bz89617-test-bz89617.o  -L/opt/lib -L../src/.libs -lfontconfig -lfreetype -lz -lpthreads -Wl,-blibpath:/data/prj/freedesktop/fontconfig/fontconfig-2.11.94/src/.libs:/opt/lib:/opt/lib:/usr/vac/lib:/usr/lib:/lib)"
test/test-bz89617.c:    if (!FcConfigAppFontAddFile (config, SRCDIR "/4x6.pcf") ||

So, suggestions welcome - as far as howto correct make check is concerned.

FYI #1:
* running test on NFS server - not that should make a difference imho - but sometimes it has.

FYI #2:
* after running 'make distclean' ./configure + make fails with:
...
make[2]: Leaving directory '/data/prj/freedesktop/fontconfig/fontconfig-2.11.94/fontconfig'
Making all in fc-blanks
make[2]: Entering directory '/data/prj/freedesktop/fontconfig/fontconfig-2.11.94/fc-blanks'
  GEN      fcblanks.h
Traceback (most recent call last):
  File "./fc-blanks.py", line 5, in <module>
    from lxml import html
ImportError: No module named lxml
Makefile:593: recipe for target 'fcblanks.h' failed
make[2]: *** [fcblanks.h] Error 1
make[2]: Leaving directory '/data/prj/freedesktop/fontconfig/fontconfig-2.11.94/fc-blanks'
Makefile:579: recipe for target 'all-recursive' failed
...

A fresh tarball configures and makes with no crippling issues OR unpack the tarball again into directory and make succeeds (I am guessing that fc-blapks.py is restored).

FYI #3
While make install works fine - when not already installed DESTDIR=xxx make install fails UNLESS make install is run first.

WITHOUT 'make install' first - the result looks something like this:
/opt/bin/make install DESTDIR=/var/aixtools/freedesktop/fontconfig/2.11.94.0
- but I shall post this as a bug in a moment. Now that I have looked at the output.
Comment 1 Akira TAGOH 2015-10-13 02:46:22 UTC
(In reply to Michael Felt from comment #0)
>     if (!FcConfigAppFontAddFile (config, SRCDIR "/4x6.pcf") ||
>         FcConfigAppFontAddFile (config, "/dev/null"))

You better check which call was actually failed. unfortunately I can't reproduce this error here. so need more information and investigation from your side.

> FYI #3
> While make install works fine - when not already installed DESTDIR=xxx make
> install fails UNLESS make install is run first.
> 
> WITHOUT 'make install' first - the result looks something like this:
> /opt/bin/make install DESTDIR=/var/aixtools/freedesktop/fontconfig/2.11.94.0
> - but I shall post this as a bug in a moment. Now that I have looked at the
> output.

What did you actually run and what's the expected behavior? and what's the error message from make?
Comment 2 Michael Felt 2015-10-16 17:47:00 UTC
make install DESTDIR=/var/aixtools/freedesktop/fontconfig/2.11.94.0

I posted more details, I thought. However, I am not able to connect to that system atm. Will report more detail, verbose, asap.
Comment 3 Akira TAGOH 2015-10-20 01:50:09 UTC
(In reply to Akira TAGOH from comment #1)
> (In reply to Michael Felt from comment #0)
> >     if (!FcConfigAppFontAddFile (config, SRCDIR "/4x6.pcf") ||
> >         FcConfigAppFontAddFile (config, "/dev/null"))
> 
> You better check which call was actually failed. unfortunately I can't
> reproduce this error here. so need more information and investigation from
> your side.

Any comments for this?
Comment 4 Michael Felt 2015-10-23 13:17:58 UTC
Not yet. I have been away from my build systems.

As I do not know the tests - do you have a suggestion on how to proceed.

re: what did I run - make check

And I included, as best I could, the code I thought that was being executed - namely -

FAIL test-bz89617 (exit status: 1)

Looking further:

int
main (void)
{
    FcConfig *config = FcConfigGetCurrent ();

    if (!FcConfigAppFontAddFile (config, SRCDIR "/4x6.pcf") ||
        FcConfigAppFontAddFile (config, "/dev/null"))
        return 1;

    return 0;
}

Is it also correct that there are only two tests?
Comment 5 GitLab Migration User 2018-08-20 21:50:18 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/fontconfig/fontconfig/issues/75.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.