SoftwareNetwork / sw

Software Manager. Build System, Build System Generator and Package Manager. C/C++ and other languages. Tools and libraries for Software Management.
https://software-network.org
Other
115 stars 23 forks source link

build self by `sw build --static` raise error #105

Closed huhuang03 closed 1 year ago

huhuang03 commented 1 year ago

Describe the bug I want build sw by sw build --static, but an errror throws int he build. The error is:

/Users/xxx/source/sw/.sw/t/184201/0bba4a/bd/build_self.generated.h:1071:71: error: use of undeclared identifier 'build_org_sw_demo_python_lib__3_10_5'; did you mean 'build_org_sw_demo_python_exe__3_10_5'?
        auto ep = std::make_unique<sw::NativeBuiltinTargetEntryPoint>(build_org_sw_demo_python_lib__3_10_5);

and

/Users/xxx/source/sw/.sw/t/184201/0bba4a/bd/build_self.generated.h:1072:18: error: use of undeclared identifier 'check_org_sw_demo_python_lib__3_10_5'; did you mean 'check_org_sw_demo_python_exe__3_10_5'?
        ep->cf = check_org_sw_demo_python_lib__3_10_5;
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                 check_org_sw_demo_python_exe__3_10_5

To Reproduce Steps to reproduce the behavior:

  1. clone sw
  2. run sw build --static in sw.

Information:

egorpugin commented 1 year ago

Yes, I also saw this spurious error. On some system it happens, on some it does not. You need manually to replace that var.

I'll try to check possible fixes.

egorpugin commented 1 year ago

Possible fix is uploaded.