FedoraSwift / fedora-swift

Scripts to build Swift language on Fedora and CentOS x64 linux distributions
BSD 2-Clause "Simplified" License
70 stars 10 forks source link

Centos 7 script doesn't check/install autoreconf dependancy #15

Open drakino opened 7 years ago

drakino commented 7 years ago

The swiftbuild-centos7.sh script fails on a minimal install of CentOS 7 due to missing autoreconf. Adding a yum install autoconf should take care of it, sourcing the package from the base CentOS 7 repo.

Mostly filing this as I'm not currently able to fork and make the change myself.

rbukovansky commented 7 years ago

That's probably for the reason I have CentOS7 installed in VirtualBox VM and had installed all tools needed to build VB Guest additions.

I will make PR for it. Thanks for catching it.

rbukovansky commented 7 years ago

@drakino Could you please retest? Thanks.

drakino commented 7 years ago

Confirmed autoreconf is on the system after the setup step. Build step is running and I'll be able to check back on it later to see if it progresses past where it stopped yesterday.

Have a VM also set up to help with this now, and a snapshot before running the scripts after a fresh minimal install.

drakino commented 7 years ago

Build step failed, this time looking for aclocal and not finding it.

Resetting the VM back to the snapshot, and I'm going to have the script also yum install automake to make sure aclocal is on the system. Will report back with how it goes.

rbukovansky commented 7 years ago

18 - done

rbukovansky commented 7 years ago

Additional packages were added. Please retest again if you have already done so. Thanks.

rbukovansky commented 7 years ago

Well, I have tried to move on with this further, but I got to place where I need to replace libstdc++, which is no go... :-1:

But let me try something first...

drakino commented 7 years ago

My test with installing automake to get aclocal managed to progress further. I got a new error unrelated to a missing package.

Were you headed down the libstdc++ replacement route due to initially seeing errors about Libtool library used but 'LIBTOOL' is undefined?

That's the initial error I get once autoreconf and aclocal dependancies were taken care of, haven't dug deeper yet.

rbukovansky commented 7 years ago

Well, it was few steps further. You will need to install these:

Solves LIBTOOL:

https://dl.fedoraproject.org/pub/fedora/linux/releases/24/Everything/x86_64/os/Packages/l/libtool-2.4.6-11.fc24.x86_64.rpm

Solves kqueue missing:

https://copr-be.cloud.fedoraproject.org/results/lebauce/Darling/fedora-22-x86_64/libkqueue-2.0.1-1/libkqueue-2.0.1-1.x86_64.rpm
https://copr-be.cloud.fedoraproject.org/results/lebauce/Darling/fedora-22-x86_64/libkqueue-2.0.1-1/libkqueue-devel-2.0.1-1.x86_64.rpm

This should resolve issue with curl/curl.h file:

https://dl.fedoraproject.org/pub/fedora/linux/releases/24/Everything/x86_64/os/Packages/l/libcurl-7.47.1-4.fc24.x86_64.rpm
https://dl.fedoraproject.org/pub/fedora/linux/releases/24/Everything/x86_64/os/Packages/l/libcurl-devel-7.47.1-4.fc24.x86_64.rpm

but you will get some strange errors about symbols in CURL, when you try to build Swift. That should be solved by these:

https://dl.fedoraproject.org/pub/fedora/linux/releases/24/Everything/x86_64/os/Packages/l/libpsl-0.13.0-1.fc24.x86_64.rpm
https://dl.fedoraproject.org/pub/fedora/linux/releases/24/Everything/x86_64/os/Packages/l/libssh2-1.7.0-5.fc24.x86_64.rpm
https://dl.fedoraproject.org/pub/fedora/linux/releases/24/Everything/x86_64/os/Packages/l/libunistring-0.9.4-3.fc24.x86_64.rpm

but they lead to libstdc++ replacement. But I want to "reexplore" more about those strange symbol errors in curl to see if they could be resolved without the last three packages...

BTW I'm starting to be little bit afraid that RH/CentOS is little bit old for demands of Swift... :-1: