Opened 10 years ago

Closed 10 years ago

#481 closed bug (fixed)

Link problems on OS X PPC with GCC 4.7.2

Reported by: jdemeyer@… Owned by: somebody
Priority: minor Milestone: 3-2-0 and higher
Component: dontKnow Version: 3-1-5
Keywords: Cc:


When building singular on OS X 10.4 PPC using GCC 4.7.2, 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:
libtool: internal link edit command failed

This can be fixed by using $(CXX) to link instead of $(LD), see osx_link.patch

Downstream bug report (Sage): []

Attachments (1)

osx_link.patch (432 bytes) - added by jdemeyer@… 10 years ago.

Download all attachments as: .zip

Change History (2)

Changed 10 years ago by jdemeyer@…

Attachment: osx_link.patch added

comment:1 Changed 10 years ago by hannes

Resolution: fixed
Status: newclosed

Thanks, changed as supposed.

Note: See TracTickets for help on using tickets.