unified: can't 'make zip' with -j2 flag

Issue #1579 invalid
Antony Pavlov created an issue

'make zip' works fine, but 'make -j2 zip' exits with funny error message:

../../platform/60D.111/version.c:5:12: error: redefinition of 'build_id'
../../platform/60D.111/version.c:2:12: note: previous definition of 'build_id' was here
../../platform/60D.111/version.c:6:12: error: redefinition of 'build_date'
../../platform/60D.111/version.c:3:12: note: previous definition of 'build_date' was here
../../platform/60D.111/version.c:7:12: error: redefinition of 'build_user'
../../platform/60D.111/version.c:4:12: note: previous definition of 'build_user' was here

Comments (6)

  1. Antony Pavlov reporter

    IMHO the parallel build works completely wrong.

    Here is a part of my 'make -j2 all' build log:

    [ CC       ]   cfn.o
    [ CC       ]   cfn.o
    [ CC       ]   gui.o
    [ CC       ]   gui.o
    [ CC       ]   picstyle-noauto.o
    [ CC       ]   picstyle-noauto.o
    [ CC       ]   exmem.o
    [ CC       ]   exmem.o
    [ CC       ]   bmp.o
    [ CC       ]   bmp.o
    ../../src/bmp.c: In function 'bmp_puts':
    ../../src/bmp.c:388:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    ../../src/bmp.c: In function 'bmp_puts':
    ../../src/bmp.c:388:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    [ CC       ]   font-dyn.o
    [ CC       ]   font-dyn.o
    [ CC       ]   font-small.o
    [ CC       ]   font-small.o
    [ CC       ]   font-med.o
    [ CC       ]   font-med.o
    

    You can see that every single file in common part compiled twice!

    This behaviour can result ANY FUNNY ERRORS.

  2. Antony Pavlov reporter

    Yes, I was wrong, sorry. As object files for every platform go to separate directory there is no collision.

    I can't reproduce the error either so I close this issue.

  3. Log in to comment