Skip to contentSkip to conversation

Makefile: Dependency problem

Qemu-devel Kevin Wolf 3 participants 5 messages May 8, 2013

lore
Share & tools
lore

Kevin Wolf

author
#0 lore raw

Hi,

I just had a failing build like this (make -j3, so these are running in parallel):

lt LINK libcacard.la

AR    libqemuutil.a
CC    stubs/mon-printf.o
CC    stubs/mon-print-filename.o

ar: stubs/mon-printf.o: No such file or directory
make: *** [libcacard.la] Fehler 1
make: *** Warte auf noch nicht beendete Prozesse...

Restarting make obviously fixed the problem, but I thought I'd mention it here so that the dependencies can be fixed.

Kevin

#1 lore raw
Quoted 8 lines

I just had a failing build like this (make -j3, so these are running in parallel):

lt LINK libcacard.la

AR    libqemuutil.a
CC    stubs/mon-printf.o
CC    stubs/mon-print-filename.o
Quoted 6 lines

ar: stubs/mon-printf.o: No such file or directory
make: *** [libcacard.la] Fehler 1
make: *** Warte auf noch nicht beendete Prozesse...

Restarting make obviously fixed the problem, but I thought I'd mention it here so that the dependencies can be fixed.

Please try to reproduce it with "make V=1". Did you have an "lt CC stubs/mon-printf.lo" before?

What version of Make is this?

Paolo

author
#2 lore raw

Am 08.05.2013 um 10:44 hat Paolo Bonzini geschrieben:

Quoted 12 lines
Quoted 12 lines

I just had a failing build like this (make -j3, so these are running in parallel):

lt LINK libcacard.la

AR    libqemuutil.a
CC    stubs/mon-printf.o
CC    stubs/mon-print-filename.o

ar: stubs/mon-printf.o: No such file or directory
make: *** [libcacard.la] Fehler 1
make: *** Warte auf noch nicht beendete Prozesse...

Quoted 4 lines
Quoted 2 lines

Restarting make obviously fixed the problem, but I thought I'd mention it here so that the dependencies can be fixed.

Please try to reproduce it with "make V=1".

Doesn't seem to be reproducable now.

Quoted 1 line

Did you have an "lt CC stubs/mon-printf.lo" before?

Nope, neither before this, nor during the following make run. So I guess it left an old version of it? Would explain why it doesn't reproduce after a "make clean".

Quoted 1 line

What version of Make is this?

make-3.82-13.fc18.x86_64

Kevin

#3 lore raw

Il 08/05/2013 11:00, Kevin Wolf ha scritto:

Quoted 16 lines

Am 08.05.2013 um 10:44 hat Paolo Bonzini geschrieben:

Quoted 15 lines
Quoted 14 lines

I just had a failing build like this (make -j3, so these are running in parallel):

lt LINK libcacard.la

AR    libqemuutil.a
CC    stubs/mon-printf.o
CC    stubs/mon-print-filename.o

ar: stubs/mon-printf.o: No such file or directory
make: *** [libcacard.la] Fehler 1
make: *** Warte auf noch nicht beendete Prozesse...

Restarting make obviously fixed the problem, but I thought I'd mention it here so that the dependencies can be fixed.

Quoted 8 lines
Quoted 1 line

Please try to reproduce it with "make V=1".

Doesn't seem to be reproducable now.

Quoted 1 line

Did you have an "lt CC stubs/mon-printf.lo" before?

Nope, neither before this, nor during the following make run. So I guess it left an old version of it?

Yeah, it's possible that you have the .lo file, but deleted the .o file.
libtool actually needs both, but the Makefile rule only has the .lo
file (if you try "%.lo %.o: %.c", Make starts using libtool to build everything!).

Paolo

Quoted 9 lines

Would explain why it doesn't reproduce after a "make clean".

Quoted 1 line

What version of Make is this?

make-3.82-13.fc18.x86_64

Kevin

#4 lore raw
In reply to Kevin Wolf
Quoted 9 lines · Kevin Wolf

Hi,

I just had a failing build like this (make -j3, so these are running in parallel):

lt LINK libcacard.la

AR    libqemuutil.a
CC    stubs/mon-printf.o
CC    stubs/mon-print-filename.o
Quoted 9 lines

ar: stubs/mon-printf.o: No such file or directory
make: *** [libcacard.la] Fehler 1
make: *** Warte auf noch nicht beendete Prozesse...

Restarting make obviously fixed the problem, but I thought I'd mention it here so that the dependencies can be fixed.

Kevin

I use 'make -j8' on qemu 1.4.1 and 1.5.0-rc, both looks fine:

--build=x86_64-unknown-linux-gnu --host=i686-w64-mingw32 --build=x86_64-unknown-linux-gnu --host=x86_64-w64-mingw32

Regards,
Dongsheng