Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-DVAPI=ON fails with No rule to make target when using make %{?_smp_mflags} #40

Closed
Mailaender opened this issue May 6, 2016 · 6 comments

Comments

@Mailaender
Copy link

[   91s] Scanning dependencies of target vapi
[   91s] make[2]: Leaving directory '/home/abuild/rpmbuild/BUILD/AppStream-0.9.2/build'
[   91s] make -f contrib/vapi/CMakeFiles/vapi.dir/build.make contrib/vapi/CMakeFiles/vapi.dir/build
[   91s] make[2]: Entering directory '/home/abuild/rpmbuild/BUILD/AppStream-0.9.2/build'
[   91s] make[2]: *** No rule to make target 'src/AppStream-1.0.typelib', needed by 'contrib/vapi/appstream.vapi'.  Stop.
@ximion
Copy link
Owner

ximion commented May 6, 2016

That's a weird issue, especially since the CI builds with -DVAPI=ON...
Could you paste the full log somewhere and link it here, and could you maybe also try this with a more recent version of AppStream? (maybe even Git master)

@Mailaender
Copy link
Author

You can see the full build log when clicking on the red failed at https://build.opensuse.org/package/show/home:Mailaender:branches:X11:Pantheon/AppStream

@ximion
Copy link
Owner

ximion commented May 6, 2016

[   79s] CMake Error at CMakeLists.txt:3 (cmake_minimum_required):
[   79s]   CMake 3.1.0 or higher is required.  You are running version 2.8.11.2

=> You need a more recent cmake (on !Tumbleweed)...

Apart from that, could you build with a more recent version of AppStream (0.9.5 is current), and check if that issue is still present? The cause is the vapigen step being ordered before the GIR typelib is built, so building without parallel-make will also make this issue disappear (that's only a workaround, of course).

@Mailaender
Copy link
Author

If I build with only one parallel thread in make, it works.

@Mailaender Mailaender changed the title -DVAPI=ON fails with No rule to make target -DVAPI=ON fails with No rule to make target when using make %{?_smp_mflags} May 6, 2016
@ximion ximion closed this as completed in 66e3147 May 8, 2016
@ximion
Copy link
Owner

ximion commented May 8, 2016

Can you please check if that issue is really gone in Git master / with that patch?

ximion added a commit that referenced this issue May 8, 2016
@Mailaender
Copy link
Author

Fix confirmed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants