make distcheck fails

Issue #54 resolved
Pierre Joye created an issue
gcc: libgdtest.a: No such file or directory
make[3]: *** [gd2/gd2_empty_file] Error 1
make[3]: Leaving directory `/home/pierre/repo/gd-libgd/gd-2.1.0/_build/tests'
make[2]: *** [check-am] Error 2
make[2]: Leaving directory `/home/pierre/repo/gd-libgd/gd-2.1.0/_build/tests'
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory `/home/pierre/repo/gd-libgd/gd-2.1.0/_build'
make: *** [distcheck] Error 1

Comments (8)

  1. Mike Frysinger

    right, i'm running make distcheck and it's working. also tried make distcheck -j4.

    can you attach the full build log ? and what version of autoconf/automake/libtool are you using ?

  2. Marcin Wojdyr

    I got the same

    Making check in tests
    make[2]: Entering directory `/home/wojdyr/fresh/gd-libgd/build/gd-2.1.0/_build/tests'
    make  gd2/gd2_empty_file gdimagesetpixel/bug00186 gdimagestringftex/gdimagestringftex_returnfontpathname gdimageline/gdimageline_aa_outofrange gdimagerectangle/bug00003 gdimagerectangle/bug00106_gdimagerectangle gd/gd_null gd/gd_num_colors tga/tga_null gdimagepixelate/gdimagepixelate gdimagecopy/bug00007 gdnewfilectx/gdnewfilectx_null gdimagefilledrectangle/bug00078 gdimagefilledrectangle/bug00004 gdimagefilledrectangle/bug00106_gdimagefilledrectangle gdimagecolordeallocate/gdimagecolordeallocate wbmp/wbmp_null gdimagecolortransparent/gdimagecolortransparent gif/bug00005_2 gif/gif_null gif/bug00181 gif/bug00227 bmp/bmp_null xpm/bug00185 xpm/color_name xpm/bug00166 jpeg/jpeg_empty_file jpeg/jpeg_im2im jpeg/jpeg_null jpeg/jpeg_resolution jpeg/jpeg_read gd2/gd2_null gd2/gd2_read gd2/gd2_im2im gdtiled/bug00032 gdimagestringft/gdimagestringft_bbox gdimagearc/bug00079 gdimageline/gdimageline_aa gdimageline/bug00072 gdimageline/bug00077 gdimageline/bug00111 gdimageopenpolygon/gdimageopenpolygon2 gdimageopenpolygon/gdimageopenpolygon1 gdimageopenpolygon/gdimageopenpolygon0 gdimageopenpolygon/gdimageopenpolygon3 gd/gd_im2im gdimagecopy/bug00081 gdimagecopyrotated/bug00020 gdimagepolygon/gdimagepolygon0 gdimagepolygon/gdimagepolygon3 gdimagepolygon/gdimagepolygon1 gdimagepolygon/gdimagepolygon2 gdimagecolorresolve/gdimagecolorresolve gdimagefilledpolygon/gdimagefilledpolygon0 gdimagefilledpolygon/gdimagefilledpolygon3 gdimagefilledpolygon/gdimagefilledpolygon2 gdimagefilledpolygon/gdimagefilledpolygon1 gdimagefilledpolygon/bug00100 gdimagecolorreplace/gdimagecolorreplace gdimagefill/bug00002_2 gdimagefill/bug00002_1 gdimagefill/bug00002_4 gdimagefill/bug00002_3 gdimagecolorclosest/gdimagecolorclosest gif/bug00005 gif/gif_im2im gif/bug00066 gif/bug00006 gif/bug00060 gdimagecolorexact/gdimagecolorexact gdimagefilledellipse/bug00191 gdimagefilledellipse/bug00010 png/png_null png/bug00033 png/bug00193 png/bug00011 png/bug00088 png/png_resolution png/bug00086 png/png_im2im wbmp/wbmp_im2im bmp/bmp_im2im gdimagescatterex/bug00208_1 gdimagescatterex/bug00208_2 gdimagefilltoborder/bug00037 tiff/tiff_null tiff/tiff_im2im 
    make[3]: Entering directory `/home/wojdyr/fresh/gd-libgd/build/gd-2.1.0/_build/tests'
    gcc -DHAVE_CONFIG_H -I. -I../../tests -I../src  -I../../src -I ../../tests/gdtest -I/usr/include/libpng15   -I/usr/include/freetype2    -g -O2 -fvisibility=hidden -MT gd2_empty_file.o -MD -MP -MF .deps/gd2_empty_file.Tpo -c -o gd2_empty_file.o `test -f 'gd2/gd2_empty_file.c' || echo '../../tests/'`gd2/gd2_empty_file.c
    mv -f .deps/gd2_empty_file.Tpo .deps/gd2_empty_file.Po
    /bin/sh ../libtool --tag=CC   --mode=link gcc  -g -O2 -fvisibility=hidden   -o gd2/gd2_empty_file gd2_empty_file.o ../src/libgd.la libgdtest.a -ltiff -lXpm -ljpeg -lfontconfig -lz -lm  -lpng15   -lfreetype  
    libtool: link: gcc -g -O2 -fvisibility=hidden -o gd2/.libs/gd2_empty_file gd2_empty_file.o  ../src/.libs/libgd.so libgdtest.a -ltiff -lXpm -ljpeg -lfontconfig -lz -lm -lpng15 -lfreetype -Wl,-rpath -Wl,/home/wojdyr/fresh/gd-libgd/build/gd-2.1.0/_inst/lib
    gcc: error: libgdtest.a: No such file or directory
    make[3]: *** [gd2/gd2_empty_file] Error 1
    make[3]: Leaving directory `/home/wojdyr/fresh/gd-libgd/build/gd-2.1.0/_build/tests'
    make[2]: *** [check-am] Error 2
    make[2]: Leaving directory `/home/wojdyr/fresh/gd-libgd/build/gd-2.1.0/_build/tests'
    make[1]: *** [check-recursive] Error 1
    make[1]: Leaving directory `/home/wojdyr/fresh/gd-libgd/build/gd-2.1.0/_build'
    make: *** [distcheck] Error 1
    

    Somehow libgdtest.a landed in the source dir, not in build dir

    [wojdyr@dt _build]$ find .. -name libgdtest.a
    ../tests/libgdtest.a
    

    autoconf 2.69, automake 1.12.2, libtool 2.4.2

    BTW "make dist" doesn't include 3 files needed for building with cmake: src/config.h.cmake and src/*.cxx

  3. Marcin Wojdyr

    Thanks! "make dist" still doesn't include 3 files needed for building with cmake: src/config.h.cmake and src/*.cxx

  4. Log in to comment