Comments (9)
I'm working with the TBB development team to fix issues with TBB installs. See #423
from brainstools.
I wish I tried it earlier. I didn't see a commit was added addressing my issue. However, it didn't work:
Performing C++ SOURCE FILE Test CXX_HAS_DISABLE_OPTIMIZATION_FLAG failed with the following output:
Change Dir: /home/tb571/BRAINSTools/build/BRAINSTools-build/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/gmake" "cmTC_8a147/fast"
gmake[3]: Entering directory `/home/tb571/BRAINSTools/build/BRAINSTools-build/CMakeFiles/CMakeTmp'
/usr/bin/gmake -f CMakeFiles/cmTC_8a147.dir/build.make CMakeFiles/cmTC_8a147.dir/build
gmake[4]: Entering directory `/home/tb571/BRAINSTools/build/BRAINSTools-build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_8a147.dir/src.cxx.o
/usr/bin/c++ -Wall -Wcast-align -Wdisabled-optimization -Wextra -Wformat=2 -Winvalid-pch -Wno-format-nonliteral -Wpointer-arith -Wshadow -Wunused -Wwrite-strings -funit-at-a-time -Wno-strict-overflow -Wno-deprecated -Wno-invalid-offsetof -Woverloaded-virtual -Wstrict-null-sentinel -Wno-array-bounds -fPIC -Wall -Wcast-align -Wdisabled-optimization -Wextra -Wformat=2 -Winvalid-pch -Wno-format-nonliteral -Wpointer-arith -Wshadow -Wunused -Wwrite-strings -funit-at-a-time -Wno-strict-overflow -Wno-deprecated -Wno-invalid-offsetof -Woverloaded-virtual -Wstrict-null-sentinel -DCXX_HAS_DISABLE_OPTIMIZATION_FLAG -std=c++11 -o CMakeFiles/cmTC_8a147.dir/src.cxx.o -c /home/tb571/BRAINSTools/build/BRAINSTools-build/CMakeFiles/CMakeTmp/src.cxx
/home/tb571/BRAINSTools/build/BRAINSTools-build/CMakeFiles/CMakeTmp/src.cxx:1:1: error: expected unqualified-id before ‘-’ token
-O0
^
gmake[4]: *** [CMakeFiles/cmTC_8a147.dir/src.cxx.o] Error 1
gmake[4]: Leaving directory `/home/tb571/BRAINSTools/build/BRAINSTools-build/CMakeFiles/CMakeTmp'
gmake[3]: *** [cmTC_8a147/fast] Error 2
gmake[3]: Leaving directory `/home/tb571/BRAINSTools/build/BRAINSTools-build/CMakeFiles/CMakeTmp'
Source file was:
-O0
from brainstools.
ping .. @hjmjohnson
from brainstools.
@tashrifbillah I can not replicate your issue. It looks like a compiler configuration problem. What OS, compiler, environment are you using?
from brainstools.
Centos 7
cmake version 3.11.4
gmake --version
GNU Make 3.82
Built for x86_64-redhat-linux-gnu
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
from brainstools.
By the way, I am using the default configuration.
from brainstools.
Hi @hjmjohnson , where do we stand in diagnosing/solving this issue? Did we find out what is causing
error: expected unqualified-id before ‘-’ token
?
from brainstools.
@hjmjohnson , I may have found a solution for my issue. Which version of cmake are you using? Previously, I was using 3.11.4 and that was yielding the above error.
However, when I updated to 3.14.2 (the latest), the error seems to disappear. Does it sound reasonable?
In brief, I am building against master branch on a Centos7 machine.
from brainstools.
from brainstools.
Related Issues (20)
- International conversion of string values to double (or int)
- Review population based template building. HOT 2
- DWIConvert fails with coronal DICOMs
- BRAINSTools build fails to properly configure TBB HOT 3
- Warning: #define main ModuleEntryPoint (-fvar-tracking-assignments)
- DWIConvert absent in build/bin HOT 3
- Problem with script hierarchy using Sphinx
- Problems accessing scripts using Sphinx
- Problems autodocumenting scripts using Sphinx
- Bug: inputLandmarkFiles.size() >= 2 instead of >2 ? HOT 2
- Missing 'from collection import OrderedDict'?
- interpolator type issue (was: can't use transform template in ITK5) HOT 4
- DWIConvert converts UINT16 as INT16
- BCD: Error during Reading in external files HOT 1
- GTRACT command line Slicer 4.10. HOT 1
- Float output type required for updated itk::SignedMaurerDistanceMapImageFilter
- Fix GH-PAGES
- problems with installation HOT 1
- Clarify CLI module paramter description
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from brainstools.