#40 Bristol sometimes doesn`t compile with MAKEFLAGS="-j2"

admin
closed-fixed
5
2009-04-28
2009-04-26
Holger
No

On ArchLinux, if you set MAKEFLAGS to "-j2" or more, chances are that the compilation fails with this error:

libtool: link: gcc -Wall -g -I./../include/bristol -DBRISOL_HAS_ALSA=1 -march=athlon64-sse3 -mtune=athlon64-sse3 -msse3 -m3dnow -O2 -pipe -I/usr/X11R6/include -o sidtest -Bdynamic sidtest.o -L/home/ljfnord/build/bristol/src/bristol-0.40.0/libbristolic/.libs -ljack -lrt -lasound -lbristolic -lm -lpthread
/usr/bin/ld: cannot find -lbristolic
collect2: ld returned 1 exit status
make[2]: *** [sidtest] Error 1

This happens only sometimes, but it seems to compile every time if you don`t set -jN.
So perhaps some things get mixed up in parallel compiles...

Discussion

  • Holger

    Holger - 2009-04-26

    forgot: bristol version 0.40.0

     
  • Nick Copeland

    Nick Copeland - 2009-04-26
    • milestone: --> admin
    • assigned_to: nobody --> ncopeland
     
  • Nick Copeland

    Nick Copeland - 2009-04-26

    I think it is probably just because I didn't make libbristolic a dependency of sidtest however the truth is that I will probably remove sidtest from the make file - I just used it to test the SID emulator without having to integrate it into the engine, it was a lot quicker and easier.

    The reason I will probably remove it is that it is not needed any more and I cannot test -j as I only have a single CPU.

    This should go into the next upload. If you want, just remove any lines with 'sidtest' from makefile.am and do another ./configure.

    Regards, Nick

     
  • Holger

    Holger - 2009-04-27

    I removed the lines and it worked as you said: compiled fine - tested it 5 times without problem.

    Thanks :-)

     
  • Nick Copeland

    Nick Copeland - 2009-04-27
    • status: open --> pending-fixed
     
  • Nick Copeland

    Nick Copeland - 2009-04-27

    Have removed sidtest from the compilation which will avoid this issue. As state, this piece of code was simply to exercise the SID soft chip before it was integrated into an emulator. It is now in the '-sid' and is now tested from the synth.

     
  • Nick Copeland

    Nick Copeland - 2009-04-28
    • status: pending-fixed --> closed-fixed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks