Bug 220182 - math/saga: Fails to package, libio_shapes_las.so: No such file or directory
Summary: math/saga: Fails to package, libio_shapes_las.so: No such file or directory
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords: needs-qa
Depends on:
Blocks:
 
Reported: 2017-06-21 11:59 UTC by jjachuf
Modified: 2018-02-03 20:42 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (rhurlin)
koobs: merge-quarterly?


Attachments
patch to change from gcc to clang (2.68 KB, patch)
2017-06-26 06:37 UTC, Rainer Hurling
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description jjachuf 2017-06-21 11:59:20 UTC
After compiling, to install (make install) gives this error:

Checking if saga already installed
===>   Registering installation for saga-4.1.0
pkg-static: Unable to access file /usr/ports/math/saga/work/stage/usr/local/lib/saga/libio_shapes_las.so:No such file or directory
*** Error code 74

It happened in version 3 and now in 4.1

Jose
Comment 1 Rainer Hurling freebsd_committer freebsd_triage 2017-06-23 11:15:07 UTC
Thanks for the report.

You didn't tell us, what OS version you are using? Also, are all ports options enabled (default) or is something disabled? 

One reason, why SAGA GIS does not build libio_shapes_las.so, could be a wrong LAS version. Could you please verify via 'pkg info | grep liblas', if liblas12-1.2.1 is installed?

Thanks in advance for any further information.
Comment 2 jjachuf 2017-06-23 11:51:48 UTC
Hello, thanks for the answer. I have another version installed

% pkg info | grep liblas
liblas-1.8.1_4                 Library For Reading And Writing LAS-Format Data

Jose
Comment 3 jjachuf 2017-06-23 11:52:23 UTC
% uname -a
FreeBSD cx 11.0-RELEASE-p9 FreeBSD 11.0-RELEASE-p9 #0: Tue Apr 11 08:48:40 UTC 2017     root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64
Comment 4 Rainer Hurling freebsd_committer freebsd_triage 2017-06-23 12:49:24 UTC
(In reply to jjachuf from comment #2)

Hmm, I am afraid, that is the reason for the described failure. SAGA GIS only and only works with liblas versions 1.2.x. That is the reason, why I maintain this old liblas version as a port.

There were several discussions on the SAGA GIS lists about it, but there is no developer atm, who is willing to adapt the SAGA code to a newer liblas version :(

Could you please invest, if the installed liblas version 1.8.1 is really needed. There is a chance, that other programs will also work with liblas 1.2.x. If so, you could change the version by, for example:

portmaster -o devel/liblas12 liblas-1.8.1_4
Comment 5 jjachuf 2017-06-23 23:58:26 UTC
Thanks Rainer
Done installed correctly, now I have problems with wx versions

% saga_gui
Fatal Error: Mismatch between the program and library build versions detected.
The library used 3.0 (wchar_t,compiler with C++ ABI 1002,wx containers,compatible with 2.6,compatible with 2.8),
and your program used 3.0 (wchar_t,compiler with C++ ABI 1009,wx containers,compatible with 2.6,compatible with 2.8).
Abort (core dumped)


pkg info | grep wx
py27-wxPython-common-3.0.2.0_2 GUI toolkit for the Python programming language
py27-wxPython30-3.0.2.0_2      GUI toolkit for the Python programming language
wx28-gtk2-2.8.12_6             The wxWidgets GUI toolkit with GTK+ bindings
wx28-gtk2-common-2.8.12_6      The wxWidgets GUI toolkit (common files)
wx28-gtk2-contrib-2.8.12_6     The wxWidgets GUI toolkit contributed libraries
wx28-gtk2-contrib-common-2.8.12_6 The wxWidgets GUI toolkit contributed libraries (common files)
wx30-gtk2-3.0.2_5              The wxWidgets GUI toolkit with GTK+ bindings

Any idea how to fix this?
Comment 6 Rainer Hurling freebsd_committer freebsd_triage 2017-06-26 06:37:53 UTC
Created attachment 183796 [details]
patch to change from gcc to clang

Hi Jose,

I am very sorry, that there are new problems with SAGA GIS now.

I tried to rebuild the port on a very recent HEAD amd64 and can confirm your report. The same breakage on my side now. Obviously, there are some changes with the new gcc5 port on its ABI side?

With newer clang versions it is possible to use OpenMP. So I tried to switch from gcc to clang, and it works, at least for amd64 :)

Unfortunately, I am not able to test for i386 platforms ATM, because some of the dependencies fails to build in Poudriere.

Could you please patch the attached file against the SAGA GIS port and report back, if it works for you.


The patch should 
- change the compiler from gcc to clang
- really use the external libsvm library
Comment 7 jjachuf 2017-06-26 15:59:11 UTC
Hi Rainer

# make MAKE_JOBS_UNSAFE=yes

After almost 1 hour of compiling this error occurs:
...
...

libtool: compile:  clang++40 -DHAVE_CONFIG_H -I. -I../../../.. -I/usr/local/include -isystem /usr/local/include -fPIC -I../../../../src/saga_core -D_SAGA_LINUX -D_TYPEDEF_BYTE -D_TYPEDEF_WORD -D_SAGA_UNICODE -fopenmp -lgomp -O2 -pipe -fstack-protector -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++11 -MT las_export.lo -MD -MP -MF .deps/las_export.Tpo -c las_export.cpp  -fPIC -DPIC -o .libs/las_export.o
clang-4.0: warning: -lgomp: 'linker' input unused [-Wunused-command-line-argument]
las_export.cpp:340:12: error: non-pointer operand type 'double' incompatible
      with nullptr
                x < xmin ? xmin = x : NULL;
                         ^ ~~~~~~~~
las_export.cpp:341:12: error: non-pointer operand type 'double' incompatible
      with nullptr
                x > xmax ? xmax = x : NULL;
                         ^ ~~~~~~~~
las_export.cpp:342:12: error: non-pointer operand type 'double' incompatible
      with nullptr
                y < ymin ? ymin = y : NULL;
                         ^ ~~~~~~~~
las_export.cpp:343:12: error: non-pointer operand type 'double' incompatible
      with nullptr
                y > ymax ? ymax = y : NULL;
                         ^ ~~~~~~~~
las_export.cpp:344:12: error: non-pointer operand type 'double' incompatible
      with nullptr
                z < zmin ? zmin = z : NULL;
                         ^ ~~~~~~~~
las_export.cpp:345:12: error: non-pointer operand type 'double' incompatible
      with nullptr
                z > zmax ? zmax = z : NULL;
                         ^ ~~~~~~~~
6 errors generated.
*** Error code 1

Stop.
make[7]: stopped in /usr/ports/math/saga/work/saga-4.1.0/src/tools/io/io_shapes_las
*** Error code 1

Stop.
make[6]: stopped in /usr/ports/math/saga/work/saga-4.1.0/src/tools/io
*** Error code 1

Stop.
make[5]: stopped in /usr/ports/math/saga/work/saga-4.1.0/src/tools
*** Error code 1

Stop.
make[4]: stopped in /usr/ports/math/saga/work/saga-4.1.0/src
*** Error code 1

Stop.
make[3]: stopped in /usr/ports/math/saga/work/saga-4.1.0
*** Error code 1

Stop.
make[2]: stopped in /usr/ports/math/saga/work/saga-4.1.0
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/math/saga
*** Error code 1

Stop.
make: stopped in /usr/ports/math/saga
Comment 8 Walter Schwarzenfeld freebsd_triage 2018-01-31 22:09:28 UTC
We have version 6.1.0. Is this still relevant?
Comment 9 Walter Schwarzenfeld freebsd_triage 2018-02-03 20:42:38 UTC
Tested on 10.4 and 11.1 builds, packages and installs without problems.
So I close here, overcome by events.