public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug go/48407] New: libgo/configure --without-libffi doesn't work
@ 2011-04-02  4:42 corsepiu at gcc dot gnu.org
  2011-04-03  7:45 ` [Bug go/48407] " dirtyepic at gentoo dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: corsepiu at gcc dot gnu.org @ 2011-04-02  4:42 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48407

           Summary: libgo/configure --without-libffi doesn't work
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: go
        AssignedTo: ian@airs.com
        ReportedBy: corsepiu@gcc.gnu.org


libgo/configure.ac supplies --without-libffi

However,
libgo/runtime/go-reflect-call.c
unconditionally includes "ffi.h".

I.e. this option doen't do what
libgo/configure --help
...
  --without-libffi        don't use libffi
...
suggests.


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

* [Bug go/48407] libgo/configure --without-libffi doesn't work
  2011-04-02  4:42 [Bug go/48407] New: libgo/configure --without-libffi doesn't work corsepiu at gcc dot gnu.org
@ 2011-04-03  7:45 ` dirtyepic at gentoo dot org
  2011-04-03 20:18 ` joel at gcc dot gnu.org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: dirtyepic at gentoo dot org @ 2011-04-03  7:45 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48407

Ryan Hill <dirtyepic at gentoo dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dirtyepic at gentoo dot org

--- Comment #1 from Ryan Hill <dirtyepic at gentoo dot org> 2011-04-03 07:44:52 UTC ---
http://gcc.gnu.org/ml/gcc-patches/2010-11/msg02084.html


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

* [Bug go/48407] libgo/configure --without-libffi doesn't work
  2011-04-02  4:42 [Bug go/48407] New: libgo/configure --without-libffi doesn't work corsepiu at gcc dot gnu.org
  2011-04-03  7:45 ` [Bug go/48407] " dirtyepic at gentoo dot org
@ 2011-04-03 20:18 ` joel at gcc dot gnu.org
  2011-04-03 20:25 ` joel at gcc dot gnu.org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: joel at gcc dot gnu.org @ 2011-04-03 20:18 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48407

Joel Sherrill <joel at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ian at airs dot com, joel
                   |                            |at gcc dot gnu.org

--- Comment #2 from Joel Sherrill <joel at gcc dot gnu.org> 2011-04-03 20:18:00 UTC ---
This patch is in my local svn tree.  Ian 

Index: configure.ac
===================================================================
--- configure.ac    (revision 170678)
+++ configure.ac    (working copy)
@@ -618,7 +618,8 @@
     ;;
   *-*-rtems*)
     skipdirs="${skipdirs} target-libiberty"
-    noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
+    # noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
+    noconfigdirs="$noconfigdirs target-libgloss"
     ;;
     # The tpf target doesn't support gdb yet.
   *-*-tpf*)


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

* [Bug go/48407] libgo/configure --without-libffi doesn't work
  2011-04-02  4:42 [Bug go/48407] New: libgo/configure --without-libffi doesn't work corsepiu at gcc dot gnu.org
  2011-04-03  7:45 ` [Bug go/48407] " dirtyepic at gentoo dot org
  2011-04-03 20:18 ` joel at gcc dot gnu.org
@ 2011-04-03 20:25 ` joel at gcc dot gnu.org
  2011-04-04 11:45 ` corsepiu at gcc dot gnu.org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: joel at gcc dot gnu.org @ 2011-04-03 20:25 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48407

--- Comment #3 from Joel Sherrill <joel at gcc dot gnu.org> 2011-04-03 20:25:18 UTC ---
Sorry.. it was submitted before I was finished...

I have this in my local tree.  I recall Ian and I discussing that since
Go and GCJ both need libffi, the logic should be smarter.  But this works.

I submitted patches to libffi for m68k and mips.  I recall Go built and worked
on at least i386, sparc, mips, powerpc, and arm.   So libffi is OK to enable. 
If libffi doesn't support a particular architecture, then Go and GCJ are not
available on that architecture.

Index: configure.ac
===================================================================
--- configure.ac    (revision 170678)
+++ configure.ac    (working copy)
@@ -618,7 +618,8 @@
     ;;
   *-*-rtems*)
     skipdirs="${skipdirs} target-libiberty"
-    noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
+    # noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
+    noconfigdirs="$noconfigdirs target-libgloss"
     ;;
     # The tpf target doesn't support gdb yet.
   *-*-tpf*)


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

* [Bug go/48407] libgo/configure --without-libffi doesn't work
  2011-04-02  4:42 [Bug go/48407] New: libgo/configure --without-libffi doesn't work corsepiu at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2011-04-03 20:25 ` joel at gcc dot gnu.org
@ 2011-04-04 11:45 ` corsepiu at gcc dot gnu.org
  2012-02-14 20:48 ` ian at gcc dot gnu.org
  2012-02-14 20:49 ` ian at airs dot com
  5 siblings, 0 replies; 7+ messages in thread
From: corsepiu at gcc dot gnu.org @ 2011-04-04 11:45 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48407

--- Comment #4 from Ralf Corsepius <corsepiu at gcc dot gnu.org> 2011-04-04 11:40:59 UTC ---
(In reply to comment #3)

> I have this in my local tree.  I recall Ian and I discussing that since
> Go and GCJ both need libffi, the logic should be smarter.

Joel, as you may have gueess, I also have a similar patch as the one you posted
here applied, because otherwise "nothing builds", however this is a different
issue.


So, let me try to refine my issues:

* libgo/configure's --without-libffi, suggests GCC (rsp. libgo) could be built
without libffi. This apparently does not apply. libgo (currently) strictly
requires libffi.

In other words, "--without-libffi" doesn't do what a user who is not deeply
intimate with libgo, may think it does. libgo/configure's --without-libffi
actually is closer to "--with/without-external-libffi" than to
"--with/without-libffi".

That said, may-be renaming it could be considered.

* GCC's toplevel configure doesn't honor --with/without-libffi (neither in the
sense of external-ffi nor in the sense of not using libffi).


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

* [Bug go/48407] libgo/configure --without-libffi doesn't work
  2011-04-02  4:42 [Bug go/48407] New: libgo/configure --without-libffi doesn't work corsepiu at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2011-04-04 11:45 ` corsepiu at gcc dot gnu.org
@ 2012-02-14 20:48 ` ian at gcc dot gnu.org
  2012-02-14 20:49 ` ian at airs dot com
  5 siblings, 0 replies; 7+ messages in thread
From: ian at gcc dot gnu.org @ 2012-02-14 20:48 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48407

--- Comment #5 from ian at gcc dot gnu.org <ian at gcc dot gnu.org> 2012-02-14 20:47:42 UTC ---
Author: ian
Date: Tue Feb 14 20:47:35 2012
New Revision: 184234

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=184234
Log:
    PR go/48407
runtime: Permit building libgo without libffi.

Modified:
    trunk/libgo/runtime/go-reflect-call.c


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

* [Bug go/48407] libgo/configure --without-libffi doesn't work
  2011-04-02  4:42 [Bug go/48407] New: libgo/configure --without-libffi doesn't work corsepiu at gcc dot gnu.org
                   ` (4 preceding siblings ...)
  2012-02-14 20:48 ` ian at gcc dot gnu.org
@ 2012-02-14 20:49 ` ian at airs dot com
  5 siblings, 0 replies; 7+ messages in thread
From: ian at airs dot com @ 2012-02-14 20:49 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48407

Ian Lance Taylor <ian at airs dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED

--- Comment #6 from Ian Lance Taylor <ian at airs dot com> 2012-02-14 20:48:52 UTC ---
Fixed, in the sense that you can now build a somewhat broken libgo if you don't
have libffi.

http://gcc.gnu.org/ml/gcc-patches/2012-02/msg00763.html


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

end of thread, other threads:[~2012-02-14 20:49 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-02  4:42 [Bug go/48407] New: libgo/configure --without-libffi doesn't work corsepiu at gcc dot gnu.org
2011-04-03  7:45 ` [Bug go/48407] " dirtyepic at gentoo dot org
2011-04-03 20:18 ` joel at gcc dot gnu.org
2011-04-03 20:25 ` joel at gcc dot gnu.org
2011-04-04 11:45 ` corsepiu at gcc dot gnu.org
2012-02-14 20:48 ` ian at gcc dot gnu.org
2012-02-14 20:49 ` ian at airs dot com

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).