bug-apl
[Top][All Lists]
Advanced

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

Compile errors when building libapl


From: M.Hall
Subject: Compile errors when building libapl
Date: Sat, 2 Mar 2024 17:51:31 -0600

Summary, two errors:

    libapl.cc:571:39: error: too few arguments to function call, expected 2, have 1
                 sym->resolve_right(tos[j]);
    ./Symbol.hh:217:4: note: 'resolve_right' declared here
       virtual void resolve_right(Token & token, Function_PC & PC) const;
   
    libapl.cc:807:57: error: no member named 'extract_and_keep' in 'Token'
             if (tZ.get_tag() != TOK_SI_PUSHED)   return tZ.extract_and_keep(LOC);


Details:

macos 10.15.6 Intel

    $ uname -a
    Darwin mbp13 19.6.0 Darwin Kernel Version 19.6.0: Tue Jun 21 21:18:39 PDT 2022; root:xnu-6153.141.66~1/RELEASE_X86_64 x86_64

    $ svn info
    Path: .
    Working Copy Root Path: /Volumes/Archive/Language/APL/gnu-apl/SVN/trunk
    URL: http://svn.savannah.gnu.org/svn/apl/trunk
    Relative URL: ^/trunk
    Repository Root: http://svn.savannah.gnu.org/svn/apl
    Repository UUID: bd74f7bd-1a55-4bac-9fab-68015b139e80
    Revision: 1757
    Node Kind: directory
    Schedule: normal
    Last Changed Author: j_sauermann
    Last Changed Rev: 1757
    Last Changed Date: 2024-02-25 10:21:31 -0600 (Sun, 25 Feb 2024)
   
    $ g++ --version
    Configured with: --prefix=/Users/zzz/Apps/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/c++/4.2.1
    Apple clang version 12.0.0 (clang-1200.0.32.29)
    Target: x86_64-apple-darwin19.6.0
    Thread model: posix
    InstalledDir: /Users/zzz/Apps/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
    
    
    $ echo | g++ -dM -E -
    #define _LP64 1
    #define __APPLE_CC__ 6000
    #define __APPLE__ 1
    #define __ATOMIC_ACQUIRE 2
    ...
    # __APPLE__ is a predefined symbol
   
    $ ./configure --with-libapl
    $ make
      ...
    libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -Wall -I sql -I /Volumes/Archive/Language/APL/gnu-apl/SVN/trunk -g -O2 -I /Volumes/Archive/Language/APL/gnu-apl/SVN/trunk -MT libapl_la-libapl.lo -MD -MP -MF .deps/libapl_la-libapl.Tpo -c libapl.cc  -fno-common -DPIC -o .libs/libapl_la-libapl.o
    libapl.cc:571:39: error: too few arguments to function call, expected 2, have 1
                 sym->resolve_right(tos[j]);
                 ~~~~~~~~~~~~~~~~~~       ^
    ./Symbol.hh:217:4: note: 'resolve_right' declared here
       virtual void resolve_right(Token & token, Function_PC & PC) const;
       ^
    libapl.cc:807:57: error: no member named 'extract_and_keep' in 'Token'
             if (tZ.get_tag() != TOK_SI_PUSHED)   return tZ.extract_and_keep(LOC);
                                                         ~~ ^
    libapl.cc:810:24: error: no member named 'extract_and_keep' in 'Token'
             return result.extract_and_keep(LOC);
                    ~~~~~~ ^
    libapl.cc:820:57: error: no member named 'extract_and_keep' in 'Token'
             if (tZ.get_tag() != TOK_SI_PUSHED)   return tZ.extract_and_keep(LOC);
                                                         ~~ ^
    libapl.cc:823:24: error: no member named 'extract_and_keep' in 'Token'
             return result.extract_and_keep(LOC);
                    ~~~~~~ ^
    libapl.cc:834:57: error: no member named 'extract_and_keep' in 'Token'
             if (tZ.get_tag() != TOK_SI_PUSHED)   return tZ.extract_and_keep(LOC);
                                                         ~~ ^
    libapl.cc:837:24: error: no member named 'extract_and_keep' in 'Token'
             return result.extract_and_keep(LOC);
                    ~~~~~~ ^
    libapl.cc:848:57: error: no member named 'extract_and_keep' in 'Token'
             if (tZ.get_tag() != TOK_SI_PUSHED)   return tZ.extract_and_keep(LOC);
                                                         ~~ ^
    libapl.cc:851:24: error: no member named 'extract_and_keep' in 'Token'
             return result.extract_and_keep(LOC);
                    ~~~~~~ ^
    libapl.cc:864:57: error: no member named 'extract_and_keep' in 'Token'
             if (tZ.get_tag() != TOK_SI_PUSHED)   return tZ.extract_and_keep(LOC);
                                                         ~~ ^
    libapl.cc:867:24: error: no member named 'extract_and_keep' in 'Token'
             return result.extract_and_keep(LOC);
                    ~~~~~~ ^
    libapl.cc:880:57: error: no member named 'extract_and_keep' in 'Token'
             if (tZ.get_tag() != TOK_SI_PUSHED)   return tZ.extract_and_keep(LOC);
                                                         ~~ ^
    libapl.cc:883:24: error: no member named 'extract_and_keep' in 'Token'
             return result.extract_and_keep(LOC);
                    ~~~~~~ ^
    libapl.cc:897:57: error: no member named 'extract_and_keep' in 'Token'
             if (tZ.get_tag() != TOK_SI_PUSHED)   return tZ.extract_and_keep(LOC);
                                                         ~~ ^
    libapl.cc:900:24: error: no member named 'extract_and_keep' in 'Token'
             return result.extract_and_keep(LOC);
                    ~~~~~~ ^
    libapl.cc:909:57: error: no member named 'extract_and_keep' in 'Token'
             if (tZ.get_tag() != TOK_SI_PUSHED)   return tZ.extract_and_keep(LOC);
                                                         ~~ ^
    libapl.cc:912:24: error: no member named 'extract_and_keep' in 'Token'
             return result.extract_and_keep(LOC);
                    ~~~~~~ ^
    libapl.cc:922:57: error: no member named 'extract_and_keep' in 'Token'
             if (tZ.get_tag() != TOK_SI_PUSHED)   return tZ.extract_and_keep(LOC);
                                                         ~~ ^
    libapl.cc:925:24: error: no member named 'extract_and_keep' in 'Token'
             return result.extract_and_keep(LOC);
                    ~~~~~~ ^
    fatal error: too many errors emitted, stopping now [-ferror-limit=]
    20 errors generated.
    make[3]: *** [libapl_la-libapl.lo] Error 1
    make[2]: *** [all-recursive] Error 1
    make[1]: *** [all-recursive] Error 1
    make: *** [all] Error 2


Only in libapl.cc is 'resolve_right' called with one argument.
And 'extract_and_keep' is used, but I can't see where it's defined.
Let me know what I can do to help.
Thanks!
--
Mike Hall



reply via email to

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