Synopsis - Issue Tracker

Bug113 Editing

Title Build on 64 bit Linux fails
Created on 2006-10-13.08:44:09 by anonymous, last changed 2006-10-16.04:05:01 by stefan.
assigned to stefan priority normal
type compile error severity normal
components build system platform GNU/Linux
status closed resolution duplicate
depends on superseded by
View: bug96
Add Comment:
File
CC List:? anonymous, stefan

Messages
Author: anonymous Date: 2006-10-13.08:44:08
Build on 64 bit Linux fails.

(a) Here is the output from the config step, output from the build step see (b)

 python setup.py config --prefix=/users/dbnu017/user1/data/blueml/local/synopsis-0.8
running config
creating build
creating build/ctemp.linux-x86_64
creating build/ctemp.linux-x86_64/src
sh -c /users/dbnu017/user1/data/blueml/build/Synopsis-06-10-12/src/configure --prefix="/users/dbnu017/user1/data/blueml/local/synopsis-0.8" --with-python="/usr/bin/python"
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for ... /usr/bin/python
configure: creating ./config.status
config.status: creating Synopsis/PTree/GC.hh
config.status: creating Makefile
config.status: creating synopsis.py
config.status: creating Synopsis-uninstalled.pc
config.status: creating Synopsis.pc
sh -c /users/dbnu017/user1/data/blueml/build/Synopsis-06-10-12/src/Synopsis/gc/configure --prefix="/users/dbnu017/user1/data/blueml/local/synopsis-0.8" --with-python="/usr/bin/python"
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking GC version numbers... major=6 minor=6
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether gmake sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by gmake... GNU
checking dependency style of gcc... gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking for ar... ar
checking for ranlib... ranlib
checking for a BSD-compatible install... /usr/bin/install -c
checking whether to enable maintainer-specific portions of Makefiles... no
checking for thread model used by GCC... posix
checking for xlc... no
checking for dlopen in -ldl... yes
checking whether to build shared libraries... yes
checking which machine-dependent code should be used...
checking for ld used by GCC... /usr/x86_64-suse-linux/bin/ld
checking if the linker (/usr/x86_64-suse-linux/bin/ld) is GNU ld... yes
checking for /usr/x86_64-suse-linux/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependant libraries... file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )
checking command to parse /usr/bin/nm -B output... ok
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for file... /usr/bin/file
checking for ranlib... (cached) ranlib
checking for strip... strip
checking for objdir... .libs
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.lo... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking whether the linker (/usr/x86_64-suse-linux/bin/ld) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking whether -lc should be explicitly linked in... no
creating libtool
checking sys/dg_sys_info.h usability... no
checking sys/dg_sys_info.h presence... no
checking for sys/dg_sys_info.h... no
checking whether Solaris gcc optimization fix is necessary... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating include/Makefile
config.status: executing depfiles commands
config.status: executing default commands
creating build/temp.linux-x86_64-2.3
creating build/temp.linux-x86_64-2.3/Synopsis
creating build/temp.linux-x86_64-2.3/Synopsis/Parsers
creating build/temp.linux-x86_64-2.3/Synopsis/Parsers/Cpp
creating build/temp.linux-x86_64-2.3/Synopsis/Parsers/Cpp/ucpp
sh -c /users/dbnu017/user1/data/blueml/build/Synopsis-06-10-12/Synopsis/Parsers/Cpp/ucpp/configure --prefix="/users/dbnu017/user1/data/blueml/local/synopsis-0.8" --with-python="/usr/bin/python" --with-syn-cxx=/users/dbnu017/user1/data/blueml/build/Synopsis-06-10-12/build/ctemp.linux-x86_64/src
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for ... /usr/bin/python
configure: creating ./config.status
config.status: creating Makefile
config.status: creating synopsis.py
creating build/temp.linux-x86_64-2.3/Synopsis/Parsers/IDL
sh -c /users/dbnu017/user1/data/blueml/build/Synopsis-06-10-12/Synopsis/Parsers/IDL/configure --prefix="/users/dbnu017/user1/data/blueml/local/synopsis-0.8" --with-python="/usr/bin/python" --with-syn-cxx=/users/dbnu017/user1/data/blueml/build/Synopsis-06-10-12/build/ctemp.linux-x86_64/src
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking whether byte ordering is bigendian... no
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for char... yes
checking size of char... 1
checking for unsigned char... yes
checking size of unsigned char... 1
checking for bool... no
checking size of bool... 0
checking for short... yes
checking size of short... 2
checking for int... yes
checking size of int... 4
checking for long... yes
checking size of long... 8
checking for long long... yes
checking size of long long... 8
checking for float... yes
checking size of float... 4
checking for double... yes
checking size of double... 8
checking for long double... yes
checking size of long double... 16
checking for wchar_t... yes
checking size of wchar_t... 4
checking for void*... yes
checking size of void*... 8
checking for strcasecmp... yes
checking for ... /usr/bin/python
configure: creating ./config.status
config.status: creating Makefile
config.status: creating acconfig.h
creating build/temp.linux-x86_64-2.3/Synopsis/Parsers/C
sh -c /users/dbnu017/user1/data/blueml/build/Synopsis-06-10-12/Synopsis/Parsers/C/configure --prefix="/users/dbnu017/user1/data/blueml/local/synopsis-0.8" --with-python="/usr/bin/python" --with-syn-cxx=/users/dbnu017/user1/data/blueml/build/Synopsis-06-10-12/build/ctemp.linux-x86_64/src
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for ... /usr/bin/python
configure: creating ./config.status
config.status: creating Makefile
config.status: creating synopsis.py
creating build/temp.linux-x86_64-2.3/Synopsis/Parsers/Cxx
sh -c /users/dbnu017/user1/data/blueml/build/Synopsis-06-10-12/Synopsis/Parsers/Cxx/configure --prefix="/users/dbnu017/user1/data/blueml/local/synopsis-0.8" --with-python="/usr/bin/python" --with-syn-cxx=/users/dbnu017/user1/data/blueml/build/Synopsis-06-10-12/build/ctemp.linux-x86_64/src
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for ... /usr/bin/python
configure: creating ./config.status
config.status: creating Makefile
config.status: creating synopsis.py
creating build/temp.linux-x86_64-2.3/tests
sh -c /users/dbnu017/user1/data/blueml/build/Synopsis-06-10-12/tests/configure --prefix="/users/dbnu017/user1/data/blueml/local/synopsis-0.8" --with-python="/usr/bin/python" --with-syn-cxx="/users/dbnu017/user1/data/blueml/build/Synopsis-06-10-12/build/ctemp.linux-x86_64/src"
checking for g++... g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for ... /usr/bin/python
configure: creating ./config.status
config.status: creating Parsers/Python/synopsis.py
config.status: creating Parsers/C/synopsis.py
config.status: creating Parsers/Cpp/synopsis.py
config.status: creating Parsers/Cxx/synopsis.py
config.status: creating Parsers/IDL/synopsis.py
config.status: creating Cxx/Makefile
config.status: creating Processors/Linker/first/synopsis.py
config.status: creating Processors/Linker/second/synopsis.py
config.status: creating Processors/synopsis.py
config.status: creating QMTest/configuration
config.status: creating context
creating build/temp.linux-x86_64-2.3/doc
sh -c /users/dbnu017/user1/data/blueml/build/Synopsis-06-10-12/doc/configure --prefix="/users/dbnu017/user1/data/blueml/local/synopsis-0.8" --with-python="/usr/bin/python"
checking for ... /usr/bin/python
configure: creating ./config.status
config.status: creating Tutorial/Makefile
config.status: creating Manual/Makefile
config.status: creating Manual/synopsis.py
creating build/temp.linux-x86_64-2.3/sandbox
sh -c /users/dbnu017/user1/data/blueml/build/Synopsis-06-10-12/sandbox/configure --prefix="/users/dbnu017/user1/data/blueml/local/synopsis-0.8" --with-python="/usr/bin/python" --with-syn-cxx="/users/dbnu017/user1/data/blueml/build/Synopsis-06-10-12/build/ctemp.linux-x86_64/src"
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for ... /usr/bin/python
configure: creating ./config.status
config.status: creating wave/Makefile
config.status: creating wave/synopsis.py
config.status: creating bpl/Makefile

(b) Here is the output from the build step:

blueml@dbnu017{/users/dbnu017/user1/data/blueml/build/Synopsis-06-10-12} python setup.py build
running build
running build_py
creating build/lib.linux-x86_64-2.3
creating build/lib.linux-x86_64-2.3/Synopsis
copying Synopsis/import_processor.py -> build/lib.linux-x86_64-2.3/Synopsis
copying Synopsis/getoptions.py -> build/lib.linux-x86_64-2.3/Synopsis
copying Synopsis/Util.py -> build/lib.linux-x86_64-2.3/Synopsis
copying Synopsis/process.py -> build/lib.linux-x86_64-2.3/Synopsis
copying Synopsis/FileTree.py -> build/lib.linux-x86_64-2.3/Synopsis
copying Synopsis/Processor.py -> build/lib.linux-x86_64-2.3/Synopsis
copying Synopsis/__init__.py -> build/lib.linux-x86_64-2.3/Synopsis

<SNIP>

gcc -shared  allchblk.lo alloc.lo blacklst.lo checksums.lo dbg_mlc.lo dyn_load.lo finalize.lo gc_dlopen.lo gcj_mlc.lo headers.lo malloc.lo mallocx.lo mark.lo mark_rts.lo misc.lo new_hblk.lo obj_map.lo os_dep.lo pcr_interface.lo ptr_chck.lo real_malloc.lo reclaim.lo solaris_pthreads.lo solaris_threads.lo specific.lo stubborn.lo typd_mlc.lo backgraph.lo win32_threads.lo pthread_support.lo pthread_stop_world.lo darwin_stop_world.lo mach_dep.lo  -lpthread -ldl  -Wl,-soname -Wl,libgc.so.1 -o .libs/libgc.so.1.0.2
(cd .libs && rm -f libgc.so.1 && ln -s libgc.so.1.0.2 libgc.so.1)
(cd .libs && rm -f libgc.so && ln -s libgc.so.1.0.2 libgc.so)
ar cru .libs/libgc.a  allchblk.o alloc.o blacklst.o checksums.o dbg_mlc.o dyn_load.o finalize.o gc_dlopen.o gcj_mlc.o headers.o malloc.o mallocx.o mark.o mark_rts.o misc.o new_hblk.o obj_map.o os_dep.o pcr_interface.o ptr_chck.o real_malloc.o reclaim.o solaris_pthreads.o solaris_threads.o specific.o stubborn.o typd_mlc.o backgraph.o win32_threads.o pthread_support.o pthread_stop_world.o darwin_stop_world.o mach_dep.o
ranlib .libs/libgc.a
creating libgc.la
(cd .libs && rm -f libgc.la && ln -s ../libgc.la libgc.la)
g++ -shared  -o lib/libSynopsis.so Synopsis/Trace.o Synopsis/PTree/Node.o Synopsis/PTree/Encoding.o Synopsis/PTree/operations.o Synopsis/PTree/Atoms.o Synopsis/PTree/Lists.o Synopsis/PTree/generation.o Synopsis/PTree/Visitor.o Synopsis/PTree/Display.o Synopsis/PTree/Writer.o Synopsis/SymbolLookup/Symbol.o Synopsis/SymbolLookup/Scope.o Synopsis/SymbolLookup/Scopes.o Synopsis/SymbolLookup/Display.o Synopsis/SymbolLookup/Walker.o Synopsis/TypeAnalysis/Type.o Synopsis/TypeAnalysis/Kit.o Synopsis/TypeAnalysis/TypeEvaluator.o Synopsis/TypeAnalysis/ConstEvaluator.o Synopsis/TypeAnalysis/OverloadResolver.o Synopsis/Buffer.o Synopsis/Lexer.o Synopsis/SymbolFactory.o Synopsis/Parser.o Synopsis/gc/.libs/libgc.a  -pthread
/usr/lib64/gcc-lib/x86_64-suse-linux/3.3.3/../../../../x86_64-suse-linux/bin/ld: Synopsis/gc/.libs/libgc.a(malloc.o): relocation R_X86_64_32S can not be used when making a shared object; recompile with -fPIC
Synopsis/gc/.libs/libgc.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
gmake: *** [lib/libSynopsis.so] Error 1
History
Date User Action Args
2006-10-13 08:44:11anonymouscreate
2006-10-16 04:05:02stefansetstatus: new
assignedto: (no value)
superseder: + Fix build of gc/ subproject to be linkable into shared library on all platforms.
resolution: (no value)
nosy: + stefan