limba icon indicating copy to clipboard operation
limba copied to clipboard

Error while compiling on Fedora 24

Open omega13a opened this issue 8 years ago • 1 comments

I'm trying to make an rpm for limba but limba fails to compile. This is what happens:

Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.9OfkTd
+ umask 022
+ cd /home/omega13a/rpmbuild/BUILD
+ LANG=C
+ export LANG
+ unset DISPLAY
+ cd /home/omega13a/rpmbuild/BUILD
+ rm -rf Limba-0.5.6
+ /usr/bin/xz -dc /home/omega13a/rpmbuild/SOURCES/Limba-0.5.6.tar.xz
+ /usr/bin/tar -xof -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd Limba-0.5.6
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ echo 'Patch #1 (Limba-omega13a.patch):'
Patch #1 (Limba-omega13a.patch):
+ /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .omega13a --fuzz=0
patching file contrib/licompile/LiCompile/GCC.pm
patching file contrib/licompile/ligcc
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.t6yxck
+ umask 022
+ cd /home/omega13a/rpmbuild/BUILD
+ cd Limba-0.5.6
+ LANG=C
+ export LANG
+ unset DISPLAY
+ export CC=gcc
+ CC=gcc
+ export CXX=g++
+ CXX=g++
+ mkdir build
+ cd build
+ /usr/bin/cmake .. -DMAINTAINER=OFF -DLIBUILD=ON -DL10N=ON -DINSTALL_SUID=ON
-- The C compiler identification is GNU 6.3.1
-- The CXX compiler identification is GNU 6.3.1
-- Check for working C compiler: /usr/lib64/ccache/gcc
-- Check for working C compiler: /usr/lib64/ccache/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/lib64/ccache/g++
-- Check for working CXX compiler: /usr/lib64/ccache/g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Compiling Limba version 0.5.6
-- Found Gettext: /usr/bin/msgmerge (found version "0.19.8.1") 
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29") 
-- Found GLIB: /usr/include/glib-2.0;/usr/lib64/glib-2.0/include;/usr/include/gio-unix-2.0/;/usr/include/glib-2.0;/usr/lib64/glib-2.0/include (found suitable version "2.48.2", minimum required is "2.44") 
-- Checking for module 'appstream>=0.9.0'
--   Found appstream, version 0.10.5
-- Checking for module 'uuid>=2.0'
--   Found uuid, version 2.28.2
-- Checking for module 'polkit-gobject-1>=0.104'
--   Found polkit-gobject-1, version 0.113
-- Checking for module 'libcap>=2.24'
--   Found libcap, version 2.24
-- Checking for module 'gobject-introspection-1.0'
--   Found gobject-introspection-1.0, version 1.48.0
-- Found LibArchive: /usr/lib64/libarchive.so (found version "3.2.2") 
-- Found gpgme-config at /usr/bin/gpgme-config
-- Found gpgme v1.8.0, checking for flavours...
--  Found flavour 'vanilla', checking whether it's usable...yes
--  Found flavour 'pthread', checking whether it's usable...yes
-- Usable gpgme flavours found:  vanilla pthread
-- Found CURL: /usr/lib64/libcurl.so (found version "7.47.1") 
-- Checking for module 'systemd'
--   Found systemd, version 229
-- systemd services install dir: /usr/lib/systemd/system
-- Found GNU/Linux 4.10.9-100.fc24.x86_64
-- Checking for module 'yaml-0.1'
--   Found yaml-0.1, version 0.1.6
-- Configuring done
-- Generating done
CMake Warning:
  Manually-specified variables were not used by the project:

    LIBUILD


-- Build files have been written to: /home/omega13a/rpmbuild/BUILD/Limba-0.5.6/build
+ make
[  1%] Generating li-systemd-dbus.h, li-systemd-dbus.c
[  3%] Generating li-dbus-interface.h, li-dbus-interface.c
Scanning dependencies of target limba
[  5%] Building C object src/CMakeFiles/limba.dir/li-utils.c.o
[  6%] Building C object src/CMakeFiles/limba.dir/li-config-data.c.o
[  8%] Building C object src/CMakeFiles/limba.dir/li-pkg-info.c.o
[ 10%] Building C object src/CMakeFiles/limba.dir/li-pkg-index.c.o
[ 12%] Building C object src/CMakeFiles/limba.dir/li-package.c.o
/home/omega13a/rpmbuild/BUILD/Limba-0.5.6/src/li-package.c: In function 'li_package_read_component_data':
/home/omega13a/rpmbuild/BUILD/Limba-0.5.6/src/li-package.c:420:2: warning: implicit declaration of function 'as_metadata_parse_xml' [-Wimplicit-function-declaration]
  as_metadata_parse_xml (mdata, data, &tmp_error);
  ^~~~~~~~~~~~~~~~~~~~~
/home/omega13a/rpmbuild/BUILD/Limba-0.5.6/src/li-package.c: In function 'li_package_get_appstream_data':
/home/omega13a/rpmbuild/BUILD/Limba-0.5.6/src/li-package.c:1427:8: warning: implicit declaration of function 'as_metadata_component_to_upstream_xml' [-Wimplicit-function-declaration]
  xml = as_metadata_component_to_upstream_xml (metad);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/omega13a/rpmbuild/BUILD/Limba-0.5.6/src/li-package.c:1427:6: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
  xml = as_metadata_component_to_upstream_xml (metad);
      ^
[ 13%] Building C object src/CMakeFiles/limba.dir/li-runtime.c.o
[ 15%] Building C object src/CMakeFiles/limba.dir/li-exporter.c.o
[ 17%] Building C object src/CMakeFiles/limba.dir/li-package-graph.c.o
[ 18%] Building C object src/CMakeFiles/limba.dir/li-installer.c.o
[ 20%] Building C object src/CMakeFiles/limba.dir/li-manager.c.o
[ 22%] Building C object src/CMakeFiles/limba.dir/li-pkg-builder.c.o
/home/omega13a/rpmbuild/BUILD/Limba-0.5.6/src/li-pkg-builder.c: In function 'li_pkg_builder_build_package_with_details':
/home/omega13a/rpmbuild/BUILD/Limba-0.5.6/src/li-pkg-builder.c:790:2: warning: implicit declaration of function 'as_metadata_save_upstream_xml' [-Wimplicit-function-declaration]
  as_metadata_save_upstream_xml (metad, asdata_fname, &tmp_error);
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/omega13a/rpmbuild/BUILD/Limba-0.5.6/src/li-pkg-builder.c: In function 'li_pkg_builder_create_package_from_dir':
/home/omega13a/rpmbuild/BUILD/Limba-0.5.6/src/li-pkg-builder.c:939:41: error: incompatible type for argument 3 of 'as_metadata_parse_file'
  as_metadata_parse_file (mdata, asfile, &tmp_error);
                                         ^
In file included from /usr/include/AppStream/appstream.h:32:0,
                 from /home/omega13a/rpmbuild/BUILD/Limba-0.5.6/src/li-pkg-builder.c:36:
/usr/include/AppStream/as-metadata.h:138:8: note: expected 'AsFormatKind {aka enum <anonymous>}' but argument is of type 'GError ** {aka struct _GError **}'
 void   as_metadata_parse_file (AsMetadata *metad,
        ^~~~~~~~~~~~~~~~~~~~~~
/home/omega13a/rpmbuild/BUILD/Limba-0.5.6/src/li-pkg-builder.c:939:2: error: too few arguments to function 'as_metadata_parse_file'
  as_metadata_parse_file (mdata, asfile, &tmp_error);
  ^~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/AppStream/appstream.h:32:0,
                 from /home/omega13a/rpmbuild/BUILD/Limba-0.5.6/src/li-pkg-builder.c:36:
/usr/include/AppStream/as-metadata.h:138:8: note: declared here
 void   as_metadata_parse_file (AsMetadata *metad,
        ^~~~~~~~~~~~~~~~~~~~~~
src/CMakeFiles/limba.dir/build.make:316: recipe for target 'src/CMakeFiles/limba.dir/li-pkg-builder.c.o' failed
make[2]: *** [src/CMakeFiles/limba.dir/li-pkg-builder.c.o] Error 1
CMakeFiles/Makefile2:123: recipe for target 'src/CMakeFiles/limba.dir/all' failed
make[1]: *** [src/CMakeFiles/limba.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.t6yxck (%build)


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

If it helps. Attached is the spec file and a patch I made to fix some issues with licompile. limba.txt Limba-omega13a.patch.txt

omega13a avatar Apr 19 '17 20:04 omega13a

Are you using the released version or a Git snapshot? In the former case, you will want this patch: https://github.com/ximion/limba/commit/55c1cdda6766a01d6004aa16955ddf59f9f0c6c9

Please keep in mind that the Limba development isn't very active at time due to time constraints on my side. If I ever find I will need to revisit the project and likely make it work on top of another solution (e.g. Flatpak) to provide a modular bundling system.

ximion avatar Apr 19 '17 23:04 ximion