Project

General

Profile

Bug #13175

Building --with-jemalloc on FreeBSD fails

Added by spil (Bernard Spil) over 3 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
[ruby-core:79368]

Description

Building Ruby 2.3 on FreeBSD 11 with --with-jemalloc leads to linking issues.

As of FreeBSD 10.0 jemalloc is in FreeBSD's libc and thus -ljemalloc will trigger a linktime error.

Removing -ljemalloc from the linker solves the issue

+@@ -4015,9 +4016,6 @@ AS_CASE(["$target_os"],
+ AS_CASE(["$with_gmp: $SOLIBS "], [no:* | *' -lgmp '*|*' $(LIBS) '*], [],
+   [SOLIBS="-lgmp $SOLIBS"])
+ 
+-AS_CASE(["$with_jemalloc: $LIBS "], [no:* | *' -ljemalloc '*], [],
+-  [LIBS="-ljemalloc $LIBS"])
+-
+ MINIOBJS="$MINIDLNOBJ"
+ 
+ AS_CASE(["$THREAD_MODEL"],

Related issues

Related to Ruby master - Bug #13402: [PATCH] fix --with-gmp (broken by r57490)Closednobu (Nobuyoshi Nakada)Actions

Updated by naruse (Yui NARUSE) over 3 years ago

  • Status changed from Open to Rejected

You needn't --with-jemalloc; don't specify --with-jemalloc on FreeBSD.

Updated by nobu (Nobuyoshi Nakada) over 3 years ago

  • Status changed from Rejected to Closed
  • Description updated (diff)
#3

Updated by usa (Usaku NAKAMURA) over 3 years ago

  • Backport changed from 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN to 2.2: REQUIRED, 2.3: REQUIRED, 2.4: REQUIRED

Updated by usa (Usaku NAKAMURA) over 3 years ago

  • Backport changed from 2.2: REQUIRED, 2.3: REQUIRED, 2.4: REQUIRED to 2.2: REQUIRED, 2.3: DONE, 2.4: REQUIRED

ruby_2_3 r58515 merged revision(s) 57490.

Updated by nagachika (Tomoyuki Chikanaga) over 3 years ago

  • Backport changed from 2.2: REQUIRED, 2.3: DONE, 2.4: REQUIRED to 2.2: REQUIRED, 2.3: DONE, 2.4: DONE

ruby_2_4 r58627 merged revision(s) 57490.

#6

Updated by usa (Usaku NAKAMURA) about 3 years ago

  • Related to Bug #13402: [PATCH] fix --with-gmp (broken by r57490) added

Also available in: Atom PDF