Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show build stats #224

Merged
merged 6 commits into from
Jun 17, 2024
Merged

Show build stats #224

merged 6 commits into from
Jun 17, 2024

Conversation

IanButterworth
Copy link
Member

I believe this used to be run.

Should help monitor sysimage size etc.

@giordano
Copy link
Member

Maybe at https://github.com/JuliaLang/julia/blob/37e0579af04919e1e6264bbfc33ed8f4c537005a/Makefile#L608-L611 the speedtest should be launched only if time is actually available?

@DilumAluthge
Copy link
Member

DilumAluthge commented Oct 29, 2022

Maybe at https://github.com/JuliaLang/julia/blob/37e0579af04919e1e6264bbfc33ed8f4c537005a/Makefile#L608-L611 the speedtest should be launched only if time is actually available?

It might be easier to just add time to the package_linux and package_musl images: JuliaCI/rootfs-images#240

@giordano
Copy link
Member

That doesn't change the fact that running a command which doesn't exist isn't going to work.

@DilumAluthge
Copy link
Member

Sure, but isn't time basically a build-time dependency for the make build-stats target? So it seems fine to error if the dependency is unavailable.

@IanButterworth
Copy link
Member Author

(feel free to push to this)

@DilumAluthge
Copy link
Member

Okay, so JuliaCI/rootfs-images#240 will add time to package_linux and package_musl. From the CI logs, it looks like the macOS CI machines already have time installed.

So we only need to figure out Windows. Does anyone know what I need to install for Windows?

If it helps, here's how we build the package-windows-i686 and package-windows-x86_64 Docker images: https://github.com/JuliaCI/rootfs-images/tree/main/windows

@inkydragon
Copy link
Contributor

MSYS2 already has a built-in time.

woclass@wos-PC MINGW64 /v/julia
$ which time
/usr/bin/time

The main problem is that llvm-size$(EXE) needs the dll in the $(build_bindir) directory:

$ PATH=/v/julia/julia-mingw64/usr/bin:$PATH /v/julia/julia-mingw64/usr/tools/llvm-size.exe
V:\julia\julia-mingw64\usr\tools\llvm-size.exe: error: 'a.out': No such file or directory

$ PATH= /v/julia/julia-mingw64/usr/tools/llvm-size.exe
V:/julia/julia-mingw64/usr/tools/llvm-size.exe: error while loading shared libraries: libLLVM-14jl.dll: cannot open shared object file: No such file or directory
diff --git a/Makefile b/Makefile
index 84f08f4776..a5f77a7ea8 100644
--- a/Makefile
+++ b/Makefile
@@ -646,7 +646,7 @@ win-extras:
 ifeq ($(USE_SYSTEM_LLVM), 1)
 LLVM_SIZE := llvm-size$(EXE)
 else
-LLVM_SIZE := $(build_depsbindir)/llvm-size$(EXE)
+LLVM_SIZE := PATH=$(build_bindir):$$PATH; $(build_depsbindir)/llvm-size$(EXE)
 endif
 build-stats:
 ifeq ($(USE_BINARYBUILDER_LLVM),1)

Zentrik added a commit to Zentrik/julia that referenced this pull request Mar 30, 2024
Per JuliaCI/julia-buildkite#224 (comment), the path needs to be updated so that `llvm-size` can find `libLLVM.dll`.
@Zentrik
Copy link
Contributor

Zentrik commented Mar 30, 2024

This should probably use ${MAKE} instead of make.

ViralBShah pushed a commit to JuliaLang/julia that referenced this pull request Apr 1, 2024
Per
JuliaCI/julia-buildkite#224 (comment),
the path needs to be updated so that `llvm-size` can find `libLLVM.dll`.
@Zentrik
Copy link
Contributor

Zentrik commented Apr 1, 2024

I think you need to rebase this.

@Zentrik
Copy link
Contributor

Zentrik commented Apr 1, 2024

I think we want ${MAKE} "${MFLAGS[@]}" build-stats for it to work for the assert builds.

Zentrik added a commit to Zentrik/julia-buildkite that referenced this pull request May 4, 2024
I can't push to JuliaCI#224 so just testing if my fix works properly.
@Zentrik Zentrik mentioned this pull request May 4, 2024
utilities/build_julia.sh Outdated Show resolved Hide resolved
IanButterworth and others added 2 commits June 17, 2024 08:09
Co-authored-by: Zentrik <Zentrik@users.noreply.github.com>
@staticfloat staticfloat merged commit 1a449e5 into JuliaCI:main Jun 17, 2024
5 of 6 checks passed
@IanButterworth IanButterworth deleted the ib/build_stats branch June 17, 2024 17:44
KristofferC pushed a commit to JuliaLang/julia that referenced this pull request Jun 24, 2024
Per
JuliaCI/julia-buildkite#224 (comment),
the path needs to be updated so that `llvm-size` can find `libLLVM.dll`.

(cherry picked from commit 657ce04)
KristofferC pushed a commit to JuliaLang/julia that referenced this pull request Aug 1, 2024
Per
JuliaCI/julia-buildkite#224 (comment),
the path needs to be updated so that `llvm-size` can find `libLLVM.dll`.

(cherry picked from commit 657ce04)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants