Project

General

Profile

Bug #389

problem loading library.H (parallel make -j4)

Added by Anna Maria Bigatti almost 11 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Normal
Category:
Documentation
Target version:
Start date:
23 Jul 2013
Due date:
% Done:

100%

Estimated time:
Spent time:

Description

I had problems loading library.H in my new installation on linux:
compilation of files including library.H gives

error: '....' was not declared in this scope

AMB: solution: make "library.H" without -j flag, //i.e.// cd include/CoCoA; make

History

#1 Updated by Anna Maria Bigatti almost 11 years ago

  • Category set to Documentation
  • Assignee set to Anna Maria Bigatti
  • Target version set to CoCoALib-0.99534 Seoul14

Well not all debugging was useless: I cleaned up some .H (yuk ;-) and .C including library.H. (it makes the compilation slower)

The problem was (and I can imagine JAA laughing at me) that make -j4 (really wonderful on a quad-core!!) creates some copies all mixed up of library.H in the same file.
I typed

cd include/CoCoA
make

and it goes fine....
JAA: ooohhh!

#2 Updated by Anna Maria Bigatti almost 11 years ago

  • Status changed from New to Feedback
  • % Done changed from 0 to 100

#3 Updated by John Abbott almost 11 years ago

I don't know how to fix this properly -- need help from a Makefile expert.

Workaround: make the unified header file serially, then do the rest in parallel.

#4 Updated by Anna Maria Bigatti almost 11 years ago

  • Subject changed from problem loading library.H to problem loading library.H (parallel make -j4)

#5 Updated by John Abbott almost 11 years ago

I have modified the script MakeUnifiedHeader.sh.
It now uses temporary files, so should avoid problems
if several instances are run in parallel.

#6 Updated by Anna Maria Bigatti almost 11 years ago

I tested it and I didn't manage to create a messy library.H again.

#7 Updated by John Abbott over 10 years ago

  • Status changed from Feedback to Closed

No problems reported in the last 6 weeks (well, we were all away on holiday).
Closing this issue because it makes me feel that I'm making progress :-)

#8 Updated by Anna Maria Bigatti over 10 years ago

  • Target version changed from CoCoALib-0.99534 Seoul14 to CoCoALib-0.99532

#9 Updated by Anna Maria Bigatti over 10 years ago

  • Target version changed from CoCoALib-0.99532 to CoCoALib-0.99531

Also available in: Atom PDF