Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 627526 - dev-db/cockroach: MAKEOPTS won't get be effective
Summary: dev-db/cockroach: MAKEOPTS won't get be effective
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: William Hubbs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: makeopts-ignored
  Show dependency tree
 
Reported: 2017-08-11 08:02 UTC by Toralf Förster
Modified: 2018-12-27 10:00 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
24.20180513-055047 (24.20180513-055047,107.74 KB, text/plain)
2018-05-13 11:30 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2017-08-11 08:02:05 UTC
I do have 

MAKEOPTS="-j1"
NINJAFLAGS="-j1"

in make.conf.

But emerging that package at my tinderbox gives many compile processes:


make,5625 -j1 GOPATH=/var/tmp/portage/dev-db/cockroach-1.0.3/work/cockroach-v1.0.3 build
  │                                       └─make,5630 -C src/github.com/cockroachdb/cockroach build
  │                                           └─go,17551 build -i -o cockroach -v -tags  make x86_64_pc_linux_gnu -ldflags  -X github.com/cockroachdb/cockroach/pkg/build.typ=development -X "github.com/cockroachdb/cockroach/pkg/build.tag=v1.0.3" -X "github.com/cockroachdb/cockroach/pkg/build.utcTime=2017/08/11 07:57:15" -X "github.com/cockroachdb/cockroach/pkg/build.rev=b692a7cc7acc57022d1441034b93b85d860b7e86" .
  │                                               ├─{go},17645
  │                                               ├─{go},17646
  │                                               ├─{go},17647
  │                                               ├─{go},17648
  │                                               ├─{go},17652
  │                                               ├─{go},17745
  │                                               ├─{go},17747
  │                                               ├─{go},17780


...
 ├─{go},20673
  │                                               ├─{go},20695
  │                                               ├─compile,21446 -o /var/
Comment 1 William Hubbs gentoo-dev 2017-12-07 22:30:36 UTC
Is this still an issue with 1.1.2?

Thanks,

William
Comment 2 Toralf Förster gentoo-dev 2017-12-08 17:32:40 UTC
(In reply to William Hubbs from comment #1)
yes, rather a problem with I'd say.

I do have 

j="1"
MAKEOPTS="-j$j"
NINJAFLAGS="-j$j"
EGO_BUILD_FLAGS="-p $j"
GOMAXPROCS="$j"
RUSTFLAGS="-C codegen-units=$j"

which works for nearly all except for Go.

And the queue length of my tinderbox this night shows exactly 3 sharp spikes when that package was emerged at 3 images.
Comment 3 William Hubbs gentoo-dev 2017-12-08 20:18:41 UTC
Go 1.9 has its own parallel compilation. See the release notes at

https://golang.org/doc/go1.9

Try setting the following in the environment:

export GO19CONCURRENTCOMPILATION=0
Comment 4 Toralf Förster gentoo-dev 2018-05-13 11:29:42 UTC
(In reply to William Hubbs from comment #3)
I do have 
MAKEOPTS="-j1"
NINJAFLAGS="-j1"
EGO_BUILD_FLAGS="-p 1"
GOMAXPROCS="1"
GO19CONCURRENTCOMPILATION=0
RUSTFLAGS="-C codegen-units=1"
RUST_TEST_THREADS=1
RUST_TEST_TASKS=1

for all tinderbox images set - but cockroach doesn't respect i
Comment 5 Toralf Förster gentoo-dev 2018-05-13 11:30:15 UTC
Created attachment 531206 [details]
24.20180513-055047

pstree
Comment 6 Toralf Förster gentoo-dev 2018-06-18 21:10:26 UTC
FWIW -j1 is set as seen here - but the calling make seems to unset it:

  │                                   └─make,11753 -j1 build
  │                                       └─make,11760 -C src/github.com/cockroachdb/cockroach build
  │                                           └─make,8158 --no-print-directory -C /var/tmp/portage/dev-db/cockroach-2.0.1/work/cockroach-v2.0.1/native/x86_64-pc-linu
x-gnu/rocksdb rocksdb
  │                                               └─make,8199 -f CMakeFiles/Makefile2 rocksdb
  │                                                   └─make,8232 -f CMakeFiles/Makefile2 CMakeFiles/rocksdb.dir/all
  │                                                       └─make,16229 -f CMakeFiles/rocksdb.dir/build.make CMakeFiles/rocksdb.dir/build
Comment 7 Toralf Förster gentoo-dev 2018-12-27 10:00:10 UTC
still true with 2.0.1:

│                                                       └─make -f CMakeFiles/rocksdb.dir/build.make CMakeFiles/rocksdb.dir/build
  │                                                           ├─c++ -DHAVE_SSE42 -DJEMALLOC_NO_DEMANGLE -DOS_LINUX -DROCKSDB_FALLOCATE_PRESENT ...
  │                                                           │   └─cc1plus -quiet -I...
  │                                                           ├─c++ -DHAVE_SSE42 -DJEMALLOC_NO_DEMANGLE -DOS_LINUX -DROCKSDB_FALLOCATE_PRESENT ...
  │                                                           │   └─cc1plus -quiet -I...
  │                                                           ├─c++ -DHAVE_SSE42 -DJEMALLOC_NO_DEMANGLE -DOS_LINUX -DROCKSDB_FALLOCATE_PRESENT ...
  │                                                           │   └─cc1plus -quiet -I...
  │                                                           ├─c++ -DHAVE_SSE42 -DJEMALLOC_NO_DEMANGLE -DOS_LINUX -DROCKSDB_FALLOCATE_PRESENT ...
  │                                                           │   └─cc1plus -quiet -I...
  │                                                           ├─c++ -DHAVE_SSE42 -DJEMALLOC_NO_DEMANGLE -DOS_LINUX -DROCKSDB_FALLOCATE_PRESENT ...
  │                                                           │   └─cc1plus -quiet -I...
  │                                                           ├─c++ -DHAVE_SSE42 -DJEMALLOC_NO_DEMANGLE -DOS_LINUX -DROCKSDB_FALLOCATE_PRESENT ...
  │                                                           │   └─cc1plus -quiet -I...
  │                                                           ├─c++ -DHAVE_SSE42 -DJEMALLOC_NO_DEMANGLE -DOS_LINUX -DROCKSDB_FALLOCATE_PRESENT ...
  │                                                           │   └─cc1plus -quiet -I...
  │                                                           ├─c++ -DHAVE_SSE42 -DJEMALLOC_NO_DEMANGLE -DOS_LINUX -DROCKSDB_FALLOCATE_PRESENT ...
  │                                                           │   └─cc1plus -quiet -I...
  │                                                           ├─c++ -DHAVE_SSE42 -DJEMALLOC_NO_DEMANGLE -DOS_LINUX -DROCKSDB_FALLOCATE_PRESENT ...
  │                                                           │   └─cc1plus -quiet -I...
  │                                                           ├─c++ -DHAVE_SSE42 -DJEMALLOC_NO_DEMANGLE -DOS_LINUX -DROCKSDB_FALLOCATE_PRESENT ...
  │                                                           │   └─cc1plus -quiet -I...
  │                                                           ├─c++ -DHAVE_SSE42 -DJEMALLOC_NO_DEMANGLE -DOS_LINUX -DROCKSDB_FALLOCATE_PRESENT ...
  │                                                           │   └─cc1plus -quiet -I...
  │                                                           └─c++ -DHAVE_SSE42 -DJEMALLOC_NO_DEMANGLE -DOS_LINUX -DROCKSDB_FALLOCATE_PRESENT ...
  │                                                               └─cc1plus -quiet -I...

:-/