AnsweredAssumed Answered

compiling using make -s or make fails but make single compiles properly

Question asked by karthikeyan on Nov 16, 2011
Latest reply on Jan 3, 2012 by Aaronwu

Hi,

   We are using Fedora Core 14 Operating system with a custom re-spin based on FEL14 and using the guidelines provided in http://docs.blackfin.uclinux.org/doku.php?id=live_cd:intro&s[]=ubuntu&s[]=livecd . We have updated our kernel to 2.6.35.13-92.fc14.i686. We compile 2010R1-RC5 using this Operating system and everything used to work fine. The version of make we are using is "GNU Make 3.82"

  But when we tried to compile the 2011R1-RC1 with make we are experiencing the following problem. We primarily used "make single" to compile the image so that if any errors come up can be identified easily without the time required for recompiling. But eventually we tried to use make -s for fast compilation. It failed to compile giving the following error.

 

make[8]: Leaving directory `/home/karthikeyan/uClinux/blackfin-linux-dist/lib/alsa-lib/build-alsa-lib-1.0.24/modules/mixer/simple'
make[7]: Leaving directory `/home/karthikeyan/uClinux/blackfin-linux-dist/lib/alsa-lib/build-alsa-lib-1.0.24/modules/mixer/simple'
make[7]: Entering directory `/home/karthikeyan/uClinux/blackfin-linux-dist/lib/alsa-lib/build-alsa-lib-1.0.24/modules/mixer'
make[8]: Entering directory `/home/karthikeyan/uClinux/blackfin-linux-dist/lib/alsa-lib/build-alsa-lib-1.0.24/modules/mixer'
make[8]: Nothing to be done for `install-exec-am'.
make[8]: Nothing to be done for `install-data-am'.
make[8]: Leaving directory `/home/karthikeyan/uClinux/blackfin-linux-dist/lib/alsa-lib/build-alsa-lib-1.0.24/modules/mixer'
make[7]: Leaving directory `/home/karthikeyan/uClinux/blackfin-linux-dist/lib/alsa-lib/build-alsa-lib-1.0.24/modules/mixer'
make[6]: Leaving directory `/home/karthikeyan/uClinux/blackfin-linux-dist/lib/alsa-lib/build-alsa-lib-1.0.24/modules/mixer'
make[6]: Entering directory `/home/karthikeyan/uClinux/blackfin-linux-dist/lib/alsa-lib/build-alsa-lib-1.0.24/modules'
make[7]: Entering directory `/home/karthikeyan/uClinux/blackfin-linux-dist/lib/alsa-lib/build-alsa-lib-1.0.24/modules'
make[7]: Nothing to be done for `install-exec-am'.
make[7]: Nothing to be done for `install-data-am'.
make[7]: Leaving directory `/home/karthikeyan/uClinux/blackfin-linux-dist/lib/alsa-lib/build-alsa-lib-1.0.24/modules'
make[6]: Leaving directory `/home/karthikeyan/uClinux/blackfin-linux-dist/lib/alsa-lib/build-alsa-lib-1.0.24/modules'
make[5]: Leaving directory `/home/karthikeyan/uClinux/blackfin-linux-dist/lib/alsa-lib/build-alsa-lib-1.0.24/modules'
Making install in aserver
make[5]: Entering directory `/home/karthikeyan/uClinux/blackfin-linux-dist/lib/alsa-lib/build-alsa-lib-1.0.24/aserver'
  CC     aserver.o
bfin-linux-uclibc-gcc -DHAVE_CONFIG_H -I. -I/home/karthikeyan/uClinux/blackfin-linux-dist/lib/alsa-lib/alsa-lib-1.0.24/aserver -I../include -I/home/karthikeyan/uClinux/blackfin-linux-dist/lib/alsa-lib/alsa-lib-1.0.24/include -I/home/karthikeyan/uClinux/blackfin-linux-dist/lib/alsa-lib/alsa-lib-1.0.24/src/pcm  -DEMBED -D__uClinux__ -I/home/karthikeyan/uClinux/blackfin-linux-dist  -mcpu=bf527-0.2  -pipe -Wall -g -O2      -mcpu=bf527-0.2 -lm -D_GNU_SOURCE -c /home/karthikeyan/uClinux/blackfin-linux-dist/lib/alsa-lib/alsa-lib-1.0.24/aserver/aserver.c
  CCLD   aserver
make[6]: Entering directory `/home/karthikeyan/uClinux/blackfin-linux-dist/lib/alsa-lib/build-alsa-lib-1.0.24/aserver'
test -z "/usr/bin" || /bin/mkdir -p "/home/karthikeyan/uClinux/blackfin-linux-dist/staging/usr/bin"
make[6]: Nothing to be done for `install-data-am'.
  /bin/sh ../libtool   --mode=install /usr/bin/install -c aserver '/home/karthikeyan/uClinux/blackfin-linux-dist/staging/usr/bin'
libtool: install: warning: `../src/libasound.la' has not been installed in `/usr/lib'
/usr/bin/install -c .libs/aserver /home/karthikeyan/uClinux/blackfin-linux-dist/staging/usr/bin/aserver
make[6]: Leaving directory `/home/karthikeyan/uClinux/blackfin-linux-dist/lib/alsa-lib/build-alsa-lib-1.0.24/aserver'
make[5]: Leaving directory `/home/karthikeyan/uClinux/blackfin-linux-dist/lib/alsa-lib/build-alsa-lib-1.0.24/aserver'
Making install in test
make[5]: Entering directory `/home/karthikeyan/uClinux/blackfin-linux-dist/lib/alsa-lib/build-alsa-lib-1.0.24/test'
Making install in .
make[6]: Entering directory `/home/karthikeyan/uClinux/blackfin-linux-dist/lib/alsa-lib/build-alsa-lib-1.0.24/test'
make[7]: Entering directory `/home/karthikeyan/uClinux/blackfin-linux-dist/lib/alsa-lib/build-alsa-lib-1.0.24/test'
make[7]: Nothing to be done for `install-exec-am'.
make[7]: Nothing to be done for `install-data-am'.
make[7]: Leaving directory `/home/karthikeyan/uClinux/blackfin-linux-dist/lib/alsa-lib/build-alsa-lib-1.0.24/test'
make[6]: Leaving directory `/home/karthikeyan/uClinux/blackfin-linux-dist/lib/alsa-lib/build-alsa-lib-1.0.24/test'
Making install in lsb
make[6]: Entering directory `/home/karthikeyan/uClinux/blackfin-linux-dist/lib/alsa-lib/build-alsa-lib-1.0.24/test/lsb'
make[7]: Entering directory `/home/karthikeyan/uClinux/blackfin-linux-dist/lib/alsa-lib/build-alsa-lib-1.0.24/test/lsb'
make[7]: Nothing to be done for `install-exec-am'.
make[7]: Nothing to be done for `install-data-am'.
make[7]: Leaving directory `/home/karthikeyan/uClinux/blackfin-linux-dist/lib/alsa-lib/build-alsa-lib-1.0.24/test/lsb'
make[6]: Leaving directory `/home/karthikeyan/uClinux/blackfin-linux-dist/lib/alsa-lib/build-alsa-lib-1.0.24/test/lsb'
make[5]: Leaving directory `/home/karthikeyan/uClinux/blackfin-linux-dist/lib/alsa-lib/build-alsa-lib-1.0.24/test'
Making install in utils
make[5]: Entering directory `/home/karthikeyan/uClinux/blackfin-linux-dist/lib/alsa-lib/build-alsa-lib-1.0.24/utils'
make[6]: Entering directory `/home/karthikeyan/uClinux/blackfin-linux-dist/lib/alsa-lib/build-alsa-lib-1.0.24/utils'
make[6]: Nothing to be done for `install-exec-am'.
test -z "/usr/share/aclocal" || /bin/mkdir -p "/home/karthikeyan/uClinux/blackfin-linux-dist/staging/usr/share/aclocal"
test -z "/usr/lib/pkgconfig" || /bin/mkdir -p "/home/karthikeyan/uClinux/blackfin-linux-dist/staging/usr/lib/pkgconfig"
/usr/bin/install -c -m 644 /home/karthikeyan/uClinux/blackfin-linux-dist/lib/alsa-lib/alsa-lib-1.0.24/utils/alsa.m4 '/home/karthikeyan/uClinux/blackfin-linux-dist/staging/usr/share/aclocal'
/usr/bin/install -c -m 644 alsa.pc '/home/karthikeyan/uClinux/blackfin-linux-dist/staging/usr/lib/pkgconfig'
make[6]: Leaving directory `/home/karthikeyan/uClinux/blackfin-linux-dist/lib/alsa-lib/build-alsa-lib-1.0.24/utils'
make[5]: Leaving directory `/home/karthikeyan/uClinux/blackfin-linux-dist/lib/alsa-lib/build-alsa-lib-1.0.24/utils'
make[5]: Entering directory `/home/karthikeyan/uClinux/blackfin-linux-dist/lib/alsa-lib/build-alsa-lib-1.0.24'
make[6]: Entering directory `/home/karthikeyan/uClinux/blackfin-linux-dist/lib/alsa-lib/build-alsa-lib-1.0.24'
make[6]: Nothing to be done for `install-exec-am'.
make[6]: Nothing to be done for `install-data-am'.
make[6]: Leaving directory `/home/karthikeyan/uClinux/blackfin-linux-dist/lib/alsa-lib/build-alsa-lib-1.0.24'
make[5]: Leaving directory `/home/karthikeyan/uClinux/blackfin-linux-dist/lib/alsa-lib/build-alsa-lib-1.0.24'
make[4]: Leaving directory `/home/karthikeyan/uClinux/blackfin-linux-dist/lib/alsa-lib/build-alsa-lib-1.0.24'
make post-build
make[4]: Entering directory `/home/karthikeyan/uClinux/blackfin-linux-dist/lib/alsa-lib'
make[4]: Nothing to be done for `post-build'.
make[4]: Leaving directory `/home/karthikeyan/uClinux/blackfin-linux-dist/lib/alsa-lib'
/home/karthikeyan/uClinux/blackfin-linux-dist/tools/cross-fix-root
make[3]: Leaving directory `/home/karthikeyan/uClinux/blackfin-linux-dist/lib/alsa-lib'
make[2]: Leaving directory `/home/karthikeyan/uClinux/blackfin-linux-dist/lib'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/karthikeyan/uClinux/blackfin-linux-dist/lib'
make: *** [subdirs] Error 1

 

So inorder to find the error, we tried to compile with "make single" after performing "make clean". But now the image compiled successfully with out any change in the configuration. We tried this lot of times and each time the "make" or "make -s" fails while "make single" succeeds. What could be the reason. It should be noted that we have updated the toolchain to 2011R1-RC2. And we have not updated any other operating system packages.

Outcomes