Opened 18 years ago
Closed 18 years ago
#11014 closed defect (duplicate)
BUG: SuiteSparse 2.1.1_0 does not build.
Reported by: | bytestorm@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | High | Milestone: | |
Component: | ports | Version: | |
Keywords: | Cc: | andre@…, markd@… | |
Port: |
Description
System: os 10.4.8, xcode 2.4.1, ppc
klu_version.h is included before math.h. This is a problem because klu_version #defines Real and Imag which are used in math.h resulting in gcc to find an error in math.h (duplicate element name "component").
kludemo's dsecnd.c has an x86 asm instruction with no C alternative (the demo is not needed for a working library)
CXSparse's demo wants gfortran (demo unnecessary)
umfpack & cholmod demos want lapack & blas. (available in the vecLib framework, but again, demo unnecessary)
Attachments (1)
Change History (6)
Changed 18 years ago by namely_void@…
Attachment: | patch-SuiteSparse-Portfile added |
---|
comment:1 Changed 18 years ago by namely_void@…
Added an attachment to build SuiteSparse on powerpc. Also sent most of the build fixes upstream. After this octave builds ok. My system is (also) OS X 10.4.8 powerpc and Xcode 2.4.1.
comment:2 Changed 18 years ago by namely_void@…
Note that the attached patch uses a lazy way of circumventing the math.h problem. Proper fix would be to use C99 double _Complex types, which seem to be defined at least since OS X 10.3.9.
comment:3 Changed 18 years ago by markd@…
Cc: | markd@… added |
---|
Below is what I get with the patches. The app is up to 2.3.1. Does it negate the need for any of the patches?
---> Applying patches to SuiteSparse ---> Applying /opt/local/var/db/dports/sources/rsync.rsync.darwinports.org_dpupdate_dports/math/SuiteSparse/files/patch-complex-type DEBUG: Assembled command: 'cd "/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_math_SuiteSparse/work/SuiteSparse" && patch -p0' patching file ./KLU/Include/klu_version.h Hunk #2 succeeded at 215 with fuzz 1. ---> Applying /opt/local/var/db/dports/sources/rsync.rsync.darwinports.org_dpupdate_dports/math/SuiteSparse/files/patch-size_t-fix DEBUG: Assembled command: 'cd "/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_math_SuiteSparse/work/SuiteSparse" && patch -p0' patching file ./AMD/Include/amd_internal.h Reversed (or previously applied) patch detected! Assume -R? [n] Apply anyway? [n] Skipping patch. 1 out of 1 hunk ignored -- saving rejects to file ./AMD/Include/amd_internal.h.rej patching file ./CAMD/Include/camd_internal.h Reversed (or previously applied) patch detected! Assume -R? [n] Apply anyway? [n] Skipping patch. 1 out of 1 hunk ignored -- saving rejects to file ./CAMD/Include/camd_internal.h.rej Error: Target com.apple.patch returned: shell command "cd "/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_math_SuiteSparse/work/SuiteSparse" && patch -p0 < "/opt/local/var/db/dports/sources/rsync.rsync.darwinports.org_dpupdate_dports/math/SuiteSparse/files/patch-size_t-fix"" returned error 1 Command output: patching file ./AMD/Include/amd_internal.h Reversed (or previously applied) patch detected! Assume -R? [n] Apply anyway? [n] Skipping patch. 1 out of 1 hunk ignored -- saving rejects to file ./AMD/Include/amd_internal.h.rej patching file ./CAMD/Include/camd_internal.h Reversed (or previously applied) patch detected! Assume -R? [n] Apply anyway? [n] Skipping patch. 1 out of 1 hunk ignored -- saving rejects to file ./CAMD/Include/camd_internal.h.rej
comment:4 Changed 18 years ago by namely_void@…
Some of the patches are applied upstream. See #11362 for an updated Portfile. Please test on x86, and apply if it works.
comment:5 Changed 18 years ago by pipping@…
Resolution: | → duplicate |
---|---|
Status: | new → closed |
superseded by #11362.
Patch for building SuiteSparse on powerpc