This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Compiling instructions unclear gcc-4.3.0


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!


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]