Skip to content

Build failed with "undefined reference" GCC 4.6.1 #903

@lht

Description

@lht

$ make
cfg: building on Linux x86_64
cfg: unix-y environment
cfg: using gcc
compile_and_link: stage1/rustc
/usr/bin/ld: stage1/rustc.o: undefined reference to symbol 'upcall_get_type_desc'
/usr/bin/ld: note: 'upcall_get_type_desc' is defined in DSO stage0/lib/librustrt.so so try adding it to the linker command line
stage0/lib/librustrt.so: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
error: linking with gcc failed with code 256
note: gcc arguments: -Lstage0/lib -Lrt -lrustrt stage0/lib/glue.o -m32 -o stage1/rustc stage1/rustc.o -Lstage0/lib -lstd -Lrustllvm -lrustllvm -lm stage0/lib/main.o
error: aborting due to previous errors

GCC- 4.6.1-9ubuntu2
GNU ld (GNU Binutils for Ubuntu) 2.21.53.20110810

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-linkageArea: linking into static, shared libraries and binariesO-linuxOperating system: Linux

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions