#9871: Change compiler flags on Solaris to build without text relocations.
----------------------------+-----------------------------------------------
   Reporter:  drkirkby      |       Owner:  GeorgSWeber                         
       
       Type:  defect        |      Status:  needs_work                          
       
   Priority:  critical      |   Milestone:  sage-4.6                            
       
  Component:  build         |    Keywords:                                      
       
     Author:  David Kirkby  |    Upstream:  Not yet reported upstream; Will do 
shortly.
   Reviewer:                |      Merged:                                      
       
Work_issues:                |  
----------------------------+-----------------------------------------------

Comment(by drkirkby):

 Replying to [comment:15 jhpalmieri]:
 > This seems to work on fulvia in 64-bit mode; I'm still building on t2
 (I'm starting a 64-bit build from scratch there, so it will take another
 half hour before it gets to cliquer).
 >
 > However, I can't get this to build in 32-bit mode.  On both fulvia and
 t2 I get essentially the same error:
 > {{{
 > gcc  -O2  -g  -Wall -fomit-frame-pointer -funroll-loops -c -fPIC
 -DENABLE_LONG_OPTIONS -o cl.o -c cl.c
 > gcc  -O2  -g  -Wall -fomit-frame-pointer -funroll-loops -c -fPIC
 -I/home/palmieri/fulvia/32bit/sage-4.6.alpha0/local/include   -c -o
 cliquer.o cliquer.c
 > gcc  -O2  -g  -Wall -fomit-frame-pointer -funroll-loops -c -fPIC
 -I/home/palmieri/fulvia/32bit/sage-4.6.alpha0/local/include   -c -o
 graph.o graph.c
 > gcc  -O2  -g  -Wall -fomit-frame-pointer -funroll-loops -c -fPIC
 -I/home/palmieri/fulvia/32bit/sage-4.6.alpha0/local/include   -c -o
 reorder.o reorder.c
 > gcc  -L/home/palmieri/fulvia/32bit/sage-4.6.alpha0/local/lib  -shared
 -Wl,-soname,libcliquer.so -o libcliquer.so cl.o cliquer.o graph.o
 reorder.o
 > ld: warning: option -o appears more than once, first setting taken
 > ld: fatal: file libcliquer.so: unknown file type
 > ld: fatal: File processing errors. No output written to libcliquer.so
 > collect2: ld returned 1 exit status
 > make: *** [cl] Error 1
 > Failed to compile cliquer... exiting
 > }}}
 > Or did I do something stupid?

 Em, this is odd. On !OpenSolaris I get the following in 32-bit mode.

 I was pretty sure I'd checked this on SPARC too.
 {{{
 gcc  -O2  -g  -Wall -fomit-frame-pointer -funroll-loops -c -fPIC
 -DENABLE_LONG_OPTIONS -o cl.o -c cl.c
 gcc  -O2  -g  -Wall -fomit-frame-pointer -funroll-loops -c -fPIC
 -I/export/home/drkirkby/sage-4.6.alpha0/local/include   -c -o cliquer.o
 cliquer.c
 gcc  -O2  -g  -Wall -fomit-frame-pointer -funroll-loops -c -fPIC
 -I/export/home/drkirkby/sage-4.6.alpha0/local/include   -c -o graph.o
 graph.c
 gcc  -O2  -g  -Wall -fomit-frame-pointer -funroll-loops -c -fPIC
 -I/export/home/drkirkby/sage-4.6.alpha0/local/include   -c -o reorder.o
 reorder.c
 gcc  -L/export/home/drkirkby/sage-4.6.alpha0/local/lib  -shared
 -Wl,-soname,libcliquer.so -o libcliquer.so cl.o cliquer.o graph.o
 reorder.o

 real    0m1.760s
 user    0m1.661s
 sys     0m0.083s
 Successfully installed cliquer-1.2.p7
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9871#comment:16>
Sage <http://www.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.

Reply via email to