Kodi Community Forum
'No such file or directory' error during compiling - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Kodi Application (https://forum.kodi.tv/forumdisplay.php?fid=93)
+--- Thread: 'No such file or directory' error during compiling (/showthread.php?tid=63002)



'No such file or directory' error during compiling - ion_man - 2009-12-01

Hi,
just wanted to report that during compilation I'm seeing a 'No such file or directory' error which doesn't affect the successful compilation but it might be worth investigating anyway.
This happens with the current svn but I also saw this with previous svns.

Here is the beginning of the relevant section of the build log output (it goes on for quite a bit longer but it doesn't fit all in this post):
Code:
make[1]: Leaving directory `/home/user/rpm/BUILD/xbmc-9.11.svn25146/xbmc/cores/paplayer/GYMCodec'
make -C xbmc/cores/paplayer/vgmstream
make[1]: Entering directory `/home/user/rpm/BUILD/xbmc-9.11.svn25146/xbmc/cores/paplayer/vgmstream'
/usr/bin/ccache gcc -MD -c -D_LINUX -fPIC -DPIC -O3 -fno-stack-protector -DXBMC -O2 -DNDEBUG=1 -D_LINUX -D_FILE_DEFINED -D_REENTRANT -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DINSTALL_PATH="\"/usr/share/xbmc\"" -DHAS_SDL_JOYSTICK -D'SVN_REV="25146M"' -DHAVE_CONFIG_H  -I/home/user/rpm/BUILD/xbmc-9.11.svn25146     -I/usr/include/fribidi     -I/usr/include/libpng12         -I/usr/include/ -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -I/usr/include/freetype2       -I/usr/include/alsa               -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include   -DDBUS_API_SUBJECT_TO_CHANGE -I/usr/include/hal -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include   -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL   -DDBUS_API_SUBJECT_TO_CHANGE -I/usr/include/hal -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include   -I/usr/include/lzo src/coding/adx_decoder.c -o src/coding/adx_decoder.o
/usr/bin/ccache gcc -MD -c -D_LINUX -fPIC -DPIC -O3 -fno-stack-protector -DXBMC -O2 -DNDEBUG=1 -D_LINUX -D_FILE_DEFINED -D_REENTRANT -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DINSTALL_PATH="\"/usr/share/xbmc\"" -DHAS_SDL_JOYSTICK -D'SVN_REV="25146M"' -DHAVE_CONFIG_H  -I/home/user/rpm/BUILD/xbmc-9.11.svn25146     -I/usr/include/fribidi     -I/usr/include/libpng12         -I/usr/include/ -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -I/usr/include/freetype2       -I/usr/include/alsa               -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include   -DDBUS_API_SUBJECT_TO_CHANGE -I/usr/include/hal -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include   -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL   -DDBUS_API_SUBJECT_TO_CHANGE -I/usr/include/hal -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include   -I/usr/include/lzo src/coding/acm_decoder.c -o src/coding/acm_decoder.o
cp: cannot stat `src/coding/adx_decoder.d': No such file or directory
/bin/bash: line 1: src/coding/adx_decoder.d: No such file or directory
/usr/bin/ccache gcc -MD -c -D_LINUX -fPIC -DPIC -O3 -fno-stack-protector -DXBMC -O2 -DNDEBUG=1 -D_LINUX -D_FILE_DEFINED -D_REENTRANT -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DINSTALL_PATH="\"/usr/share/xbmc\"" -DHAS_SDL_JOYSTICK -D'SVN_REV="25146M"' -DHAVE_CONFIG_H  -I/home/user/rpm/BUILD/xbmc-9.11.svn25146     -I/usr/include/fribidi     -I/usr/include/libpng12         -I/usr/include/ -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -I/usr/include/freetype2       -I/usr/include/alsa               -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include   -DDBUS_API_SUBJECT_TO_CHANGE -I/usr/include/hal -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include   -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL   -DDBUS_API_SUBJECT_TO_CHANGE -I/usr/include/hal -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include   -I/usr/include/lzo src/coding/aica_decoder.c -o src/coding/aica_decoder.o
cp: cannot stat `src/coding/aica_decoder.d': No such file or directory
/bin/bash: line 1: src/coding/aica_decoder.d: No such file or directory
/usr/bin/ccache gcc -MD -c -D_LINUX -fPIC -DPIC -O3 -fno-stack-protector -DXBMC -O2 -DNDEBUG=1 -D_LINUX -D_FILE_DEFINED -D_REENTRANT -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DINSTALL_PATH="\"/usr/share/xbmc\"" -DHAS_SDL_JOYSTICK -D'SVN_REV="25146M"' -DHAVE_CONFIG_H  -I/home/user/rpm/BUILD/xbmc-9.11.svn25146     -I/usr/include/fribidi     -I/usr/include/libpng12         -I/usr/include/ -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -I/usr/include/freetype2       -I/usr/include/alsa               -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include   -DDBUS_API_SUBJECT_TO_CHANGE -I/usr/include/hal -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include   -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL   -DDBUS_API_SUBJECT_TO_CHANGE -I/usr/include/hal -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include   -I/usr/include/lzo src/coding/eaxa_decoder.c -o src/coding/eaxa_decoder.o
cp: cannot stat `src/coding/eaxa_decoder.d': No such file or directory
/bin/bash: line 1: src/coding/eaxa_decoder.d: No such file or directory
/usr/bin/ccache gcc -MD -c -D_LINUX -fPIC -DPIC -O3 -fno-stack-protector -DXBMC -O2 -DNDEBUG=1 -D_LINUX -D_FILE_DEFINED -D_REENTRANT -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DINSTALL_PATH="\"/usr/share/xbmc\"" -DHAS_SDL_JOYSTICK -D'SVN_REV="25146M"' -DHAVE_CONFIG_H  -I/home/user/rpm/BUILD/xbmc-9.11.svn25146     -I/usr/include/fribidi     -I/usr/include/libpng12         -I/usr/include/ -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -I/usr/include/freetype2       -I/usr/include/alsa               -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include   -DDBUS_API_SUBJECT_TO_CHANGE -I/usr/include/hal -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include   -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL   -DDBUS_API_SUBJECT_TO_CHANGE -I/usr/include/hal -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include   -I/usr/include/lzo src/coding/g721_decoder.c -o src/coding/g721_decoder.o
cp: cannot stat `src/coding/acm_decoder.d': No such file or directory
/bin/bash: line 1: src/coding/acm_decoder.d: No such file or directory

[...]

cp: cannot stat `resid/wave8580_PST.d': No such file or directory
/bin/bash: line 1: resid/wave8580_PST.d: No such file or directory
cp: cannot stat `libsidplay/win/VC/XBMCSID.d': No such file or directory
/bin/bash: line 1: libsidplay/win/VC/XBMCSID.d: No such file or directory
/usr/bin/ccache gcc -fPIC -shared -o ../../../../system/players/paplayer/libsidplay2-i486-linux.so libsidplay/src/mos6510/mos6510.o libsidplay/src/mos6526/mos6526.o libsidplay/src/mos656x/mos656x.o  libsidplay/src/sid6526/sid6526.o libsidplay/src/sidtune/IconInfo.o libsidplay/src/sidtune/InfoFile.o libsidplay/src/sidtune/MUS.o libsidplay/src/sidtune/p00.o libsidplay/src/sidtune/PP20.o libsidplay/src/sidtune/prg.o libsidplay/src/sidtune/PSID.o libsidplay/src/sidtune/SidTune.o libsidplay/src/sidtune/SidTuneTools.o libsidplay/src/xsid/xsid.o libsidplay/src/config.o resid/envelope.o libsidplay/src/event.o resid/extfilt.o resid/filter.o libsidplay/src/mixer.o libsidplay/src/player.o resid/pot.o libsidplay/src/psiddrv.o libsidplay/src/reloc65.o builders/resid-builder/src/resid-builder.o builders/resid-builder/src/resid.o resid/sid.o libsidplay/src/sidplay2.o resid/version.o resid/voice.o resid/wave.o resid/wave6581__ST.o resid/wave6581_P_T.o resid/wave6581_PS_.o resid/wave6581_PST.o resid/wave8580__ST.o resid/wave8580_P_T.o resid/wave8580_PS_.o resid/wave8580_PST.o libsidplay/win/VC/XBMCSID.o      ../../../linux/XHandle.o `cat ../../DllLoader/exports/wrapper.def` ../../DllLoader/exports/wrapper.o
make[1]: Leaving directory `/home/user/rpm/BUILD/xbmc-9.11.svn25146/xbmc/cores/paplayer/SIDCodec'

No occurrence after this point

Anyone else seeing this?
Can I ignore it?


- davilla - 2009-12-01

ion_man Wrote:Hi,
just wanted to report that during compilation I'm seeing a 'No such file or directory' error which doesn't affect the successful compilation but it might be worth investigating anyway.
This happens with the current svn but I also saw this with previous svns.

Here is the beginning of the relevant section of the build log output (it goes on for quite a bit longer but it doesn't fit all in this post):
Code:
make[1]: Leaving directory `/home/user/rpm/BUILD/xbmc-9.11.svn25146/xbmc/cores/paplayer/GYMCodec'
make -C xbmc/cores/paplayer/vgmstream
make[1]: Entering directory `/home/user/rpm/BUILD/xbmc-9.11.svn25146/xbmc/cores/paplayer/vgmstream'
/usr/bin/ccache gcc -MD -c -D_LINUX -fPIC -DPIC -O3 -fno-stack-protector -DXBMC -O2 -DNDEBUG=1 -D_LINUX -D_FILE_DEFINED -D_REENTRANT -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DINSTALL_PATH="\"/usr/share/xbmc\"" -DHAS_SDL_JOYSTICK -D'SVN_REV="25146M"' -DHAVE_CONFIG_H  -I/home/user/rpm/BUILD/xbmc-9.11.svn25146     -I/usr/include/fribidi     -I/usr/include/libpng12         -I/usr/include/ -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -I/usr/include/freetype2       -I/usr/include/alsa               -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include   -DDBUS_API_SUBJECT_TO_CHANGE -I/usr/include/hal -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include   -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL   -DDBUS_API_SUBJECT_TO_CHANGE -I/usr/include/hal -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include   -I/usr/include/lzo src/coding/adx_decoder.c -o src/coding/adx_decoder.o
/usr/bin/ccache gcc -MD -c -D_LINUX -fPIC -DPIC -O3 -fno-stack-protector -DXBMC -O2 -DNDEBUG=1 -D_LINUX -D_FILE_DEFINED -D_REENTRANT -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DINSTALL_PATH="\"/usr/share/xbmc\"" -DHAS_SDL_JOYSTICK -D'SVN_REV="25146M"' -DHAVE_CONFIG_H  -I/home/user/rpm/BUILD/xbmc-9.11.svn25146     -I/usr/include/fribidi     -I/usr/include/libpng12         -I/usr/include/ -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -I/usr/include/freetype2       -I/usr/include/alsa               -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include   -DDBUS_API_SUBJECT_TO_CHANGE -I/usr/include/hal -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include   -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL   -DDBUS_API_SUBJECT_TO_CHANGE -I/usr/include/hal -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include   -I/usr/include/lzo src/coding/acm_decoder.c -o src/coding/acm_decoder.o
cp: cannot stat `src/coding/adx_decoder.d': No such file or directory
/bin/bash: line 1: src/coding/adx_decoder.d: No such file or directory
/usr/bin/ccache gcc -MD -c -D_LINUX -fPIC -DPIC -O3 -fno-stack-protector -DXBMC -O2 -DNDEBUG=1 -D_LINUX -D_FILE_DEFINED -D_REENTRANT -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DINSTALL_PATH="\"/usr/share/xbmc\"" -DHAS_SDL_JOYSTICK -D'SVN_REV="25146M"' -DHAVE_CONFIG_H  -I/home/user/rpm/BUILD/xbmc-9.11.svn25146     -I/usr/include/fribidi     -I/usr/include/libpng12         -I/usr/include/ -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -I/usr/include/freetype2       -I/usr/include/alsa               -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include   -DDBUS_API_SUBJECT_TO_CHANGE -I/usr/include/hal -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include   -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL   -DDBUS_API_SUBJECT_TO_CHANGE -I/usr/include/hal -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include   -I/usr/include/lzo src/coding/aica_decoder.c -o src/coding/aica_decoder.o
cp: cannot stat `src/coding/aica_decoder.d': No such file or directory
/bin/bash: line 1: src/coding/aica_decoder.d: No such file or directory
/usr/bin/ccache gcc -MD -c -D_LINUX -fPIC -DPIC -O3 -fno-stack-protector -DXBMC -O2 -DNDEBUG=1 -D_LINUX -D_FILE_DEFINED -D_REENTRANT -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DINSTALL_PATH="\"/usr/share/xbmc\"" -DHAS_SDL_JOYSTICK -D'SVN_REV="25146M"' -DHAVE_CONFIG_H  -I/home/arne/rpm/BUILD/xbmc-9.11.svn25146     -I/usr/include/fribidi     -I/usr/include/libpng12         -I/usr/include/ -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -I/usr/include/freetype2       -I/usr/include/alsa               -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include   -DDBUS_API_SUBJECT_TO_CHANGE -I/usr/include/hal -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include   -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL   -DDBUS_API_SUBJECT_TO_CHANGE -I/usr/include/hal -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include   -I/usr/include/lzo src/coding/eaxa_decoder.c -o src/coding/eaxa_decoder.o
cp: cannot stat `src/coding/eaxa_decoder.d': No such file or directory
/bin/bash: line 1: src/coding/eaxa_decoder.d: No such file or directory
/usr/bin/ccache gcc -MD -c -D_LINUX -fPIC -DPIC -O3 -fno-stack-protector -DXBMC -O2 -DNDEBUG=1 -D_LINUX -D_FILE_DEFINED -D_REENTRANT -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DINSTALL_PATH="\"/usr/share/xbmc\"" -DHAS_SDL_JOYSTICK -D'SVN_REV="25146M"' -DHAVE_CONFIG_H  -I/home/arne/rpm/BUILD/xbmc-9.11.svn25146     -I/usr/include/fribidi     -I/usr/include/libpng12         -I/usr/include/ -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -I/usr/include/freetype2       -I/usr/include/alsa               -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include   -DDBUS_API_SUBJECT_TO_CHANGE -I/usr/include/hal -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include   -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL   -DDBUS_API_SUBJECT_TO_CHANGE -I/usr/include/hal -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include   -I/usr/include/lzo src/coding/g721_decoder.c -o src/coding/g721_decoder.o
cp: cannot stat `src/coding/acm_decoder.d': No such file or directory
/bin/bash: line 1: src/coding/acm_decoder.d: No such file or directory

[...]

cp: cannot stat `resid/wave8580_PST.d': No such file or directory
/bin/bash: line 1: resid/wave8580_PST.d: No such file or directory
cp: cannot stat `libsidplay/win/VC/XBMCSID.d': No such file or directory
/bin/bash: line 1: libsidplay/win/VC/XBMCSID.d: No such file or directory
/usr/bin/ccache gcc -fPIC -shared -o ../../../../system/players/paplayer/libsidplay2-i486-linux.so libsidplay/src/mos6510/mos6510.o libsidplay/src/mos6526/mos6526.o libsidplay/src/mos656x/mos656x.o  libsidplay/src/sid6526/sid6526.o libsidplay/src/sidtune/IconInfo.o libsidplay/src/sidtune/InfoFile.o libsidplay/src/sidtune/MUS.o libsidplay/src/sidtune/p00.o libsidplay/src/sidtune/PP20.o libsidplay/src/sidtune/prg.o libsidplay/src/sidtune/PSID.o libsidplay/src/sidtune/SidTune.o libsidplay/src/sidtune/SidTuneTools.o libsidplay/src/xsid/xsid.o libsidplay/src/config.o resid/envelope.o libsidplay/src/event.o resid/extfilt.o resid/filter.o libsidplay/src/mixer.o libsidplay/src/player.o resid/pot.o libsidplay/src/psiddrv.o libsidplay/src/reloc65.o builders/resid-builder/src/resid-builder.o builders/resid-builder/src/resid.o resid/sid.o libsidplay/src/sidplay2.o resid/version.o resid/voice.o resid/wave.o resid/wave6581__ST.o resid/wave6581_P_T.o resid/wave6581_PS_.o resid/wave6581_PST.o resid/wave8580__ST.o resid/wave8580_P_T.o resid/wave8580_PS_.o resid/wave8580_PST.o libsidplay/win/VC/XBMCSID.o      ../../../linux/XHandle.o `cat ../../DllLoader/exports/wrapper.def` ../../DllLoader/exports/wrapper.o
make[1]: Leaving directory `/home/user/rpm/BUILD/xbmc-9.11.svn25146/xbmc/cores/paplayer/SIDCodec'

No occurrence after this point

Anyone else seeing this?
Can I ignore it?

.d files, your configure/build is stale. make clean, ./bootstrap, ./configure, make


- ion_man - 2009-12-01

Thanks for the quick reply.
I actually used the untouched downloaded svn source, and this is the first build run on this source, so I assume these stale files come from the svn?

I do:
./bootstrap
./configure --prefix=/usr --disable-debug
make -j2

So I guess it's best to always add a "make clean" before the ./bootstap, even on freshly downloaded svn source code?


- davilla - 2009-12-01

ion_man Wrote:Thanks for the quick reply.
I actually used the untouched downloaded svn source, and this is the first build run on this source, so I assume these stale files come from the svn?

I do:
./bootstrap
./configure --prefix=/usr --disable-debug
make -j2

So I guess it's best to always add a "make clean" before the ./bootstap, even on freshly downloaded svn source code?

Humm, more info is always better. Looks like you are also running ccache maybe needs a purge.


- ion_man - 2009-12-01

I think you were right that it's caused by ccache somehow, but running 'ccache -C' to clear the cache now actually increased the number of .d files it's complaining about... Eek

Well, the build succeeds anyway and the resulting binary works great so I guess I can ignore the errors.


- ion_man - 2009-12-09

Just for the record:
using the --disable-ccache configure option got rid of these errors.