Skip to content
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

resolve build failure due to -O #1214

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

shi-yan
Copy link

@shi-yan shi-yan commented May 17, 2019

cuda 10.1 on ubuntu 18 with gcc 4.9 will fail to build with the following:

nvcc fatal : '-D_FORCE_INLINES': expected a number

this is caused by the use of -O, adding a number -O0 solves it.

fix #1212

cuda 10.1 on ubuntu 18 with gcc 4.9 will fail to build with the following:

nvcc fatal   : '-D_FORCE_INLINES': expected a number

this is caused by the use of -O, adding a number -O0 solves it.
@ey-park
Copy link

ey-park commented May 12, 2020

it failed for me with the following error:

'O0' is an unknown mex argument

Do you know how to fix this?

Thank you

@zosel260
Copy link

zosel260 commented Sep 10, 2020

To fix 'nvcc fatal : '-DNDEBUG': expected a number' ,
I changed 'O' to 'O0' from line 340:
flags.base{end+1} = '-O0' ;

But I still get an error like :

Error using mex
Unknown MEX argument '-O0'.

Error in vl_compilenn>mex_compile (line 584)
mex(args{:}) ;

Please give me any advice.

@Mirsadeghi
Copy link

You just need to comment the line 340 (flags.base{end+1} = '-O' ).

@cuic0808
Copy link

cuic0808 commented Mar 3, 2022

You just need to comment the line 340 (flags.base{end+1} = '-O' ).

Thank you for your answer, I also meet this question. Is there any defect to comment this line340? Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

vl_compilenn -DNDEBUG expected a number
5 participants