[ruby-core:67006] [ruby-trunk - Bug #10625] [Closed] configure --with or --without-jemalloc fails

From: nobu@...
Date: 2014-12-20 23:35:50 UTC
List: ruby-core #67006
Issue #10625 has been updated by Nobuyoshi Nakada.

Status changed from Open to Closed
% Done changed from 0 to 100

Applied in changeset r48907.

----------
configure.in: fix jemalloc option

* configure.in (jemalloc): fix option argument, should use
  `$withval` but not `yes` always.  [ruby-core:66994] [Bug #10625]
* configure.in (jemalloc): defer adding the liner option to get
  rid of linking contest against jemalloc, so that it works
  without runtime dynamic load path.

----------------------------------------
Bug #10625: configure --with or --without-jemalloc fails
https://bugs.ruby-lang.org/issues/10625#change-50534

* Author: Sakuro OZAWA
* Status: Closed
* Priority: Normal
* Assignee: Nobuyoshi Nakada
* Category: build
* Target version: 
* ruby -v: trunk@96fc310
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN
----------------------------------------
I have installed jemalloc(version 3.6.0) from MacPorts on OSX Yosemite and tried building ruby trunk@96fc310.

The result were

```
$ ../configure --srcdir=.. --with-opt-dir=/opt/local --with-jemalloc
:
checking size of long long... configure: error: in `/Users/sakuro/Projects/github.com/sakuro/ruby/build-with-jemalloc':
configure: error: cannot compute sizeof (long long)
```
fails.

```
$ ../configure --srcdir=.. --with-opt-dir=/opt/local --without-jemalloc
:
checking size of long long... configure: error: in `/Users/sakuro/Projects/github.com/sakuro/ruby/build-without-jemalloc':
configure: error: cannot compute sizeof (long long)
```
fails.

```
$ ../configure --srcdir=.. --with-opt-dir=/opt/local
:
config.status: creating GNUmakefile
config.status: creating Makefile
config.status: creating ruby-2.2.pc
```
succeeds.

The header of jemalloc resides as /opt/local/include/jemalloc/jemalloc.h and seems correctly recognized by the script.

```
checking for malloc_conf in -ljemalloc... yes
checking jemalloc/jemalloc.h usability... yes
checking jemalloc/jemalloc.h presence... yes
checking for jemalloc/jemalloc.h... yes
```



---Files--------------------------------
configure-output.tar.bz2 (73.5 KB)


-- 
https://bugs.ruby-lang.org/

In This Thread

Prev Next