error: C compiler cannot create executables

Bryan Hundven bryanhundven@gmail.com
Thu Sep 23 19:55:00 GMT 2010


On Fri, Sep 10, 2010 at 8:47 AM, Doug Crawford <dcraw101@yahoo.com> wrote:
>
>
> Sorry about that.  Here is the relevant portion of the config.log and I have
> attached the complete
> "targets/powerpc-860-linux-uclibc/build/build-cc/powerpc-860-linux-uclibc/libgomp/config.log".
>  As I mentioned before, this output is for a gcc 4.5.1 build with uclibc.  I
> will check if it is the same error when building gcc 4.3.4.  But, gcc 4.4.3
> works just fine.
>
> configure:3658: checking for C compiler default output file name
> configure:3680:
> /home/crawford/crosstool-ng/targets/powerpc-860-linux-uclibc/build/build-cc/./gcc/xgcc
> -B/home/crawford/crosstool-ng/targets/powerpc-860-linux-uclibc/build/build-cc/./gcc/
> /
> -B/home/crawford/x-tools/powerpc-860-linux-uclibc/powerpc-860-linux-uclibc/bin/
> -B/home/crawford/x-tools/powerpc-860-linux-uclibc/powerpc-860-linux-uclibc/lib/
> -isystem
> /home/crawford/x-tools/powerpc-860-linux-uclibc/powerpc-860-linux-uclibc/include
> -isystem
> /home/crawford/x-tools/powerpc-860-linux-uclibc/powerpc-860-linux-uclibc/sys-include
>  -g -Os   conftest.c  >&5
> /home/crawford/x-tools/powerpc-860-linux-uclibc/powerpc-860-linux-uclibc/bin/ld:
> a.out: hidden symbol `_restgpr_31_x' in
> /home/crawford/crosstool-ng/targets/powerpc-860-linux-uclibc/build/build-cc/./gcc/libgcc.a(crtresxgpr.o)
>  is referenced by DSO
> /home/crawford/x-tools/powerpc-860-linux-uclibc/powerpc-860-linux-uclibc/bin/ld:
> final link failed: Nonrepresentable section on output
> collect2: ld returned 1 exit status
> configure:3684: $? = 1
> configure:3721: result:
> configure: failed program was:
> | /* confdefs.h */
> | #define PACKAGE_NAME "GNU OpenMPRuntime Library"
> | #define PACKAGE_TARNAME "libgomp"
> | #define PACKAGE_VERSION "1.0"
> | #define PACKAGE_STRING "GNU OpenMPRuntime Library 1.0"
> | #define PACKAGE_BUGREPORT ""
> | #define PACKAGE_URL "http://www.gnu.org/software/libgomp/"
> | #define PACKAGE "libgomp"
> | #define VERSION "1.0"
> | /* end confdefs.h.  */
> |
> | int
> | main ()
> | {
> |
> |   ;
> |   return 0;
> | }
> configure:3727: error: in
> `/home/crawford/crosstool-ng/targets/powerpc-860-linux-uclibc/build/build-cc/powerpc-860-linux-uclibc/libgomp':
>
> configure:3731: error: C compiler cannot create executables
> See `config.log' for more details.
>
> Thanks,
> Doug

Interesting,

I am getting a similar problem with an updated
powerpc-e500v2-linux-gnuspe, but rather then being " hidden symbol
`_restgpr_31_x' in", I am getting:
undefined reference to `_save32gpr_31'

Maybe they are somehow related.
.config and libgomp/config.log attached.

-Bryan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config.log
Type: text/x-log
Size: 18892 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/crossgcc/attachments/20100923/f4605212/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ctng.config
Type: application/octet-stream
Size: 10628 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/crossgcc/attachments/20100923/f4605212/attachment.obj>
-------------- next part --------------
--
For unsubscribe information see http://sourceware.org/lists.html#faq


More information about the crossgcc mailing list