This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: physmem.o: "pss" has no linkage
- From: <swhatley at hal-pc dot org>
- To: gcc-help at gcc dot gnu dot org
- Date: Tue, 09 Sep 2003 15:48:25 -0500
- Subject: Re: physmem.o: "pss" has no linkage
I've been doing some digging and have found the following:
>From libiberty/config.log:
> *** Compiling your program with the command:
>
> /usr/bin/cc -std1 -o conftest -g conftest.c
>
> configure:3027: checking for pstat_getstatic
> configure:3055: cc -o conftest -g conftest.c 1>&5
> ld:
> Unresolved:
> pstat_getstatic
>
>
> *** Compiling your program with the command:
>
> /usr/bin/cc -std1 -o conftest -g conftest.c
>
> configure:3027: checking for pstat_getdynamic
> configure:3055: cc -o conftest -g conftest.c 1>&5
> ld:
> Unresolved:
> pstat_getdynamic
>
>
> *** Compiling your program with the command:
But, the libiberty/config.h has:
> /* Define if you have the pstat_getdynamic function. */
> #define HAVE_PSTAT_GETDYNAMIC 1
>
> /* Define if you have the pstat_getstatic function. */
> #define HAVE_PSTAT_GETSTATIC 1
Is the configuration program misinterpreting the error outputs of the ld
comamnd?
Still digging...
Thanks,
Steven
On Tue, 09 Sep 2003 12:16:06 -0500
<swhatley@hal-pc.org> wrote:
>Hi all,
>
>I am trying to compile GCC 3.3.1 on a Alpha Tru64 5.1A system. I am using GNU
>make but not the GNU binutils. I am having to use the Tru64's C compiler. I
>am getting the following errors very early in the 'make bootstrap' process:
>
>...
>*** Compiling your program with the command:
>
>/usr/bin/cc -std1 -c -DHAVE_CONFIG_H -g -I. -I./../include physmem.c -o
>physmem.o
>
>cc: Error: physmem.c, line 96: In this declaration, "pss" has no linkage and
>is
>of an incomplete type. (incompnolink)
> struct pst_static pss;
>----------------------^
>cc: Error: physmem.c, line 149: In this statement, "_system_configuration" is
>not declared. (undeclared)
> return _system_configuration.physmem;
>---------^
>cc: Error: physmem.c, line 200: In this declaration, "pss" has no linkage and
>is of an incomplete type. (incompnolink)
> struct pst_static pss;
>----------------------^
>cc: Error: physmem.c, line 201: In this declaration, "psd" has no linkage and
>is of an incomplete type. (incompnolink)
> struct pst_dynamic psd;
>-----------------------^
>rm -f libiberty.a pic/libiberty.a
>ar rc libiberty.a \
> regex.o cplus-dem.o cp-demangle.o md5.o alloca.o argv.o choose-temp.o
>concat.o dyn-string.o fdmatch.o fibheap.o floatformat.o fnmatch.o getopt.o
>getopt1.o getpwd.o getruntime.o hashtab.o hex.o lbasename.o
>make-relative-prefix.o make-temp-file.o objalloc.o obstack.o partition.o
>physmem.o pexecute.o safe-ctype.o sort.o spaces.o splay-tree.o strerror.o
>strsignal.o ternary.o xatexit.o xexit.o xmalloc.o xmemdup.o xstrdup.o
>xstrerror.o
>ar: Error: physmem.o cannot open
>make[1]: *** [libiberty.a] Error 1
>make[1]: Leaving directory `/wrk/swhatley/src/gcc/gcc-3.3.1/libiberty'
>make: *** [all-libiberty] Error 2
>
>I used the configuration command:
>./configure --prefix=/usr/local/GCC33
>
>I do not see how to get around this error message. Any help will be
>appreciated.
>
>Thanks,
>Steven
>--
> ___ ____________
> <<<((__O\ (__<>___<>__ \ ____ Don't get rattled by
>Steven Whatley \ \_(__<>___<>__)\O\_/O___>-< what I say. It's just
>swhatley@hal-pc.org \O__<>___<>___<>)\___/ my opinion.
--
___ ____________
<<<((__O\ (__<>___<>__ \ ____ Don't get rattled by
Steven Whatley \ \_(__<>___<>__)\O\_/O___>-< what I say. It's just
swhatley@hal-pc.org \O__<>___<>___<>)\___/ my opinion.