On the vanilla master code of the isio/istio every make
run takes a very long time. In other directories or with my own Makefiles it runs as it should but for the istio it doesn’t.
It’s not a problem of the machine because it’s a powerful workstation with Ubuntu 21.10.
Let’s have a look:
First run
$ echo $HUB $TAG
localhost:5000 latest
$ time make build --debug=B
GNU Make 4.3
Built for x86_64-pc-linux-gnu
Copyright (C) 1988-2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Reading makefiles...
Updating makefiles....
Updating goal targets....
File 'build' does not exist.
Must remake target 'build'.
//long pause here
GNU Make 4.3
Built for x86_64-pc-linux-gnu
Copyright (C) 1988-2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Reading makefiles...
Updating makefiles....
Updating goal targets....
File 'build' does not exist.
File 'depend' does not exist.
File 'init' does not exist.
Must remake target 'init'.
Successfully remade target file 'init'.
Must remake target 'depend'.
Successfully remade target file 'depend'.
Must remake target 'build'.
GOOS=linux GOARCH=amd64 LDFLAGS='-extldflags -static -s -w' common/scripts/gobuild.sh /work/out/linux_amd64/ ./istioctl/cmd/istioctl ./pilot/cmd/pilot-discovery ./pkg/test/echo/cmd/client ./pkg/test/echo/cmd/server ./samples/extauthz/cmd/extauthz ./operator/cmd/operator ./cni/cmd/istio-cni ./cni/cmd/istio-cni-taint ./cni/cmd/install-cni ./tools/istio-iptables ./tools/bug-report
real 0m1,413s
user 0m4,542s
sys 0m2,410s
GOOS=linux GOARCH=amd64 LDFLAGS='-extldflags -static -s -w' common/scripts/gobuild.sh /work/out/linux_amd64/ -tags=agent ./pilot/cmd/pilot-agent
real 0m0,806s
user 0m2,426s
sys 0m1,161s
Successfully remade target file 'build'.
Successfully remade target file 'build'.
make build --debug=B 0,21s user 0,18s system 0% cpu 29:53,97 total
Second run
$make build --debug=B
GNU Make 4.3
Built for x86_64-pc-linux-gnu
Copyright (C) 1988-2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Reading makefiles...
Updating makefiles....
Updating goal targets....
File 'build' does not exist.
Must remake target 'build'.
//long pause
GNU Make 4.3
Built for x86_64-pc-linux-gnu
Copyright (C) 1988-2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Reading makefiles...
Updating makefiles....
Updating goal targets....
File 'build' does not exist.
File 'depend' does not exist.
File 'init' does not exist.
Must remake target 'init'.
Successfully remade target file 'init'.
Must remake target 'depend'.
Successfully remade target file 'depend'.
Must remake target 'build'.
GOOS=linux GOARCH=amd64 LDFLAGS='-extldflags -static -s -w' common/scripts/gobuild.sh /work/out/linux_amd64/ ./istioctl/cmd/istioctl ./pilot/cmd/pilot-discovery ./pkg/test/echo/cmd/client ./pkg/test/echo/cmd/server ./samples/extauthz/cmd/extauthz ./operator/cmd/operator ./cni/cmd/istio-cni ./cni/cmd/istio-cni-taint ./cni/cmd/install-cni ./tools/istio-iptables ./tools/bug-report
real 0m3,192s
user 0m5,848s
sys 0m2,929s
GOOS=linux GOARCH=amd64 LDFLAGS='-extldflags -static -s -w' common/scripts/gobuild.sh /work/out/linux_amd64/ -tags=agent ./pilot/cmd/pilot-agent
real 0m0,599s
user 0m2,381s
sys 0m1,172s
Successfully remade target file 'build'.
Successfully remade target file 'build'.
Any similar experience here?