bug-bison
[Top][All Lists]
Advanced

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

Re: [GNU Bison 2.0] testsuite: 44 45 88 89 90 91 92 93 114 failed on App


From: Nelson H. F. Beebe
Subject: Re: [GNU Bison 2.0] testsuite: 44 45 88 89 90 91 92 93 114 failed on Apple MacOS 10
Date: Mon, 10 Jan 2005 07:28:56 -0700 (MST)

Paul Eggert <address@hidden> writes about my bison-2.0 problem
report for MacOS 10:

>> ...
>> http://lists.gnu.org/archive/html/bug-bison/2005-01/msg00024.html
>> 
>> Here the problem seems to be that the test suite is not linking C++
>> programs correctly.  There's a bug report for openplay with similar
>> symptoms here:
>> 
>> http://lists.apple.com/archives/openplay-development/2003/Nov/msg00005.html
>> 
>> ...
>> BISON_CXX_WORKS is supposed to be set to 'exit 77' if the C++
>> environment isn't set up correctly.  Perhaps it should be set to 'exit
>> 77' here? 
>> ...

I made an experiment with

        make BISON_CXX_WORKS='exit 77' check

That reported

        125 tests were successful.
        2 tests were skipped.

The config.log file does not appear to be helpful in determining why
BISON_CXX_WORKS was set to :.   The build log shows

        checking whether we are using the GNU C++ compiler... yes
        checking whether g++3 accepts -g... yes
        checking dependency style of g++3... gcc3
        checking whether g++3 builds executables that work... yes

The gcc3/g++3 compiler pair are what Apple provides in /usr/bin, and
the C++ compiler handles a simple test correctly:

        % g++3 ~/hello.cc && ./a.out
        Hello, world...this is C++

The test that sets BISON_CXX_WORKS seems to come from ./m4/cxx.m4,
which just compiles this short program:

        #include <iostream>
        using namespace std;
        int
        main()
        {
            std::cerr << "";
            cout << "";
            return 0;
        }

Of course, MacOS is a rather badly broken and botched Unix system, so
build problems are common.

-------------------------------------------------------------------------------
- Nelson H. F. Beebe                    Tel: +1 801 581 5254                  -
- University of Utah                    FAX: +1 801 581 4148                  -
- Department of Mathematics, 110 LCB    Internet e-mail: address@hidden  -
- 155 S 1400 E RM 233                       address@hidden  address@hidden -
- Salt Lake City, UT 84112-0090, USA    URL: http://www.math.utah.edu/~beebe  -
-------------------------------------------------------------------------------




reply via email to

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