[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-apl] SVN 585 ... new clang errors
From: |
Fausto Saporito |
Subject: |
Re: [Bug-apl] SVN 585 ... new clang errors |
Date: |
Tue, 7 Apr 2015 13:25:26 +0200 |
Hello all,
sorry but I wrote too early about libemacs error. It's still present.
This is the way I start gnu apl with EMACS (and gnu-apl-mode)
1) start emacs
2) run M-x gnu-apl
then all is loaded with this start screen, and the APL keyboard is
displayed in another emacs frame.
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 / 595M
Copyright (C) 2008-2015 Dr. Jürgen Sauermann
Banner by FIGlet: www.figlet.org
This program comes with ABSOLUTELY NO WARRANTY;
for details run: /usr/local/bin/apl --gpl.
This program is free software, and you are welcome to redistribute it
according to the GNU Public License (GPL) version 3 or later.
Svar_DB not connected in Svar_DB::is_registered_id()
but in /usr/local/lib/apl the file is present:
MacMac:apl fausap$ ls -al
total 20984
drwxr-xr-x 6 root staff 1088 7 Apr 11:56 .
drwxr-xr-x@ 18 fausap staff 6766 30 Mar 11:50 ..
-rwxr-xr-x 1 root staff 941 7 Apr 11:56 lib_file_io.la
-rwxr-xr-x 1 root staff 84864 7 Apr 11:56 lib_file_io.so
-rwxr-xr-x 1 root staff 106676 7 Apr 11:56 lib_sql.0.dylib
-rw-r--r-- 1 root staff 2261288 7 Apr 11:56 lib_sql.a
lrwxr-xr-x 1 root staff 15 7 Apr 11:56 lib_sql.dylib ->
lib_sql.0.dylib
-rwxr-xr-x 1 root staff 963 7 Apr 11:56 lib_sql.la
-rwxr-xr-x 1 root staff 15580 7 Apr 11:56 lib_template_F0.0.dylib
-rw-r--r-- 1 root staff 201168 7 Apr 11:56 lib_template_F0.a
lrwxr-xr-x 1 root staff 23 7 Apr 11:56
lib_template_F0.dylib -> lib_template_F0.0.dylib
-rwxr-xr-x 1 root staff 990 7 Apr 11:56 lib_template_F0.la
-rwxr-xr-x 1 root staff 16308 7 Apr 11:56 lib_template_F12.0.dylib
-rw-r--r-- 1 root staff 215320 7 Apr 11:56 lib_template_F12.a
lrwxr-xr-x 1 root staff 24 7 Apr 11:56
lib_template_F12.dylib -> lib_template_F12.0.dylib
-rwxr-xr-x 1 root staff 996 7 Apr 11:56 lib_template_F12.la
-rwxr-xr-x 1 root staff 16396 7 Apr 11:56 lib_template_OP1.0.dylib
-rw-r--r-- 1 root staff 215696 7 Apr 11:56 lib_template_OP1.a
lrwxr-xr-x 1 root staff 24 7 Apr 11:56
lib_template_OP1.dylib -> lib_template_OP1.0.dylib
-rwxr-xr-x 1 root staff 996 7 Apr 11:56 lib_template_OP1.la
-rwxr-xr-x 1 root staff 16428 7 Apr 11:56 lib_template_OP2.0.dylib
-rw-r--r-- 1 root staff 215864 7 Apr 11:56 lib_template_OP2.a
lrwxr-xr-x 1 root staff 24 7 Apr 11:56
lib_template_OP2.dylib -> lib_template_OP2.0.dylib
-rwxr-xr-x 1 root staff 996 7 Apr 11:56 lib_template_OP2.la
-rwxr-xr-x 1 root staff 218284 7 Apr 11:56 libemacs.0.dylib
-rw-r--r-- 1 root staff 7074896 7 Apr 11:56 libemacs.a
lrwxr-xr-x 1 root staff 16 7 Apr 11:56 libemacs.dylib ->
libemacs.0.dylib
-rwxr-xr-x 1 root staff 948 7 Apr 11:56 libemacs.la
drwxr-xr-x 2 root staff 170 7 Apr 11:56 workspaces
drwxr-xr-x 2 root staff 102 7 Apr 11:56 wslib3
drwxr-xr-x 2 root staff 102 7 Apr 11:56 wslib4
drwxr-xr-x 4 root staff 238 7 Apr 11:56 wslib5
and the permissions are ok...
As far as I know, everything seems ok... I mean I can use the
interpreter without any problem, until now...
regards,
Fausto
2015-04-07 11:58 GMT+02:00 Fausto Saporito <address@hidden>:
> Hi Jürgen,
>
> now all is ok. The latest snapshot compiles very well under Mac OS X.
> I also checked my installation lives only under /usr/local/xxx
> All errors reported disappeared.
>
> thank,
> fausto
>
>
> 2015-04-02 17:54 GMT+02:00 Juergen Sauermann <address@hidden>:
>> 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
>>
>>
>>
>>