public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/30035]  New: libjava cannot be built when objdir != srcdir
@ 2006-12-01  4:16 gcc-bugzilla at gcc dot gnu dot org
  2006-12-01  4:19 ` [Bug java/30035] " pinskia at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: gcc-bugzilla at gcc dot gnu dot org @ 2006-12-01  4:16 UTC (permalink / raw)
  To: gcc-bugs


        "Installing GCC" [1] explicitly encourages building the source code
        with objdir separate from srcdir.

        [1] http://gcc.gnu.org/install/configure.html

        In particular:

            mkdir objdir
            cd objdir
            srcdir/configure [options] [target]

        Most of gcc builds fine that way except libjava, which fails to build
        because:

         1. It does not attempt to create a sub directory for nor configure
            libltdl at all.

         2. libjava/libltdl/config.sub assumes that ../../config.sub can be
            found. The intention is to use srcdir/config.sub, but it cannot
            be refered to this way when objdir != srcdir.

Environment:
System: SunOS types 5.7 Generic_106541-24 sun4u sparc SUNW,Ultra-250
Architecture: sun4


        these are not relevant
host: sparc-sun-solaris2.7
build: sparc-sun-solaris2.7
target: sparc-sun-solaris2.7
configured with: ../gcc-4.1.1/configure --enable-languages=c,c++ --with-gnu-as
--with-gnu-ld --prefix=/cs/church-data/gcc

How-To-Repeat:
        Build gcc with at least --enable-languages=java, in a separate objdir
        than srcdir.


------- Comment #1 from liulk at types dot bu dot edu  2006-12-01 04:16 -------
Fix:
        A Makefile target in libjava should be devised to configure libltdl
        first, and the relative path should be fixed somehow.


-- 
           Summary: libjava cannot be built when objdir != srcdir
           Product: gcc
           Version: 4.1.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: java
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: liulk at types dot bu dot edu
 GCC build triplet: sparc-sun-solaris2.7
  GCC host triplet: sparc-sun-solaris2.7
GCC target triplet: sparc-sun-solaris2.7


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


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

* [Bug java/30035] libjava cannot be built when objdir != srcdir
  2006-12-01  4:16 [Bug java/30035] New: libjava cannot be built when objdir != srcdir gcc-bugzilla at gcc dot gnu dot org
@ 2006-12-01  4:19 ` pinskia at gcc dot gnu dot org
  2007-01-19 22:59 ` tromey at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-12-01  4:19 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from pinskia at gcc dot gnu dot org  2006-12-01 04:19 -------
For 4.1, this is a known issue IIRC. for 4.2 and above this is fixed IIRC.


-- 


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


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

* [Bug java/30035] libjava cannot be built when objdir != srcdir
  2006-12-01  4:16 [Bug java/30035] New: libjava cannot be built when objdir != srcdir gcc-bugzilla at gcc dot gnu dot org
  2006-12-01  4:19 ` [Bug java/30035] " pinskia at gcc dot gnu dot org
@ 2007-01-19 22:59 ` tromey at gcc dot gnu dot org
  2007-01-29 19:57 ` tromey at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: tromey at gcc dot gnu dot org @ 2007-01-19 22:59 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from tromey at gcc dot gnu dot org  2007-01-19 22:59 -------
Is this still a bug?
I always build GCC with a separate objdir, and I don't see this problem.
Furthermore my 4.1 tree has a copy of config.{guess,sub} in libjava/libltdl.
I believe these are used by the libltdl build.


-- 

tromey at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tromey at gcc dot gnu dot
                   |                            |org


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


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

* [Bug java/30035] libjava cannot be built when objdir != srcdir
  2006-12-01  4:16 [Bug java/30035] New: libjava cannot be built when objdir != srcdir gcc-bugzilla at gcc dot gnu dot org
  2006-12-01  4:19 ` [Bug java/30035] " pinskia at gcc dot gnu dot org
  2007-01-19 22:59 ` tromey at gcc dot gnu dot org
@ 2007-01-29 19:57 ` tromey at gcc dot gnu dot org
  2007-01-30  2:11 ` liulk at types dot bu dot edu
  2007-05-17 15:16 ` ebotcazou at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: tromey at gcc dot gnu dot org @ 2007-01-29 19:57 UTC (permalink / raw)
  To: gcc-bugs



-- 

tromey at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING


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


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

* [Bug java/30035] libjava cannot be built when objdir != srcdir
  2006-12-01  4:16 [Bug java/30035] New: libjava cannot be built when objdir != srcdir gcc-bugzilla at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2007-01-29 19:57 ` tromey at gcc dot gnu dot org
@ 2007-01-30  2:11 ` liulk at types dot bu dot edu
  2007-05-17 15:16 ` ebotcazou at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: liulk at types dot bu dot edu @ 2007-01-30  2:11 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from liulk at types dot bu dot edu  2007-01-30 02:11 -------
(In reply to comment #3)
> I always build GCC with a separate objdir, and I don't see this problem.

Make sure you're building java, so --enable-languages contains at least the
'java' target or 'all'. In the case of 'all', the only way to be sure is of
course to specify 'java' explicitly. You should check that configure gives you
the following line, and 'java' is one of the languages to be built:

The following languages will be built: c,c++,fortran,java,objc

Obviously, language targets such as c, c++, fortran, ada, obj-c, etc. don't
make use of libjava. If you're not building java, then libjava is not going to
be built, and the build process would succeed fine. I can build all the other
language targets just fine. I just can't build java because of libjava build
error.

> Furthermore my 4.1 tree has a copy of config.{guess,sub} in libjava/libltdl.
> I believe these are used by the libltdl build.

I see these files too, but they're not being referenced by libjava/Makefile.am,
which means the build system doesn't think libltdl exists. Furthermore,
libjava/libltdl/config.sub assumes it will find ../../config.sub, which is not
the case when srcdir != objdir.


-- 


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


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

* [Bug java/30035] libjava cannot be built when objdir != srcdir
  2006-12-01  4:16 [Bug java/30035] New: libjava cannot be built when objdir != srcdir gcc-bugzilla at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2007-01-30  2:11 ` liulk at types dot bu dot edu
@ 2007-05-17 15:16 ` ebotcazou at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2007-05-17 15:16 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from ebotcazou at gcc dot gnu dot org  2007-05-17 16:15 -------
Configure using an absolute path as recommended in the build instructions.


-- 

ebotcazou at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ebotcazou at gcc dot gnu dot
                   |                            |org
             Status|WAITING                     |RESOLVED
         Resolution|                            |INVALID


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


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

end of thread, other threads:[~2007-05-17 15:16 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-12-01  4:16 [Bug java/30035] New: libjava cannot be built when objdir != srcdir gcc-bugzilla at gcc dot gnu dot org
2006-12-01  4:19 ` [Bug java/30035] " pinskia at gcc dot gnu dot org
2007-01-19 22:59 ` tromey at gcc dot gnu dot org
2007-01-29 19:57 ` tromey at gcc dot gnu dot org
2007-01-30  2:11 ` liulk at types dot bu dot edu
2007-05-17 15:16 ` ebotcazou at gcc dot gnu dot org

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