Home » Developing U++ » U++ Developers corner » Compile error on Fedora 25 x86_64 (abs redefinition and include that goes wrong?)
Re: Compile error on Fedora 25 x86_64 [message #47179 is a reply to message #47163] |
Sun, 25 December 2016 15:19 |
|
amrein
Messages: 278 Registered: August 2008 Location: France
|
Experienced Member |
|
|
Hi Mirek
What is different:
- When you run "make" or "make -j8", it won't use thread to compile because it calls domake.sh and domake.sh doesn't call "make" with the "-jn" switch.
- If you only use one processor in the VM, it will use the "-j1" switch and won't use several threads to compile.
- upp-x11-src-10577M.tar.gz does not need source code fix. It will compile out of the box with the new spec file provided (file attached). This is not the case of the old stable 9251 source tarball and older tarballs.
So the only thing to do is to patch the spec file.
If you want to test rpmbuild to see how it crashes with the old spec file:
sudo dnf install rpm-build
rpmbuild -tb --define 'version 10577M' --define "date $(LC_TIME=En date '+%a %b %d %Y')" upp-x11-src-10577M.tar.gz
If you want to test the new spec file and confirm that it works:
mkdir ~/rpmbuild/{BUILD,BUILDROOT,RPMS,SOURCES,SPECS,SRPMS}
cp upp-x11-src-10577M.tar.gz ~/rpmbuild/SOURCES/
cp upp.spec ~/rpmbuild/SPECS/
rpmbuild -bb --define 'version 10577M' --define "date $(LC_TIME=En date '+%a %b %d %Y')" ~/rpmbuild/SPECS/upp.spec
"-tb" means build the tarball and get the spec file from inside the tarball.
"-bb" means build the spec file and use the default directory structure to find the tarball.
If you want to find why make crashes with -jn switch:
tar xzvf upp-x11-src-10577M.tar.gz
cd upp-x11-src-10577M
sed -i -e 's|make -C uppsrc|make -j8 -C uppsrc|g' domake
make
make crashes because "make prepare" is not completed before "make $(OutFile)" when using threads (-jn).
I used this to change the spec file and get rpmbuild to compile upp 4x faster.
-
Attachment: upp.spec
(Size: 5.62KB, Downloaded 263 times)
[Updated on: Sun, 25 December 2016 16:23] Report message to a moderator
|
|
|
|
|
Compile error on Fedora 25 x86_64
By: amrein on Thu, 22 December 2016 18:47
|
|
|
Re: Compile error on Fedora 25 x86_64
By: mirek on Sat, 24 December 2016 08:53
|
|
|
Re: Compile error on Fedora 25 x86_64
By: mirek on Sat, 24 December 2016 16:41
|
|
|
Re: Compile error on Fedora 25 x86_64
By: mirek on Sun, 25 December 2016 09:45
|
|
|
Re: Compile error on Fedora 25 x86_64
By: MrSarup on Sun, 25 December 2016 10:14
|
|
|
Re: Compile error on Fedora 25 x86_64
By: amrein on Sun, 25 December 2016 15:19
|
|
|
Re: Compile error on Fedora 25 x86_64
By: MrSarup on Sun, 25 December 2016 16:54
|
|
|
Re: Compile error on Fedora 25 x86_64
By: amrein on Sun, 25 December 2016 18:49
|
|
|
Re: Compile error on Fedora 25 x86_64
By: MrSarup on Sun, 25 December 2016 21:31
|
|
|
Re: Compile error on Fedora 25 x86_64
By: amrein on Tue, 27 December 2016 10:34
|
|
|
Re: Compile error on Fedora 25 x86_64
By: MrSarup on Tue, 27 December 2016 10:59
|
|
|
Re: Compile error on Fedora 25 x86_64
By: amrein on Tue, 27 December 2016 12:30
|
Goto Forum:
Current Time: Fri May 10 19:41:43 CEST 2024
Total time taken to generate the page: 0.02959 seconds
|