Quantcast
Channel: openSUSE Forums
Viewing all articles
Browse latest Browse all 40713

Can build package with native cmake but failed when using OBS.

$
0
0
Hello,

I have been trying to build tinyspline.
https://github.com/msteinbeck/tinyspline

I could not build tinyspline with OBS.
The fatal error is

Code:

[  55s] /home/abuild/rpmbuild/BUILD/tinyspline-0.2.0+git.1584996308.33462b8/src/tinyspline.c:2069: undefined reference to `sqrt'
[  55s] /usr/lib64/gcc/x86_64-suse-linux/9/../../../../x86_64-suse-linux/bin/ld: /tmp/libtinyspline.so.zq5CGP.ltrans0.ltrans.o: in function `ts_bspline_interpolate_catmull_rom':
[  55s] /home/abuild/rpmbuild/BUILD/tinyspline-0.2.0+git.1584996308.33462b8/src/tinyspline.c:987: undefined reference to `pow'
[  55s] /usr/lib64/gcc/x86_64-suse-linux/9/../../../../x86_64-suse-linux/bin/ld: /home/abuild/rpmbuild/BUILD/tinyspline-0.2.0+git.1584996308.33462b8/src/tinyspline.c:988: undefined reference to `pow'
[  55s] /usr/lib64/gcc/x86_64-suse-linux/9/../../../../x86_64-suse-linux/bin/ld: /home/abuild/rpmbuild/BUILD/tinyspline-0.2.0+git.1584996308.33462b8/src/tinyspline.c:989: undefined reference to `pow'

I ask about this error to the author of tinyspline which the author fix it but would not work with OBS.
https://github.com/msteinbeck/tinyspline/issues/152

I tried building with normal cmake like wise and it pass.
Code:

wget https://github.com/msteinbeck/tinyspline/archive/snapshot.tar.gz
tar xf snapshot.tar.gz
cd tinyspline-snapshot
mkdir build
cd build
cmake ..
cmake --build .

I don't understand why building with OBS did not work but building with normal cmake work.

Here is my spec file: https://build.opensuse.org/package/v....spec?expand=1
Here is the error log: https://build.opensuse.org/package/l...bleweed/x86_64

Thanks.

Viewing all articles
Browse latest Browse all 40713

Trending Articles