#14415: Singular link problems on OS X PPC with GCC 4.7.2
-------------------------------------------------------+--------------------
       Reporter:  jdemeyer                             |         Owner:  
jdemeyer    
           Type:  defect                               |        Status:  
needs_review
       Priority:  major                                |     Milestone:  
sage-5.9    
      Component:  packages: standard                   |    Resolution:         
     
       Keywords:                                       |   Work issues:         
     
Report Upstream:  Reported upstream. No feedback yet.  |     Reviewers:         
     
        Authors:  Jeroen Demeyer                       |     Merged in:         
     
   Dependencies:                                       |      Stopgaps:         
     
-------------------------------------------------------+--------------------
Changes (by jdemeyer):

  * upstream:  Not yet reported upstream; Will do shortly. => Reported
               upstream. No feedback yet.


Old description:

> When building singular on OS X 10.4 PPC using GCC 4.7.2 (#14378), there
> is a linker problem:
> {{{
> libtool -dynamic -twolevel_namespace -weak_reference_mismatches weak
> -undefined dynamic_lookup -single_module -o libsingular.dylib \
> iparith.o mpsr_Tok.o claptmpl.o \
> grammar.o scanner.o attrib.o blackbox.o eigenval_ip.o extra.o fehelp.o
> feOpt.o ipassign.o ipconv.o ipid.o iplib.o ipprint.o ipshell.o
> newstruct.o lists.o sdb.o fglm.o interpolation.o silink.o ssiLink.o
> s_buff.o subexpr.o janet.o wrapper.o libparse.o sing_win.o gms.o pcv.o
> maps_ip.o walk.o walk_ip.o cntrlc.o misc_ip.o calcSVD.o pipeLink.o
> Minor.o MinorProcessor.o MinorInterface.o bigintm.o pyobject_setup.o
> denom_list.o minpoly.o semaphore.o slInit_Static.o mpsr_Put.o
> mpsr_PutPoly.o mpsr_GetPoly.o mpsr_sl.o mpsr_Get.o mpsr_GetMisc.o
> mpsr_Error.o  ndbm.o sing_dbm.o -lkernel -L../kernel -L../factory
> -L../libfac
> -L/Users/buildbot/build/sage/moufang-1/moufang_binary/build/sage-5.9.beta4/local/lib
> -lsingfac -lsingcf -lntl -lreadline -lgmp -lomalloc
> /usr/bin/ld: for architecture ppc
> /usr/bin/ld: iparith.o has external relocation entries in non-writable
> section (__TEXT,__text) for symbols:
> restGPRx
> saveGPR
> libtool: internal link edit command failed
> }}}
>
> This can be fixed by using `$(CXX)` to link instead of `$(LD)`.
>
> '''spkg''':
> [http://boxen.math.washington.edu/home/jdemeyer/spkg/singular-3-1-5.p6.spkg]
> (patch added: [attachment:osx_link.patch])

New description:

 When building singular on OS X 10.4 PPC using GCC 4.7.2 (#14378), there is
 a linker problem:
 {{{
 libtool -dynamic -twolevel_namespace -weak_reference_mismatches weak
 -undefined dynamic_lookup -single_module -o libsingular.dylib \
 iparith.o mpsr_Tok.o claptmpl.o \
 grammar.o scanner.o attrib.o blackbox.o eigenval_ip.o extra.o fehelp.o
 feOpt.o ipassign.o ipconv.o ipid.o iplib.o ipprint.o ipshell.o newstruct.o
 lists.o sdb.o fglm.o interpolation.o silink.o ssiLink.o s_buff.o subexpr.o
 janet.o wrapper.o libparse.o sing_win.o gms.o pcv.o maps_ip.o walk.o
 walk_ip.o cntrlc.o misc_ip.o calcSVD.o pipeLink.o Minor.o MinorProcessor.o
 MinorInterface.o bigintm.o pyobject_setup.o denom_list.o minpoly.o
 semaphore.o slInit_Static.o mpsr_Put.o mpsr_PutPoly.o mpsr_GetPoly.o
 mpsr_sl.o mpsr_Get.o mpsr_GetMisc.o mpsr_Error.o  ndbm.o sing_dbm.o
 -lkernel -L../kernel -L../factory -L../libfac
 
-L/Users/buildbot/build/sage/moufang-1/moufang_binary/build/sage-5.9.beta4/local/lib
 -lsingfac -lsingcf -lntl -lreadline -lgmp -lomalloc
 /usr/bin/ld: for architecture ppc
 /usr/bin/ld: iparith.o has external relocation entries in non-writable
 section (__TEXT,__text) for symbols:
 restGPRx
 saveGPR
 libtool: internal link edit command failed
 }}}

 This can be fixed by using `$(CXX)` to link instead of `$(LD)`.

 '''spkg''':
 [http://boxen.math.washington.edu/home/jdemeyer/spkg/singular-3-1-5.p6.spkg]
 (patch added: [attachment:osx_link.patch])

 '''upstream''': [http://www.singular.uni-kl.de:8002/trac/ticket/481]

--

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/14415#comment:4>
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to