unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* Compiling Guile on Solaris 10 11/06 x86 edition
@ 2007-08-25 20:51 Alan Pae
       [not found] ` <87hcmjb7d5.fsf@zip.com.au>
  0 siblings, 1 reply; 5+ messages in thread
From: Alan Pae @ 2007-08-25 20:51 UTC (permalink / raw)
  To: bug-guile

I cannot compile Guile 1.8.2 on a stock Solaris 10 11/06 x86 machine.

I have tried the vendor supplied version of GCC which 3.4.3 and with Sun 
Studio compilers.  Both fail.

GCC fails on Complex_I.

Please fix.

To reproduce.

Install Solaris 10 11/06 on a test machine.  Solaris can be obtained for 
free either through CD downloads or you can order a free DVD with the OS 
on it.

Ftp guile, unzip, and then untar.

./configure -C --with threads

run gmake.

the compile fails.

thanks,
alan


_______________________________________________
Bug-guile mailing list
Bug-guile@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-guile


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Compiling Guile on Solaris 10 11/06 x86 edition
       [not found] ` <87hcmjb7d5.fsf@zip.com.au>
@ 2007-08-28 23:24   ` Alan Pae
  2007-09-01  0:09     ` Kevin Ryde
  0 siblings, 1 reply; 5+ messages in thread
From: Alan Pae @ 2007-08-28 23:24 UTC (permalink / raw)
  To: Kevin Ryde; +Cc: bug-guile

Kevin Ryde wrote:
> Alan Pae <alanpae@ilkda.com> writes:
>> GCC fails on Complex_I.
> 
> So gcc has the complex double type, but that macro doesn't exist?  What
> about the functions like cexp() and friends?  Complex_I is only used in
> connection with those functions.

 From what little research I've actually done, Complex is broken in gcc 
until version 4.02.  I have tried to compile with gcc 4.2.1, but 
although that is the current release, it breaks a lot of other programs 
so I reverted back to the stock version on Solaris 10 which is gcc 3.4.3.

I would jump that up to 3.4.6 but it haven't checked the fixes file to 
see if it's worth the bother.

I did install Sun Studio 11 and tried it with guile, but it failed on 
something else.

1.6.8 of guile compiles and loads SWIG fine.  I need SWIG for another 
project.

with 1.8.2, if I hide complex.h (mv complex.h complex.h.temp) then it 
compiles find, but SWIG does not load.

Not sure what to do.

How do I test for cexp() and friends?

thanks,
alan


_______________________________________________
Bug-guile mailing list
Bug-guile@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-guile


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Compiling Guile on Solaris 10 11/06 x86 edition
  2007-08-28 23:24   ` Alan Pae
@ 2007-09-01  0:09     ` Kevin Ryde
  0 siblings, 0 replies; 5+ messages in thread
From: Kevin Ryde @ 2007-09-01  0:09 UTC (permalink / raw)
  To: Alan Pae; +Cc: bug-guile

Alan Pae <alanpae@ilkda.com> writes:
>
> with 1.8.2, if I hide complex.h (mv complex.h complex.h.temp) then it
> compiles find,

You may also be able to pretend complex double doesn't exist with

	./configure ac_cv_type_complex_double=no

> but SWIG does not load.

Don't know anything about that.

> How do I test for cexp() and friends?

Configure checks for clog10, which is supposed to be representative of
all the complex funcs, you can look in config.log or in config.h to see
if it was noticed.


_______________________________________________
Bug-guile mailing list
Bug-guile@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-guile


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Compiling Guile on Solaris 10 11/06 x86 edition
@ 2007-09-01 20:50 alanpae
  2007-09-04  0:03 ` Kevin Ryde
  0 siblings, 1 reply; 5+ messages in thread
From: alanpae @ 2007-09-01 20:50 UTC (permalink / raw)
  To: user42; +Cc: bug-guile

Alan Pae <alanpae@ilkda.com> writes:
>>
>> with 1.8.2, if I hide complex.h (mv complex.h complex.h.temp) then it
>> compiles find,

>You may also be able to pretend complex double doesn't exist with

>	./configure ac_cv_type_complex_double=no





./configure -C  --with-threads

gcc --version
gcc (GCC) 3.4.3 (csl-sol210-3_4-branch+sol_rpath)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

gmake --version
GNU Make 3.81
Copyright (C) 2006  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

This program built for i386-pc-solaris2.10

using bash 3.00 as the shell 

checking complex.h usability... yes
checking complex.h presence... yes
checking for complex.h... yes

grep complex config.log
configure:33237: checking complex.h usability
configure:33278: checking complex.h presence
configure:33346: checking for complex.h
configure:33370: checking for complex double
| #include <complex.h>
| volatile complex double z = - _Complex_I;
ac_cv_header_complex_h=yes
ac_cv_type_complex_double=yes


gmake

results in:

 gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I.. -I/opt/local/include -O2 -D_REENTRANT -pthreads -Wall -MT libguile_la-numbers.lo -MD -MP -MF .deps/libguile_la-numbers.Tpo -c numbers.c  -fPIC -DPIC -o .libs/libguile_la-numbers.o
numbers.c: In function `scm_log':
numbers.c:6015: error: `_Complex_I' undeclared (first use in this function)
numbers.c:6015: error: (Each undeclared identifier is reported only once
numbers.c:6015: error: for each function it appears in.)
numbers.c: In function `scm_exp':
numbers.c:6081: error: `_Complex_I' undeclared (first use in this function)
gmake[3]: *** [libguile_la-numbers.lo] Error 1





gmake distclean





./configure ac_cv_type_complex_double=no

checking complex.h usability... yes
checking complex.h presence... yes
checking for complex.h... yes

grep complex config.log
  $ ./configure ac_cv_type_complex_double=no
configure:33237: checking complex.h usability
configure:33278: checking complex.h presence
configure:33346: checking for complex.h
configure:33370: checking for complex double
configure:44363: running /bin/bash ./configure '--prefix=/opt/local'  'ac_cv_type_complex_double=no' 'CFLAGS=-I/opt/local/include -O2' 'LDFLAGS=-L/opt/local/lib -R/opt/local/lib' 'CPPFLAGS=-I/opt/local/include -O2' --cache-file=/dev/null --srcdir=.
ac_cv_header_complex_h=yes
ac_cv_type_complex_double=no

compile warnings 

makeinfo --force -o guile-procedures.txt guile-procedures.texi || test -f guile-procedures.txt
/tmp/guile-1.8.2/libguile//guile-procedures.texi:10308: Cross reference to nonexistent node `Backslash Escapes' (perhaps incorrect sectioning?).
/tmp/guile-1.8.2/libguile//guile-procedures.texi:10008: Cross reference to nonexistent node `Network Address Conversion' (perhaps incorrect sectioning?).
/tmp/guile-1.8.2/libguile//guile-procedures.texi:9957: Cross reference to nonexistent node `Network Databases' (perhaps incorrect sectioning?).
/tmp/guile-1.8.2/libguile//guile-procedures.texi:9907: Cross reference to nonexistent node `Network Databases' (perhaps incorrect sectioning?).
/tmp/guile-1.8.2/libguile//guile-procedures.texi:8767: Cross reference to nonexistent node `Ports and File Descriptors' (perhaps incorrect sectioning?).
/tmp/guile-1.8.2/libguile//guile-procedures.texi:8755: Cross reference to nonexistent node `Closing' (perhaps incorrect sectioning?).
/tmp/guile-1.8.2/libguile//guile-procedures.texi:8075: Cross reference to nonexistent node `Hash Tables' (perhaps incorrect sectioning?).
/tmp/guile-1.8.2/libguile//guile-procedures.texi:8068: Cross reference to nonexistent node `Hash Tables' (perhaps incorrect sectioning?).
/tmp/guile-1.8.2/libguile//guile-procedures.texi:8061: Cross reference to nonexistent node `Hash Tables' (perhaps incorrect sectioning?).
/tmp/guile-1.8.2/libguile//guile-procedures.texi:7975: Cross reference to nonexistent node `File Ports' (perhaps incorrect sectioning?).
/tmp/guile-1.8.2/libguile//guile-procedures.texi:7319: Cross reference to nonexistent node `Vtables' (perhaps incorrect sectioning?).
/tmp/guile-1.8.2/libguile//guile-procedures.texi:5924: Cross reference to nonexistent node `Character Sets' (perhaps incorrect sectioning?).
/tmp/guile-1.8.2/libguile//guile-procedures.texi:5902: Cross reference to nonexistent node `Character Sets' (perhaps incorrect sectioning?).
/tmp/guile-1.8.2/libguile//guile-procedures.texi:4892: Cross reference to nonexistent node `Locales' (perhaps incorrect sectioning?).
/tmp/guile-1.8.2/libguile//guile-procedures.texi:3912: Cross reference to nonexistent node `File Ports' (perhaps incorrect sectioning?).
/tmp/guile-1.8.2/libguile//guile-procedures.texi:3690: Cross reference to nonexistent node `Ports and File Descriptors' (perhaps incorrect sectioning?).
/tmp/guile-1.8.2/libguile//guile-procedures.texi:3679: Cross reference to nonexistent node `Ports and File Descriptors' (perhaps incorrect sectioning?).
/tmp/guile-1.8.2/libguile//guile-procedures.texi:3668: Cross reference to nonexistent node `Ports and File Descriptors' (perhaps incorrect sectioning?).
/tmp/guile-1.8.2/libguile//guile-procedures.texi:2514: Cross reference to nonexistent node `File Ports' (perhaps incorrect sectioning?).
/tmp/guile-1.8.2/libguile//guile-procedures.texi:2096: Cross reference to nonexistent node `Hash Tables' (perhaps incorrect sectioning?).
/tmp/guile-1.8.2/libguile//guile-procedures.texi:2089: Cross reference to nonexistent node `Hash Tables' (perhaps incorrect sectioning?).
/tmp/guile-1.8.2/libguile//guile-procedures.texi:2082: Cross reference to nonexistent node `Hash Tables' (perhaps incorrect sectioning?).
/tmp/guile-1.8.2/libguile//guile-procedures.texi:1634: Cross reference to nonexistent node `Ports and File Descriptors' (perhaps incorrect sectioning?).
/tmp/guile-1.8.2/libguile//guile-procedures.texi:1620: Cross reference to nonexistent node `Ports and File Descriptors' (perhaps incorrect sectioning?).

gmake check

===================
All 10 tests passed
===================

Running srfi-14.test
UNRESOLVED: srfi-14.test: Latin-1 (8-bit charset): char-set:letter (membership)
UNRESOLVED: srfi-14.test: Latin-1 (8-bit charset): char-set:letter (size)
UNRESOLVED: srfi-14.test: Latin-1 (8-bit charset): char-set:lower-case (size)
UNRESOLVED: srfi-14.test: Latin-1 (8-bit charset): char-set:upper-case (size)
UNRESOLVED: srfi-14.test: Latin-1 (8-bit charset): char-set:punctuation (membership)

Running srfi-19.test
Running syntax.test
UNRESOLVED: syntax.test: while: in empty environment: empty body
UNRESOLVED: syntax.test: while: in empty environment: initially false
UNRESOLVED: syntax.test: while: in empty environment: iterating
Running threads.test
Running time.test
FAIL: time.test: strftime: C99 %z format: EST+5
Running unif.test
Running version.test
Running weaks.test

Totals for this test run:
passes:                 11785
failures:               1
unexpected passes:      0
expected failures:      25
unresolved test cases:  8
untested test cases:    0
unsupported test cases: 11
errors:                 0

FAIL: check-guile
==================================
1 of 1 tests failed
Please report to bug-guile@gnu.org




gmake distclean





./configure -C --with-threads ac_cv_type_complex_double=no ac_cv_header_complex_h=no
configure:33227: checking for complex.h
configure:33370: checking for complex double
configure:44363: running /bin/bash ./configure '--prefix=/opt/local'  '--with-threads' 'ac_cv_type_complex_double=no' 'ac_cv_header_complex_h=no' 'CFLAGS=-I/opt/local/include -O2' 'LDFLAGS=-L/opt/local/lib -R/opt/local/lib' 'CPPFLAGS=-I/opt/local/include -O2' --cache-file=../config.cache --srcdir=.
ac_cv_header_complex_h=no
ac_cv_type_complex_double=no

same warnings as above.

same test results





>> How do I test for cexp() and friends?

>Configure checks for clog10, which is supposed to be representative of
>all the complex funcs, you can look in config.log or in config.h to see
>if it was noticed.

grep clog10 config.log
configure:34931: checking for clog10
clog10                              /var/tmp//cc5Tt5ui.o
| /* Define clog10 to an innocuous variant, in case <limits.h> declares clog10.
| #define clog10 innocuous_clog10
|     which can conflict with char clog10 (); below.
| #undef clog10
| char clog10 ();
| #if defined __stub_clog10 || defined __stub___clog10
| return clog10 ();
ac_cv_func_clog10=no

configure says no

thanks Kevin,

alan


_______________________________________________
Bug-guile mailing list
Bug-guile@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-guile


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Compiling Guile on Solaris 10 11/06 x86 edition
  2007-09-01 20:50 Compiling Guile on Solaris 10 11/06 x86 edition alanpae
@ 2007-09-04  0:03 ` Kevin Ryde
  0 siblings, 0 replies; 5+ messages in thread
From: Kevin Ryde @ 2007-09-04  0:03 UTC (permalink / raw)
  To: alanpae; +Cc: bug-guile

alanpae@ilkda.com writes:
>
> FAIL: time.test: strftime: C99 %z format: EST+5

Hmm.  You could step through that "EST+5" test to see what comes out.


_______________________________________________
Bug-guile mailing list
Bug-guile@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-guile


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-09-04  0:03 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-01 20:50 Compiling Guile on Solaris 10 11/06 x86 edition alanpae
2007-09-04  0:03 ` Kevin Ryde
  -- strict thread matches above, loose matches on Subject: below --
2007-08-25 20:51 Alan Pae
     [not found] ` <87hcmjb7d5.fsf@zip.com.au>
2007-08-28 23:24   ` Alan Pae
2007-09-01  0:09     ` Kevin Ryde

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).