This is the mail archive of the gcc@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]

Rust front-end


I'm interested in working on the Rust front-end for GCC.

So far I've cloned the repository <https://github.com/redbrain/gccrs.git>
and tried to compile it as described in <https://gcc.gnu.org/wiki/RustFrontEnd>.
I've compiled it outside of the gcc directory tree with

$ ../gccrs/configure --prefix=/opt/gccrs --enable-languages=rust
--disable-multilib --disable-bootstrap
$ make


But this produces some linking errors for functions that were called
but never defined:


/usr/bin/ld: rust/rust-lang.o: in function
`rust_langhook_handle_option(unsigned long, char const*, long, int,
unsigned int, cl_option_handlers const*)':
/home/baal/gccrs-build/gcc/../../gccrs/gcc/rust/rust-lang.c:185:
undefined reference to `rust_add_search_path(char const*)'
/usr/bin/ld: /home/baal/gccrs-build/gcc/../../gccrs/gcc/rust/rust-lang.c:213:
undefined reference to `rust_add_search_path(char const*)'
/usr/bin/ld: /home/baal/gccrs-build/gcc/../../gccrs/gcc/rust/rust-lang.c:217:
undefined reference to `rust_add_search_path(char const*)'
/usr/bin/ld: rust/rust-lang.o: in function `rust_langhook_post_options':
/home/baal/gccrs-build/gcc/../../gccrs/gcc/rust/rust-lang.c:245:
undefined reference to `rust_add_search_path(char const*)'
/usr/bin/ld: rust/rust-lang.o: in function `rust_langhook_parse_file()':
/home/baal/gccrs-build/gcc/../../gccrs/gcc/rust/rust-lang.c:282:
undefined reference to `rust_parse_input_files(char const**, unsigned
int, bool)'
/usr/bin/ld: rust/rust-lang.o:/home/baal/gccrs-build/gcc/./gtype-rust.h:24:
undefined reference to `rust_non_zero_struct'
collect2: error: ld returned 1 exit status
make[2]: *** [../../gccrs/gcc/rust/Make-lang.in:61: rust1] Error 1
make[2]: Leaving directory '/home/baal/gccrs-build/gcc'
make[1]: *** [Makefile:4319: all-gcc] Error 2


It's doesn't really help that the latest commit message
(3b1e76d808b9725e6ef439ae534011370e65fb85) says simply "x" and the
previous one, only "more". Anyhow, I'm left with those questions:

- Considering I'm new to gcc development, what should I read before
getting into this?
- Is there any developer in particular I should talk to?
- Is there anything else I need to know before getting started?


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