gammasoft71 / xtd

Free open-source modern C++17 / C++20 framework to create console, GUI (forms like WinForms) and unit test applications and libraries on Microsoft Windows, Apple macOS and Linux.
https://gammasoft71.github.io/xtd
MIT License
735 stars 57 forks source link

[BUG] ./install fails with AUTHORS.md and make with call_stack.h missing #223

Closed jopadan closed 1 year ago

jopadan commented 1 year ago

Output

  1. ./install fails with AUTHORS.md missing.

    
    -- Configuring done
    CMake Error at scripts/cmake/xtd_commands.cmake:368 (add_library):
    Cannot find source file:
    
    /usr/src/libs/framework/xtd/gammasoft71/xtd/build/AUTHORS.md
    
    Tried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .ixx .cppm .h
    .hh .h++ .hm .hpp .hxx .in .txx .f .F .for .f77 .f90 .f95 .f03 .hip .ispc
    Call Stack (most recent call first):
    docs/CMakeLists.txt:302 (target_type)

-- Generating done CMake Generate step failed. Build files cannot be regenerated correctly. Error: could not load cache Error: could not load cache


2. `make` fails with `call_stack.h` missing.
```sh
[ 15%] Building CXX object src/xtd.core/CMakeFiles/xtd.core.dir/src/xtd/diagnostics/source_filter.cpp.o
/usr/src/libs/framework/xtd/gammasoft71/xtd/src/xtd.core/src/xtd/diagnostics/source_filter.cpp:2:10: fatal error: call_stack.h: No such file or directory
    2 | #include <call_stack.h>
      |          ^~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [src/xtd.core/CMakeFiles/xtd.core.dir/build.make:692: src/xtd.core/CMakeFiles/xtd.core.dir/src/xtd/diagnostics/source_filter.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1012: src/xtd.core/CMakeFiles/xtd.core.dir/all] Error 2
make: *** [Makefile:166: all] Error 2

Platform

gammasoft71 commented 1 year ago

Hello,

First of all, thank you for your feedback.

I will verify it as soon as soon as possible.

gammasoft71 commented 1 year ago

I m trying the latest xtd version of master branch on Ubuntu 22.04 and the installation is working fine. Can you send me more information about your linux distribution, gcc version, and cmake version.

jopadan commented 1 year ago

gcc version 12.2.1 20230401 (Gentoo 12.2.1_p20230401 p14) cmake version 3.25.20230116 pathrel patched cflags = -march=broadwell -mfpmath=sse+387 -mveclibabi=svml -O3

gammasoft71 commented 1 year ago

Can you get latest version and try again.

Warning Don't forget to delete the build folder in the xtd root folder.

jopadan commented 1 year ago

The listed errors still appear

gammasoft71 commented 1 year ago

You can't have the same error because the docs project which contains the AUTHORS.md file is not loaded by default on the last xtd master branch 😉

Make sure you are on the latest version of the master branch of xtd and that the build folder has been removed.

Type the following lines in your terminal:

cd xtd
git checkout master
git pull
rm -rf build
./install
jopadan commented 1 year ago

Works after yesterdays commit