[MacPorts] #34222: Using apple-gcc42 on PPC Tiger/Mac OS X 10.4.11 produces ld error with -no_pie

MacPorts noreply at macports.org
Wed Apr 25 16:44:01 PDT 2012


#34222: Using apple-gcc42 on PPC Tiger/Mac OS X 10.4.11 produces ld error with
-no_pie
--------------------------------------+-------------------------------------
 Reporter:  Peter_Dyballa@…           |       Owner:  macports-tickets@…                   
     Type:  defect                    |      Status:  new                                  
 Priority:  Normal                    |   Milestone:                                       
Component:  ports                     |     Version:  2.0.4                                
 Keywords:                            |        Port:  apple-gcc42                          
--------------------------------------+-------------------------------------
 Using apple-gcc42 @5666.3, Revision 4 (lang) to build the NS variant of
 GNU Emacs 24.1.50 leads to this:

 {{{
 gcc-apple-4.2 -std=gnu99 -I/opt/local/include -L/opt/local/lib  -Demacs
 -DHAVE_CONFIG_H  -I.
 -I/Volumes/Mainz/Users/pete/Quellen/Emacs_CVS/emacs-24.1.50/src -I../lib
 -I/Volumes/Mainz/Users/pete/Quellen/Emacs_CVS/emacs-24.1.50/src/../lib
 -I/usr/X11R6/include     -I/opt/local/include/libxml2         -MMD -MF
 deps/.d -MP     -g -H -pipe -fPIC -fno-common -Os -mcpu=7450 -mtune=7450
 -faltivec  -fno-pie -prebind -framework AppKit -Xlinker -headerpad
 -Xlinker 6C8 -Wl,-bind_at_load -Wl,-t \
   -o temacs pre-crt0.o dispnew.o frame.o scroll.o xdisp.o menu.o  window.o
 charset.o coding.o category.o ccl.o character.o chartab.o bidi.o cm.o
 term.o terminal.o xfaces.o    emacs.o keyboard.o macros.o keymap.o
 sysdep.o buffer.o filelock.o insdel.o marker.o minibuf.o fileio.o dired.o
 cmds.o casetab.o casefiddle.o indent.o search.o regex.o undo.o alloc.o
 data.o doc.o editfns.o callint.o eval.o floatfns.o fns.o font.o print.o
 lread.o syntax.o unexmacosx.o bytecode.o process.o gnutls.o callproc.o
 region-cache.o sound.o atimer.o doprnt.o intervals.o textprop.o
 composite.o xml.o   fontset.o fringe.o image.o   nsterm.o nsfns.o nsmenu.o
 nsselect.o nsimage.o nsfont.o terminfo.o lastfile.o       ../lib/libgnu.a
 -L/opt/local/lib -lxml2    -lresolv  -lncurses         -lpthread
 ld: unknown option: -no_pie
 collect2: ld returned 1 exit status
 make[2]: *** [temacs] Error 1
 }}}

 The text "no_pie" is not contained in the GNU Emacs sources or any other
 with it supplied file. -fno-pie, although senseless on PowerPC, is
 introduced by the configure script and can be corrected. Which ld gets
 used is unclear to me, a few ld exist meanwhile:

 {{{
 /opt/local/bin/ld
 /opt/local/libexec/ld64/ld
 /usr/bin/ld
 }}}

 Further tests without -fno-pie and tries to determine which ld is used
 will be performed after sleep.

-- 
Ticket URL: <https://trac.macports.org/ticket/34222>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list