Skip to content

resolve build failure due to -O#1214

Open
shi-yan wants to merge 1 commit intovlfeat:masterfrom
shi-yan:master
Open

resolve build failure due to -O#1214
shi-yan wants to merge 1 commit intovlfeat:masterfrom
shi-yan:master

Conversation

@shi-yan
Copy link
Copy Markdown

@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
Copy Markdown

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
Copy Markdown

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
Copy Markdown

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

@cuic0808
Copy link
Copy Markdown

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