Hi Bas, Il 26/12/18 11:13, Sebastiaan Couwenberg ha scritto: > On 12/26/18 10:40 AM, Antonio Valentino wrote: >> Unfortunately now I have a strange problem with python-hdf4: the build >> mysteriously fails with python 3.7 (both with gbp buildpackage and >> running setup.py manually) >> >> The error message is: >> >> x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions >> -Wl,-z,relro -Wl,-z,relro -g -fstack-protector-strong -Wformat >> -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 >> build/temp.linux-x86_64-3.7/pyhdf/hdfext_wrap.o -lmfhdfalt -ldfalt >> -ljpeg -lz -o >> build/lib.linux-x86_64-3.7/pyhdf/_hdfext.cpython-37m-x86_64-linux-gnu.so >> x86_64-linux-gnu-gcc: error: : No such file or directory >> error: Command "x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 >> -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g >> -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time >> -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.7/pyhdf/hdfext_wrap.o >> -lmfhdfalt -ldfalt -ljpeg -lz -o >> build/lib.linux-x86_64-3.7/pyhdf/_hdfext.cpython-37m-x86_64-linux-gnu.so >> " failed with exit status 1 >> >> >> Please note that the build process worked fine up to 2 days ago and it >> also works with python 3.6 (on ubuntu). >> >> Do you have any idea of what could be the issue? > > gcc/gcc-8 updates perhaps, /usr/bin/x86_64-linux-gnu-gcc is a symlink to > /usr/bin/gcc-8 which may be broken.
The strange think is that if I try t run the offending command manually after the first failure it seems to work x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.7/pyhdf/hdfext_wrap.o -lmfhdfalt -ldfalt -ljpeg -lz -o build/lib.linux-x86_64-3.7/pyhdf/_hdfext.cpython-37m-x86_64-linux-gnu.so >From the error message it seems that the gcc it trying to compile a file with and empty filename but I can't understand why it happens x86_64-linux-gnu-gcc: error: : No such file or directory I also thought it could be something related to python3.7 itself but it entered the archive the 12th of December, so probably it is not. >> Are you able to build python-hdf4 in your environment? > > I ran into that issue yesterday too, that's why I didn't upload it and > moved on to the other packages. I haven't dug deeper for a cause yet. > > Kind Regards, > > Bas > kind regards -- Antonio Valentino
