Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous messageGo to previous message
amrein is currently offline  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

 
Read Message icon4.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Are there any plans to convert U++ comments to format as DOXYGEN / JAVADOC?
Next Topic: Requirement Spellvariant -> new Feature for spelling
Goto Forum:
  


Current Time: Fri May 10 19:41:43 CEST 2024

Total time taken to generate the page: 0.02959 seconds