vlfeat / matconvnet

MatConvNet: CNNs for MATLAB
Other
1.4k stars 752 forks source link

resolve build failure due to -O #1214

Open shi-yan opened 5 years ago

shi-yan commented 5 years ago

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

ey-park commented 4 years ago

it failed for me with the following error:

'O0' is an unknown mex argument

Do you know how to fix this?

Thank you

zosel260 commented 4 years ago

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 commented 3 years ago

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

cuic0808 commented 2 years ago

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.