[Top][All Lists]

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

["Nelson H. F. Beebe" <address@hidden>] Re: guile-1.5.6: some build comm

From: Neil Jerram
Subject: ["Nelson H. F. Beebe" <address@hidden>] Re: guile-1.5.6: some build comments: Sun Solaris gcc version, and a workaround to get a successful build
Date: 01 Apr 2002 19:35:44 +0100
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7

--- Begin Message --- Subject: Re: guile-1.5.6: some build comments: Sun Solaris gcc version, and a workaround to get a successful build Date: Mon, 1 Apr 2002 09:49:59 -0700 (MST)
>> ...
>>     Nelson>     /usr/local/sparc-sun-solaris2.7/bin/ld: cannot open 
>> libguile.so.14: No such file or directory
>>     Nelson>     collect2: ld returned 1 exit status
>> This is odd for two reasons:
>> - you say 2.8, but the path to ld in the error message says 2.7
>> - If Guile fails to link, as shown here, how did you get as far as the
>>   `make check' errors reported above?
>> ...

gcc is version 2.95.3; it was installed while we were still running
Solaris 2.7.  However, it works just fine under 2.8, so there has been
no reason to rebuild it under that system.

The build was run like this:

env CC="gcc" CXX=g++ LDFLAGS=" -Wl,-rpath /usr/local/lib -L/usr/local/lib" 
make && ( make check || make test )

Shared library links are a big nuisance, since on many systems, they
cannot be used until they are either installed in special places, or a
linker configuration file (e.g., /etc/ld.so.conf on GNU Linux systems)
is updated, or an explicit path to them is provided at link time.

After several experiments, I found that this workaround got a
successful build, and a mostly successful validation run on Solaris

        % env LD_LIBRARY_PATH=`pwd`/libltdl/.libs:`pwd`/libguile/.libs \
                make LDFLAGS="-L`pwd`/libltdl/.libs -L`pwd`/libguile/.libs"
        Testing /local/build/guile-1.5.6/pre-inst-guile ...
        with GUILE_LOAD_PATH=/local/build/guile-1.5.6/test-suite
        FAIL: syncase.test: (ice-9 syncase) loads

        Totals for this test run:
        passes:                 2115
        failures:               1
        unexpected passes:      0
        expected failures:      17
        unresolved test cases:  0
        untested test cases:    0
        unsupported test cases: 9
        errors:                 0

        FAIL: check-guile
        1 of 1 tests failed

I then repeated that on Solaris 2.7, dropping the "env
LD_LIBRARY_PATH=...".  This got the same test output as on 2.8, so at
least for test purposes, LD_LIBRARY_PATH need not be set on Sun
Solaris 2.x.

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

--- End Message ---

reply via email to

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