Can I use MacPorts to install Octave 3.6.4?
Ray Zimmerman
rz10 at cornell.edu
Wed Dec 10 11:03:35 PST 2014
Still no go. In fact, I can’t even get gcc48 to build successfully on a fresh re-install of MacPorts. Both …
sudo port install atlas +gcc48
… and …
sudo port install gcc48
… each on a fresh MacPorts installation, fails while building gcc. The end of the log file looks like …
:info:build /bin/sh /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc48/gcc48/work/gcc-4.8.3/libgcc/../mkinstalldirs .
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc48/gcc48/work/build/./gcc/xgcc -B/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc48/gcc48/work/build/./gcc/ -B/opt/local/x86_64-apple-darwin14/bin/ -B/opt/local/x86_64-apple-darwin14/lib/ -isystem /opt/local/x86_64-apple-darwin14/include -isystem /opt/local/x86_64-apple-darwin14/sys-include -O2 -g -O2 -pipe -Os -DIN_GCC -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -pipe -fno-common -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector -dynamiclib -nodefaultlibs -install_name /opt/local/lib/gcc48/libgcc_s.1.dylib -single_module -o ./libgcc_s.dylib -Wl,-exported_symbols_list,libgcc.map -compatibility_version 1 -current_version 1.0 -g -O2 -pipe -Os -B./ _muldi3_s.o _negdi2_s.o _lshrdi3_s.o _ashldi3_s.o _ashrdi3_s.o _cmpdi2_s.o _ucmpdi2_s.o _clear_cache_s.o _trampoline_s.o __main_s.o _absvsi2_s.o _absvdi2_s.o _addvsi3_s.o _addvdi3_s.o _subvsi3_s.o _subvdi3_s.o _mulvsi3_s.o _mulvdi3_s.o _negvsi2_s.o _negvdi2_s.o _ctors_s.o _ffssi2_s.o _ffsdi2_s.o _clz_s.o _clzsi2_s.o _clzdi2_s.o _ctzsi2_s.o _ctzdi2_s.o _popcount_tab_s.o _popcountsi2_s.o _popcountdi2_s.o _paritysi2_s.o _paritydi2_s.o _powisf2_s.o _powidf2_s.o _powixf2_s.o _powitf2_s.o _mulsc3_s.o _muldc3_s.o _mulxc3_s.o _multc3_s.o _divsc3_s.o _divdc3_s.o _divxc3_s.o _divtc3_s.o _bswapsi2_s.o _bswapdi2_s.o _clrsbsi2_s.o _clrsbdi2_s.o _fixunssfsi_s.o _fixunsdfsi_s.o _fixunsxfsi_s.o _fixsfdi_s.o _fixdfdi_s.o _fixxfdi_s.o _fixunssfdi_s.o _fixunsdfdi_s.o _fixunsxfdi_s.o _floatdisf_s.o _floatdidf_s.o _floatdixf_s.o _floatundisf_s.o _floatundidf_s.o _floatundixf_s.o _fixsfti_s.o _fixdfti_s.o _fixxfti_s.o _fixtfti_s.o _fixunssfti_s.o _fixunsdfti_s.o _fixunsxfti_s.o _fixunstfti_s.o _floattisf_s.o _floattidf_s.o _floattixf_s.o _floattitf_s.o _floatuntisf_s.o _floatuntidf_s.o _floatuntixf_s.o _floatuntitf_s.o _divdi3_s.o _moddi3_s.o _udivdi3_s.o _umoddi3_s.o _udiv_w_sdiv_s.o _udivmoddi4_s.o darwin-64_s.o cpuinfo_s.o sfp-exceptions_s.o addtf3_s.o divtf3_s.o eqtf2_s.o getf2_s.o letf2_s.o multf3_s.o negtf2_s.o subtf3_s.o unordtf2_s.o fixtfsi_s.o fixunstfsi_s.o floatsitf_s.o floatunsitf_s.o fixtfdi_s.o fixunstfdi_s.o floatditf_s.o floatunditf_s.o fixtfti_s.o fixunstfti_s.o floattitf_s.o floatuntitf_s.o extendsftf2_s.o extenddftf2_s.o extendxftf2_s.o trunctfsf2_s.o trunctfdf2_s.o trunctfxf2_s.o enable-execute-stack_s.o unwind-dw2_s.o unwind-dw2-fde-darwin_s.o unwind-sjlj_s.o unwind-c_s.o emutls_s.o libgcc.a -lc
:info:build collect2: error: ld terminated with signal 5 [Trace/BPT trap: 5]
:info:build dyld: Library not loaded: /opt/local/lib/libedit.0.dylib
:info:build Referenced from: /opt/local/libexec/llvm-3.5/lib/libLTO.dylib
:info:build Reason: image not found
:info:build make[3]: *** [libgcc_s.dylib] Error 1
:info:build make[3]: *** Waiting for unfinished jobs....
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc48/gcc48/work/gcc-4.8.3/libgcc/libgcov.c: In function 'gcov_exit':
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc48/gcc48/work/gcc-4.8.3/libgcc/libgcov.c:665:16: warning: 'f_ix' may be used uninitialized in this function [-Wmaybe-uninitialized]
:info:build fprintf (stderr, "profiling:%s:Merge mismatch for %s %u\n",
:info:build ^
:info:build make[3]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc48/gcc48/work/build/x86_64-apple-darwin14/libgcc'
:info:build make[2]: *** [all-stage1-target-libgcc] Error 2
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc48/gcc48/work/build'
:info:build make[1]: *** [stage1-bubble] Error 2
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc48/gcc48/work/build'
:info:build make: *** [bootstrap] Error 2
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc48/gcc48/work/build'
:info:build Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc48/gcc48/work/build" && /usr/bin/make -j8 -w bootstrap
:info:build Exit code: 2
:error:build org.macports.build for port gcc48 returned: command execution failed
:debug:build Error code: CHILDSTATUS 45841 2
:debug:build Backtrace: command execution failed
while executing
"system -nice 0 $fullcmdstring"
("eval" body line 1)
invoked from within
"eval system $notty $nice \$fullcmdstring"
invoked from within
"command_exec build"
(procedure "portbuild::build_main" line 8)
invoked from within
"portbuild::build_main org.macports.build"
("eval" body line 1)
invoked from within
"eval $procedure $targetname"
:info:build Warning: targets not executed for gcc48: org.macports.activate org.macports.build org.macports.destroot org.macports.install
:notice:build Please see the log file for port gcc48 for details:
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc48/gcc48/main.log
So, is this a problem with MacPorts? the gcc48 port? my setup (which I think is pretty vanilla OS X 10.10.1)? or, more likely, me?
I don’t want to keep bothering the whole list. Is there somebody who is willing to help me off-list and walk me through the steps to build Octave successfully on a fresh install of MacPorts?
Thanks again,
Ray
> On Dec 10, 2014, at 11:31 AM, Marius Schamschula <lists at schamschula.com> wrote:
>
> Ray,
>
> On Dec 10, 2014, at 10:20 AM, Ray Zimmerman <rz10 at cornell.edu> wrote:
>
>> Ok, I’m a MacPorts newbie here, but it turns out I haven’t even been able to get the current version of Octave to build yet. This is a clean install of the latest MacPorts on OS X 10.10.1 with Xcode 6.1.1.
>>
>> I first attempted …
>>
>> sudo port install octave
>>
>> … which resulted in …
>>
>> Error: org.macports.configure for port atlas returned: Atlas could not detect any fortran compiler. If you really don’t need the fortran interface to be built, please use the +nofortran option, else install a fortran compiler (e.g. gcc4X) before building Atlas.
>> Error: Failed to install atlas
>> Please see the log file for port atlas for details:
>> /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_atlas/atlas/main.log
>>
>> So I went back and did …
>>
>> sudo port clean octave
>> sudo port clean atlas
>> sudo port install octave +nofortran
>>
>> This time it failed to build qrupdate.
>>
>> ---> Fetching archive for qrupdate
>> ---> Attempting to fetch qrupdate-1.1.2_3+atlas+gcc48.darwin_14.x86_64.tbz2 from http://packages.macports.org/qrupdate
>> ---> Attempting to fetch qrupdate-1.1.2_3+atlas+gcc48.darwin_14.x86_64.tbz2 from http://lil.fr.packages.macports.org/qrupdate
>> ---> Attempting to fetch qrupdate-1.1.2_3+atlas+gcc48.darwin_14.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/qrupdate
>> ---> Fetching distfiles for qrupdate
>> ---> Attempting to fetch qrupdate-1.1.2.tar.gz from http://superb-dca2.dl.sourceforge.net/project/qrupdate/qrupdate/1.2
>> ---> Verifying checksums for qrupdate
>> ---> Extracting qrupdate
>> ---> Applying patches to qrupdate
>> ---> Configuring qrupdate
>> ---> Building qrupdate
>> Error: org.macports.build for port qrupdate returned: command execution failed
>> Error: Failed to install qrupdate
>> Please see the log file for port qrupdate for details:
>> /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_qrupdate/qrupdate/main.log
>> Error: The following dependencies were not installed: qrupdate texinfo transfig netpbm
>>
>> The relevant part of log file (by my guess) says …
>>
>> :info:build libtool -o ../libqrupdate.a caxcpy.o cch1dn.o cch1up.o cchdex.o cchinx.o cchshx.o cgqvec.o cqhqr.o cqr1up.o cqrdec.o cqrder.o cqrinc.o cqrinr.o cqrot.o cqrqh.o cqrshc.o cqrtv1.o dch1dn.o dch1up.o dchdex.o dchinx.o dchshx.o dgqvec.o dqhqr.o dqr1up.o dqrdec.o dqrder.o dqrinc.o dqrinr.o dqrot.o dqrqh.o dqrshc.o dqrtv1.o sch1dn.o sch1up.o schdex.o schinx.o schshx.o sgqvec.o sqhqr.o sqr1up.o sqrdec.o sqrder.o sqrinc.o sqrinr.o sqrot.o sqrqh.o sqrshc.o sqrtv1.o zaxcpy.o zch1dn.o zch1up.o zchdex.o zchinx.o zchshx.o zgqvec.o zqhqr.o zqr1up.o zqrdec.o zqrder.o zqrinc.o zqrinr.o zqrot.o zqrqh.o zqrshc.o zqrtv1.o clu1up.o dlu1up.o slu1up.o zlu1up.o clup1up.o dlup1up.o slup1up.o zlup1up.o
>> :info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_qrupdate/qrupdate/work/qrupdate-1.1.2/src'
>> :info:build Undefined symbols for architecture x86_64:
>> :info:build "_caxpy_", referenced from:
>> :info:build _cgqvec_ in cgqvec.o
>> :info:build _cqr1up_ in cqr1up.o
>> :info:build _cqrinc_ in cqrinc.o
>> :info:build _clup1up_ in clup1up.o
>> :info:build "_ccopy_", referenced from:
>> :info:build _cchdex_ in cchdex.o
>> :info:build _cchinx_ in cchinx.o
>> :info:build _cchshx_ in cchshx.o
>> :info:build _cqrdec_ in cqrdec.o
>> :info:build _cqrder_ in cqrder.o
>> :info:build _cqrinc_ in cqrinc.o
>> :info:build _cqrinr_ in cqrinr.o
>> :info:build …
>> <snip> (I think you get the point)
>> :info:build ...
>> :info:build "_zrot_", referenced from:
>> :info:build _zqr1up_ in zqr1up.o
>> :info:build _zqrot_ in zqrot.o
>> :info:build "_zswap_", referenced from:
>> :info:build _zlup1up_ in zlup1up.o
>> :info:build "_ztrsv_", referenced from:
>> :info:build _zch1dn_ in zch1dn.o
>> :info:build _zchinx_ in zchinx.o
>> :info:build _zlup1up_ in zlup1up.o
>> :info:build ld: symbol(s) not found for architecture x86_64
>> :info:build collect2: error: ld returned 1 exit status
>>
>> Any suggestions on how to resolve this? I’m happy to wipe everything out and start over even though it takes a few hours to re-build. I’m just looking for the easiest way to get a working version of Octave 3.8.2 and Octave 3.6.4 that I can use to test some code.
>>
>> By the way, it looks like at this point I do have a fortran compiler installed. Presumably by one of Octave’s other dependencies?
>>
>> Thanks,
>>
>> --
>> Ray Zimmerman
>> Senior Research Associate
>> B30 Warren Hall, Cornell University, Ithaca, NY 14853 USA
>> phone: (607) 255-9645
>>
>>> On Dec 9, 2014, at 4:01 PM, Michael Dickens <michaelld at macports.org> wrote:
>>>
>>> Hi Ray - You actually want to look at the Portfile itself for the
>>> version info. In this case, the one you want is <
>>> https://trac.macports.org/browser/trunk/dports/math/octave/Portfile?rev=121949
>>>> .. or, revision 121949. The next revision of this Portfile (121950)
>>> bumps the version to 3.8.1. Sometimes you have to do a little tweaking
>>> to get things to work with the current version of 'port', but generally
>>> the changes are small. Good luck! - MLD
>>>
>>> On Tue, Dec 9, 2014, at 03:28 PM, Ray Zimmerman wrote:
>>>> I am new to MacPorts and was hoping to use it to install the current
>>>> version of GNU Octave 3.8.2 (currently building on my machine) and some
>>>> earlier versions, such as 3.6.4. I’m finding it difficult to figure out
>>>> how to do the earlier versions, if it is even possible.
>>>>
>>>> I found this page
>>>> (https://trac.macports.org/wiki/howto/InstallingOlderPort), but I’m
>>>> having trouble trying to find a revision of the octave port* that clearly
>>>> corresponds to version 3.6.4 of Octave. Should I just pick the rev right
>>>> before the one that says “update to 3.8.1” (i.e. rev 121949) and hope
>>>> that it’s 3.6.4 or what?
>>>>
>>>> Can somebody give me a few tips here?
>>>>
>>>> *Looking on this page:
>>>> https://trac.macports.org/log/trunk/dports/math/octave?rev=128817
>>> _______________________________________________
>>> macports-users mailing list
>>> macports-users at lists.macosforge.org
>>> https://lists.macosforge.org/mailman/listinfo/macports-users
>>
>> _______________________________________________
>> macports-users mailing list
>> macports-users at lists.macosforge.org
>> https://lists.macosforge.org/mailman/listinfo/macports-users
>
> You will need fortran to build octave. The default variant is to use gcc 4.8, but this does not automatically build/install gcc 4.8.
>
> So I build octave with two commands:
>
> sudo port install atlas +gcc48
>
> which should install MacPorts gcc 4.8 before installing atlas, and then
>
> sudo port install octave +atlas +gcc48
>
> I normally also add the +gui and +SuiteSparse variants.
>
> Marius
> --
> Marius Schamschula
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-users/attachments/20141210/522c8659/attachment.html>
More information about the macports-users
mailing list