Skip to content

"./configure --libdir=/usr/lib64 ; make" fails to build correctly (and install) #32261

Closed
@shlomif

Description

@shlomif

Hi all!

Running ./configure --libdir=/usr/lib64 and make fails to build rustc-1.7.0-src correctly (and I need to do that and other parameters for build Mageia x86-64 v6 RPMs). The following tentative patch fixes the problem.

--- rustc-1.7.0/mk/main.mk.fix-rel-lib  2016-03-01 21:18:54.000000000 +0200
+++ rustc-1.7.0/mk/main.mk  2016-03-15 14:13:30.741991672 +0200
@@ -389,17 +389,17 @@
 HLIB_RELATIVE$(1)_H_$(3) = bin
 TROOT$(1)_T_$(2)_H_$(3) = $$(HROOT$(1)_H_$(3))/$$(CFG_LIBDIR_RELATIVE)/rustlib/$(2)
 # Remove the next 3 lines after a snapshot
-ifeq ($(1),0)
-RUSTFLAGS_STAGE0 += -L $$(TROOT$(1)_T_$(2)_H_$(3))/lib
-endif
+#ifeq ($(1),0)
+#RUSTFLAGS_STAGE0 += -L $$(TROOT$(1)_T_$(2)_H_$(3))/lib
+#endif

 else

-ifeq ($(1),0)
-HLIB_RELATIVE$(1)_H_$(3) = lib
-else
+#ifeq ($(1),0)
+#HLIB_RELATIVE$(1)_H_$(3) = lib
+#else
 HLIB_RELATIVE$(1)_H_$(3) = $$(CFG_LIBDIR_RELATIVE)
-endif
+#endif
 TROOT$(1)_T_$(2)_H_$(3) = $$(HLIB$(1)_H_$(3))/rustlib/$(2)

 endif

Thanks to eddyb on #rust-internals on irc.mozilla.org for some diagnosis and help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions