Project

General

Profile

Actions

Bug #13175

closed

Building --with-jemalloc on FreeBSD fails

Added by spil (Bernard Spil) about 7 years ago. Updated almost 7 years ago.

Status:
Closed
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 1 (0 open1 closed)

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

Updated by naruse (Yui NARUSE) about 7 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) about 7 years ago

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

Updated by usa (Usaku NAKAMURA) about 7 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) almost 7 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) almost 7 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.

Actions #6

Updated by usa (Usaku NAKAMURA) over 6 years ago

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

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0