spec file URL of libunicode: 
https://gist.githubusercontent.com/topazus/e30b83d669600756894a77b5258c9405/raw/5f402302ae0527732ad112059906c2a239239c34/libunicode.spec
spec file URL of contour: 
https://gist.githubusercontent.com/topazus/f81005cb85762ce2cf6e138f0b1cede1/raw/c29f456daa0a440529a4ffe20fdcaf683574053f/contour.spec

Descriptions about problems:
I first build libunicode dependency using my spec file and install it on my 
machine.
Then I try build contour terminal. It failed with the following errors:
```
[ 10%] Linking CXX static library libtext_shaper.a
cd 
/home/ruby/rpmbuild/BUILD/contour-98c8c0d0e96dc7c56ee06b4e8bfd71a23ae4f4d6/redhat-linux-build/src/text_shaper
 && /usr/bin/cmake -P CMakeFiles/text_shaper.dir/cmake_clean_target.cmake
cd 
/home/ruby/rpmbuild/BUILD/contour-98c8c0d0e96dc7c56ee06b4e8bfd71a23ae4f4d6/redhat-linux-build/src/text_shaper
 && /usr/bin/cmake -E cmake_link_script CMakeFiles/text_shaper.dir/link.txt 
--verbose=1
/usr/bin/ar qc libtext_shaper.a CMakeFiles/text_shaper.dir/font.cpp.o 
CMakeFiles/text_shaper.dir/font_locator_provider.cpp.o 
CMakeFiles/text_shaper.dir/fontconfig_locator.cpp.o 
CMakeFiles/text_shaper.dir/mock_font_locator.cpp.o 
CMakeFiles/text_shaper.dir/open_shaper.cpp.o 
CMakeFiles/text_shaper.dir/shaper.cpp.o
/usr/bin/ranlib libtext_shaper.a
gmake[2]: Leaving directory 
'/home/ruby/rpmbuild/BUILD/contour-98c8c0d0e96dc7c56ee06b4e8bfd71a23ae4f4d6/redhat-linux-build'
[ 10%] Built target text_shaper
/usr/bin/ld: /tmp/ccW09Umc.ltrans0.ltrans.o: warning: relocation against 
`_ZGVZN8logstore4Sink7consoleEvE8instance' in read-only section `.text.startup'
/usr/bin/ld: /tmp/ccW09Umc.ltrans0.ltrans.o: relocation R_X86_64_PC32 against 
symbol 
`_ZTIZN8logstore4SinkC4EbRSoEUlSt17basic_string_viewIcSt11char_traitsIcEEE_' 
can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status
gmake[2]: *** [src/crispy/CMakeFiles/crispy-core.dir/build.make:148: 
src/crispy/libcrispy-core.so] Error 1
gmake[2]: Leaving directory 
'/home/ruby/rpmbuild/BUILD/contour-98c8c0d0e96dc7c56ee06b4e8bfd71a23ae4f4d6/redhat-linux-build'
gmake[1]: *** [CMakeFiles/Makefile2:267: 
src/crispy/CMakeFiles/crispy-core.dir/all] Error 2
gmake[1]: Leaving directory 
'/home/ruby/rpmbuild/BUILD/contour-98c8c0d0e96dc7c56ee06b4e8bfd71a23ae4f4d6/redhat-linux-build'
gmake: *** [Makefile:159: all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.Eo3xWu (%build)

RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.Eo3xWu (%build)
```
I also try to build contour from the SOURCE file of contour .spec file, which is
cmake  . -DCONTOUR_BUILD_WITH_QT6=ON && make -j6, the above build cmd worked 
fine. So I doubt the error that appeared in the build process with .spec file 
is related with the setting build flags with %cmake macros, but I do not know 
how to modify it? Or the error is relevant with build options in CMakeLists.txt 
from the upstream repo code?
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to