MilerDiazZevallos / word2vec

Automatically exported from code.google.com/p/word2vec
0 stars 0 forks source link

Compile on debian #14

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.  svn checkout http://word2vec.googlecode.com/svn/trunk/
2. cd trunk
3. make

What is the expected output? What do you see instead?

cc1: error: invalid option argument '-Ofast'
make: *** [word2vec] Erreur 1

What version of the product are you using? On what operating system?

revision 34. Debian Squeeze.

Original issue reported on code.google.com by nicolas....@gmail.com on 4 Oct 2013 at 11:49

GoogleCodeExporter commented 8 years ago
You should change -Ofast to -O2 if you have older version of the gcc compiler 
(however, that can produce significantly slower code).

Original comment by tmiko...@google.com on 4 Oct 2013 at 6:57

GoogleCodeExporter commented 8 years ago
I am on ubuntu and my gcc version is gcc version 4.5.2 (GCC) 
and I am on ubuntu 12.04
Distributor ID: Ubuntu
Description:    Ubuntu 12.04.3 LTS
Release:    12.04
Codename:   precise

 make
gcc word2vec.c -o word2vec -lm -pthread -Ofast -march=native -Wall 
-funroll-loops -Wno-unused-result
cc1: error: invalid option argument ‘-Ofast’
make: *** [word2vec] Error 1

Original comment by auduwage on 18 Oct 2013 at 10:13