From: gregid <gtr...@gm...> - 2012-09-13 23:15:26
|
I tried to install optim package downloaded from forge website, -forge, and svn trunk download. All with the same result. Any advice on how to fix it? Anyone else having similar problem? octave:117> pkg install -forge optim __disna_optim__.o: In function `Z16F__disna_optim__RK17octave_value_listi': C:\Users\Me\AppData\Local\Temp\oct-24\optim-1.2.0\src/__disna_optim__.cc:132: undefined reference to `sdisna_' C:\Users\Me\AppData\Local\Temp\oct-24\optim-1.2.0\src/__disna_optim__.cc:144: undefined reference to `ddisna_' collect2: ld returned 1 exit status strip: '__disna_optim__.oct': No such file make: *** [__disna_optim__.oct] Error 1 'make' returned the following error: make: Entering directory `/tmp/oct-24/optim-1.2.0/src' LFLAGS="-Lc:\Octave\Octave3.6.2_gcc4.6.2\lib\octave\3.6.2 -Lc:\Octave\Octave3.6.2_gcc4.6.2\lib -lblas" C:/Octave/Octave 3.6.2_gcc4.6.2/bin/mkoctfile-3.6.2 -s __bfgsmin.cc LFLAGS="-Lc:\Octave\Octave3.6.2_gcc4.6.2\lib\octave\3.6.2 -Lc:\Octave\Octave3.6.2_gcc4.6.2\lib -lblas" C:/Octave/Octave 3.6.2_gcc4.6.2/bin/mkoctfile-3.6.2 -s numgradient.cc LFLAGS="-Lc:\Octave\Octave3.6.2_gcc4.6.2\lib\octave\3.6.2 -Lc:\Octave\Octave3.6.2_gcc4.6.2\lib -lblas" C:/Octave/Octave 3.6.2_gcc4.6.2/bin/mkoctfile-3.6.2 -s numhessian.cc LFLAGS="-Lc:\Octave\Octave3.6.2_gcc4.6.2\lib\octave\3.6.2 -Lc:\Octave\Octave3.6.2_gcc4.6.2\lib -lblas" C:/Octave/Octave 3.6.2_gcc4.6.2/bin/mkoctfile-3.6.2 -s samin.cc LFLAGS="-Lc:\Octave\Octave3.6.2_gcc4.6.2\lib\octave\3.6.2 -Lc:\Octave\Octave3.6.2_gcc4.6.2\lib -lblas" C:/Octave/Octave 3.6.2_gcc4.6.2/bin/mkoctfile-3.6.2 -s __disna_optim__.cc make: Leaving directory `/tmp/oct-24/optim-1.2.0/src' error: called from `pkg>configure_make' in file C:\Octave\Octave3.6.2_gcc4.6.2\share\octave\3.6.2\m\pkg\pkg.m near line 1385, column 9 error: called from: error: C:\Octave\Octave3.6.2_gcc4.6.2\share\octave\3.6.2\m\pkg\pkg.m at line 827, column 5 error: C:\Octave\Octave3.6.2_gcc4.6.2\share\octave\3.6.2\m\pkg\pkg.m at line 383, column 9 -- View this message in context: http://octave.1599824.n4.nabble.com/optim-package-on-Windows-doesn-t-install-tp4644095.html Sent from the Octave - Dev mailing list archive at Nabble.com. |
From: Daniel J S. <dan...@ie...> - 2012-09-14 00:24:23
|
On 09/13/2012 06:15 PM, gregid wrote: > I tried to install optim package downloaded from forge website, -forge, and > svn trunk download. > All with the same result. Any advice on how to fix it? Anyone else having > similar problem? The optim package appears to not have been touched for 3 months, so I doubt it is something in the package. I notice that the globals that are being complained about are F77 routines. See the code here: http://octave.svn.sourceforge.net/viewvc/octave/trunk/octave-forge/main/optim/src/__disna_optim__.cc?revision=10116&view=markup and that they are in the LAPACK. /* 48 Interface to DDISNA and SDISNA of LAPACK. 52 */ Do you have LAPACK available? The module appears to be trying to piece things together. Dan > > octave:117> pkg install -forge optim > __disna_optim__.o: In function `Z16F__disna_optim__RK17octave_value_listi': > C:\Users\Me\AppData\Local\Temp\oct-24\optim-1.2.0\src/__disna_optim__.cc:132: > undefined reference to `sdisna_' > C:\Users\Me\AppData\Local\Temp\oct-24\optim-1.2.0\src/__disna_optim__.cc:144: > undefined reference to `ddisna_' > collect2: ld returned 1 exit status > strip: '__disna_optim__.oct': No such file > make: *** [__disna_optim__.oct] Error 1 > 'make' returned the following error: make: Entering directory > `/tmp/oct-24/optim-1.2.0/src' > LFLAGS="-Lc:\Octave\Octave3.6.2_gcc4.6.2\lib\octave\3.6.2 > -Lc:\Octave\Octave3.6.2_gcc4.6.2\lib -lblas" C:/Octave/Octave > 3.6.2_gcc4.6.2/bin/mkoctfile-3.6.2 -s __bfgsmin.cc > LFLAGS="-Lc:\Octave\Octave3.6.2_gcc4.6.2\lib\octave\3.6.2 > -Lc:\Octave\Octave3.6.2_gcc4.6.2\lib -lblas" C:/Octave/Octave > 3.6.2_gcc4.6.2/bin/mkoctfile-3.6.2 -s numgradient.cc > LFLAGS="-Lc:\Octave\Octave3.6.2_gcc4.6.2\lib\octave\3.6.2 > -Lc:\Octave\Octave3.6.2_gcc4.6.2\lib -lblas" C:/Octave/Octave > 3.6.2_gcc4.6.2/bin/mkoctfile-3.6.2 -s numhessian.cc > LFLAGS="-Lc:\Octave\Octave3.6.2_gcc4.6.2\lib\octave\3.6.2 > -Lc:\Octave\Octave3.6.2_gcc4.6.2\lib -lblas" C:/Octave/Octave > 3.6.2_gcc4.6.2/bin/mkoctfile-3.6.2 -s samin.cc > LFLAGS="-Lc:\Octave\Octave3.6.2_gcc4.6.2\lib\octave\3.6.2 > -Lc:\Octave\Octave3.6.2_gcc4.6.2\lib -lblas" C:/Octave/Octave > 3.6.2_gcc4.6.2/bin/mkoctfile-3.6.2 -s __disna_optim__.cc > make: Leaving directory `/tmp/oct-24/optim-1.2.0/src' > error: called from `pkg>configure_make' in file > C:\Octave\Octave3.6.2_gcc4.6.2\share\octave\3.6.2\m\pkg\pkg.m near line > 1385, column 9 > error: called from: > error: C:\Octave\Octave3.6.2_gcc4.6.2\share\octave\3.6.2\m\pkg\pkg.m at > line 827, column 5 > error: C:\Octave\Octave3.6.2_gcc4.6.2\share\octave\3.6.2\m\pkg\pkg.m at > line 383, column 9 > > > > -- > View this message in context: http://octave.1599824.n4.nabble.com/optim-package-on-Windows-doesn-t-install-tp4644095.html > Sent from the Octave - Dev mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://ad.doubleclick.net/clk;258768047;13503038;j? > http://info.appdynamics.com/FreeJavaPerformanceDownload.html > _______________________________________________ > Octave-dev mailing list > Oct...@li... > https://lists.sourceforge.net/lists/listinfo/octave-dev > -- Dan Sebald email: daniel(DOT)sebald(AT)ieee(DOT)org URL: http://www(DOT)dansebald(DOT)com |
From: Jordi G. H. <jo...@oc...> - 2012-09-14 00:41:16
|
On 13 September 2012 19:15, gregid <gtr...@gm...> wrote: > I tried to install optim package downloaded from forge website, -forge, and > svn trunk download. > All with the same result. Any advice on how to fix it? Anyone else having > similar problem? You don't need to compile the package yourself. It's already been compiled: http://sourceforge.net/projects/octave/files/Octave%20Windows%20binaries/Octave%203.6.2%20for%20Windows%20MinGW%20installer/ Get the one that says "pkgs". HTH, - Jordi G. H. |
From: nitnit <ni...@gm...> - 2012-09-14 06:53:15
|
gregid wrote > > I tried to install optim package downloaded from forge website, -forge, > and svn trunk download. > All with the same result. Any advice on how to fix it? Anyone else having > similar problem? > > octave:117> pkg install -forge optim > __disna_optim__.o: In function > `Z16F__disna_optim__RK17octave_value_listi': > C:\Users\Me\AppData\Local\Temp\oct-24\optim-1.2.0\src/__disna_optim__.cc:132: > undefined reference to `sdisna_' > C:\Users\Me\AppData\Local\Temp\oct-24\optim-1.2.0\src/__disna_optim__.cc:144: > undefined reference to `ddisna_' > collect2: ld returned 1 exit status > > For my recent mingw built of the optim pkg, I had to add the "-lliblapack" implicitly since it has not been returned by mkoctfile -p. See following patch. Regards Nitzan --- optim-1.2.0.tar.gz\optim-1.2.0\src\Makefile Tue Jun 12 16:42:55 2012 +++ optim-1.2.0_patched.tar.gz\optim-1.2.0\src\Makefile Sat Aug 04 11:27:03 2012 @@ -1,9 +1,11 @@ MKOCTFILE ?= mkoctfile ifndef LAPACK_LIBS -LAPACK_LIBS := $(shell $(MKOCTFILE) -p LAPACK_LIBS) +# LAPACK_LIBS := $(shell $(MKOCTFILE) -p LAPACK_LIBS) +LAPACK_LIBS := -lliblapack endif -OCTAVE_LAPACK_LIBS := $(shell $(MKOCTFILE) -p LAPACK_LIBS) +# OCTAVE_LAPACK_LIBS := $(shell $(MKOCTFILE) -p LAPACK_LIBS) +OCTAVE_LAPACK_LIBS := -lliblapack # reported necessary for Apple's VecLib framework by Carlo de Falco # <car...@gm...> ifndef BLAS_LIBS -- View this message in context: http://octave.1599824.n4.nabble.com/optim-package-on-Windows-doesn-t-install-tp4644095p4644100.html Sent from the Octave - Dev mailing list archive at Nabble.com. |
From: gregid <gtr...@gm...> - 2012-09-14 17:20:33
|
Thanks ninit, Your patch did help. But being new to makefile it took me some time to figure out that "+" and "-" are not part of the makefile syntax but source control :D Could this patch be applied to sourceforge or will it cause compatibility issues on other systems? Thanks again guys On 14 September 2012 07:53, nitnit [via Octave] < ml-...@n4...> wrote: > gregid wrote > I tried to install optim package downloaded from forge website, -forge, > and svn trunk download. > All with the same result. Any advice on how to fix it? Anyone else having > similar problem? > > octave:117> pkg install -forge optim > __disna_optim__.o: In function > `Z16F__disna_optim__RK17octave_value_listi': > C:\Users\Me\AppData\Local\Temp\oct-24\optim-1.2.0\src/__disna_optim__.cc:132: > undefined reference to `sdisna_' > C:\Users\Me\AppData\Local\Temp\oct-24\optim-1.2.0\src/__disna_optim__.cc:144: > undefined reference to `ddisna_' > collect2: ld returned 1 exit status > > For my recent mingw built of the optim pkg, I had to add the "-lliblapack" > implicitly since it has not been returned by mkoctfile -p. See following > patch. > > Regards > Nitzan > > --- optim-1.2.0.tar.gz\optim-1.2.0\src\Makefile Tue Jun 12 16:42:55 2012 > +++ optim-1.2.0_patched.tar.gz\optim-1.2.0\src\Makefile Sat Aug 04 > 11:27:03 2012 > @@ -1,9 +1,11 @@ > MKOCTFILE ?= mkoctfile > > ifndef LAPACK_LIBS > -LAPACK_LIBS := $(shell $(MKOCTFILE) -p LAPACK_LIBS) > +# LAPACK_LIBS := $(shell $(MKOCTFILE) -p LAPACK_LIBS) > +LAPACK_LIBS := -lliblapack > endif > -OCTAVE_LAPACK_LIBS := $(shell $(MKOCTFILE) -p LAPACK_LIBS) > +# OCTAVE_LAPACK_LIBS := $(shell $(MKOCTFILE) -p LAPACK_LIBS) > +OCTAVE_LAPACK_LIBS := -lliblapack > # reported necessary for Apple's VecLib framework by Carlo de Falco > # <car...@gm...> > ifndef BLAS_LIBS > > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > > http://octave.1599824.n4.nabble.com/optim-package-on-Windows-doesn-t-install-tp4644095p4644100.html > To unsubscribe from optim package on Windows doesn't install, click here<http://octave.1599824.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4644095&code=Z3RyemVjaWFrQGdtYWlsLmNvbXw0NjQ0MDk1fC0xMDY1ODEwNzQx> > . > NAML<http://octave.1599824.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> > -- View this message in context: http://octave.1599824.n4.nabble.com/optim-package-on-Windows-doesn-t-install-tp4644095p4644112.html Sent from the Octave - Dev mailing list archive at Nabble.com. |
From: Olaf T. <i7...@t-...> - 2012-09-14 20:22:14
Attachments:
signature.asc
|
On Fri, Sep 14, 2012 at 10:20:27AM -0700, gregid wrote: > Thanks ninit, > > Your patch did help. But being new to makefile it took me some time to > figure out that "+" and "-" are not part of the makefile syntax but source > control :D > > Could this patch be applied to sourceforge or will it cause compatibility > issues on other systems? No, this patch can not be applied to the central repository. Instead, the mingw built should be fixed to make mkoctfile return the correct flags. Olaf > Thanks again guys > > On 14 September 2012 07:53, nitnit [via Octave] < > ml-...@n4...> wrote: > > > gregid wrote > > I tried to install optim package downloaded from forge website, -forge, > > and svn trunk download. > > All with the same result. Any advice on how to fix it? Anyone else having > > similar problem? > > > > octave:117> pkg install -forge optim > > __disna_optim__.o: In function > > `Z16F__disna_optim__RK17octave_value_listi': > > C:\Users\Me\AppData\Local\Temp\oct-24\optim-1.2.0\src/__disna_optim__.cc:132: > > undefined reference to `sdisna_' > > C:\Users\Me\AppData\Local\Temp\oct-24\optim-1.2.0\src/__disna_optim__.cc:144: > > undefined reference to `ddisna_' > > collect2: ld returned 1 exit status > > > > For my recent mingw built of the optim pkg, I had to add the "-lliblapack" > > implicitly since it has not been returned by mkoctfile -p. See following > > patch. > > > > Regards > > Nitzan > > > > --- optim-1.2.0.tar.gz\optim-1.2.0\src\Makefile Tue Jun 12 16:42:55 2012 > > +++ optim-1.2.0_patched.tar.gz\optim-1.2.0\src\Makefile Sat Aug 04 > > 11:27:03 2012 > > @@ -1,9 +1,11 @@ > > MKOCTFILE ?= mkoctfile > > > > ifndef LAPACK_LIBS > > -LAPACK_LIBS := $(shell $(MKOCTFILE) -p LAPACK_LIBS) > > +# LAPACK_LIBS := $(shell $(MKOCTFILE) -p LAPACK_LIBS) > > +LAPACK_LIBS := -lliblapack > > endif > > -OCTAVE_LAPACK_LIBS := $(shell $(MKOCTFILE) -p LAPACK_LIBS) > > +# OCTAVE_LAPACK_LIBS := $(shell $(MKOCTFILE) -p LAPACK_LIBS) > > +OCTAVE_LAPACK_LIBS := -lliblapack > > # reported necessary for Apple's VecLib framework by Carlo de Falco > > # <car...@gm...> > > ifndef BLAS_LIBS > > > > > > ------------------------------ > > If you reply to this email, your message will be added to the discussion > > below: > > > > http://octave.1599824.n4.nabble.com/optim-package-on-Windows-doesn-t-install-tp4644095p4644100.html > > To unsubscribe from optim package on Windows doesn't install, click here<http://octave.1599824.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4644095&code=Z3RyemVjaWFrQGdtYWlsLmNvbXw0NjQ0MDk1fC0xMDY1ODEwNzQx> > > . > > NAML<http://octave.1599824.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> > > > > > > > -- > View this message in context: http://octave.1599824.n4.nabble.com/optim-package-on-Windows-doesn-t-install-tp4644095p4644112.html > Sent from the Octave - Dev mailing list archive at Nabble.com. > ------------------------------------------------------------------------------ > Got visibility? > Most devs has no idea what their production app looks like. > Find out how fast your code is with AppDynamics Lite. > http://ad.doubleclick.net/clk;262219671;13503038;y? > http://info.appdynamics.com/FreeJavaPerformanceDownload.html > _______________________________________________ > Octave-dev mailing list > Oct...@li... > https://lists.sourceforge.net/lists/listinfo/octave-dev -- public key id EAFE0591, e.g. on x-hkp://pool.sks-keyservers.net |