Re: Runing DBT2 on Postgresql

From: Peter Geoghegan <pg(at)heroku(dot)com>
To: Rohit Goyal <rhtgyl(dot)87(at)gmail(dot)com>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>, Mark Wong <markwkm(at)gmail(dot)com>
Subject: Re: Runing DBT2 on Postgresql
Date: 2014-04-24 04:57:00
Message-ID: CAM3SWZT5Meeadcjhw+AhQxpUpqskKueMtZ6ckKg2_vG0qcLFCQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, Apr 23, 2014 at 2:33 AM, Rohit Goyal <rhtgyl(dot)87(at)gmail(dot)com> wrote:
> I am trying to install dbt2 on postgresql database.
>
> cmake(configure) command work fine and but make command(build) give an error
> given below. I have no idea about how to solve it

ld has become less tolerant of certain flag orderings over time in
certain distros. The following tweak may be used as a quick-and-dirty
work around:

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6a128e3..f6a796b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -11,6 +11,7 @@ SET(DBT2_CLIENT bin/dbt2-client)
SET(DBT2_DATAGEN bin/dbt2-datagen)
SET(DBT2_DRIVER bin/dbt2-driver)
SET(DBT2_TXN_TEST bin/dbt2-transaction-test)
+set(CMAKE_EXE_LINKER_FLAGS "-Wl,--no-as-needed")

#
# Check for large file support by using 'getconf'.

--
Peter Geoghegan

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Craig Ringer 2014-04-24 05:39:27 Re: bgworker crashed or not?
Previous Message David Fetter 2014-04-24 04:32:41 Re: 9.4 Proposal: Initdb creates a single table