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

Compile error #2

Closed
neverfox opened this issue Oct 29, 2018 · 3 comments
Closed

Compile error #2

neverfox opened this issue Oct 29, 2018 · 3 comments
Assignees

Comments

@neverfox
Copy link

I'm getting a compile error:

mkdir -p build
/usr/local/bin/gcc-8 -fopenmp build/unittest.o build/io.o build/malloc.o build/random.o build/util.o build/SFMT.o build/version.o   -o build/unittest
collect2: fatal error: /usr/local/bin/gnm returned 1 exit status
compilation terminated.
make: *** [Makefile:139: build/unittest] Error 1
make: *** Deleting file 'build/unittest'

Here's my ./config result:

This seems to be a Mac OS X system.

Trying to find a C compiler...

- /usr/local/bin/gcc-8           gcc 8.2.0            looks good
- /usr/bin/cc                    clang 10.0.0         looks good
- /usr/bin/clang                 clang 10.0.0         looks good
- /usr/bin/gcc                   clang 10.0.0         looks good

I will use /usr/local/bin/gcc-8, which seems to be gcc version 8.2.0.
You can override it with the --cc flag.

Trying to find a Python interpreter...
I will try to run the test script src/test.py

- /Users/neverfox/.local/share/virtualenvs/types-o1eglJ5u/bin/python Python 2.7.15        looks good
- /Users/neverfox/.local/share/virtualenvs/types-o1eglJ5u/bin/python2 Python 2.7.15        looks good
- /Users/neverfox/.local/share/virtualenvs/types-o1eglJ5u/bin/python2.7 Python 2.7.15        looks good
- /usr/local/opt/pyenv/shims/python Python 3.6.6         test failed
- /usr/local/opt/pyenv/shims/python2 ? ?                  test failed
- /usr/local/opt/pyenv/shims/python2.7 ? ?                  test failed
- /usr/local/opt/pyenv/shims/python3 Python 3.6.6         test failed
- /usr/local/opt/pyenv/shims/python3.6 Python 3.6.6         test failed
- /usr/local/opt/pyenv/shims/python3.7 ? ?                  test failed
- /usr/local/bin/python          Python 2.7.15        looks good
- /usr/local/bin/python2         Python 2.7.15        looks good
- /usr/local/bin/python2.7       Python 2.7.15        looks good
- /usr/local/bin/python3         Python 3.7.0         test failed
- /usr/local/bin/python3.7       Python 3.7.0         test failed
- /usr/bin/python                Python 2.7.10        looks good
- /usr/bin/python2.7             Python 2.7.10        looks good

I will use /Users/neverfox/.local/share/virtualenvs/types-o1eglJ5u/bin/python, which seems to be Python version 2.7.15.
You can override it with the --python flag.

Making sure that sqlite3 is installed...

Inspecting the platform...

- reading processor features...

- summary: OpenMP, SSE2, POPCNT

Writing configuration...

PYTHON = /Users/neverfox/.local/share/virtualenvs/types-o1eglJ5u/bin/python
CC = /usr/local/bin/gcc-8
CPPFLAGS = -DSFMT_MEXP=19937 -DNDEBUG -DHAVE_SSE2 -DUSE_BUILTIN_POPCOUNT
CPPFLAGSD = -DSFMT_MEXP=19937
CPPFLAGSM = -DSFMT_MEXP=19937
CFLAGS = -march=native -Wa,-q -fopenmp -O3 -std=c11 -g -pedantic -Werror -Wall -Wextra -Wformat=2 -Winit-self -Wswitch-enum -Wstrict-aliasing -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wnested-externs -Wdisabled-optimization -Wno-maybe-uninitialized -Wno-sign-compare -Wno-unused -Wno-unused-parameter
CFLAGSD = -std=c11 -g -pedantic -Werror -Wall -Wextra -Wformat=2 -Winit-self -Wswitch-enum -Wstrict-aliasing -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wnested-externs -Wdisabled-optimization -Wno-maybe-uninitialized -Wno-sign-compare -Wunused-macros -Wno-unknown-pragmas
CFLAGSM = -std=c11 -g -pedantic -Werror -Wall -Wextra -Wformat=2 -Winit-self -Wswitch-enum -Wstrict-aliasing -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wnested-externs -Wdisabled-optimization -Wno-maybe-uninitialized -Wno-sign-compare
LDFLAGS = -fopenmp
LDFLAGSD = 
LDLIBSDB = -lsqlite3
MEXP = 19937
@suomela
Copy link
Owner

suomela commented Oct 29, 2018

If you are using Homebrew, could you please try:

brew rm binutils

Apparently gcc from Homebrew fails to compile anything if binutils is installed. Here is more information on the problem:

@suomela suomela self-assigned this Oct 29, 2018
@neverfox
Copy link
Author

@suomela Thanks! That did it. (And it turned out nothing installed was using binutils as a dependency either).

@suomela
Copy link
Owner

suomela commented Oct 29, 2018

Great!

@suomela suomela closed this as completed Oct 29, 2018
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

No branches or pull requests

2 participants