Project

General

Profile

Bug #13175

Building --with-jemalloc on FreeBSD fails

Added by spil (Bernard Spil) over 2 years ago. Updated about 2 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 trunk - Bug #13402: [PATCH] fix --with-gmp (broken by r57490)ClosedActions

Associated revisions

Revision a106278e
Added by nobu (Nobuyoshi Nakada) over 2 years ago

configure.in: use AC_SEARCH_LIBS

  • configure.in (--with-gmp, --with-jemalloc): use AC_SEARCH_LIBS to check if no library is required, instead of AC_CHECK_LIB. [ruby-core:79368] [Bug #13175]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57490 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 57490
Added by nobu (Nobuyoshi Nakada) over 2 years ago

configure.in: use AC_SEARCH_LIBS

  • configure.in (--with-gmp, --with-jemalloc): use AC_SEARCH_LIBS to check if no library is required, instead of AC_CHECK_LIB. [ruby-core:79368] [Bug #13175]

Revision 57490
Added by nobu (Nobuyoshi Nakada) over 2 years ago

configure.in: use AC_SEARCH_LIBS

  • configure.in (--with-gmp, --with-jemalloc): use AC_SEARCH_LIBS to check if no library is required, instead of AC_CHECK_LIB. [ruby-core:79368] [Bug #13175]

Revision 57490
Added by nobu (Nobuyoshi Nakada) over 2 years ago

configure.in: use AC_SEARCH_LIBS

  • configure.in (--with-gmp, --with-jemalloc): use AC_SEARCH_LIBS to check if no library is required, instead of AC_CHECK_LIB. [ruby-core:79368] [Bug #13175]

Revision bf34bdf5
Added by usa (Usaku NAKAMURA) about 2 years ago

merge revision(s) 57490: [Backport #13175]

    configure.in: use AC_SEARCH_LIBS

    * configure.in (--with-gmp, --with-jemalloc): use AC_SEARCH_LIBS
      to check if no library is required, instead of AC_CHECK_LIB.
      [ruby-core:79368] [Bug #13175]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@58515 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 58515
Added by usa (Usaku NAKAMURA) about 2 years ago

merge revision(s) 57490: [Backport #13175]

configure.in: use AC_SEARCH_LIBS

* configure.in (--with-gmp, --with-jemalloc): use AC_SEARCH_LIBS
  to check if no library is required, instead of AC_CHECK_LIB.
  [ruby-core:79368] [Bug #13175]

Revision 97da0db7
Added by nagachika (Tomoyuki Chikanaga) about 2 years ago

merge revision(s) 57490: [Backport #13175]

    configure.in: use AC_SEARCH_LIBS

    * configure.in (--with-gmp, --with-jemalloc): use AC_SEARCH_LIBS
      to check if no library is required, instead of AC_CHECK_LIB.
      [ruby-core:79368] [Bug #13175]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_4@58627 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 58627
Added by nagachika (Tomoyuki Chikanaga) about 2 years ago

merge revision(s) 57490: [Backport #13175]

configure.in: use AC_SEARCH_LIBS

* configure.in (--with-gmp, --with-jemalloc): use AC_SEARCH_LIBS
  to check if no library is required, instead of AC_CHECK_LIB.
  [ruby-core:79368] [Bug #13175]

History

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

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

Updated by usa (Usaku NAKAMURA) about 2 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) about 2 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) about 2 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) over 1 year ago

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

Also available in: Atom PDF