#8477: Force GNU make to build PALP serially
----------------------------+-----------------------------------------------
Reporter: mpatel | Owner: tbd
Type: defect | Status: new
Priority: minor | Milestone: sage-4.3.4
Component: packages | Keywords:
Author: Mitesh Patel | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
----------------------------+-----------------------------------------------
PALP fails to build in parallel with GNU `make`. Some output from `make
-d` (debug):
{{{
Must remake target `poly.o'.
Need a job token; we don't have children
make[2]: Entering directory
`/mnt/usb1/scratch/mpatel/tmp/sage-4.3.4.alpha0-j20-par/spkg/build/palp-1.1.p2/src'
gcc -O3 -g -W -Wall -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -c -o
poly.o poly.c
Putting child 0x00651fb0 (poly.o) PID 7703 on the chain.
Commands of `poly.o' are being run.
Considering target file `Coord.o'.
File `Coord.o' does not exist.
Must remake target `Coord.o'.
Live child 0x00651fb0 (poly.o) PID 7703
Need a job token; we have children
Live child 0x00651fb0 (poly.o) PID 7703
Live child 0x00651fb0 (poly.o) PID 7703
Reaping winning child 0x00651fb0 PID 7703
Removing child 0x00651fb0 PID 7703 from chain.
make[2]: Leaving directory
`/mnt/usb1/scratch/mpatel/tmp/sage-4.3.4.alpha0-j20-par/spkg/build/palp-1.1.p2/src'
Error building PALP.
sage: An error occurred while installing palp-1.1.p2
}}}
It's not clear why this happens, but it breaks building spkgs in parallel
(#8306). As we've done with other packages, forcing a serial build helps.
PALP has a `Makefile` and a `GNUmakefile`. GNU `make` prefers the latter.
It seems that `export MAKE="make"` in `spkg-install` is not enough to
suppress a parallel build, but adding the special target
[http://www.gnu.org/software/automake/manual/make/Special-Targets.html
#index-g_t_002eNOTPARALLEL-248 .NOTPARALLEL] to `GNUmakefile` works.
Building in parallel appears to work if I replace `GNUmakefile` with
`Makefile`, but the compiler and compiler flags are different. The
package does not have an [obvious] test suite.
#7071 is another PALP ticket.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/8477>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.