-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
compile error with gcc9.1 on linux #1636
Comments
So I can compile everything, I added the
This is in the |
That worked! Thank you. |
Just to be sure. Did you follow https://github.com/catchorg/Catch2/blob/master/projects/Where%20did%20the%20projects%20go.txt ? |
Oooh... That worked. Either way, this is really not conventional for What I do with nearly all projects is extract the code:
Then I create a build folder
and
Any reason why you had to break the usual scheme? Doing so with Maybe a
Anyway. The Generated folder is better than having to apply a patch! :-) |
@AlexisWilke just generating any folder different from the source folder should work, my work flow is to just do
for linux builds and it works. The original error was caused by building in the source directory, which is generally bad idea and CMake will now error out rather than do it. |
@JoeyGrajciar That file is terrible and no longer exists 😃 |
Ah! Great. I tested with the latest from Maybe you need a new release with a fix to the file Joey's mentioned above... |
Compile error when building catch2, from the repository.
cloned catch2 yesterday (May 18,2019) with:
git clone https://github.com/catchorg/Catch2.git
into a folder catch2.
Then started a build in that folder with
cmake .
make
This produced the following error:
[ 99%] Building CXX object projects/CMakeFiles/SelfTest.dir/SelfTest/SurrogateCpps/catch_xmlwriter.cpp.o
[100%] Linking CXX executable SelfTest
/usr/bin/ld: cannot open output file SelfTest: Is a directory
collect2: error: ld returned 1 exit status
projects/CMakeFiles/SelfTest.dir/build.make:1703: recipe for target 'projects/SelfTest' failed
make[2]: *** [projects/SelfTest] Error 1
CMakeFiles/Makefile2:986: recipe for target 'projects/CMakeFiles/SelfTest.dir/all' failed
make[1]: *** [projects/CMakeFiles/SelfTest.dir/all] Error 2
Makefile:162: recipe for target 'all' failed
make: *** [all] Error 2
alan@alan-SH67H3:~/projects/functional/code-examples/3rd-party/catchorg/Catch2$
This looks like an error that was previously encountered and has resurrected itself.
Platform information:
This is on x86_64 with ubuntu 18.04.2
Using gcc 9.1.0
and cmake 3.14.4
and GNU make 4.1
The text was updated successfully, but these errors were encountered: