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

make build / x86_64-linux-gnu-gcc failed with exit status 1 #40

Closed
micressor opened this issue Oct 3, 2014 · 5 comments
Closed

make build / x86_64-linux-gnu-gcc failed with exit status 1 #40

micressor opened this issue Oct 3, 2014 · 5 comments

Comments

@micressor
Copy link

According to https://docs.services.mozilla.com/howtos/run-sync-1.5.html my build process failed.

$ make clean
rm -rf ./local
$ make build
// Here is the first hint during building:
Running setup.py install for umemcache
...
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/O
bjC but not for C++
./python/umemcache.cpp: In function ‘int Client_init(PyClient_, PyObject_, P
yObject_)’:
./python/umemcache.cpp:255:60: warning: deprecated conversion from string co
nstant to ‘char_’ [-Wwrite-strings]
static char kwlist[] = {"address", "max_item_size", NULL};
... ^
running build
running build_ext
building 'umemcache' extension
creating build
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/python
creating build/temp.linux-x86_64-2.7/lib
...
cc1plus: some warnings being treated as errors
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
...
Traceback (most recent call last):
File "./local/bin/pip", line 11, in
sys.exit(main())
File "/opt/fsync1.5/syncserver/local/local/lib/python2.7/site-packages/pip/init.py", line 235, in main
return command.main(cmd_args)
File "/opt/fsync1.5/syncserver/local/local/lib/python2.7/site-packages/pip/basecommand.py", line 161, in main
text = '\n'.join(complete_log)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 42: ordinal not in range(128)
Makefile:17: recipe for target 'local/COMPLETE' failed
make: *
* [local/COMPLETE] Error 1
$

System Info:
$ dpkg -l python-dev git-core python-virtualenv
ii git 1:2.1.1-1
ii python-dev 2.7.8-1 amd64
ii python-virtual 1.11.6-2 all

$ uname -a
Linux x 3.2.0-4-amd64 #1 SMP Debian 3.2.60-1+deb7u3 x86_64 GNU/Linux

$ x86_64-linux-gnu-gcc --version
x86_64-linux-gnu-gcc (Debian 4.9.1-15) 4.9.1

How can I help to debug?

@rfk
Copy link
Contributor

rfk commented Oct 8, 2014

cc1plus: some warnings being treated as errors

I guess this is an upstream problem with compiling https://github.com/esnme/ultramemcache. Looks like there are a couple of build-related issues on https://github.com/esnme/ultramemcache/issues

Unfortunately it's not simple to just remove it as a dependency, due to the way our packaging is done.

@rfk
Copy link
Contributor

rfk commented Oct 8, 2014

Per esnme/ultramemcache#33 you may be able to work around this by setting CFLAGS="-Wno-error" in the environment.

@rfk
Copy link
Contributor

rfk commented Oct 22, 2014

I've added the CFLAGS workaround to the makefile which will hopefully let the build process - @micressor can you please try out the latest version and let me know if it works for you?

@Grief
Copy link

Grief commented Oct 24, 2014

@rfk I had experienced exactly the same issue and had to use the workaround you provided. I can confirm that with your fix there is no need to set CFLAGS manually anymore.

@rfk
Copy link
Contributor

rfk commented Oct 26, 2014

Great, thanks @Grief, I'll go ahead and close out this bug

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

3 participants