GithubHelp home page GithubHelp logo

Comments (9)

hjmjohnson avatar hjmjohnson commented on June 11, 2024

I'm working with the TBB development team to fix issues with TBB installs. See #423

from brainstools.

tashrifbillah avatar tashrifbillah commented on June 11, 2024

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.

tashrifbillah avatar tashrifbillah commented on June 11, 2024

ping .. @hjmjohnson

from brainstools.

hjmjohnson avatar hjmjohnson commented on June 11, 2024

@tashrifbillah I can not replicate your issue. It looks like a compiler configuration problem. What OS, compiler, environment are you using?

from brainstools.

tashrifbillah avatar tashrifbillah commented on June 11, 2024

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.

tashrifbillah avatar tashrifbillah commented on June 11, 2024

By the way, I am using the default configuration.

from brainstools.

tashrifbillah avatar tashrifbillah commented on June 11, 2024

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.

tashrifbillah avatar tashrifbillah commented on June 11, 2024

@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.

hjmjohnson avatar hjmjohnson commented on June 11, 2024

from brainstools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.