> for the brave: librsvg-2.45.7 works fine for me for some time now. If 
> compiled with rustc-1.35. But trying to compile it with rustc-1.36
> (get it from https://fossies.org/linux/misc/rustc-1.36.0-src.tar.xz) 
> fails. A pretty late linking error - missing symbol deep down in what 
> seems to be either llvm or gcc related. I suspected my shiny new 
> (multilib) system to be severly broken in that regard, but couldn't find 
> any cause for *many* hours.
>
> So I switched back to the old system and building librsvg-2.45.7 failed 
> too. WTF? It didn't a few days ago. Pretty much the only change inbetween 
> on that system was rustc-1.35 -> rustc-1.36. Bad idea. Reverting back to 
> rustc-1.35 and librsvg-2.45.7 compiles and works as it used to on 
> both systems.

Actually, the culprit seems to be the librsvg-2.45.7 distro: in
Makefile.in I find:

----8<----
        LIBRSVG_BUILD_DIR=$(LIBRSVG_BUILD_DIR)                                  
\
        LIBRSVG_TARGET_DIR=$(LIBRSVG_TARGET_DIR)                                
        \
        $(CARGO) --locked build $(CARGO_VERBOSE) $(CARGO_TARGET_ARGS) 
$(CARGO_RELEASE_ARGS) --features "c-library" \
        && $(AR) d $(RUST_LIB) clzsi2.o # HACK: 
https://github.com/rust-lang/rust/issues/58277
---->8----

That hack is only needed for rust < 1.36, as said in [1] and [2]; it
will crash the build with rust>=1.36
Makefile.in has been fixed for this problem upstream in git [2]

For 2.45.7, the following workaround fixes the build with rust-1.36 for me:

----8<----
diff -c ./Makefile.in.FIX_CLZSI2 ./Makefile.in
*** ./Makefile.in.FIX_CLZSI2    Wed Jul 17 15:58:53 2019
--- ./Makefile.in       Wed Jul 17 15:58:53 2019
***************
*** 1750,1756 ****
        LIBRSVG_BUILD_DIR=$(LIBRSVG_BUILD_DIR)                                  
\
        LIBRSVG_TARGET_DIR=$(LIBRSVG_TARGET_DIR)                                
        \
        $(CARGO) --locked build $(CARGO_VERBOSE) $(CARGO_TARGET_ARGS) 
$(CARGO_RELEASE_ARGS) --features "c-library" \
-       && $(AR) d $(RUST_LIB) clzsi2.o # HACK: 
https://github.com/rust-lang/rust/issues/58277
  
  @HAVE_INTROSPECTION_TRUE@-include $(INTROSPECTION_MAKEFILE)
  
--- 1750,1755 ----
---->8----

[1] https://github.com/rust-lang/rust/issues/58277
[2] 
https://github.com/GNOME/librsvg/commit/449fdccaffd316eddb394589008310c327eb31bb


>
> Why does dealing with rustc stuff always feel like wasting time to me??
>

agreed


ciao
gabriele
-- 
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to