public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Compiling instructions unclear gcc-4.3.0
@ 2008-06-06 14:51 Nick England
  2008-06-06 14:57 ` Andrew Haley
  2008-06-06 15:04 ` Eljay Love-Jensen
  0 siblings, 2 replies; 8+ messages in thread
From: Nick England @ 2008-06-06 14:51 UTC (permalink / raw)
  To: gcc-help

the instructions on http://gcc.gnu.org/install/configure.html

say:

To configure GCC:

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

However, in the insctutions on building it only says to do a make.

If I do a make in objdir I get "make: *** No targets specified and no
makefile found.  Stop."

If I do a make in the srcdir then I am building in the srcdir, which
the instructions advise against.

What is the correct command to run to build GCC in a non-src dir?
gcc-4.3.0:
(Incidently I get an error message when building in the src dir
Many similar lines saying functions are mulitpliy defined
....
libs/in_unpack_generic.o: In function `putc_unlocked':
/usr/include/bits/stdio.h:87: multiple definition of `putc_unlocked'
.libs/backtrace.o:/usr/include/bits/stdio.h:87: first defined here
.libs/in_unpack_generic.o: In function `fputc_unlocked':
/usr/include/bits/stdio.h:77: multiple definition of `fputc_unlocked'
.libs/backtrace.o:/usr/include/bits/stdio.h:77: first defined here
.libs/in_unpack_generic.o: In function `putchar':
/usr/include/bits/stdio.h:68: multiple definition of `putchar'
.libs/backtrace.o:/usr/include/bits/stdio.h:68: first defined here
.libs/in_unpack_generic.o: In function `getchar_unlocked':
/usr/include/bits/stdio.h:59: multiple definition of `getchar_unlocked'
.libs/backtrace.o:/usr/include/bits/stdio.h:59: first defined here
.libs/in_unpack_generic.o: In function `getc_unlocked':
/usr/include/bits/stdio.h:52: multiple definition of `getc_unlocked'
.libs/backtrace.o:/usr/include/bits/stdio.h:52: first defined here
.libs/in_unpack_generic.o: In function `getchar':
/usr/include/bits/stdio.h:43: multiple definition of `getchar'
.libs/backtrace.o:/usr/include/bits/stdio.h:43: first defined here
.libs/in_unpack_generic.o: In function `vprintf':
/usr/include/bits/stdio.h:36: multiple definition of `vprintf'
.libs/backtrace.o:/usr/include/bits/stdio.h:36: first defined here
collect2: ld returned 1 exit status
make[3]: *** [libgfortran.la] Error 1
)

Help would be apprechiated!

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

end of thread, other threads:[~2008-06-10 12:55 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-06-06 14:51 Compiling instructions unclear gcc-4.3.0 Nick England
2008-06-06 14:57 ` Andrew Haley
2008-06-06 15:04 ` Eljay Love-Jensen
2008-06-06 15:05   ` Nick England
2008-06-06 15:14     ` Eljay Love-Jensen
2008-06-06 15:24       ` Nick England
2008-06-06 19:44         ` Brian Dessent
2008-06-10 12:55           ` Nick England

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