Bug 225628 - math/scilab only builds with GUI=off and OCAML=off, segfaults with one of them on (on 10.4-RELEASE)
Summary: math/scilab only builds with GUI=off and OCAML=off, segfaults with one of the...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Max Brazhnikov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-02-02 14:51 UTC by Walter Schwarzenfeld
Modified: 2024-09-24 10:51 UTC (History)
3 users (show)

See Also:
bugzilla: maintainer-feedback? (makc)


Attachments
Poudriere log for building on 13.2 (851.42 KB, text/plain)
2023-08-14 18:05 UTC, David Gilbert
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Walter Schwarzenfeld 2018-02-02 14:51:19 UTC
Scilab segfaults with GUI=ON or OCAML=on
LANG=C LC_ALL=en_US.UTF-8 SCI_DISABLE_TK=1 SCI_JAVA_ENABLE_HEADLESS=1 ./bin/scilab-adv-cli -noatomsautoload -nb -l en_US -nouserstartup -e "try xmltojar([],[],'en_US');catch disp(lasterror()); exit(-1);end;exit(0);"
A fatal error has been detected by Scilab.
Your instance will probably quit unexpectedly soon.
If a graphic feature has been used, this might be caused by the system graphic drivers.
Please try to update them and run this feature again.
You can report a bug on http://bugzilla.scilab.org/ with:
* a sample code which reproduces the issue
* the result of [a, b] = getdebuginfo()
* the following information:
[user:29426] Signal: Segmentation fault (11)
[user:29426] Signal code: Invalid permissions (2)
[user:29426] Failing at address: 0x400644
 
 
Illegal instruction (core dumped)
gmake[2]: *** [Makefile:2153: doc] Error 1
gmake[2]: Leaving directory '/ram/usr/ports/math/scilab/work/scilab-5.5.2'
*** Error code 1

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

Stop.

GUI and OCAML per default set to on.

on 10.4 amd64.
Comment 1 Walter Schwarzenfeld 2018-02-02 15:03:45 UTC
see also Bug #221601.
Comment 2 Walter Schwarzenfeld 2018-02-02 16:28:36 UTC
But compiles fine on 11.1-RELEASE (amd64).
Maybe, it should marked broken on 10.4 (?).
Comment 3 Max Brazhnikov freebsd_committer freebsd_triage 2018-03-22 10:55:12 UTC
I can't reproduce it on recent 10.4-stable amd64, scilab port was built with both GUI=on and OCAML=on.
Comment 4 Piotr Kubaj freebsd_committer freebsd_triage 2021-04-08 21:08:43 UTC
I'm having the same issue on 13.0-RC5 on powerpc64 and powerpc64le.
Comment 5 commit-hook freebsd_committer freebsd_triage 2021-04-09 00:34:17 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=1567207686ac3e0add130a47948039ad4c1c0ec6

commit 1567207686ac3e0add130a47948039ad4c1c0ec6
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2021-04-09 00:33:28 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2021-04-09 00:33:28 +0000

    math/scilab: fix build on powerpc64*

    Please check your user-defined functions (or external module ones) should they appear in the stack trace.
    Otherwise you can report a bug on http://bugzilla.scilab.org/ with:
     * a sample code which reproduces the issue
     * the result of [a, b] = getdebuginfo()
     * the following information:
    [powerpc64le-default-job-11:33162] Signal: Abort trap (6)
    [powerpc64le-default-job-11:33162] Signal code:  (65543)

    PR:     225628

 math/scilab/Makefile | 2 ++
 1 file changed, 2 insertions(+)
Comment 6 Piotr Kubaj freebsd_committer freebsd_triage 2021-04-09 00:34:33 UTC
It actually builds with GUI, but fails with OCAML.
Comment 7 David Gilbert 2023-08-14 18:04:43 UTC
I have turned off all three GUI bits in the first section of options.  I still get a fail on 13.2 building.  It starts with

src/cpp/fullpath.cpp:47:5: error: no member named 'filesystem' in namespace 'std'; did you mean 'std::__fs::filesystem'?
    std::filesystem::path p = std::filesystem::path(expanded);
    ^~~~~~~~~~~~~~~
    std::__fs::filesystem

... but I will upload the poudriere log in a second...
Comment 8 David Gilbert 2023-08-14 18:05:52 UTC
Created attachment 244101 [details]
Poudriere log for building on 13.2
Comment 9 Max Brazhnikov freebsd_committer freebsd_triage 2023-08-15 08:38:19 UTC
(In reply to dgilbert from comment #7)
Please, update your portstree, it's been fixed already:

https://cgit.freebsd.org/ports/commit/?id=79be3a828152cd1be5f6ddacbaf17eff38bb79b5
Comment 10 David Gilbert 2023-08-15 20:56:15 UTC
(In reply to Max Brazhnikov from comment #9)

This fixes my build with all the GUI bits set on.