dimitri / pgloader

Migrate to PostgreSQL in a single command!
http://pgloader.io
Other
5.47k stars 550 forks source link

pgloader does not build on RHEL/Fedora #1444

Closed devrimgunduz closed 2 years ago

devrimgunduz commented 2 years ago

Hi,

I know that I should have reported this long time ago, but better late than nothing: pgloader does not compile on Fedora / RHEL.

On Fedora 36 (sbcl 2.0.1):

+ cd pgloader-3.6.9
+ export 'CCFLAGS=%{_optflags}'
+ CCFLAGS='%{_optflags}'
+ export 'CCXFLAGS=%{_optflags}'
+ CCXFLAGS='%{_optflags}'
+ export DYNSIZE=
+ DYNSIZE=
+ echo 'Arch is : x86_64'
Arch is : x86_64
+ /usr/bin/make -j8
make[1]: Entering directory '/home/devrim/Documents/Devrim/Projects/repo/pgrpms/rpm/redhat/main/common/pgloader/main/pgloader-3.6.9'
mkdir -p build
curl -o build/quicklisp.lisp http://beta.quicklisp.org/quicklisp.lisp
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 57144  100 57144    0     0  41345      0  0:00:01  0:00:01 --:--:-- 41348
sbcl --noinform --no-sysinit --no-userinit --load build/quicklisp.lisp                        \
             --load src/getenv.lisp                                               \
             --eval '(quicklisp-quickstart:install :path "build/quicklisp" :proxy (getenv "http_proxy"))' \
             --eval '(quit)'
make[1]: *** [Makefile:92: build/quicklisp/setup.lisp] Segmentation fault (core dumped)
make[1]: Leaving directory '/home/devrim/Documents/Devrim/Projects/repo/pgrpms/rpm/redhat/main/common/pgloader/main/pgloader-3.6.9'
error: Bad exit status from /var/tmp/rpm-tmp.Akw1RB (%build)

RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.Akw1RB (%build)

on RHEL, it gets stuck in here (like, hours...)

RHEL 9: sbcl 2.2.9 RHEL 8: sbcl 2.2.9

(FWIW, since sbcl does not exist on these platforms, I build sbcl RPM by using Fedora rawhide SRPM):

+ cd pgloader-3.6.9
+ export 'CCFLAGS=%{_optflags}'
+ CCFLAGS='%{_optflags}'
+ export 'CCXFLAGS=%{_optflags}'
+ CCXFLAGS='%{_optflags}'
+ export DYNSIZE=
+ DYNSIZE=
+ echo 'Arch is : x86_64'
Arch is : x86_64
+ /usr/bin/make -j8
make[1]: Entering directory '/home/devrim/Documents/Devrim/Projects/repo/pgrpms/rpm/redhat/main/common/pgloader/main/pgloader-3.6.9'
mkdir -p build
curl -o build/quicklisp.lisp http://beta.quicklisp.org/quicklisp.lisp
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 57144  100 57144    0     0  41345      0  0:00:01  0:00:01 --:--:-- 41348
sbcl --noinform --no-sysinit --no-userinit --load build/quicklisp.lisp                        \
             --load src/getenv.lisp                                               \
             --eval '(quicklisp-quickstart:install :path "build/quicklisp" :proxy (getenv "http_proxy"))' \
             --eval '(quit)'
make[1]: *** [Makefile:92: build/quicklisp/setup.lisp] Segmentation fault (core dumped)
make[1]: Leaving directory '/home/devrim/Documents/Devrim/Projects/repo/pgrpms/rpm/redhat/main/common/pgloader/main/pgloader-3.6.9'
error: Bad exit status from /var/tmp/rpm-tmp.Akw1RB (%build)

RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.Akw1RB (%build)

Any ideas?

Thanks! Devrim

dimitri commented 2 years ago

Hi @devrimgunduz ; thanks again for your work maintaining our package for pgloader. Can you please try make save to produce the binary? That removes the dependency with buildapp and should just work, I believe.

Also: The most recent version of SBCL is 2.2.10, released October 30, 2022 (http://sbcl.org/platform-table.html) ; so while 2.2.9 is fair game I don't believe 2.0.1 is anymore.

devrimgunduz commented 2 years ago

Hi @dimitri , thanks a lot dude! It worked.

Re: SBCL: I'll complain Fedora people about that. Thanks!