Opened 10 years ago

Closed 10 years ago

#5346 closed defect (fixed)

parallel make issue

Reported by: opoplawski Owned by: warmerdam
Priority: normal Milestone:
Component: ConfigBuild Version: unspecified
Severity: normal Keywords:
Cc:

Description

Building with parallel make (make -j ) I saw:

(cd apps; make)
(cd swig; make build)
make[1]: Entering directory `/builddir/build/BUILD/gdal-1.10.1-fedora/swig'
for dir in python ruby perl ; do (cd $dir; make build) || exit; done
make[1]: Entering directory `/builddir/build/BUILD/gdal-1.10.1-fedora/apps'
rm -f gdal-config-inst
rm -f gdal-config
echo '#!/bin/sh' > gdal-config-inst
echo '#!/bin/sh' > gdal-config
/usr/bin/libtool --mode=compile --tag=CC gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches  -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -fpic -msse -DHAVE_SSE_AT_COMPILE_TIME  -Wall -Wdeclaration-after-statement  -I/builddir/build/BUILD/gdal-1.10.1-fedora/port -I/builddir/build/BUILD/gdal-1.10.1-fedora/gcore -I/builddir/build/BUILD/gdal-1.10.1-fedora/alg -I/builddir/build/BUILD/gdal-1.10.1-fedora/ogr -I/builddir/build/BUILD/gdal-1.10.1-fedora/ogr/ogrsf_frmts -I/builddir/build/BUILD/gdal-1.10.1-fedora/frmts -DOGR_ENABLED -I/usr/include/libgeotiff -I/builddir/build/BUILD/gdal-1.10.1-fedora/port -I/usr/include -Iexternal/include -I/usr/include/cfitsio  -c -o gdalinfo.lo gdalinfo.c
make[2]: Entering directory `/builddir/build/BUILD/gdal-1.10.1-fedora/swig/python'
python setup.py build
echo 'CONFIG_LIBS="/builddir/build/BUILD/gdal-1.10.1-fedora/libgdal.la"' >> gdal-config
echo 'CONFIG_LIBS="-L/usr/lib -lgdal"' >> gdal-config-inst
echo 'CONFIG_DEP_LIBS=" -larmadillo -lpoppler -lfreexl -L/usr/lib -lgeos_c -lwebp -lodbc -lodbcinst -lexpat -lxerces-c -lpthread -ljasper -lnetcdf  -lhdf5 -L/usr/lib/hdf -lmfhdf -ldf -lgif -ljpeg -lgeotiff -ltiff -lgta -lpng -lcfitsio -L/usr/lib -lpq -llzma -lz -lpthread -lm -lrt -ldl -lgrib2c -ldapclient -ldapserver -ldap  -lspatialite -lpcre   -lcurl        -lCharLS     -lxml2 -lz -lm -ldl -L/usr/lib/mysql -lmysqlclient -lpthread -lz -lm -lssl -lcrypto -ldl"' >> gdal-config
echo 'CONFIG_DEP_LIBS=" -larmadillo -lpoppler -lfreexl -L/usr/lib -lgeos_c -lwebp -lodbc -lodbcinst -lexpat -lxerces-c -lpthread -ljasper -lnetcdf  -lhdf5 -L/usr/lib/hdf -lmfhdf -ldf -lgif -ljpeg -lgeotiff -ltiff -lgta -lpng -lcfitsio -L/usr/lib -lpq -llzma -lz -lpthread -lm -lrt -ldl -lgrib2c -ldapclient -ldapserver -ldap  -lspatialite -lpcre   -lcurl        -lCharLS     -lxml2 -lz -lm -ldl -L/usr/lib/mysql -lmysqlclient -lpthread -lz -lm -lssl -lcrypto -ldl"' >> gdal-config-inst
echo 'CONFIG_PREFIX="/usr"' >> gdal-config-inst
echo 'CONFIG_PREFIX="/builddir/build/BUILD/gdal-1.10.1-fedora"' >> gdal-config
echo 'CONFIG_CFLAGS="-I/usr/include/gdal"' >> gdal-config-inst
echo 'CONFIG_CFLAGS="-I/builddir/build/BUILD/gdal-1.10.1-fedora/port -I/builddir/build/BUILD/gdal-1.10.1-fedora/gcore -I/builddir/build/BUILD/gdal-1.10.1-fedora/alg -I/builddir/build/BUILD/gdal-1.10.1-fedora/ogr -I/builddir/build/BUILD/gdal-1.10.1-fedora/ogr/ogrsf_frmts -I/builddir/build/BUILD/gdal-1.10.1-fedora/frmts/vrt"' >> gdal-config
running build
running build_py
creating build
creating build/lib.linux-i686-2.7
copying gdal.py -> build/lib.linux-i686-2.7
copying ogr.py -> build/lib.linux-i686-2.7
copying osr.py -> build/lib.linux-i686-2.7
echo 'CONFIG_DATA="/usr/share/gdal"' >> gdal-config-inst
libtool: compile:  gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -fpic -msse -DHAVE_SSE_AT_COMPILE_TIME -Wall -Wdeclaration-after-statement -I/builddir/build/BUILD/gdal-1.10.1-fedora/port -I/builddir/build/BUILD/gdal-1.10.1-fedora/gcore -I/builddir/build/BUILD/gdal-1.10.1-fedora/alg -I/builddir/build/BUILD/gdal-1.10.1-fedora/ogr -I/builddir/build/BUILD/gdal-1.10.1-fedora/ogr/ogrsf_frmts -I/builddir/build/BUILD/gdal-1.10.1-fedora/frmts -DOGR_ENABLED -I/usr/include/libgeotiff -I/builddir/build/BUILD/gdal-1.10.1-fedora/port -I/usr/include -Iexternal/include -I/usr/include/cfitsio -c gdalinfo.c  -fPIC -DPIC -o .libs/gdalinfo.o
copying gdalconst.py -> build/lib.linux-i686-2.7
copying gdalnumeric.py -> build/lib.linux-i686-2.7
echo 'CONFIG_VERSION="'`cat ../VERSION`'"' >> gdal-config-inst
creating build/lib.linux-i686-2.7/osgeo
copying osgeo/osr.py -> build/lib.linux-i686-2.7/osgeo
copying osgeo/gdalconst.py -> build/lib.linux-i686-2.7/osgeo
echo 'CONFIG_DATA="/builddir/build/BUILD/gdal-1.10.1-fedora/data"' >> gdal-config
copying osgeo/__init__.py -> build/lib.linux-i686-2.7/osgeo
copying osgeo/gdal.py -> build/lib.linux-i686-2.7/osgeo
echo 'CONFIG_VERSION="'`cat ../VERSION`'"' >> gdal-config
echo 'CONFIG_OGR_ENABLED=yes' >> gdal-config-inst
copying osgeo/ogr.py -> build/lib.linux-i686-2.7/osgeo
echo 'CONFIG_FORMATS="gxf gtiff hfa aigrid aaigrid ceos ceos2 iso8211 xpm sdts raw dted mem jdem envisat elas fit vrt usgsdem l1b nitf bmp pcidsk airsar rs2 ilwis rmf leveller sgi srtmhgt idrisi gsg ingr ers jaxapalsar dimap gff cosar pds adrg coasp tsx terragen blx msgn til r northwood saga xyz hf2 kmlsuperoverlay ctg e00grid zmap ngsgeoid iris map webp wcs wms dods grib jpeg2000 netcdf hdf5 hdf4 gif jpeg gta png pcraster fits  rik ozi pdf rasterlite mbtiles postgisraster jpegls arg"' >> gdal-config-inst
cat gdal-config.in >> gdal-config-inst
copying osgeo/gdalnumeric.py -> build/lib.linux-i686-2.7/osgeo
copying osgeo/gdal_array.py -> build/lib.linux-i686-2.7/osgeo
running build_ext
echo 'CONFIG_OGR_ENABLED=yes' >> gdal-config
echo 'CONFIG_FORMATS="gxf gtiff hfa aigrid aaigrid ceos ceos2 iso8211 xpm sdts raw dted mem jdem envisat elas fit vrt usgsdem l1b nitf bmp pcidsk airsar rs2 ilwis rmf leveller sgi srtmhgt idrisi gsg ingr ers jaxapalsar dimap gff cosar pds adrg coasp tsx terragen blx msgn til r northwood saga xyz hf2 kmlsuperoverlay ctg e00grid zmap ngsgeoid iris map webp wcs wms dods grib jpeg2000 netcdf hdf5 hdf4 gif jpeg gta png pcraster fits  rik ozi pdf rasterlite mbtiles postgisraster jpegls arg"' >> gdal-config
chmod a+x gdal-config-inst
cat gdal-config.in >> gdal-config
/usr/bin/libtool --mode=compile --tag=CXX g++ -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches  -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -fpic -I/usr/include/libgeotiff -msse -DHAVE_SSE_AT_COMPILE_TIME  -Wall  -I/builddir/build/BUILD/gdal-1.10.1-fedora/port -I/builddir/build/BUILD/gdal-1.10.1-fedora/gcore -I/builddir/build/BUILD/gdal-1.10.1-fedora/alg -I/builddir/build/BUILD/gdal-1.10.1-fedora/ogr -I/builddir/build/BUILD/gdal-1.10.1-fedora/ogr/ogrsf_frmts -I/builddir/build/BUILD/gdal-1.10.1-fedora/frmts -DOGR_ENABLED -I/usr/include/libgeotiff -I/builddir/build/BUILD/gdal-1.10.1-fedora/port -I/usr/include -Iexternal/include -I/usr/include/cfitsio  -c -o commonutils.lo commonutils.cpp
Traceback (most recent call last):
  File "setup.py", line 301, in <module>
    **extra )
  File "/usr/lib/python2.7/distutils/core.py", line 152, in setup
    dist.run_commands()
  File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/usr/lib/python2.7/distutils/command/build.py", line 127, in run
    self.run_command(cmd_name)
  File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command
    self.distribution.run_command(command)
  File "/usr/lib/python2.7/distutils/dist.py", line 971, in run_command
    cmd_obj.ensure_finalized()
  File "/usr/lib/python2.7/distutils/cmd.py", line 109, in ensure_finalized
    self.finalize_options()
  File "setup.py", line 196, in finalize_options
    self.gdaldir = self.get_gdal_config('prefix')
  File "setup.py", line 176, in get_gdal_config
    return fetch_config(option)
  File "setup.py", line 129, in fetch_config
    raise gdal_config_error, e""")
  File "<string>", line 4, in <module>
__main__.gdal_config_error: [Errno 2] No such file or directory
chmod a+x gdal-config

Changing in GNUmakefile, this:

swig-modules: lib-target

to

swig-modules: apps-target

should fix.

Change History (1)

comment:1 by Even Rouault, 10 years ago

Component: defaultConfigBuild
Resolution: fixed
Status: newclosed

Thanks.

trunk r26803 "Unix build: Fix parallel build in Python bindings (#5346)"

Note: See TracTickets for help on using tickets.