[MacPorts] #38327: mdbtools @0.7 should not be built in parallel
#38327: mdbtools @0.7 should not be built in parallel ---------------------+------------------------------------- Reporter: egall@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Keywords: | Port: and.damore@macports.org ---------------------+------------------------------------- So I was recently trying to install mdbtools, and got the following error: {{{ lexer.l:22:10: fatal error: 'parser.h' file not found updating parser.h #include "parser.h" ^ 1 error generated. CC parser.lo make[2]: *** [lexer.lo] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_databases_mdbtools/mdbtools/work/mdbtools-0.7/src/sql' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_databases_mdbtools/mdbtools/work/mdbtools-0.7/src' make: *** [all-recursive] Error 1 make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_databases_mdbtools/mdbtools/work/mdbtools-0.7' Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_databases_mdbtools/mdbtools/work/mdbtools-0.7" && /usr/bin/make -j4 -w all Exit code: 2 Error: org.macports.build for port mdbtools returned: command execution failed }}} I tried building again immediately after that and it built perfectly fine. What I'm assuming happened was that one make job that required "parser.h" got reached before the make job that actually created "parser.h" got reached. Then, the second time around, the file was already there from the first time around. To work around this issue, I suggest that mdbtools use `use_parallel_build no` in its portfile. -- Ticket URL: <https://trac.macports.org/ticket/38327> MacPorts <http://www.macports.org/> Ports system for OS X
#38327: mdbtools @0.7 should not be built in parallel --------------------------------------+-------------------------------- Reporter: egall@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: and.damore@macports.org | --------------------------------------+-------------------------------- Comment (by egall@…): darn it I just realized I got my cc and port fields mixed up... -- Ticket URL: <https://trac.macports.org/ticket/38327#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#38327: mdbtools @0.7 should not be built in parallel -----------------------+-------------------------------- Reporter: egall@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: mdbtools | -----------------------+-------------------------------- Changes (by macsforever2000@…): * cc: mdbtools (removed) * cc: and.damore@… (added) * port: and.damore@macports.org => mdbtools -- Ticket URL: <https://trac.macports.org/ticket/38327#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#38327: mdbtools @0.7 should not be built in parallel -----------------------+-------------------------- Reporter: egall@… | Owner: and.damore@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: mdbtools | -----------------------+-------------------------- Changes (by and.damore@…): * status: new => assigned * owner: macports-tickets@… => and.damore@… -- Ticket URL: <https://trac.macports.org/ticket/38327#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
#38327: mdbtools @0.7 should not be built in parallel -----------------------+-------------------------- Reporter: egall@… | Owner: and.damore@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: mdbtools | -----------------------+-------------------------- Comment (by and.damore@…): I cannot reproduce, I can build fine with any number of build jobs. Please run: {{{ port clean mdbtools port build mdbtools build.jobs=1 }}} and confirm it builds correctly, use sudo if needed. Then run {{{ port clean mdbtools port build mdbtools build.jobs=4 }}} and confirm the build breaks. -- Ticket URL: <https://trac.macports.org/ticket/38327#comment:4> MacPorts <http://www.macports.org/> Ports system for OS X
#38327: mdbtools @0.7 should not be built in parallel -----------------------+-------------------------- Reporter: egall@… | Owner: and.damore@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: mdbtools | -----------------------+-------------------------- Comment (by jmr@…): A race condition by definition won't cause a 100% reproducible problem. -- Ticket URL: <https://trac.macports.org/ticket/38327#comment:5> MacPorts <http://www.macports.org/> Ports system for OS X
#38327: mdbtools @0.7 should not be built in parallel -----------------------+-------------------------- Reporter: egall@… | Owner: and.damore@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: mdbtools | -----------------------+-------------------------- Comment (by and.damore@…): Replying to [comment:5 jmr@…]:
A race condition by definition won't cause a 100% reproducible problem.
I understand that but I think that a clean and rebuild is the minimum test that has to be performed on the user side. -- Ticket URL: <https://trac.macports.org/ticket/38327#comment:6> MacPorts <http://www.macports.org/> Ports system for OS X
#38327: mdbtools @0.7 should not be built in parallel -----------------------+-------------------------- Reporter: egall@… | Owner: and.damore@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: mdbtools | -----------------------+-------------------------- Comment (by egall@…): Replying to [comment:6 and.damore@…]:
Replying to [comment:5 jmr@…]:
Replying to [comment:4 and.damore@...]:
I cannot reproduce, I can build fine with any number of build jobs. Please run: {{{ port clean mdbtools port build mdbtools build.jobs=1 }}} and confirm it builds correctly, use `sudo` if needed.
Then run {{{ port clean mdbtools port build mdbtools build.jobs=4 }}} and confirm the build breaks. A race condition by definition won't cause a 100% reproducible problem.
I understand that but I think that a clean and rebuild is the minimum test that has to be performed on the user side.
Hm, that's strange, I can't reproduce it now anymore, either... I wonder what went wrong the first time? -- Ticket URL: <https://trac.macports.org/ticket/38327#comment:7> MacPorts <http://www.macports.org/> Ports system for OS X
#38327: mdbtools @0.7 should not be built in parallel -------------------------+-------------------------- Reporter: egall@… | Owner: and.damore@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: worksforme | Keywords: Port: mdbtools | -------------------------+-------------------------- Changes (by and.damore@…): * status: assigned => closed * resolution: => worksforme Comment: Idk but as rule of thumb a clean&build is appropriate on an error. I'm closing the ticket as worksforme but, if some other user reports issues using multiple jobs I'll disable parallel build. -- Ticket URL: <https://trac.macports.org/ticket/38327#comment:8> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts