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

Scons export template with build_profile="profile.build" throws impossibly long error message. #91844

Closed
SngLol opened this issue May 11, 2024 · 0 comments · Fixed by #91870
Closed

Comments

@SngLol
Copy link

SngLol commented May 11, 2024

Tested versions

Uses current repo clone for scons build

System information

Windows 10

Issue description

Using the following command to build export template
scons p=windows target=template_release arch=x86_64 build_profile="profile.build"

also adding build_profile="profile.build" to an existing and working build command gives the same type of error.

profile.build
profile.txt

error happens even if "disabled_build_options" is empty in profile.build

End part of error message:

#define ClassDB_Disable_ZIPPacker 1#define ClassDB_Disable_ZIPReader 1
      |                                      ^~~~~~
./core/typedefs.h:315:51: note: in definition of macro '__gd_take_second_arg'
  315 | #define __gd_take_second_arg(__ignored, val, ...) val
      |                                                   ^~~
./core/typedefs.h:317:31: note: in expansion of macro '____gd_is_defined'
  317 | #define ___gd_is_defined(val) ____gd_is_defined(__GDARG_PLACEHOLDER_##val)
      |                               ^~~~~~~~~~~~~~~~~
./core/typedefs.h:318:26: note: in expansion of macro '___gd_is_defined'
  318 | #define GD_IS_DEFINED(x) ___gd_is_defined(x)
      |                          ^~~~~~~~~~~~~~~~
./core/object/object.h:406:57: note: in expansion of macro 'GD_IS_DEFINED'
  406 |         static constexpr bool _class_is_enabled = !bool(GD_IS_DEFINED(ClassDB_Disable_##m_class)) && m_inherits::_class_is_enabled;                  \
      |                                                         ^~~~~~~~~~~~~
./core/object/object.h:406:71: note: in expansion of macro 'ClassDB_Disable_AESContext'
  406 |         static constexpr bool _class_is_enabled = !bool(GD_IS_DEFINED(ClassDB_Disable_##m_class)) && m_inherits::_class_is_enabled;                  \
      |                                                                       ^~~~~~~~~~~~~~~~
./core/crypto/aes_context.h:38:9: note: in expansion of macro 'GDCLASS'
   38 |         GDCLASS(AESContext, RefCounted);
      |         ^~~~~~~

scons: *** [core\crypto\aes_context.windows.template_release.x86_64.o] Error 1
scons: building terminated because of errors.

Recording of full error:
https://github.com/godotengine/godot/assets/19615208/7c62beed-4ab4-48a4-81ef-82224c9437ba

Steps to reproduce

scons p=windows target=template_release arch=x86_64 build_profile="profile.build"

Minimal reproduction project (MRP)

refer to profile.build

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants