Re: [AMBER-Developers] Problems compiling on OSX 10.10

From: Hai Nguyen <nhai.qn.gmail.com>
Date: Thu, 9 Apr 2015 16:08:37 -0400

hi,

I am sorry for my late reply. I was waiting for the feed back from Cython
developer. And they just fix there cython "compiler" a bit.
https://github.com/cython/cython/commit/f198427573ab0091414abf681a85b609c2f3a3f6

(this gdt.cpp is a cythonized file from gdt.pyx). I just pushed new change.

.Ross: let me know if you are able to compile pytraj. thanks.

Hai

On Thu, Apr 9, 2015 at 9:16 AM, Jason Swails <jason.swails.gmail.com> wrote:

> pytraj has changed the most of any program since the amber15-with-patches
> branch was cut. I'm focusing only on the release candidate branch for now,
> and I don't think that Hai has a Mac to test this out on.
>
> Hai, can you take a look at this? (Particularly gdt.cpp's use of "toupper")
> and see if you can figure out where the ambiguity is coming from and fix
> it?
>
> On Wed, Apr 8, 2015 at 9:13 PM, Ross Walker <ross.rosswalker.co.uk> wrote:
>
> > Hi Peeps,
> >
> > I am getting the following error compiling on OSX 10.10 for the latest
> > AMBER git tree. I have not tried the latest AmberTools release candidate
> so
> > don't know if it happens there as well.
> >
> > arch i386 -pipe -I/Users/rcw/amber/amber//AmberTools/src/cpptraj//src/
> > -I/Users/rcw/Dropbox/amber/amber/AmberTools/src/pytraj/pytraj/
> >
> -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7
> > -c
> /Users/rcw/Dropbox/amber/amber/AmberTools/src/pytraj/pytraj/gdt/gdt.cpp
> > -o
> >
> build/temp.macosx-10.10-intel-2.7/Users/rcw/Dropbox/amber/amber/AmberTools/src/pytraj/pytraj/gdt/gdt.o
> > -O0 -ggdb
> >
> /Users/rcw/Dropbox/amber/amber/AmberTools/src/pytraj/pytraj/gdt/gdt.cpp:1010:9:
> > warning: conversion from string literal to 'char *' is
> > deprecated [-Wc++11-compat-deprecated-writable-strings]
> > PyErr_BadInternalCall();
> > ^
> >
> /System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/pyerrors.h:220:56:
> > note: expanded from macro
> > 'PyErr_BadInternalCall'
> > #define PyErr_BadInternalCall() _PyErr_BadInternalCall(__FILE__,
> __LINE__)
> > ^
> > <scratch space>:406:1: note: expanded from here
> > "/Users/rcw/Dropbox/amber/amber/AmberTools/src/pytraj/pytraj/gdt/gdt.cpp"
> > ^
> >
> /Users/rcw/Dropbox/amber/amber/AmberTools/src/pytraj/pytraj/gdt/gdt.cpp:16626:24:
> > error: call to 'toupper' is ambiguous
> > *buf = toupper(*buf);
> > ^~~~~~~
> > /usr/include/ctype.h:298:1: note: candidate function
> > toupper(int _c)
> > ^
> >
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cctype:157:38:
> > note: candidate
> > function
> > inline _LIBCPP_INLINE_VISIBILITY int toupper(int __c) {return
> > __libcpp_toupper(__c);}
> > ^
> > 1 warning and 1 error generated.
> > error: command 'cc' failed with exit status 1
> > make[2]: *** [pytraj] Error 1
> > make[1]: *** [serial] Error 2
> > make: *** [install] Error 2
> >
> >
> > /\
> > \/
> > |\oss Walker
> >
> > ---------------------------------------------------------
> > | Associate Research Professor |
> > | San Diego Supercomputer Center |
> > | Adjunct Associate Professor |
> > | Dept. of Chemistry and Biochemistry |
> > | University of California San Diego |
> > | NVIDIA Fellow |
> > | http://www.rosswalker.co.uk | http://www.wmd-lab.org |
> > | Tel: +1 858 822 0854 | EMail:- ross.rosswalker.co.uk |
> > ---------------------------------------------------------
> >
> > Note: Electronic Mail is not secure, has no guarantee of delivery, may
> not
> > be read every day, and should not be used for urgent or sensitive issues.
> >
> >
> > _______________________________________________
> > AMBER-Developers mailing list
> > AMBER-Developers.ambermd.org
> > http://lists.ambermd.org/mailman/listinfo/amber-developers
> >
>
>
>
> --
> Jason M. Swails
> BioMaPS,
> Rutgers University
> Postdoctoral Researcher
> _______________________________________________
> AMBER-Developers mailing list
> AMBER-Developers.ambermd.org
> http://lists.ambermd.org/mailman/listinfo/amber-developers
>
_______________________________________________
AMBER-Developers mailing list
AMBER-Developers.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber-developers
Received on Thu Apr 09 2015 - 13:30:02 PDT
Custom Search