You are not logged in.

#1 2015-06-07 22:22:30

Sailol
Member
Registered: 2015-05-14
Posts: 7

[SOLVED] Recipe for target 'src/Interface/openxcom-ComboBox.o' failed

I've been having some problems with installing openxcom, most of which appear to come from a problem with yaml-cpp 0.5.2-2, and thus, the git file in the AUR (https://aur.archlinux.org/packages/openxcom-git/) was updated with a rollback yaml-cpp.
When I tried to build this package, there was an error involving some recipe.

  CXX      src/Interface/openxcom-ComboBox.o
src/Interface/ComboBox.cpp: In member function ‘size_t OpenXcom::ComboBox::getHoveredListIdx() const’:
src/Interface/ComboBox.cpp:245:9: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
  if (-1 == ret)
         ^
cc1plus: all warnings being treated as errors
Makefile:5043: recipe for target 'src/Interface/openxcom-ComboBox.o' failed
make[1]: *** [src/Interface/openxcom-ComboBox.o] Error 1
make[1]: Leaving directory '/home/sailol/Downloads/AUR/openxcom-git/src/OpenXcom'
Makefile:7157: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1
[1m[31m==> ERROR:[m[1m A failure occurred in build().[m
[1m    Aborting...[m

After finding this post, I think it may have something to do with a header file that is missing, but I'm not sure.
Thank you for your time.

Last edited by Sailol (2015-06-08 01:00:46)

Offline

#2 2015-06-07 22:56:04

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,787
Website

Re: [SOLVED] Recipe for target 'src/Interface/openxcom-ComboBox.o' failed

Mmm, the git package (maintained by me) frequently fails due to warnings since it's a developmental package. You can override the warnings by changing enable_werror to no in configure.ac (before you run autogen.sh in the prepare function).

sed -i 's:werror=yes:werror=no:' configure.ac

Should do it.

EDIT: I'd avoid the -git package for the time being, seems like a lot of stuff isn't getting installed correctly at the moment. I'll try to fix it up and upload a new PKGBUILD tomorrow.

Last edited by WorMzy (2015-06-07 23:08:29)


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2015-06-07 23:09:14

Sailol
Member
Registered: 2015-05-14
Posts: 7

Re: [SOLVED] Recipe for target 'src/Interface/openxcom-ComboBox.o' failed

hmm, when I added the sed lines in the prepare function, building the package gave me this:

==> Starting prepare()
sed: can't read configure.ac: No such file or directory

I think I did something wrong, didn't I?

Offline

#4 2015-06-07 23:17:53

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,787
Website

Re: [SOLVED] Recipe for target 'src/Interface/openxcom-ComboBox.o' failed

Depends where you added it. It needs to be after 'cd $_gitname'. If you still have problems, try building with a clean srcdir (makepkg --cleanbuild)

Please see my above edit though -- the openxcom-git package needs updating to take into account recent commits.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#5 2015-06-08 00:15:42

Sailol
Member
Registered: 2015-05-14
Posts: 7

Re: [SOLVED] Recipe for target 'src/Interface/openxcom-ComboBox.o' failed

It worked, but yeah, I shouldn't start any games, considering you're going to rebuild the package tomorrow.
Thanks a lot anyway!

Offline

#6 2015-06-08 20:13:08

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,787
Website

Re: [SOLVED] Recipe for target 'src/Interface/openxcom-ComboBox.o' failed


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

Board footer

Powered by FluxBB