Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Oct 25 2016 19:02
    inbilla commented #1
  • Oct 25 2016 18:17
    inbilla commented #1
  • Oct 25 2016 08:54
    inbilla commented #1
  • Oct 24 2016 14:38
    epot commented #1
  • Oct 24 2016 10:52
    mlimber commented #1
  • Oct 24 2016 10:52
    mlimber commented #1
  • Mar 22 2016 05:55

    inbilla on fastbuild-attempt1

    Fixed SubProject being broken. … (compare)

  • Mar 21 2016 09:13

    inbilla on fastbuild-attempt1

    Fixing the regression in Custom… (compare)

  • Mar 21 2016 03:28

    inbilla on fastbuild-attempt1

    Fixing two broken tests when se… Fixed Complex test. Custom comm… running fbuild on parent direct… and 1 more (compare)

  • Mar 09 2016 08:38

    inbilla on fastbuild-attempt1

    Fixing custom PDB directory def… (compare)

  • Mar 09 2016 07:20

    inbilla on fastbuild-attempt1

    Correctly add '/DEF' flagfor ex… Merge pull request #12 from pac… (compare)

  • Mar 09 2016 07:20
    inbilla closed #12
  • Mar 09 2016 07:20
    inbilla closed #13
  • Mar 09 2016 07:20
    inbilla commented #13
  • Mar 09 2016 07:15

    inbilla on fastbuild-attempt1

    Fastbuild is a multiconfig gene… Disabling distributed build dat… Fixing release builds linking t… and 7 more (compare)

  • Mar 07 2016 07:56
    l0calh05t commented #15
  • Mar 07 2016 07:20
    l0calh05t commented #15
  • Mar 07 2016 07:18
    l0calh05t commented #16
  • Mar 07 2016 06:37
    inbilla commented #17
  • Mar 07 2016 06:35
    inbilla commented #14
Theodore Newton
@twln1

CUDA language not currently supported I'm getting by "Fastbuild" generator with your attempt @colin-guyon but it only happens with some projects which is really weird. I had a previous attempt at doing this project with cmake 3.10 but had the same issues and was wondering if you might know anything abouty why this happens?

Im trying to build a much larger multi language project which is giving me that issue, but small CUDA projects don't

Ádám Szűcs
@JacksonFurrier
I haven't tried it on codebase containing CUDA but for general projects(dcmtk etc.) it works well. In our codebase unfortunately in linking I get cmd arg too long error (>32767). @colin-guyon as soon as you have something to test( I have tested the latest of your @colin-guyon
fastbuild upstream 3.11.4
let me know and I will check it ;)
Theodore Newton
@twln1

I keep getting a Fastbuild #1500 error when trying to build projects with clang/clang++. I can use gcc/g++ fine/

-- The C compiler identification is Clang 3.6.2
-- The CXX compiler identification is Clang 3.6.2
-- Check for working C compiler: /usr/bin/clang-3.6
-- Check for working C compiler: /usr/bin/clang-3.6 -- broken
CMake Error at /usr/local/share/cmake-3.11/Modules/CMakeTestCCompiler.cmake:52 (message):
  The C compiler
    "/usr/bin/clang-3.6"
 is not able to compile a simple test program.

Is my output. Has anyone had anything like that with their attempts? @JacksonFurrier I've simplified down my tests a lot and this seems to be the main issue for me atm. I cloned off of @colin-guyon 's one maybe a couple days after his most recent post here

Ádám Szűcs
@JacksonFurrier
@twln Your CMake compiler test is failing because I guess you haven't loaded all the environment variables. For more help I would need to see the rest of the error msg.
Theodore Newton
@twln1

@JacksonFurrier ```theo@devtheo:~/Documents/Workspace/c++gol/build$ cmake .. -GFastbuild
-- The C compiler identification is Clang 3.6.2
-- The CXX compiler identification is Clang 3.6.2
-- Check for working C compiler: /usr/bin/clang-3.6
-- Check for working C compiler: /usr/bin/clang-3.6 -- broken
CMake Error at /usr/local/share/cmake-3.11/Modules/CMakeTestCCompiler.cmake:52 (message):
The C compiler

"/usr/bin/clang-3.6"

is not able to compile a simple test program.

It fails with the following output:

Change Dir: /home/theo/Documents/Workspace/c++gol/build/CMakeFiles/CMakeTmp

Run Build Command:"/home/twln/Documents/Workspace/c++gol/build/fbuild" "-showcmds" "-ide" "-config" "/home/twln/Documents/Workspace/c++gol/build/CMakeFiles/CMakeTmp/fbuild.bff" "cmTC_ed51a-Debug"
/home/twln/Documents/Workspace/c++gol/build/CMakeFiles/CMakeTmp/base.bff(24,1): FASTBuild Error #1500 - Compiler() - Compiler detection failed. Unrecognized executable '\usr\bin\clang-3.6'.
Compiler('Compiler-C')
^
\--here

CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:2 (project)

-- Configuring incomplete, errors occurred!
See also "/home/twln/Documents/Workspace/c++gol/build/CMakeFiles/CMakeOutput.log".
See also "/home/twln/Documents/Workspace/c++gol/build/CMakeFiles/CMakeError.log".
```

Just using a simple Conway Game of Life to test it at the minute. Is this what you mean or would I need to give you the error log file?

Theodore Newton
@twln1
'clang' works but clang-3.6 is an issue
T4lus
@T4lus
hello every one
Ádám Szűcs
@JacksonFurrier
Seems like it is something nasty with your clang version
this "\usr\bin\clang-3.6" doesn't seems like an executable to me
hello @T4lus
Ádám Szűcs
@JacksonFurrier
@colin-guyon do you have any updates on the FastBuild generator? For me the only issue is such, when linking I run out of command line length under windows 32767. The last commit I see points this out, as soon as you solve it I am here to test.
Theodore Newton
@twln1
@JacksonFurrier Weird thing is that same clang version will work fine for -GNinja or just plain cmake so I don't really understand what the issue is.
Colin GUYON
@colin-guyon
Hello, sorry for not being reactive
I worked on another branch to take another base branch for the FASTBuild generator, the one from JeremieA instead of the one from @comicfans, because a few things are important on this branch (https://github.com/JeremieA/fastbuild/commits/dev-IS) and I didn't succeed to quickly backport them on the comicfans' version. I think one of the important things is to always have the same fbuild.bff output when the input does not change, so that FASTBuild does not re-parse the file each time.
But at the end we will have to take some useful commits/fixes from the comicfans' version.
Here is the last version, that successfully compiles projects in my company: https://github.com/InSimo/CMake/commits/fastbuild-attempt3
With this version you also need to compile a slightly modified version of FASTBuild: https://github.com/InSimo/fastbuild/commits/dev-IS-2
So you can test it if you want ;)
It is based on CMake 3.12.0 and FASTBuild 0.96
Colin GUYON
@colin-guyon
@twln1 Your issue if certainly due to the fact that FASTBuild tries to parse the compiler executable name to guess a "compilerFamily", but it is limited to a fixed list: https://github.com/fastbuild/fastbuild/blob/master/Code/Tools/FBuild/FBuildCore/Graph/CompilerNode.cpp#L147
"clang-3.6" is not part of it. Maybe with some CMake env var you could tell CMake that the executable to take is "clang" (I guess clang is a symlink to clang-3.6, or the contrary ?). Else, FASTBuild could maybe be improved to correctly guess the compilerFamily even if the version of the compiler is in the file name... (or temporarily you could add "clang-3.6" in FASTBuild CompilerNode.cpp)
Colin GUYON
@colin-guyon
@twln1 Maybe you could set the C / CXX env vars to point to "\usr\bin\clang" (if it is indeed the same as your clang-3.6) (https://gitlab.kitware.com/cmake/community/wikis/FAQ#how-do-i-use-a-different-compiler)
Ádám Szűcs
@JacksonFurrier
@colin-guyon awesome, do you plan to upstream this to both Fastbuild and CMake? I will be back as soon as I tested these version on our codebase, but before thanks for the great work you have put into this. This must be an officially supported generator!
Colin GUYON
@colin-guyon
@JacksonFurrier Thanks ;) (but my work is limited compared to the ones who initiated the generator). Indeed it would be really great to upstream this to CMake and Fastbuild, even though I think it would need some cleaning before. I won't have time to work on it in short term, but at the end this is a goal.
Maybe also some of the changes made in FASTBuild could be removed and done using existing features of FASTBuild (the author of FASTBuild could give his feelings on this).
The distributed compilation works for my cases but this would certainly need to be improved to handle more cases (currently only tested on Windows with MSVC 2015).
Theodore Newton
@twln1
@colin-guyon Yes, that fixed the issue :) Silly question though, how do I compile InSimo's fastbuild version into an executable so that I can test that version of CMake?
Theodore Newton
@twln1
Also get
HT/Source/cmGlobalFastbuildGenerator.h:27:7: error: ‘void cmGlobalFastbuildGenerator::GenerateBuildCommand(std::vector<std::__cxx11::basic_string<char> >&, const string&, const string&, const string&, const string&, const string&, bool, bool, const std::vector<std::__cxx11::basic_string<char> >&)’ marked ‘override’, but does not override void GenerateBuildCommand( ^ Makefile:350: recipe for target 'cmake.o' failed make: *** [cmake.o] Error 1
This error when attempting to bootstrap that version of cmake
Colin GUYON
@colin-guyon
@twln1 here is a little howto I made to compile fastbuild, hope it is clear enough:
For the CMake build error indeed sorry it seems I forgot to push one small modification, "int /jobs/" should be added
Colin GUYON
@colin-guyon
sorry: For the CMake build error indeed sorry it seems I forgot to push one small modification, int /*jobs*/ should be added in the parameters in the signature of the GenerateBuildCommand (not easy for me to push the commit now)
Theodore Newton
@twln1
I'm trying to build all this in linux. At the minute the main thing I'm trying to fix is that it's trying to use /usr/bin/ar as a linker, but the -L flag that it's trying to use isn't a valid flag. I need to figure out which linker it should be using
Colin GUYON
@colin-guyon
I just pushed missing commits on a new branch, you should now take the https://github.com/InSimo/CMake/commits/fastbuild-attempt4 branch if you want to test.
I will tell you if I find some time to try the compilation on Linux
Theo Newton
@theo.newton_gitlab
Anyone got some speed comparisons with this vs ninja?
Colin GUYON
@colin-guyon
As FASTBuild supports distributed compilation across several machines, it could be much faster, but with a single machine it should be similar (even though I'm not sure, it would need measurements)
Ricardo Reis
@rickomax
Hi!
Anyone knows how to add a version-script to Emscripten with CMAKE?
I've tried with the following approach, but seems LLVM is ignoring the version-script:
set (CMAKE_SHARED_LINKER_FLAGS ${CMAKE_SHARED_LINKER_FLAGS} "-Wl,--version-script=" ${CMAKE_SOURCE_DIR} "/test.version")
Jomo Fisher
@jomof
@colin-guyon I was wondering whether FASTbuild generator would work for Android targeting. I ran into a problem that I'm not sure how to approach. During generation phase cmake does a few try_compile calls and I get a failure like: cmake\debug\x86-e\CMakeFiles\CMakeTmp\fbuild.bff(209,2): FASTBuild Error #1004 - Alias() - Empty string not allowed for property 'Targets'.
Alias('cmTC_d99c4-PreBuild-Debug')
^
--here
When I look at that fbuild.bff I do see an Alias with empty .Targets block. Looks like this:
Alias('cmTC_72752-PreBuild-Debug')
{
    .Targets = 
    {
    }
}
I'd be happy to debug and contribute a PR if possible but I'm not sure what this Alias is trying to do so I'm not sure what to look for. Any help would be appreciated
I can provide a lot more information about how things are set up but I don't want to spam until I know what you need
Colin GUYON
@colin-guyon
Hi @jomof you certainly need this commit : InSimo/fastbuild@9bc10bc that I made to workaround this issue.
So you would need to build FASTBuild with the modifications of this branch https://github.com/InSimo/fastbuild/commits/dev-IS-2
Colin GUYON
@colin-guyon
Ideally the CMake FASTBuild generator should not produce empty targets like that to be compliant with FASTBuild, but for the moment there is this 'easy' workaround
rmawatson
@rmawatson
Hello. If I want to be able to find_package and be able to just use this repository, rather then have to run cmake on it and make make install, do I just need to write a xxxConfig.cmake for the project?
Grant Rostig
@grantrostig
QtCreator from qt.io can use cmake. Anyone got it working with a complex external library such as HPX? Basically the HPX libraries and headers are no in the system's default locations, and I'm having a problem with linking with those libraries. Here my sample project https://github.com/grantrostig/binomial_hpx_cmake Any help is appreciated.
Grant Rostig
@grantrostig
With help, I got this working and the project is here: https://github.com/grantrostig/binomial_hpx_cmake
Jin Shun Lee
@jinshunlee

Hi, i want to run clang-tidy everytime i build with cmake, how can i do this?

other than adding
set(CMAKE_CXX_CLANG_TIDY clang-tidy -checks=-*,readability-*)
to the CMakeLists.txt

I tried to read the docs but I don't understand how to do it

goodandrewsoft
@goodandrewsoft
Hello.
How disable testing in this https://github.com/artyom-beilis/nowide/blob/master/standalone/CMakeLists.txt , before install?
Thilo Schuchort
@tschuchortdev

A while ago I made this CMake library to clone git repos at configure time: https://github.com/tschuchortdev/cmake_git_clone

It can be used to checkout other CMake libraries from git that need to be available at configure time (which doesn't work with ExternalProject_Add):
Maybe it will be useful for some of you.

OmegaDoom
@OmegaDoom
hello. Is this room dedicated to cmake?
Laneone
@Laneone
Hi, can anyone help me with installing libcurl on macos?
-- Could NOT find CURL (missing: CURL_INCLUDE_DIR)
CMake Error at CMakeLists.txt:140 (message):
Missing library: curl
João Pedro Abreu de Souza
@petrolifero
Hi. "Modern Cmake" tell to don't use variables, use properties on targets, but toolchain files act setting global variables to build. There's a way to define new properties on targets(https://cmake.org/cmake/help/latest/command/define_property.html) but if set toolchains as dummy targets with properties equals to toolchains ordinary global variables, cmake cannot use that to build. There's some way to use properties instead of variables to toolchain files?