Ticket #9099: SPARC-reloaction-errors.txt

File SPARC-reloaction-errors.txt, 18.3 KB (added by drkirkby, 11 years ago)

Relocation errors seen on 64-bit SPARC (t2.math) when buidling with LD_OPTIONS=-Dreloc,detail

Line 
1Script started on Mon Aug 30 02:44:23 2010
2sh-3.00$ exit./sage -f ecl-10.2.1.p2
3Force installing ecl-10.2.1.p2
4Calling sage-spkg on ecl-10.2.1.p2
5Warning: Attempted to overwrite SAGE_ROOT environment variable
6Building Sage on Solaris in 64-bit mode
7Creating SAGE_LOCAL/lib/sage-64.txt since it does not exist
8Detected SAGE64 flag
9Building Sage on Solaris in 64-bit mode
10ecl-10.2.1.p2
11Machine:
12SunOS t2 5.10 Generic_141414-02 sun4v sparc SUNW,T5240
13Deleting directories from past builds of previous/current versions of ecl-10.2.1.p2
14Extracting package /rootpool2/local/kirkby/t2/64/sage-4.5.3.alpha2/spkg/standard/ecl-10.2.1.p2.spkg ...
15-rw-r--r--   1 kirkby   1093     4883286 Jul 29 16:37 /rootpool2/local/kirkby/t2/64/sage-4.5.3.alpha2/spkg/standard/ecl-10.2.1.p2.spkg
16ecl-10.2.1.p2/
17ecl-10.2.1.p2/patches/
18ecl-10.2.1.p2/SPKG.txt
19ecl-10.2.1.p2/.hgignore
20ecl-10.2.1.p2/src/
21ecl-10.2.1.p2/src/INSTALL
22ecl-10.2.1.p2/src/.gitignore
23ecl-10.2.1.p2/.hg/store/00manifest.i
24
25<snip>
26
27ecl-10.2.1.p2/.hg/store/00changelog.i
28ecl-10.2.1.p2/.hg/store/data/
29ecl-10.2.1.p2/.hg/store/data/patches/
30ecl-10.2.1.p2/.hg/store/data/patches/mach__dep.c.i
31ecl-10.2.1.p2/.hg/store/data/spkg-install.i
32ecl-10.2.1.p2/.hg/store/data/.hgignore.i
33ecl-10.2.1.p2/.hg/store/data/_s_p_k_g.txt.i
34ecl-10.2.1.p2/.hg/requires
35ecl-10.2.1.p2/.hg/undo.dirstate
36ecl-10.2.1.p2/.hg/00changelog.i
37ecl-10.2.1.p2/spkg-install
38Finished extraction
39****************************************************
40Host system
41uname -a:
42SunOS t2 5.10 Generic_141414-02 sun4v sparc SUNW,T5240
43****************************************************
44****************************************************
45CC Version
46gcc -v
47Using built-in specs.
48Target: sparc-sun-solaris2.10
49Configured with: ../gcc-4.4.1/configure --prefix=/usr/local/gcc-4.4.1-sun-linker/ --with-as=/usr/ccs/bin/as --without-gnu-as --with-ld=/usr/ccs/bin/ld --without-gnu-ld --enable-languages=c,c++,fortran --with-mpfr-include=/usr/local/include --with-mpfr-lib=/usr/local/lib --with-gmp-include=/usr/local/include --with-gmp-lib=/usr/local/lib CC=/usr/sfw/bin/gcc CXX=/usr/sfw/bin/g++
50Thread model: posix
51gcc version 4.4.1 (GCC)
52****************************************************
53Building a 64-bit version of ECL
54Code will be built with debugging information present. Set 'SAGE_DEBUG' to 'no' if you don't want that.
55Using CC=gcc
56Using CXX=g++
57Using FC=
58Using F77=
59Using SAGE_FORTRAN=/usr/local/gcc-4.4.1-sun-linker/bin/gfortran
60Using SAGE_FORTRAN_LIB=/usr/local/gcc-4.4.1-sun-linker/lib/sparcv9/libgfortran.so
61The following environment variables will be exported
62Using CFLAGS= -O2  -m64  -g  -Wall
63Using CXXFLAGS= -O2  -m64  -g  -Wall
64Using FCFLAGS= -O2  -m64  -g  -Wall
65Using F77FLAGS= -O2  -m64  -g  -Wall
66Using CPPFLAGS= -I/rootpool2/local/kirkby/t2/64/sage-4.5.3.alpha2/local/include
67Using LDFLAGS= -L/rootpool2/local/kirkby/t2/64/sage-4.5.3.alpha2/local/lib -m64
68Using ABI=64
69configure scripts and/or makefiles might override these later
70 
71Creating directory `build'
72Switching to directory `build' to continue configuration.
73checking build system type... ultrasparc-sun-solaris2.10
74checking host system type... ultrasparc-sun-solaris2.10
75checking for gcc... gcc
76checking for C compiler default output file name... a.out
77checking whether the C compiler works... yes
78checking whether we are cross compiling... no
79checking for suffix of executables...
80checking for suffix of object files... o
81checking whether we are using the GNU C compiler... yes
82checking whether gcc accepts -g... yes
83checking for gcc option to accept ISO C89... none needed
84checking whether we are using the GNU C++ compiler... yes
85checking whether g++ accepts -g... yes
86checking how to run the C preprocessor... gcc -E
87checking for ranlib... ranlib
88checking for a BSD-compatible install... /rootpool2/local/kirkby/t2/64/sage-4.5.3.alpha2/spkg/build/ecl-10.2.1.p2/src/src/gmp/install-sh -c
89checking whether ln -s works... yes
90checking whether make sets $(MAKE)... yes
91checking for ld flags when building shared libraries... -dy -G  -L/rootpool2/local/kirkby/t2/64/sage-4.5.3.alpha2/local/lib -m64
92checking for required libraries... -ldl
93checking for architecture... ultrAspArc
94checking for software type... sun4sol2 /
95checking for __thread local data... yes
96checking for install-info... /usr/sfw/bin/install-info
97checking for __gmpz_init in -lgmp... yes
98checking for __gmpz_init in -lgmp... (cached) yes
99checking for grep that handles long lines and -e... /usr/sfw/bin/ggrep
100checking for egrep... /usr/sfw/bin/ggrep -E
101checking for ANSI C header files... yes
102checking for sys/types.h... yes
103checking for sys/stat.h... yes
104checking for stdlib.h... yes
105checking for string.h... yes
106checking for memory.h... yes
107checking for strings.h... yes
108checking for inttypes.h... yes
109checking for stdint.h... yes
110checking for unistd.h... yes
111checking gmp.h usability... yes
112checking gmp.h presence... yes
113checking for gmp.h... yes
114checking gmp/gmp.h usability... no
115checking gmp/gmp.h presence... no
116checking for gmp/gmp.h... no
117checking GMP autoconf... "yes.yes.yes"
118checking for getpwnam in -lsun... no
119checking for library containing strerror... none required
120checking for GC_malloc in -lgc... yes
121checking whether we can use the existing Boehm-Weiser library ... yes
122checking for GC_malloc in -lgc... (cached) yes
123checking if we need to copy GC private headers ... checking if we use Boehm-Demers-Weiser precise garbage collector... yes
124checking for soname flags...
125checking for X... libraries , headers
126checking for dirent.h that defines DIR... yes
127checking for library containing opendir... none required
128checking for stdbool.h that conforms to C99... yes
129checking for _Bool... yes
130checking for ANSI C header files... (cached) yes
131checking whether time.h and sys/time.h may both be included... yes
132checking fcntl.h usability... yes
133checking fcntl.h presence... yes
134checking for fcntl.h... yes
135checking limits.h usability... yes
136checking limits.h presence... yes
137checking for limits.h... yes
138checking netdb.h usability... yes
139checking netdb.h presence... yes
140checking for netdb.h... yes
141checking netinet/in.h usability... yes
142checking netinet/in.h presence... yes
143checking for netinet/in.h... yes
144checking stddef.h usability... yes
145checking stddef.h presence... yes
146checking for stddef.h... yes
147checking for stdlib.h... (cached) yes
148checking for string.h... (cached) yes
149checking sys/param.h usability... yes
150checking sys/param.h presence... yes
151checking for sys/param.h... yes
152checking sys/socket.h usability... yes
153checking sys/socket.h presence... yes
154checking for sys/socket.h... yes
155checking sys/time.h usability... yes
156checking sys/time.h presence... yes
157checking for sys/time.h... yes
158checking for unistd.h... (cached) yes
159checking fenv.h usability... yes
160checking fenv.h presence... yes
161checking for fenv.h... yes
162checking sys/resource.h usability... yes
163checking sys/resource.h presence... yes
164checking for sys/resource.h... yes
165checking sys/utsname.h usability... yes
166checking sys/utsname.h presence... yes
167checking for sys/utsname.h... yes
168checking float.h usability... yes
169checking float.h presence... yes
170checking for float.h... yes
171checking pwd.h usability... yes
172checking pwd.h presence... yes
173checking for pwd.h... yes
174checking dlfcn.h usability... yes
175checking dlfcn.h presence... yes
176checking for dlfcn.h... yes
177checking link.h usability... yes
178checking link.h presence... yes
179checking for link.h... yes
180checking mach-o/dyld.h usability... no
181checking mach-o/dyld.h presence... no
182checking for mach-o/dyld.h... no
183checking ulimit.h usability... yes
184checking ulimit.h presence... yes
185checking for ulimit.h... yes
186checking dirent.h usability... yes
187checking dirent.h presence... yes
188checking for dirent.h... yes
189checking sys/ioctl.h usability... yes
190checking sys/ioctl.h presence... yes
191checking for sys/ioctl.h... yes
192checking sys/select.h usability... yes
193checking sys/select.h presence... yes
194checking for sys/select.h... yes
195checking sys/wait.h usability... yes
196checking sys/wait.h presence... yes
197checking for sys/wait.h... yes
198checking semaphore.h usability... yes
199checking semaphore.h presence... yes
200checking for semaphore.h... yes
201checking for an ANSI C-conforming const... yes
202checking for inline... inline
203checking for size_t... yes
204checking whether struct tm is in sys/time.h or time.h... time.h
205checking for working volatile... yes
206checking for ptrdiff_t... yes
207checking size of long long... 64
208checking whether byte ordering is bigendian... yes
209checking appropiate type for fixnums... long int
210checking for stdint.h... (cached) yes
211checking uint8_t type... uint8_t
212checking uint16_t type... uint16_t
213checking uint32_t type... uint32_t
214checking uint64_t type... uint64_t
215checking character sequence for end of line... lf
216checking for _longjmp... yes
217checking for ffi_call in -lffi... no
218/rootpool2/local/kirkby/t2/64/sage-4.5.3.alpha2/spkg/build/ecl-10.2.1.p2/src/src/configure: line 9916: test: =: unary operator expected
219checking whether we can dynamically build calls to C functions... no
220checking for code to detect FP exceptions... not available
221checking whether stack growns downwards... yes
222checking whether closedir returns void... no
223checking for error_at_line... no
224checking for pid_t... yes
225checking vfork.h usability... no
226checking vfork.h presence... no
227checking for vfork.h... no
228checking for fork... yes
229checking for vfork... yes
230checking for working fork... yes
231checking for working vfork... (cached) yes
232checking whether gcc needs -traditional... no
233checking for stdlib.h... (cached) yes
234checking for GNU libc compatible malloc... yes
235checking for working memcmp... yes
236checking for stdlib.h... (cached) yes
237checking for unistd.h... (cached) yes
238checking for getpagesize... yes
239checking for working mmap... yes
240checking for stdlib.h... (cached) yes
241checking for GNU libc compatible realloc... yes
242checking for sys/select.h... (cached) yes
243checking for sys/socket.h... (cached) yes
244checking types of arguments for select... int,fd_set *,struct timeval *
245checking return type of signal handlers... void
246checking whether lstat dereferences a symlink specified with a trailing slash... yes
247checking whether stat accepts an empty string... no
248checking for working strtod... yes
249checking for floor... yes
250checking for getcwd... yes
251checking for gethostbyaddr... no
252checking for gethostbyname... no
253checking for getpagesize... (cached) yes
254checking for memmove... yes
255checking for memset... yes
256checking for mkdir... yes
257checking for putenv... yes
258checking for socket... no
259checking for sqrt... yes
260checking for strcasecmp... yes
261checking for strchr... yes
262checking for strerror... yes
263checking for strtol... yes
264checking for nanosleep... no
265checking for alarm... yes
266checking for times... yes
267checking for select... yes
268checking for setenv... yes
269checking for putenv... (cached) yes
270checking for lstat... yes
271checking for mkstemp... yes
272checking for sigprocmask... yes
273checking for isatty... yes
274checking for tzset... yes
275checking for gettimeofday... yes
276checking for getrusage... yes
277checking for feenableexcept... no
278checking for expf... yes
279checking for logf... yes
280checking for sqrtf... yes
281checking for cosf... yes
282checking for sinf... yes
283checking for tanf... yes
284checking for sinhf... yes
285checking for coshf... yes
286checking for tanhf... yes
287checking for floorf... yes
288checking for ceilf... yes
289checking for fabsf... yes
290checking for frexpf... yes
291checking for ldexpf... yes
292checking for log1p... yes
293checking for log1pf... yes
294checking for log1pl... yes
295checking for copysign... yes
296checking for sched_yield... no
297checking for uname... yes
298checking for fseeko... yes
299checking sys/mman.h usability... yes
300checking sys/mman.h presence... yes
301checking for sys/mman.h... yes
302checking working environ... yes
303checking gc.h usability... yes
304checking gc.h presence... yes
305checking for gc.h... yes
306configure: creating ./config.status
307config.status: creating bare.lsp
308config.status: creating lsp/load.lsp
309config.status: creating clos/load.lsp
310config.status: creating cmp/load.lsp
311config.status: creating new-cmp/load.lsp
312config.status: creating ../Makefile
313config.status: WARNING:  '../Makefile.in' seems to ignore the --datarootdir setting
314config.status: creating Makefile
315config.status: creating c/Makefile
316config.status: creating doc/Makefile
317config.status: WARNING:  '/rootpool2/local/kirkby/t2/64/sage-4.5.3.alpha2/spkg/build/ecl-10.2.1.p2/src/src/doc/Makefile.in' seems to ignore the --datarootdir setting
318config.status: creating doc/ecl.man
319config.status: creating doc/ecl-config.man
320config.status: creating ecl/configpre.h
321config.status: creating bin/ecl-config.pre
322config.status: creating lsp/config.pre
323config.status: creating compile.pre
324config.status: creating cmp/cmpdefs.pre
325config.status: creating new-cmp/cmpdefs.pre
326config.status: creating ecl/config.h
327Configuration complete. To build ECL, issue make in this directory.
328cd build; make
329make[1]: Entering directory `/rootpool2/local/kirkby/t2/64/sage-4.5.3.alpha2/spkg/build/ecl-10.2.1.p2/src/build'
330cp /rootpool2/local/kirkby/t2/64/sage-4.5.3.alpha2/spkg/build/ecl-10.2.1.p2/src/src/util/gdbinit .gdbinit
331if (echo c | grep gmp); then \
332  cd gmp && make install && \
333  cd .. && mv include/gmp.h ecl/ && rmdir include &&  \
334  mv ./libgmp.a ./libeclgmp.a; \
335fi
336test -d ecl/gc || mkdir ecl/gc
337test -d ecl/gc/private || mkdir ecl/gc/private
338if (echo c | grep gc); then \
339  cd gc && make install && cd .. && \
340  cp -rf /rootpool2/local/kirkby/t2/64/sage-4.5.3.alpha2/spkg/build/ecl-10.2.1.p2/src/src/gc/include/private/*.h ecl/gc/private/ && \
341  mv libgc.a libeclgc.a; \
342fi
343sed -e 's,@ecldir\\@,/rootpool2/local/kirkby/t2/64/sage-4.5.3.alpha2/local/lib/ecl-10.2.1/,g' < lsp/config.pre > lsp/config.lsp
344sed -e 's,@ecldir\\@,"/rootpool2/local/kirkby/t2/64/sage-4.5.3.alpha2/local/lib/ecl-10.2.1/",g' \
345    -e 's,@libdir\\@,"/rootpool2/local/kirkby/t2/64/sage-4.5.3.alpha2/local/lib/",g' \
346    -e 's,@includedir\\@,"/rootpool2/local/kirkby/t2/64/sage-4.5.3.alpha2/local/include/",g' < cmp/cmpdefs.pre > cmp/cmpdefs.lsp
347test -d c/ecl || mkdir c/ecl
348sed 's,__declspec(dllimport),,g' /rootpool2/local/kirkby/t2/64/sage-4.5.3.alpha2/spkg/build/ecl-10.2.1.p2/src/src/h/external.h > c/ecl/external.h
349cp /rootpool2/local/kirkby/t2/64/sage-4.5.3.alpha2/spkg/build/ecl-10.2.1.p2/src/src/h/*.h ecl/
350cd c; make
351make[2]: Entering directory `/rootpool2/local/kirkby/t2/64/sage-4.5.3.alpha2/spkg/build/ecl-10.2.1.p2/src/build/c'
352cat /rootpool2/local/kirkby/t2/64/sage-4.5.3.alpha2/spkg/build/ecl-10.2.1.p2/src/src/c/symbols_list.h | \
353sed -e 's%{\([A-Z ]*.*".*"\),[^,]*,[ ]*NULL,.*}%{\1,NULL}%g' \
354    -e 's%{\([A-Z ]*.*".*"\),[^,]*,[ ]*\([^,]*\),.*}%{\1,"\2"}%g' \
355    -e 's%{NULL.*%{NULL,NULL}};%' > /rootpool2/local/kirkby/t2/64/sage-4.5.3.alpha2/spkg/build/ecl-10.2.1.p2/src/src/c/symbols_list2.h
356if test -f ../CROSS-DPP; then touch dpp; else \
357gcc -I/rootpool2/local/kirkby/t2/64/sage-4.5.3.alpha2/spkg/build/ecl-10.2.1.p2/src/src/c -I/rootpool2/local/kirkby/t2/64/sage-4.5.3.alpha2/spkg/build/ecl-10.2.1.p2/src/build -I./ /rootpool2/local/kirkby/t2/64/sage-4.5.3.alpha2/spkg/build/ecl-10.2.1.p2/src/src/c/dpp.c  -I/rootpool2/local/kirkby/t2/64/sage-4.5.3.alpha2/local/include  -O2  -m64  -g  -Wall  -fPIC  -Dsun4sol2 -o dpp ; \
358fi
359/rootpool2/local/kirkby/t2/64/sage-4.5.3.alpha2/spkg/build/ecl-10.2.1.p2/src/src/c/dpp.c: In function ‚Çÿput_declaration‚ÇÖ:
360/rootpool2/local/kirkby/t2/64/sage-4.5.3.alpha2/spkg/build/ecl-10.2.1.p2/src/src/c/dpp.c:678: warning: too few arguments for format
361/rootpool2/local/kirkby/t2/64/sage-4.5.3.alpha2/spkg/build/ecl-10.2.1.p2/src/src/c/dpp.c:680: warning: too many arguments for format
362debug:
363debug: collecting input relocations: section=.text, file=/usr/local/gcc-4.4.1-sun-linker/bin/../lib/gcc/sparc-sun-solaris2.10/4.4.1/sparcv9/crt1.o
364debug:          type                               offset             addend  section        symbol
365debug:     in R_SPARC_WDISP30                        0x1c                  0  .rela.text     atexit 
366debug:    out R_SPARC_JMP_SLOT                       0x1c                  0  .plt           atexit 
367debug:    act R_SPARC_WDISP30                        0x1c                     .text          atexit 
368
369<snip>
370
371debug:    act R_SPARC_64                           0x6590                     .data.rel.loca   
372debug:     in R_SPARC_64                           0x65a0             0xb5b8  .rela.data.rel <unknown> 
373debug:    act R_SPARC_64                           0x65a0                     .data.rel.loca   
374debug:     in R_SPARC_64                           0x65b0             0xb5c8  .rela.data.rel <unknown> 
375debug:    act R_SPARC_64                           0x65b0                     .data.rel.loca   
376debug:     in R_SPARC_64                           0x65b8             0xb5e8  .rela.data.rel <unknown> 
377debug:    act R_SPARC_64                           0x65b8                     .data.rel.loca   
378
379<snip>
380
381debug:     in R_SPARC_64                           0x65c0             0xb608  .rela.data.rel <unknown> 
382debug:    act R_SPARC_64                           0x65c0                     .data.rel.loca   
383debug:
384debug: creating output relocations
385debug:          type                               offset             addend  section        symbol
386debug:        R_SPARC_JMP_SLOT                0x10010f780                  0  .rela.plt      atexit 
387debug:        R_SPARC_JMP_SLOT                0x10010f7a0                  0  .rela.plt      exit 
388debug:        R_SPARC_JMP_SLOT                0x10010f7c0                  0  .rela.plt      _exit 
389debug:        R_SPARC_JMP_SLOT                0x10010f7e0                  0  .rela.plt      __deregister_frame_info 
390debug:        R_SPARC_JMP_SLOT                0x10010f800                  0  .rela.plt      __register_frame_info 
391debug:        R_SPARC_JMP_SLOT                0x10010f820                  0  .rela.plt      fprintf 
392debug:        R_SPARC_JMP_SLOT                0x10010f840                  0  .rela.plt      putc 
393debug:        R_SPARC_JMP_SLOT                0x10010f860                  0  .rela.plt      fwrite 
394debug:        R_SPARC_JMP_SLOT                0x10010f880                  0  .rela.plt      ungetc 
395debug:        R_SPARC_JMP_SLOT                0x10010f8a0                  0  .rela.plt      printf 
396debug:        R_SPARC_JMP_SLOT                0x10010f8c0                  0  .rela.plt      strcasecmp 
397debug:        R_SPARC_JMP_SLOT                0x10010f8e0                  0  .rela.plt      getc 
398debug:        R_SPARC_JMP_SLOT                0x10010f900                  0  .rela.plt      feof 
399debug:        R_SPARC_JMP_SLOT                0x10010f920                  0  .rela.plt      strcmp 
400
401etc - *thousands* more similar warnings.
402