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

Running "meson configure" in source directory raises an exception (yet again) #5909

Closed
Akaricchi opened this issue Sep 10, 2019 · 2 comments
Closed
Assignees

Comments

@Akaricchi
Copy link
Contributor

Yes, it's Taisei again. Ping @mensinda.

If it helps, the taisei commit is taisei-project/taisei@e68bfdb

[0] [akari@navi] [master ← /data/git/taisei]
 % c
Unable to evaluate subdir([]) in AstInterpreter --> Skipping
Unable to evaluate subdir([]) in AstInterpreter --> Skipping
Unable to evaluate subdir([]) in AstInterpreter --> Skipping
WARNING: The source directory instead of the build directory was specified.
WARNING: Only the default values for the project are printed, and all command line parameters are ignored.

Core properties:
  Source dir /data/git/taisei

Core options:
  Option          Default Value Possible Values                                          Description                                             
  ------          ------------- ---------------                                          -----------                                             
  auto_features   auto          [enabled, disabled, auto]                                Override value of all 'auto' features                   
  backend         ninja         [ninja, vs, vs2010, vs2015, vs2017, vs2019, xcode]       Backend to use                                          
  buildtype       release       [plain, debug, debugoptimized, release, minsize, custom] Build type to use                                       
  debug           false         [true, false]                                            Debug                                                   
  default_library static        [shared, static, both]                                   Default library type                                    
  install_umask   0022          [preserve, 0000-0777]                                    Default umask to apply on permissions of installed files
  layout          mirror        [mirror, flat]                                           Build directory layout                                  
  optimization    3             [0, g, 1, 2, 3, s]                                       Optimization level                                      
  strip           true          [true, false]                                            Strip targets on install                                
  unity           off           [on, off, subprojects]                                   Unity build                                             
  warning_level   1             [0, 1, 2, 3]                                             Compiler warning level to use                           
  werror          false         [true, false]                                            Treat warnings as errors                                
  wrap_mode       default       [default, nofallback, nodownload, forcefallback]         Wrap mode                                               
Traceback (most recent call last):
  File "/data/git/meson/mesonbuild/mesonmain.py", line 129, in run
    return options.run_func(options)
  File "/data/git/meson/mesonbuild/mconf.py", line 216, in run
    c.print_conf()
  File "/data/git/meson/mesonbuild/mconf.py", line 184, in print_conf
    if self.build.environment.is_cross_build():
AttributeError: 'NoneType' object has no attribute 'environment'
@Akaricchi
Copy link
Contributor Author

On a second look this isn't taisei-specific at all. Seems to happen on all projects. Probably should add a test that just attempts this on a dummy project.

mensinda added a commit to mensinda/meson that referenced this issue Sep 13, 2019
@mensinda
Copy link
Member

Should be fixed with #5921.

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

No branches or pull requests

2 participants