#6681: cliquer doesn't work in 64-bit OS X
--------------------------+-------------------------------------------------
Reporter: jhpalmieri | Owner: rlm
Type: defect | Status: new
Priority: major | Milestone: sage-4.1.2
Component: graph theory | Keywords:
Reviewer: | Author:
Merged: |
--------------------------+-------------------------------------------------
Comment(by jhpalmieri):
My failed attempt at this: change the beginning of SConstruct from
{{{
env = Environment() # Create an environment
}}}
to
{{{
import os
# Create an environment
if os.getenv("SAGE64") == "yes":
env = Environment(CFLAGS = '-O3 -fomit-frame-pointer -funroll-loops -g
-m64',
LINKFLAGS='-m64')
else:
env = Environment()
}}}
This uses '-m64' for the compilation process when SAGE64 is set to yes
(and it should probably also check for OSX):
{{{
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
gcc -o src/cl.os -c -O3 -fomit-frame-pointer -funroll-loops -g -m64 -fPIC
src/cl.c
gcc -o src/cliquer.os -c -O3 -fomit-frame-pointer -funroll-loops -g -m64
-fPIC src/cliquer.c
gcc -o src/graph.os -c -O3 -fomit-frame-pointer -funroll-loops -g -m64
-fPIC src/graph.c
gcc -o src/reorder.os -c -O3 -fomit-frame-pointer -funroll-loops -g -m64
-fPIC src/reorder.c
gcc -o libcliquer.dylib -m64 -dynamiclib src/cl.os src/cliquer.os
src/graph.os src/reorder.os
Install file: "libcliquer.dylib" as "Build/libcliquer.dylib"
scons: done building targets.
}}}
But I still get the same error message when starting Sage. I know
basically nothing about compiling programs, though, so I was just taking a
shot in the dark anyway.
(By the way, I got the flags "-fomit-frame-pointer -funroll-loops" from
the cliquer Makefile; removing them doesn't help.)
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6681#comment:2>
Sage <http://sagemath.org/>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---