zsh-users
 help / color / mirror / code / Atom feed
* Compile of Zsh 4.0.1 on NetBSD/sparc64 fails..
@ 2001-06-17 10:55 Will Andrews
  2001-06-17 14:26 ` Jason Beegan
  0 siblings, 1 reply; 3+ messages in thread
From: Will Andrews @ 2001-06-17 10:55 UTC (permalink / raw)
  To: zsh-users; +Cc: will, jtb

[.. please keep me on cc:, i'm not subscribed ..]

G'day,

I can't get zsh 4.0.1 (or 3.1.9) to compile, or more
specifically, link.  Sorry for the long lines:

% make
`complete.mdh' is up to date.
rm -f stamp-modobjs.tmp
gcc -c -I.  -DHAVE_CONFIG_H -Wall -Wno-implicit -Wmissing-prototypes -O2 -fpic -o utils.o utils.c utils.c: In function `gettempname':                                  
utils.c:1106: warning: cast to pointer from integer of different size                            
gcc -c -I.  -DHAVE_CONFIG_H -Wall -Wno-implicit -Wmissing-prototypes -O2 -fpic -o watch.o watch.c
echo '' builtin.o compat.o cond.o exec.o glob.o hashtable.o hist.o init.o input.o jobs.o lex.o linklist.o loop.o math.o mem.o module.o options.o params.o parse.o pattern.o prompt.o signals.o signames.o string.o subst.o text.o utils.o watch.o >> ../Src/stamp-modobjs.tmp
Updated `stamp-modobjs'.
rm -f libzsh-4.0.1.so
gcc  -s -Wl,-x -shared --whole-archive -o libzsh-4.0.1.so  `cat stamp-modobjs` -ltermcap -lm  -lc
hist.o: In function `herrflush':                                     
hist.o(.text+0x444): relocation truncated to fit: R_SPARC_GOT13 strin  
hist.o: In function `getsubsargs':
hist.o(.text+0x4fc): relocation truncated to fit: R_SPARC_GOT13 hsubr  
hist.o(.text+0x500): relocation truncated to fit: R_SPARC_GOT13 hsubl  
hist.o(.text+0x510): relocation truncated to fit: R_SPARC_GOT13 hsubr  
hist.o(.text+0x51c): relocation truncated to fit: R_SPARC_GOT13 hsubl  
hist.o(.text+0x548): relocation truncated to fit: R_SPARC_GOT13 LLC0   
hist.o: In function `histsubchar':
hist.o(.text+0x58c): relocation truncated to fit: R_SPARC_GOT13 isfirstch
hist.o(.text+0x5a8): relocation truncated to fit: R_SPARC_GOT13 hatchar    
hist.o(.text+0x5c4): relocation truncated to fit: R_SPARC_GOT13 defev    
hist.o(.text+0x614): relocation truncated to fit: R_SPARC_GOT13 hsubl   
hist.o(.text+0x624): relocation truncated to fit: R_SPARC_GOT13 hsubr   
hist.o(.text+0x63c): relocation truncated to fit: R_SPARC_GOT13 isfirstch
hist.o(.text+0x7d0): relocation truncated to fit: R_SPARC_GOT13 mev.36
hist.o(.text+0x7dc): relocation truncated to fit: R_SPARC_GOT13 hsubl
hist.o(.text+0x7e8): relocation truncated to fit: R_SPARC_GOT13 marg.37
hist.o(.text+0x928): relocation truncated to fit: R_SPARC_GOT13 LLC1
hist.o(.text+0xa44): relocation truncated to fit: R_SPARC_GOT13 marg.37
hist.o(.text+0xa74): relocation truncated to fit: R_SPARC_GOT13 defev
hist.o(.text+0xaa8): relocation truncated to fit: R_SPARC_GOT13 defev
hist.o(.text+0xaac): relocation truncated to fit: R_SPARC_GOT13 mev.36  
hist.o(.text+0xc7c): relocation truncated to fit: R_SPARC_GOT13 LLC2    
hist.o(.text+0xc84): relocation truncated to fit: R_SPARC_GOT13 defev
hist.o(.text+0xdf0): relocation truncated to fit: R_SPARC_GOT13 marg.37   
hist.o(.text+0xe0c): relocation truncated to fit: R_SPARC_GOT13 mev.36   
hist.o(.text+0xf58): relocation truncated to fit: R_SPARC_GOT13 LLC3    
hist.o(.text+0xf7c): relocation truncated to fit: R_SPARC_GOT13 marg.37  
hist.o(.text+0x1538): relocation truncated to fit: R_SPARC_GOT13 histdone  
hist.o(.text+0x1568): relocation truncated to fit: R_SPARC_GOT13 LLC4
hist.o(.text+0x158c): relocation truncated to fit: R_SPARC_GOT13 LLC5   
hist.o(.text+0x15b0): relocation truncated to fit: R_SPARC_GOT13 LLC6   
[...]

Log at http://www.physics.purdue.edu/~will/zsh-4.0.1.log ...

Incidentally, there are two patches in the NetBSD
pkgsrc/shells/zsh package which apparently solve this problem.
See:

http://cvsweb.netbsd.org/bsdweb.cgi/pkgsrc/shells/zsh/patches/patch-aa
http://cvsweb.netbsd.org/bsdweb.cgi/pkgsrc/shells/zsh/patches/patch-ab

Apparently both patches have been in that tree for ~4 years.  Does
anyone feel like merging them into mainstream zsh to get rid of them?

-- 
wca


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Compile of Zsh 4.0.1 on NetBSD/sparc64 fails..
  2001-06-17 10:55 Compile of Zsh 4.0.1 on NetBSD/sparc64 fails Will Andrews
@ 2001-06-17 14:26 ` Jason Beegan
  0 siblings, 0 replies; 3+ messages in thread
From: Jason Beegan @ 2001-06-17 14:26 UTC (permalink / raw)
  To: Will Andrews; +Cc: zsh-users, jtb


[....]
> G'day,
> 
> I can't get zsh 4.0.1 (or 3.1.9) to compile, or more
> specifically, link.  Sorry for the long lines:
> 
> % make
> `complete.mdh' is up to date.
> rm -f stamp-modobjs.tmp
> gcc -c -I.  -DHAVE_CONFIG_H -Wall -Wno-implicit -Wmissing-prototypes -O2 -fpic 
> -o utils.o utils.c utils.c: In function `gettempname':                         
>          
> utils.c:1106: warning: cast to pointer from integer of different size          
>                   
> gcc -c -I.  -DHAVE_CONFIG_H -Wall -Wno-implicit -Wmissing-prototypes -O2 -fpic 
> -o watch.o watch.c
> echo '' builtin.o compat.o cond.o exec.o glob.o hashtable.o hist.o init.o input
> .o jobs.o lex.o linklist.o loop.o math.o mem.o module.o options.o params.o pars
> e.o pattern.o prompt.o signals.o signames.o string.o subst.o text.o utils.o wat
> ch.o >> ../Src/stamp-modobjs.tmp
> Updated `stamp-modobjs'.
> rm -f libzsh-4.0.1.so
> gcc  -s -Wl,-x -shared --whole-archive -o libzsh-4.0.1.so  `cat stamp-modobjs` 
> -ltermcap -lm  -lc
> hist.o: In function `herrflush':                                     
> hist.o(.text+0x444): relocation truncated to fit: R_SPARC_GOT13 strin  
> hist.o: In function `getsubsargs':
> hist.o(.text+0x4fc): relocation truncated to fit: R_SPARC_GOT13 hsubr  
> hist.o(.text+0x500): relocation truncated to fit: R_SPARC_GOT13 hsubl  
[....]
> 
> Log at http://www.physics.purdue.edu/~will/zsh-4.0.1.log ...
> 
> Incidentally, there are two patches in the NetBSD
> pkgsrc/shells/zsh package which apparently solve this problem.
> See:
> 
> http://cvsweb.netbsd.org/bsdweb.cgi/pkgsrc/shells/zsh/patches/patch-aa
> http://cvsweb.netbsd.org/bsdweb.cgi/pkgsrc/shells/zsh/patches/patch-ab
> 
> Apparently both patches have been in that tree for ~4 years.  Does
> anyone feel like merging them into mainstream zsh to get rid of them?
> 
> -- 
> wca

patch-ab uses -fPIC instead of -fpic for generating relocatable code.
-fpic will not work for some architectures.  See the documentation
for gcc.

Actually, that patch is only a couple of weeks old (since zsh was
updated to 4.0.1 -- the older zsh-3.0.8 didn't use dynamically
loadable modules).  zsh-3.0.8 has been relocated to pkgsrc/shells/zsh3
for the moment.


Regards,

Jason Beegan


$NetBSD: patch-ab,v 1.4 2001/06/05 16:28:08 jtb Exp $

--- configure.orig	Fri Jun  1 14:52:49 2001
+++ configure
@@ -6771,7 +6771,7 @@
     DLLDARG=""
   fi
   if test -n "$GCC"; then
-    DLCFLAGS="${DLCFLAGS=-fpic}"
+    DLCFLAGS="${DLCFLAGS=-fPIC}"
   else
     case "$host_os" in
       hpux*)                 DLCFLAGS="${DLCFLAGS=+z}" ;;


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Compile of Zsh 4.0.1 on NetBSD/sparc64 fails..
       [not found] <200106171325.f5HDPHc07916@david.siemens.de>
@ 2001-06-17 17:26 ` Andrej Borsenkow
  0 siblings, 0 replies; 3+ messages in thread
From: Andrej Borsenkow @ 2001-06-17 17:26 UTC (permalink / raw)
  To: Jason Beegan; +Cc: Will Andrews, zsh-users

Jason Beegan wrote:

> 
> patch-ab uses -fPIC instead of -fpic for generating relocatable code.
> -fpic will not work for some architectures.  See the documentation
> for gcc.
> 


      If supported for the target machine, emit position-independent
      code, suitable for dynamic linking and avoiding any limit on the
      size of the global offset table.  This option makes a difference
      on the m68k, m88k, and the Sparc.


Assuming, that there is no run-time penalty (slower access or like) on 
other architectures, it makes sense.


-andrej


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2001-06-17 17:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-06-17 10:55 Compile of Zsh 4.0.1 on NetBSD/sparc64 fails Will Andrews
2001-06-17 14:26 ` Jason Beegan
     [not found] <200106171325.f5HDPHc07916@david.siemens.de>
2001-06-17 17:26 ` Andrej Borsenkow

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).