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

"Looking for external crate: gprbuild" is slow #1028

Closed
robdaemon opened this issue May 22, 2022 · 2 comments · Fixed by #1036
Closed

"Looking for external crate: gprbuild" is slow #1028

robdaemon opened this issue May 22, 2022 · 2 comments · Fixed by #1036
Milestone

Comments

@robdaemon
Copy link

When running alr build, or any alr command that invokes gprbuild, there is a several second pause while I see "Looking for external crate: gprbuild". Sometimes the pause can be up to 10 seconds.

alr config for my project reports:

last_build_profile=DEVELOPMENT
toolchain.external.gprbuild=TRUE
toolchain.assistant=false
toolchain.use.gnat=gnat_external=12.1.1
toolchain.use.gprbuild=gprbuild=2020.0.0
toolchain.external.gnat=TRUE

alr version:

APPLICATION                                                                                       
alr version:               1.2.0-rc1                                                              
libalire version:          1.2.0-rc1                                                              
compilation date:          2022-05-18 13:19:00                                                    
compiler version:          Community 2021 (20210519-103)                                          
                          
CONFIGURATION             
config folder:             /home/rroland/.config/alire                                            
force flag:                FALSE                                                                  
non-interactive flag:      FALSE                                                                  
community index branch:    stable-1.2                                                             
compatible index versions: ^1.1 & <=1.2                                                           
indexes folder:            /home/rroland/.config/alire/indexes                                    
indexes metadata:          OK                                                                     
index #1:                  (community) git+https://github.com/alire-project/alire-index#stable-1.2
toolchain assistant:       disabled                                                               
tool #1 gnat:              gnat_external=12.1.1                                                   
tool #2 gprbuild:          gprbuild=2020.0.0                                                      
                          
WORKSPACE                 
root status:               VALID                                                                  
root release:              plaidcl=0.1.0-dev                                                      
root load error:           none                                                                   
root folder:               /home/rroland/src/plaidcl                                              
current folder:            /home/rroland/src/plaidcl                                              
                          
SYSTEM                    
distribution:              FEDORA                                                                 
host-arch:                 X86_64                                                                 
os:                        LINUX                                                                  
target:                    NATIVE                                                                 
toolchain:                 SYSTEM                                                                 
word-size:                 BITS_64                                                                

This is Fedora 36 amd64, with the gprbuild and gnat packages installed from the Fedora DNF repos.

@mosteo mosteo added this to the 1.2 milestone May 23, 2022
@mosteo
Copy link
Member

mosteo commented May 23, 2022

Thanks for the report, @robdaemon . I'll take a look at the package manager switches we're using.

As a workaround, when using an external compiler, you should be able to get by in most cases by choosing "None" for both tools.

@mosteo
Copy link
Member

mosteo commented Jun 5, 2022

Fixed in #1036

@mosteo mosteo closed this as completed Jun 5, 2022
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 a pull request may close this issue.

2 participants