Re: Test CMake build

From: Andy Colson <andy(at)squeakycode(dot)net>
To: Yury Zhuravlev <u(dot)zhuravlev(at)postgrespro(dot)ru>, pgsql-general(at)postgresql(dot)org
Subject: Re: Test CMake build
Date: 2016-02-11 17:00:53
Message-ID: 56BCBE45.4090506@squeakycode.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 2/11/2016 10:44 AM, Andy Colson wrote:
> On 2/11/2016 9:49 AM, Yury Zhuravlev wrote:
>> Yury Zhuravlev wrote:
>>> I will try to fix soon.
>>> I write as a corrected.
>>
>> You can try again. Thanks!
>>
>
> That seems better:
>
> -- Found Readline: /usr/include
> -- Found Curses: /usr/lib64/libcurses.so
>
> Is this bad?
> -- Check size of int64
> -- Check size of int64 - failed
> -- Check size of uint64
> -- Check size of uint64 - failed
> -- Check size of int8
> -- Check size of int8 - failed
>
> make -j2
> running now...
>
> -Andy
>
>
>

make finished ok.

I build slackware packages, so it needs to install into a temp spot,
which kinda works:

andy(at)mapper:~/projects/postgres_cmake/build$ mkdir /tmp/pg999

I used to use "make install-strip", is that not a thing anymore?

andy(at)mapper:~/projects/postgres_cmake/build$ make install-strip
DESTDIR=/tmp/pg999
make: *** No rule to make target `install-strip'. Stop.

Ok, we'll install, but into a tmp folder:

andy(at)mapper:~/projects/postgres_cmake/build$ make install DESTDIR=/tmp/pg999
[ 0%] Built target gen_errorcodes
[ 3%] Built target port
[ 5%] Built target port_srv
<SNIP>

[100%] Built target refint
[100%] Built target timetravel
Install the project...
-- Install configuration: ""
-- Installing: /tmp/pg999/usr/local/pg99/lib/libpq.so
-- Installing: /tmp/pg999/usr/local/pg99/bin/initdb
<Ok .. looks good>
-- Removed runtime path from "/tmp/pg999/usr/local/pg99/bin/initdb"
<Not sure what that means, but ok>

<now we hit a problem>
-- Installing: /tmp/pg999/usr/local/pg99/share/timezonesets/Default
-- Installing: /tmp/pg999/usr/local/pg99/share/timezonesets/Australia
-- Installing: /tmp/pg999/usr/local/pg99/share/timezonesets/India
/home/andy/projects/postgres_cmake/build/src/timezone//zic: Cannot
create directory /usr/local/pg99: Permission denied
-- Installing: /tmp/pg999/usr/local/pg99/lib/plpgsql.so
-- Installing: /tmp/pg999/usr/local/pg99/share/extension/plpgsql.control
-- Installing: /tmp/pg999/usr/local/pg99/share/extension/plpgsql--1.0.sql
-- Installing:
/tmp/pg999/usr/local/pg99/share/extension/plpgsql--unpackaged--1.0.sql

I start with:
cmake .. -DCMAKE_INSTALL_PREFIX="/usr/local/pg99"

I'm not building/installing as root, so cannot actually write to
/usr/local/pg99

I dunno what version we are building, and dont want to replace anything
currently installed, so I went for pg99.

andy(at)mapper:~/projects/postgres_cmake/build$ make installcheck
Scanning dependencies of target tablespace-setup
[ 0%] Built target tablespace-setup
[ 0%] Built target gen_errorcodes
[ 42%] Built target port
[ 85%] Built target pq
[100%] Built target pgcommon
[100%] Built target pg_regress
Scanning dependencies of target installcheck
============== creating temporary instance ==============
============== initializing database system ==============

pg_regress: initdb failed
Examine
/home/andy/projects/postgres_cmake/src/test/regress/log/initdb.log for
the reason.
Command was: "/usr/local/pg99/bin/initdb" -D
"/home/andy/projects/postgres_cmake/src/test/regress/tmp_check/data"
--noclean --nosync --no-locale >
"/home/andy/projects/postgres_cmake/src/test/regress/log/initdb.log" 2>&1
make[3]: *** [src/test/regress/CMakeFiles/installcheck] Error 2
make[2]: *** [src/test/regress/CMakeFiles/installcheck.dir/all] Error 2
make[1]: *** [src/test/regress/CMakeFiles/installcheck.dir/rule] Error 2
make: *** [installcheck] Error 2

andy(at)mapper:~/projects/postgres_cmake/build$ cat
/home/andy/projects/postgres_cmake/src/test/regress/log/initdb.log
sh: /usr/local/pg99/bin/initdb: No such file or directory

Yeah, that makes sense, its not actually there yet. Is the installcheck
important to you? I can do the install if you like.

-Andy

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Andy Colson 2016-02-11 17:21:15 Re: Test CMake build
Previous Message Nguyễn Trần Quốc Vinh 2016-02-11 16:56:15 Re: fast refresh materialized view