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

"duplicate -bundle_loader option" when doing pkg install statistics #249

Open
apjanke opened this issue Jan 24, 2024 · 3 comments
Open

"duplicate -bundle_loader option" when doing pkg install statistics #249

apjanke opened this issue Jan 24, 2024 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@apjanke
Copy link
Contributor

apjanke commented Jan 24, 2024

In Octave.app 8.4.0 alpha3 on macOS 14.3 on angharad:

image

(Screencap because I can't get text copy/paste from the Command Window to work here.)

@apjanke apjanke added the bug Something isn't working label Jan 24, 2024
@apjanke apjanke self-assigned this Jan 24, 2024
@apjanke
Copy link
Contributor Author

apjanke commented Jan 24, 2024

Same-looking behavior in octave --gui 8.4.0 installed via Homebrew on the same machine, angharad.

image

I was able to copy-paste the text from the Command Window by right-clicking the selected text and choosing "Copy" from the context menu instead of doing Cmd-C or doing Edit > Copy from the main menu bar. (Well, once. This is from a previous slightly different attempt using -forge instead of the URL. In my next attempt with the URL, I couldn't make text selection happen Oh well.)

>> pkg install -forge statistics
ld: warning: duplicate -bundle_loader option, '/usr/local/Cellar/octave/8.4.0_3/bin/octave-8.4.0' ignored
ld: warning: duplicate -bundle_loader option, '/usr/local/Cellar/octave/8.4.0_3/bin/octave-8.4.0' ignored
ld: warning: duplicate -bundle_loader option, '/usr/local/Cellar/octave/8.4.0_3/bin/octave-8.4.0' ignored
ld: warning: duplicate -bundle_loader option, '/usr/local/Cellar/octave/8.4.0_3/bin/octave-8.4.0' ignored
ld: warning: duplicate -bundle_loader option, '/usr/local/Cellar/octave/8.4.0_3/bin/octave-8.4.0' ignored
ld: warning: duplicate -bundle_loader option, '/usr/local/Cellar/octave/8.4.0_3/bin/octave-8.4.0' ignored
ld: warning: duplicate -bundle_loader option, '/usr/local/Cellar/octave/8.4.0_3/bin/octave-8.4.0' ignored
ld: warning: duplicate -bundle_loader option, '/usr/local/Cellar/octave/8.4.0_3/bin/octave-8.4.0' ignored
warning: function /Users/janke/.local/share/octave/api-v58/packages/statistics-1.6.1/shadow9/mad.m shadows a core library function
warning: called from
    /Users/janke/.local/share/octave/api-v58/packages/statistics-1.6.1/PKG_ADD at line 13 column 3
    doc_cache_create>gen_doc_cache_in_dir at line 146 column 5
    doc_cache_create at line 62 column 12
    install>generate_lookfor_cache at line 840 column 5
    install at line 241 column 7
    pkg at line 619 column 9

warning: function /Users/janke/.local/share/octave/api-v58/packages/statistics-1.6.1/shadow9/mean.m shadows a core library function
warning: called from
    /Users/janke/.local/share/octave/api-v58/packages/statistics-1.6.1/PKG_ADD at line 13 column 3
    doc_cache_create>gen_doc_cache_in_dir at line 146 column 5
    doc_cache_create at line 62 column 12
    install>generate_lookfor_cache at line 840 column 5
    install at line 241 column 7
    pkg at line 619 column 9

warning: function /Users/janke/.local/share/octave/api-v58/packages/statistics-1.6.1/shadow9/median.m shadows a core library function
warning: called from
    /Users/janke/.local/share/octave/api-v58/packages/statistics-1.6.1/PKG_ADD at line 13 column 3
    doc_cache_create>gen_doc_cache_in_dir at line 146 column 5
    doc_cache_create at line 62 column 12
    install>generate_lookfor_cache at line 840 column 5
    install at line 241 column 7
    pkg at line 619 column 9

warning: function /Users/janke/.local/share/octave/api-v58/packages/statistics-1.6.1/shadow9/std.m shadows a core library function
warning: called from
    /Users/janke/.local/share/octave/api-v58/packages/statistics-1.6.1/PKG_ADD at line 13 column 3
    doc_cache_create>gen_doc_cache_in_dir at line 146 column 5
    doc_cache_create at line 62 column 12
    install>generate_lookfor_cache at line 840 column 5
    install at line 241 column 7
    pkg at line 619 column 9

warning: function /Users/janke/.local/share/octave/api-v58/packages/statistics-1.6.1/shadow9/var.m shadows a core library function
warning: called from
    /Users/janke/.local/share/octave/api-v58/packages/statistics-1.6.1/PKG_ADD at line 13 column 3
    doc_cache_create>gen_doc_cache_in_dir at line 146 column 5
    doc_cache_create at line 62 column 12
    install>generate_lookfor_cache at line 840 column 5
    install at line 241 column 7
    pkg at line 619 column 9

octave-help-ZkSCOJ:141: misplaced {
octave-help-ZkSCOJ:141: misplaced }
octave-help-ZkSCOJ:141: misplaced {
octave-help-ZkSCOJ:141: misplaced }
warning: doc_cache_create: unusable help text found in file 'chi2gof'
warning: called from
    doc_cache_create>handle_function at line 98 column 5
    doc_cache_create>create_cache at line 118 column 36
    gen_doc_cache_in_dir>@<anonymous> at line 150 column 20
    doc_cache_create>gen_doc_cache_in_dir at line 151 column 9
    doc_cache_create at line 62 column 12
    install>generate_lookfor_cache at line 840 column 5
    install at line 241 column 7
    pkg at line 619 column 9

warning: function /Users/janke/.local/share/octave/api-v58/packages/statistics-1.6.1/shadow9/mad.m shadows a core library function
warning: called from
    doc_cache_create>gen_doc_cache_in_dir at line 146 column 5
    doc_cache_create at line 62 column 12
    install>generate_lookfor_cache at line 840 column 5
    install at line 241 column 7
    pkg at line 619 column 9

warning: function /Users/janke/.local/share/octave/api-v58/packages/statistics-1.6.1/shadow9/mean.m shadows a core library function
warning: called from
    doc_cache_create>gen_doc_cache_in_dir at line 146 column 5
    doc_cache_create at line 62 column 12
    install>generate_lookfor_cache at line 840 column 5
    install at line 241 column 7
    pkg at line 619 column 9

warning: function /Users/janke/.local/share/octave/api-v58/packages/statistics-1.6.1/shadow9/median.m shadows a core library function
warning: called from
    doc_cache_create>gen_doc_cache_in_dir at line 146 column 5
    doc_cache_create at line 62 column 12
    install>generate_lookfor_cache at line 840 column 5
    install at line 241 column 7
    pkg at line 619 column 9

warning: function /Users/janke/.local/share/octave/api-v58/packages/statistics-1.6.1/shadow9/std.m shadows a core library function
warning: called from
    doc_cache_create>gen_doc_cache_in_dir at line 146 column 5
    doc_cache_create at line 62 column 12
    install>generate_lookfor_cache at line 840 column 5
    install at line 241 column 7
    pkg at line 619 column 9

warning: function /Users/janke/.local/share/octave/api-v58/packages/statistics-1.6.1/shadow9/var.m shadows a core library function
warning: called from
    doc_cache_create>gen_doc_cache_in_dir at line 146 column 5
    doc_cache_create at line 62 column 12
    install>generate_lookfor_cache at line 840 column 5
    install at line 241 column 7
    pkg at line 619 column 9

For information about changes from previous versions of the statistics package, run 'news statistics'.
>>

@mmuetzel
Copy link

mmuetzel commented Jan 26, 2024

Could you please run diary ("octave_config_info.log"); __octave_config_info__, diary ("off"); and upload the created file here?
It would be interesting to see which flags are adding that duplicate option.

Additionally, if you have access to the build system, could you please upload the file src/mkoctfile.cc that is generated in the build tree?

@apjanke
Copy link
Contributor Author

apjanke commented Feb 9, 2024

Sorry for the delay; GitHub notification email got swamped in my inbox...

Here's the output from that same computer, angharad, on a brewed Octave 8.4.0.

octave_config_info-angharad-8.4.0-brewed.log

I see this:

[~] $ grep -- -bundle_loader octave_config_info-angharad-8.4.0-brewed.log
        DL_LDFLAGS = -bundle -undefined dynamic_lookup -bind_at_load -bundle_loader /src/octave -F/usr/local/opt/qt@5/lib
        MKOCTFILE_DL_LDFLAGS = -bundle -undefined dynamic_lookup -bind_at_load -bundle_loader /usr/local/Cellar/octave/8.4.0_3/bin/octave-8.4.0
[~] $

Doesn't seem apparent to me where the duplication is happening. Unless some build things are using both $DL_LDFLAGS and $MKOCTFILE_DL_LDFLAGS for the same build action? The path in the second one there matches the "ignored" path in the error message, which maybe makes sense if it's using both of these and sees the path argument to -bundle_loader differs between them?

Additionally, if you have access to the build system, could you please upload the file src/mkoctfile.cc that is generated in the build tree?

I have access to the build system, but I'm doing everything through Homebrew, so the build tree is not retained. I'll have to set up a different build process to get that. Sorry. I think I can do that by using the brew command's debug options to drop in to a debugging shell during the build process before it does cleanup? Will have to look through the options there.

Is there an easy way for me to grab the build logs from a pkg install -forge statistics operation and give you those too?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants