Bug#554347: FTBFS: error: linking to Fortran libraries from C fails

2009-11-05 Thread Nobuhiro Iwamatsu
Hi, all.

Thank you for work.

Yes, this is a problem of autoconf not a problem of JAGS.
And my patch is workaround.
Martyn, If possible, could you release this with autoconf that this problem was
revised by next release?

Regards,
  Nobuhiro


2009/11/5 Martyn Plummer martyn.plum...@r-project.org:
 Hi Dirk,

 Sorry about that.  You are right, I got it backwards.  I'm glad you were
 able to work around it because it's not really a problem with JAGS. but
 with autoconf. The patch to fortran.m4 was committed in October and I
 guess it will be in the next release of autoconf, whenever that is.

 Martyn

 On Thu, 2009-11-05 at 06:31 -0600, Dirk Eddelbuettel wrote:
 Hi Martyn,

 On 5 November 2009 at 11:34, Martyn Plummer wrote:
 | Hi Dirk,
 |
 | Thanks for the feedback. This problem does not come from the original
 | source but from the Debian patch.  You need to revert this change from
 | the top of jags_1.0.3-2.diff
 |
 | -- jags-1.0.3.orig/configure
 | +++ jags-1.0.3/configure
 | @@ -20398,7 +20398,7 @@
 |
 |            ;;
 |            # Ignore these flags.
 | -        -lang* | -lcrt* | -lc | -lgcc* | -lSystem | -libmil | -LANG:=*)
 | +        -lang* | -lcrt* | -lc | -lgcc* | -lSystem | -libmil | -little |
 | -LANG:=*)

 It's early here and I had no coffee yet so I may misunderstand ... but that
 _is_ the patch contributed by Nobuhiro to accomodate the new architectire
 (sh4, or is it called just sh ?) he uses.

 Without the patch it failed for him. So that's why I added his patch.

 I happened to have patched that directly into configure as per his bug report
 (see http://bugs.debian.org/554347) which may have mislead you.

 I guess we need to find a way to get that -little flag into autotools, right?

 If I misunderstood your post, could try again please?  The bug report at
 http://bugs.debian.org/554347 should have context.

 Cheers, Dirk


 | Martyn
 |
 | On Tue, 2009-11-03 at 22:07 -0600, Dirk Eddelbuettel wrote:
 |  On 4 November 2009 at 11:56, Nobuhiro Iwamatsu wrote:
 |  | Hi,
 |  |
 |  | I am now trying to run Debian on Renesas SH(sh4) CPU.
 |  | http://buildd.debian-ports.org/status/architecture.php?a=sh4
 |  |
 |  | jags can not build on sh4. Because configure of this package generated
 |  | from old autoconf.
 |  |
 |  | -
 |  | checking how to get verbose linking output from gfortran... -v
 |  | checking for Fortran libraries of gfortran...  -little
 |  | -L/usr/lib/gcc/sh4-linux-gnu/4.3.4
 |  | -L/usr/lib/gcc/sh4-linux-gnu/4.3.4/../../.. -lgfortranbegin -lgfortran
 |  | -lm -lgcc_s
 |  | checking for dummy main to link with Fortran libraries... unknown
 |  | configure: error: linking to Fortran libraries from C fails
 |  | See `config.log' for more details.
 |  | -
 |  |
 |  | Old autoconf adds -little option to compile option. sh4 architecture 
 can't
 |  | interpret this option. Therefore, this has build error.
 |  |  http://lists.gnu.org/archive/html/bug-autoconf/2008-10/msg00039.html
 |  |
 |  | We need patch revising this.
 |  | I added patch to revising these. Package building was fine.
 |  | Please apply  patch.
 | 
 |  Of course -- that looks very straightforward.  I'll also CC Martyn 
 upstream.
 | 
 |  Would replacing config.guess and/or config.sub with more current 
 versions have
 |  helped as well?
 | 
 |  e...@ron:~/src/debian/Misc/JAGS-1.0.3$ ls -l /usr/share/misc/config.* 
 config.*
 |  -rwxr-xr-x 1 edd  edd  44554 2007-06-14 17:16 config.guess
 |  -rwxr-xr-x 1 edd  edd  32665 2007-06-14 17:16 config.sub
 |  -rwxr-xr-x 1 root root 45612 2009-07-23 15:36 
 /usr/share/misc/config.guess
 |  -rwxr-xr-x 1 root root 34069 2009-07-23 15:36 /usr/share/misc/config.sub
 |  e...@ron:~/src/debian/Misc/JAGS-1.0.3$
 | 
 |  Regards, Dirk
 | 
 |  | Best regards,
 |  |  Nobuhiro
 |  |
 |  | --
 |  | --- a/configure 2009-11-04 01:03:56.0 +
 |  | +++ b/configure 2009-11-04 01:04:19.0 +
 |  | @@ -20398,7 +20398,7 @@
 |  |
 |  |            ;;
 |  |            # Ignore these flags.
 |  | -        -lang* | -lcrt* | -lc | -lgcc* | -lSystem | -libmil | 
 -LANG:=*)
 |  | +        -lang* | -lcrt* | -lc | -lgcc* | -lSystem | -libmil | -little 
 | -LANG:=*)
 |  |            ;;
 |  |          -lkernel32)
 |  |            test x$CYGWIN != xyes  ac_cv_f77_libs=$ac_cv_f77_libs 
 $ac_arg
 | 
 |
 | ---
 | This message and its attachments are strictly confidential. If you are
 | not the intended recipient of this message, please immediately notify
 | the sender and delete it. Since its integrity cannot be guaranteed,
 | its content cannot involve the sender's responsibility. Any misuse,
 | any disclosure or publication of its content, either whole or partial,
 | is prohibited, exception made of formally approved use
 | ---


 

Bug#554347: FTBFS: error: linking to Fortran libraries from C fails

2009-11-03 Thread Nobuhiro Iwamatsu
Package: jags
Version: 1.0.3-1
Severity: important
Tags: patch
User: debian-...@superh.org
Usertags: sh4
X-Debbugs-CC: debian-sup...@lists.debian.org

Hi,

I am now trying to run Debian on Renesas SH(sh4) CPU.
http://buildd.debian-ports.org/status/architecture.php?a=sh4

jags can not build on sh4. Because configure of this package generated
from old autoconf.

-
checking how to get verbose linking output from gfortran... -v
checking for Fortran libraries of gfortran...  -little
-L/usr/lib/gcc/sh4-linux-gnu/4.3.4
-L/usr/lib/gcc/sh4-linux-gnu/4.3.4/../../.. -lgfortranbegin -lgfortran
-lm -lgcc_s
checking for dummy main to link with Fortran libraries... unknown
configure: error: linking to Fortran libraries from C fails
See `config.log' for more details.
-

Old autoconf adds -little option to compile option. sh4 architecture can't
interpret this option. Therefore, this has build error.
 http://lists.gnu.org/archive/html/bug-autoconf/2008-10/msg00039.html

We need patch revising this.
I added patch to revising these. Package building was fine.
Please apply  patch.

Best regards,
 Nobuhiro
--- a/configure	2009-11-04 01:03:56.0 +
+++ b/configure	2009-11-04 01:04:19.0 +
@@ -20398,7 +20398,7 @@
 
   ;;
   # Ignore these flags.
--lang* | -lcrt* | -lc | -lgcc* | -lSystem | -libmil | -LANG:=*)
+-lang* | -lcrt* | -lc | -lgcc* | -lSystem | -libmil | -little | -LANG:=*)
   ;;
 -lkernel32)
   test x$CYGWIN != xyes  ac_cv_f77_libs=$ac_cv_f77_libs $ac_arg


Bug#554347: FTBFS: error: linking to Fortran libraries from C fails

2009-11-03 Thread Dirk Eddelbuettel

On 4 November 2009 at 11:56, Nobuhiro Iwamatsu wrote:
| Hi,
| 
| I am now trying to run Debian on Renesas SH(sh4) CPU.
| http://buildd.debian-ports.org/status/architecture.php?a=sh4
| 
| jags can not build on sh4. Because configure of this package generated
| from old autoconf.
| 
| -
| checking how to get verbose linking output from gfortran... -v
| checking for Fortran libraries of gfortran...  -little
| -L/usr/lib/gcc/sh4-linux-gnu/4.3.4
| -L/usr/lib/gcc/sh4-linux-gnu/4.3.4/../../.. -lgfortranbegin -lgfortran
| -lm -lgcc_s
| checking for dummy main to link with Fortran libraries... unknown
| configure: error: linking to Fortran libraries from C fails
| See `config.log' for more details.
| -
| 
| Old autoconf adds -little option to compile option. sh4 architecture can't
| interpret this option. Therefore, this has build error.
|  http://lists.gnu.org/archive/html/bug-autoconf/2008-10/msg00039.html
| 
| We need patch revising this.
| I added patch to revising these. Package building was fine.
| Please apply  patch.

Of course -- that looks very straightforward.  I'll also CC Martyn upstream.

Would replacing config.guess and/or config.sub with more current versions have
helped as well?

e...@ron:~/src/debian/Misc/JAGS-1.0.3$ ls -l /usr/share/misc/config.* config.*
-rwxr-xr-x 1 edd  edd  44554 2007-06-14 17:16 config.guess
-rwxr-xr-x 1 edd  edd  32665 2007-06-14 17:16 config.sub
-rwxr-xr-x 1 root root 45612 2009-07-23 15:36 /usr/share/misc/config.guess
-rwxr-xr-x 1 root root 34069 2009-07-23 15:36 /usr/share/misc/config.sub
e...@ron:~/src/debian/Misc/JAGS-1.0.3$

Regards, Dirk

| Best regards,
|  Nobuhiro
| 
| --
| --- a/configure   2009-11-04 01:03:56.0 +
| +++ b/configure   2009-11-04 01:04:19.0 +
| @@ -20398,7 +20398,7 @@
|  
|;;
|# Ignore these flags.
| --lang* | -lcrt* | -lc | -lgcc* | -lSystem | -libmil | -LANG:=*)
| +-lang* | -lcrt* | -lc | -lgcc* | -lSystem | -libmil | -little | 
-LANG:=*)
|;;
|  -lkernel32)
|test x$CYGWIN != xyes  ac_cv_f77_libs=$ac_cv_f77_libs $ac_arg

-- 
Three out of two people have difficulties with fractions.



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#554347: FTBFS: error: linking to Fortran libraries from C fails

2009-11-03 Thread Nobuhiro Iwamatsu
Hi, Dirk.

2009/11/4 Dirk Eddelbuettel e...@debian.org:
 Of course -- that looks very straightforward.  I'll also CC Martyn upstream.

 Would replacing config.guess and/or config.sub with more current versions have
 helped as well?

 e...@ron:~/src/debian/Misc/JAGS-1.0.3$ ls -l /usr/share/misc/config.* config.*
 -rwxr-xr-x 1 edd  edd  44554 2007-06-14 17:16 config.guess
 -rwxr-xr-x 1 edd  edd  32665 2007-06-14 17:16 config.sub
 -rwxr-xr-x 1 root root 45612 2009-07-23 15:36 /usr/share/misc/config.guess
 -rwxr-xr-x 1 root root 34069 2009-07-23 15:36 /usr/share/misc/config.sub
 e...@ron:~/src/debian/Misc/JAGS-1.0.3$


Thank you for comments.

I replaced config.guess and config.sub, and build test.
But  the problem was not revised.

Best regards,
  Nobuhiro

-- 
Nobuhiro Iwamatsu



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org