bug-apl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-apl] SVN 585 ... new clang errors


From: Juergen Sauermann
Subject: Re: [Bug-apl] SVN 585 ... new clang errors
Date: Thu, 02 Apr 2015 17:54:29 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.4.0

Hi Fausto,

did you do sudo make install ?

And was the make in the src/emacs_mode directory successful?

If this is on Apple, we have made some progress there (SVN 592).

Could also be a /usr/local/xxx vs. /usr/xxx conflict (which should
now work better).

/// Jürgen


On 04/01/2015 04:06 PM, Fausto Saporito wrote:
Hi Jürgen,

it seems ok now.
But I have this error when I run apl with emacs:

Could not find shared library 'libemacs'
The following directories and file names were tried:
    file /usr/local/lib/apl/libemacs.so      (No such file or directory)
    file /usr/local/lib/apl/libemacs.dylib   ( flat namespace
 in /usr/local/lib/apl/libemacs.dylib )
    file /usr/local/lib/apl/libemacs         (No such file or directory)
    directory /usr/lib/apl
    file ./libemacs.so                       (No such file or directory)
    file ./libemacs.dylib                    (No such file or directory)
    file ./libemacs                          (No such file or directory)
    directory ./native
    directory ./emacs_mode

::connect() to existing APserver failed: Invalid argument

                    ______ _   __ __  __    ___     ____   __
                   / ____// | / // / / /   /   |   / __ \ / /
                  / / __ /  |/ // / / /   / /| |  / /_/ // /
                 / /_/ // /|  // /_/ /   / ___ | / ____// /___
                 \____//_/ |_/ \____/   /_/  |_|/_/    /_____/

                     Welcome to GNU APL version 1.5 / 586M

everything seems fine though...
I don't understand...

Are those errors about emacs expected ?

regards,
Fausto


2015-04-01 15:37 GMT+02:00 Juergen Sauermann <address@hidden>:
Hi Fausto,

I changed ./configure once more to handle clang, SVN 586.

There are now 3 cases:

1. full support of dynamic arrays ( = gcc)
2. limited support of dynamic arrays ( = clang)
3. no support of dynamic arrays ( = ???)

Please let me know if it works now.

/// Jürgen


On 04/01/2015 10:33 AM, Fausto Saporito wrote:

Hello,

I updated to svn 585, and I got a different error in this case:

Bif_F12_FORMAT.cc:682:28: error: no matching function for call to 'strchr'

        const char * dot = strchr(data_buf, '.');

                           ^~~~~~

/usr/include/string.h:76:7: note: candidate function not viable: no
known conversion from '__DynArray<char>' to

      'const char *' for 1st argument

char    *strchr(const char *, int);

         ^

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cstring:98:46:
note:

      candidate function not viable: no known conversion from
'__DynArray<char>' to 'char *' for 1st argument

inline _LIBCPP_INLINE_VISIBILITY       char* strchr(      char* __s,
int __c) {return ::strchr(__s, __c);}

                                             ^

Bif_F12_FORMAT.cc:683:37: error: invalid operands to binary _expression_
('const char *' and '__DynArray<char>')

        const int ilen = dot ? (dot - data_buf) : strlen(data_buf);

                                ~~~ ^ ~~~~~~~~

./Common.hh:354:1: note: candidate function not viable: no known
conversion from 'const char *' to 'Function_PC'

      for 1st argument

operator -(Function_PC pc, int offset)

^

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/iterator:622:1:
note:

      candidate template ignored: could not match
'reverse_iterator<type-parameter-0-0>' against 'const char *'

operator-(const reverse_iterator<_Iter1>& __x, const
reverse_iterator<_Iter2>& __y)

^

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/iterator:1017:1:
note:

      candidate template ignored: could not match
'move_iterator<type-parameter-0-0>' against 'const char *'

operator-(const move_iterator<_Iter1>& __x, const move_iterator<_Iter2>&
__y)

^

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/iterator:1369:1:
note:

      candidate template ignored: could not match
'__wrap_iter<type-parameter-0-0>' against 'const char *'

operator-(const __wrap_iter<_Iter1>& __x, const __wrap_iter<_Iter2>&
__y) _NOEXCEPT

^

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string:486:11:
note:

      candidate template ignored: could not match
'fpos<type-parameter-0-0>' against 'const char *'

streamoff operator-(const fpos<_StateT>& __x, const fpos<_StateT>& __y)

          ^

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/complex:558:1:
note:

      candidate template ignored: could not match
'complex<type-parameter-0-0>' against 'const char *'

operator-(const complex<_Tp>& __x, const complex<_Tp>& __y)

^

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/complex:568:1:
note:

      candidate template ignored: could not match
'complex<type-parameter-0-0>' against 'const char *'

operator-(const complex<_Tp>& __x, const _Tp& __y)

^

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/complex:578:1:
note:

      candidate template ignored: could not match 'complex' against
'__DynArray'

operator-(const _Tp& __x, const complex<_Tp>& __y)

^

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/complex:737:1:
note:

      candidate function template not viable: requires single argument
'__x', but 2 arguments were provided

operator-(const complex<_Tp>& __x)

^

Bif_F12_FORMAT.cc:683:51: error: no matching function for call to 'strlen'

        const int ilen = dot ? (dot - data_buf) : strlen(data_buf);

                                                  ^~~~~~

/usr/include/string.h:82:9: note: candidate function not viable: no
known conversion from '__DynArray<char>' to

      'const char *' for 1st argument

size_t   strlen(const char *);

         ^

1 warning and 3 errors generated.

Please could you check it ?

thanks,
Fausto




    


reply via email to

[Prev in Thread] Current Thread [Next in Thread]