[ltt-dev] ust-0.12: relocation R_X86_64_PC32 against `__start ___markers_ptrs'
Mathieu Desnoyers
compudj at krystal.dyndns.org
Tue May 3 16:50:59 EDT 2011
* Jan Blunck (jblunck at infradead.org) wrote:
> I have a problem building ust-0.12 on RHEL5 and I'm too blind to spot
> the problem. It builds (and works fine) on SLES though. Any ideas?
>
> libtool: link: gcc -shared .libs/libust_la-marker.o .libs/libust_la-tracepoint.
> o .libs/libust_la-trace_event.o .libs/libust_la-channels.o .libs/libust_la-marke
> r-control.o .libs/libust_la-buffers.o .libs/libust_la-tracer.o .libs/libust_la-t
> racercore.o .libs/libust_la-serialize.o .libs/libust_la-tracectl.o .libs/libust_
> la-type-serializer.o -Wl,--whole-archive ../snprintf/.libs/libustsnprintf.a ../
> libustcomm/.libs/libustcomm.a -Wl,--no-whole-archive -lpthread -lrt -lurcu-bp
> -m64 -mtune=generic -Wl,-soname -Wl,libust.so.0 -o .libs/libust.so.0.0.0
> /usr/bin/ld: .libs/libust_la-marker.o: relocation R_X86_64_PC32 against `__start
> ___markers_ptrs' can not be used when making a shared object; recompile with -fP
I think we fixed that in the git HEAD. Can you try ?
Thanks,
Mathieu
> IC
> /usr/bin/ld: final link failed: Bad value
> collect2: ld returned 1 exit status
> make[2]: *** [libust.la] Error 1
> Memory limit set to 5144820KB
> Using BUILD_ROOT=/var/tmp/build-root
> Using BUILD_ARCH=x86_64:i686:i586:i486:i386
>
>
> ws6-136 started "build ust.spec" at Tue May 3 18:38:31 UTC 2011.
>
>
> processing specfile /local/jbu/OBS/home:jblunck:branches:devel:tools:lttng/ust/ust.spec ...
> running changelog2spec --target rpm --file /local/jbu/OBS/home:jblunck:branches:devel:tools:lttng/ust/ust.spec
> init_buildsystem --cachedir /var/cache/build --rpmlist /tmp/rpmlist.j3toOu /local/jbu/OBS/home:jblunck:branches:devel:tools:lttng/ust/ust.spec ...
> Warning: ignoring unsupported tag 'cbpreignore:'
> Warning: ignoring unsupported tag 'cbignore:'
> reordering...Build::Kiwi::findFallBackArchs() called too early to check prototype at /usr/lib/build/Build/Kiwi.pm line 95.
> cycle: libselinux -> mcstrans -> initscripts -> psmisc
> breaking dependency initscripts -> psmisc
> cycle: libselinux -> mcstrans -> initscripts -> coreutils -> findutils
> breaking dependency initscripts -> coreutils
> cycle: libselinux -> mcstrans -> initscripts -> shadow-utils
> breaking dependency initscripts -> shadow-utils
> cycle: libselinux -> mcstrans -> initscripts -> SysVinit
> breaking dependency initscripts -> SysVinit
> cycle: libselinux -> mcstrans -> initscripts -> udev -> MAKEDEV -> shadow-utils
> breaking dependency initscripts -> udev
> cycle: device-mapper -> libselinux -> mcstrans -> initscripts -> e2fsprogs
> breaking dependency initscripts -> e2fsprogs
> cycle: module-init-tools -> mkinitrd
> breaking dependency mkinitrd -> module-init-tools
> cycle: libselinux -> mcstrans -> initscripts -> module-init-tools -> mkinitrd -> util-linux -> pam -> shadow-utils
> breaking dependency mkinitrd -> util-linux
> cycle: libselinux -> mcstrans -> initscripts -> module-init-tools -> mkinitrd -> coreutils -> findutils
> breaking dependency mkinitrd -> coreutils
> cycle: libselinux -> mcstrans -> initscripts -> module-init-tools -> mkinitrd -> udev -> MAKEDEV -> shadow-utils
> breaking dependency mkinitrd -> udev
> cycle: device-mapper -> libselinux -> mcstrans -> initscripts -> module-init-tools -> mkinitrd
> breaking dependency mkinitrd -> device-mapper
> cycle: device-mapper -> libselinux -> mcstrans -> initscripts -> module-init-tools -> mkinitrd -> device-mapper-multipath -> kpartx
> breaking dependency mkinitrd -> device-mapper-multipath
> cycle: dmraid -> dmraid-events
> breaking dependency dmraid -> dmraid-events
> cycle: device-mapper -> libselinux -> mcstrans -> initscripts -> module-init-tools -> mkinitrd -> dmraid -> kpartx
> breaking dependency mkinitrd -> dmraid
> cycle: device-mapper -> libselinux -> mcstrans -> initscripts -> module-init-tools -> mkinitrd -> e2fsprogs
> breaking dependency mkinitrd -> e2fsprogs
> cycle: libselinux -> mcstrans -> initscripts -> module-init-tools -> mkinitrd -> findutils
> breaking dependency mkinitrd -> findutils
> cycle: initscripts -> module-init-tools -> mkinitrd
> breaking dependency mkinitrd -> initscripts
> cycle: device-mapper -> libselinux -> mcstrans -> initscripts -> module-init-tools -> mkinitrd -> kpartx
> breaking dependency mkinitrd -> kpartx
> cycle: libselinux -> mcstrans -> initscripts -> module-init-tools -> mkinitrd
> breaking dependency initscripts -> module-init-tools
> cycle: libselinux -> mcstrans -> initscripts -> util-linux -> pam -> shadow-utils
> breaking dependency util-linux -> pam
> cycle: libselinux -> mcstrans -> initscripts -> util-linux -> coreutils -> findutils
> breaking dependency util-linux -> coreutils
> cycle: e2fsprogs-libs -> device-mapper -> libselinux -> mcstrans -> initscripts -> util-linux
> breaking dependency util-linux -> e2fsprogs-libs
> cycle: libselinux -> mcstrans -> initscripts -> util-linux
> breaking dependency initscripts -> util-linux
> cycle: libselinux -> mcstrans -> initscripts -> net-tools
> breaking dependency mcstrans -> initscripts
> cycle: libselinux -> mcstrans
> breaking dependency mcstrans -> libselinux
> cycle: coreutils -> pam
> breaking dependency pam -> coreutils
> cycle: python -> coreutils -> pam -> cracklib
> breaking dependency pam -> cracklib
> cycle: sysklogd -> initscripts
> breaking dependency sysklogd -> initscripts
> cycle: rpm -> rpm-libs
> breaking dependency rpm -> rpm-libs
> done
> removing nis flags from /var/tmp/build-root/etc/nsswitch.conf...
> now finalizing build dir...
> cp: omitting directory `/local/jbu/OBS/home:jblunck:branches:devel:tools:lttng/ust/ust-0.12'
> Build::Kiwi::findFallBackArchs() called too early to check prototype at /usr/lib/build/Build/Kiwi.pm line 95.
> Build::Kiwi::findFallBackArchs() called too early to check prototype at /usr/lib/build/Build/Kiwi.pm line 95.
> Build::Kiwi::findFallBackArchs() called too early to check prototype at /usr/lib/build/Build/Kiwi.pm line 95.
> Build::Kiwi::findFallBackArchs() called too early to check prototype at /usr/lib/build/Build/Kiwi.pm line 95.
> -----------------------------------------------------------------
> I have the following modifications for ust.spec:
> -----------------------------------------------------------------
> ----- building ust.spec (user abuild)
> -----------------------------------------------------------------
> -----------------------------------------------------------------
> + exec rpmbuild -ba --define '_srcdefattr (-,root,root)' --eval %suse_insert_debug_package /usr/src/redhat/SOURCES/ust.spec
>
>
> Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.6266
> + umask 022
> + cd /usr/src/redhat/BUILD
> + cd /usr/src/redhat/BUILD
> + rm -rf ust-0.12
> + /usr/bin/bzip2 -dc /usr/src/redhat/SOURCES/ust-0.12.tar.bz2
> + tar -xf -
> + STATUS=0
> + '[' 0 -ne 0 ']'
> + cd ust-0.12
> ++ /usr/bin/id -u
> + '[' 399 = 0 ']'
> ++ /usr/bin/id -u
> + '[' 399 = 0 ']'
> + /bin/chmod -Rf a+rX,u+w,g-w,o-w .
> + echo 'Patch #1 (ust-cleanup.patch):'
> Patch #1 (ust-cleanup.patch):
> + patch -p1 -s
> + exit 0
> Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.6266
> + umask 022
> + cd /usr/src/redhat/BUILD
> + cd ust-0.12
> + CFLAGS='-O2 -g -m64 -mtune=generic'
> + export CFLAGS
> + CXXFLAGS='-O2 -g -m64 -mtune=generic'
> + export CXXFLAGS
> + FFLAGS='-O2 -g -m64 -mtune=generic'
> + export FFLAGS
> + ./configure --host=x86_64-redhat-linux-gnu --build=x86_64-redhat-linux-gnu --target=x86_64-redhat-linux --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info --disable-silent-rules --disable-dependency-tracking
> checking build system type... x86_64-redhat-linux-gnu
> checking host system type... x86_64-redhat-linux-gnu
> checking target system type... x86_64-redhat-linux-gnu
> checking for a BSD-compatible install... /usr/bin/install -c
> checking whether build environment is sane... yes
> checking for a thread-safe mkdir -p... /bin/mkdir -p
> checking for gawk... gawk
> checking whether make sets $(MAKE)... yes
> checking for x86_64-redhat-linux-gnu-gcc... no
> checking for gcc... gcc
> checking whether the C compiler works... yes
> checking for C compiler default output file name... a.out
> checking for suffix of executables...
> checking whether we are cross compiling... no
> 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 ISO C89... none needed
> checking for style of include used by make... GNU
> checking dependency style of gcc... none
> checking whether make sets $(MAKE)... (cached) yes
> checking for a sed that does not truncate output... /bin/sed
> checking for grep that handles long lines and -e... /bin/grep
> checking for egrep... /bin/grep -E
> checking for fgrep... /bin/grep -F
> checking for ld used by gcc... /usr/bin/ld
> checking if the linker (/usr/bin/ld) is GNU ld... yes
> checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
> checking the name lister (/usr/bin/nm -B) interface... BSD nm
> checking whether ln -s works... yes
> checking the maximum length of command line arguments... 98304
> checking whether the shell understands some XSI constructs... yes
> checking whether the shell understands "+="... yes
> checking for /usr/bin/ld option to reload object files... -r
> checking for x86_64-redhat-linux-gnu-objdump... no
> checking for objdump... objdump
> checking how to recognize dependent libraries... pass_all
> checking for x86_64-redhat-linux-gnu-ar... no
> checking for ar... ar
> checking for x86_64-redhat-linux-gnu-strip... no
> checking for strip... strip
> checking for x86_64-redhat-linux-gnu-ranlib... no
> checking for ranlib... ranlib
> checking command to parse /usr/bin/nm -B output from gcc object... ok
> checking how to run the C preprocessor... gcc -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 dlfcn.h... yes
> checking for objdir... .libs
> checking if gcc supports -fno-rtti -fno-exceptions... no
> checking for gcc option to produce PIC... -fPIC -DPIC
> checking if gcc PIC flag -fPIC -DPIC 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.o... (cached) yes
> checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
> checking whether -lc should be explicitly linked in... no
> checking dynamic linker characteristics... GNU/Linux ld.so
> checking how to hardcode library paths into programs... immediate
> checking whether stripping libraries is possible... yes
> checking if libtool supports shared libraries... yes
> checking whether to build shared libraries... yes
> checking whether to build static libraries... yes
> checking for inline... inline
> checking for stdlib.h... (cached) yes
> checking for GNU libc compatible malloc... yes
> checking for gettimeofday... yes
> checking for munmap... yes
> checking for socket... yes
> checking for strerror... yes
> checking for strtol... yes
> checking urcu-bp.h usability... yes
> checking urcu-bp.h presence... yes
> checking for urcu-bp.h... yes
> checking for synchronize_rcu in -lurcu-bp... yes
> checking for rcu_bp_before_fork in -lurcu-bp... yes
> checking whether cds_list_add is declared... yes
> checking library format for the host system... elf64-x86-64
> configure: creating ./config.status
> config.status: creating Makefile
> config.status: creating doc/Makefile
> config.status: creating doc/man/Makefile
> config.status: creating doc/info/Makefile
> config.status: creating include/Makefile
> config.status: creating libust/Makefile
> config.status: creating tests/Makefile
> config.status: creating tests/hello/Makefile
> config.status: creating tests/hello2/Makefile
> config.status: creating tests/basic/Makefile
> config.status: creating tests/basic_long/Makefile
> config.status: creating tests/fork/Makefile
> config.status: creating tests/simple_include/Makefile
> config.status: creating tests/snprintf/Makefile
> config.status: creating tests/test-nevents/Makefile
> config.status: creating tests/test-libustinstr-malloc/Makefile
> config.status: creating tests/dlopen/Makefile
> config.status: creating tests/same_line_marker/Makefile
> config.status: creating tests/trace_event/Makefile
> config.status: creating tests/tracepoint/Makefile
> config.status: creating tests/tracepoint/benchmark/Makefile
> config.status: creating tests/register_test/Makefile
> config.status: creating tests/libustctl_function_tests/Makefile
> config.status: creating libustinstr-malloc/Makefile
> config.status: creating libustfork/Makefile
> config.status: creating libustconsumer/Makefile
> config.status: creating ust-consumerd/Makefile
> config.status: creating ustctl/Makefile
> config.status: creating libustcomm/Makefile
> config.status: creating libustctl/Makefile
> config.status: creating snprintf/Makefile
> config.status: creating config.h
> config.status: executing depfiles commands
> config.status: executing libtool commands
> + make 'CFLAGS=-O2 -g -m64 -mtune=generic' -j 4
> make all-recursive
> make[1]: Entering directory `/usr/src/redhat/BUILD/ust-0.12'
> Making all in snprintf
> make[2]: Entering directory `/usr/src/redhat/BUILD/ust-0.12/snprintf'
> \
> # source='fflush.c' object='libustsnprintf_la-fflush.lo' libtool=yes
> \
> # source='fvwrite.c' object='libustsnprintf_la-fvwrite.lo' libtool=yes
> \
> # source='mbrtowc_sb.c' object='libustsnprintf_la-mbrtowc_sb.lo' libtool=yes
> \
> # source='snprintf.c' object='libustsnprintf_la-snprintf.lo' libtool=yes
> /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../libustcomm -DUST_COMPONENT="ust_snprintf" -fPIC -fno-strict-aliasing -O2 -g -m64 -mtune=generic -c -o libustsnprintf_la-fflush.lo `test -f 'fflush.c' || echo './'`fflush.c
> /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../libustcomm -DUST_COMPONENT="ust_snprintf" -fPIC -fno-strict-aliasing -O2 -g -m64 -mtune=generic -c -o libustsnprintf_la-fvwrite.lo `test -f 'fvwrite.c' || echo './'`fvwrite.c
> /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../libustcomm -DUST_COMPONENT="ust_snprintf" -fPIC -fno-strict-aliasing -O2 -g -m64 -mtune=generic -c -o libustsnprintf_la-snprintf.lo `test -f 'snprintf.c' || echo './'`snprintf.c
> /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../libustcomm -DUST_COMPONENT="ust_snprintf" -fPIC -fno-strict-aliasing -O2 -g -m64 -mtune=generic -c -o libustsnprintf_la-mbrtowc_sb.lo `test -f 'mbrtowc_sb.c' || echo './'`mbrtowc_sb.c
> libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../libustcomm -DUST_COMPONENT=ust_snprintf -fPIC -fno-strict-aliasing -O2 -g -m64 -mtune=generic -c fflush.c -fPIC -DPIC -o .libs/libustsnprintf_la-fflush.o
> libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../libustcomm -DUST_COMPONENT=ust_snprintf -fPIC -fno-strict-aliasing -O2 -g -m64 -mtune=generic -c snprintf.c -fPIC -DPIC -o .libs/libustsnprintf_la-snprintf.o
> libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../libustcomm -DUST_COMPONENT=ust_snprintf -fPIC -fno-strict-aliasing -O2 -g -m64 -mtune=generic -c fvwrite.c -fPIC -DPIC -o .libs/libustsnprintf_la-fvwrite.o
> libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../libustcomm -DUST_COMPONENT=ust_snprintf -fPIC -fno-strict-aliasing -O2 -g -m64 -mtune=generic -c mbrtowc_sb.c -fPIC -DPIC -o .libs/libustsnprintf_la-mbrtowc_sb.o
> libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../libustcomm -DUST_COMPONENT=ust_snprintf -fPIC -fno-strict-aliasing -O2 -g -m64 -mtune=generic -c fflush.c -o libustsnprintf_la-fflush.o >/dev/null 2>&1
> libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../libustcomm -DUST_COMPONENT=ust_snprintf -fPIC -fno-strict-aliasing -O2 -g -m64 -mtune=generic -c mbrtowc_sb.c -o libustsnprintf_la-mbrtowc_sb.o >/dev/null 2>&1
> libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../libustcomm -DUST_COMPONENT=ust_snprintf -fPIC -fno-strict-aliasing -O2 -g -m64 -mtune=generic -c snprintf.c -o libustsnprintf_la-snprintf.o >/dev/null 2>&1
> libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../libustcomm -DUST_COMPONENT=ust_snprintf -fPIC -fno-strict-aliasing -O2 -g -m64 -mtune=generic -c fvwrite.c -o libustsnprintf_la-fvwrite.o >/dev/null 2>&1
> \
> # source='vfprintf.c' object='libustsnprintf_la-vfprintf.lo' libtool=yes
> /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../libustcomm -DUST_COMPONENT="ust_snprintf" -fPIC -fno-strict-aliasing -O2 -g -m64 -mtune=generic -c -o libustsnprintf_la-vfprintf.lo `test -f 'vfprintf.c' || echo './'`vfprintf.c
> \
> # source='wsetup.c' object='libustsnprintf_la-wsetup.lo' libtool=yes
> /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../libustcomm -DUST_COMPONENT="ust_snprintf" -fPIC -fno-strict-aliasing -O2 -g -m64 -mtune=generic -c -o libustsnprintf_la-wsetup.lo `test -f 'wsetup.c' || echo './'`wsetup.c
> libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../libustcomm -DUST_COMPONENT=ust_snprintf -fPIC -fno-strict-aliasing -O2 -g -m64 -mtune=generic -c vfprintf.c -fPIC -DPIC -o .libs/libustsnprintf_la-vfprintf.o
> libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../libustcomm -DUST_COMPONENT=ust_snprintf -fPIC -fno-strict-aliasing -O2 -g -m64 -mtune=generic -c wsetup.c -fPIC -DPIC -o .libs/libustsnprintf_la-wsetup.o
> libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../libustcomm -DUST_COMPONENT=ust_snprintf -fPIC -fno-strict-aliasing -O2 -g -m64 -mtune=generic -c wsetup.c -o libustsnprintf_la-wsetup.o >/dev/null 2>&1
> libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../libustcomm -DUST_COMPONENT=ust_snprintf -fPIC -fno-strict-aliasing -O2 -g -m64 -mtune=generic -c vfprintf.c -o libustsnprintf_la-vfprintf.o >/dev/null 2>&1
> /bin/sh ../libtool --tag=CC --mode=link gcc -DUST_COMPONENT="ust_snprintf" -fPIC -fno-strict-aliasing -O2 -g -m64 -mtune=generic -no-undefined -static -o libustsnprintf.la libustsnprintf_la-fflush.lo libustsnprintf_la-fvwrite.lo libustsnprintf_la-mbrtowc_sb.lo libustsnprintf_la-snprintf.lo libustsnprintf_la-vfprintf.lo libustsnprintf_la-wsetup.lo -lurcu-bp -lurcu-bp
> libtool: link: ar cru .libs/libustsnprintf.a libustsnprintf_la-fflush.o libustsnprintf_la-fvwrite.o libustsnprintf_la-mbrtowc_sb.o libustsnprintf_la-snprintf.o libustsnprintf_la-vfprintf.o libustsnprintf_la-wsetup.o
> libtool: link: ranlib .libs/libustsnprintf.a
> libtool: link: ( cd ".libs" && rm -f "libustsnprintf.la" && ln -s "../libustsnprintf.la" "libustsnprintf.la" )
> make[2]: Leaving directory `/usr/src/redhat/BUILD/ust-0.12/snprintf'
> Making all in libustcomm
> make[2]: Entering directory `/usr/src/redhat/BUILD/ust-0.12/libustcomm'
> \
> # source='ustcomm.c' object='libustcomm_la-ustcomm.lo' libtool=yes
> /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I../include -DUST_COMPONENT="libustcomm" -fPIC -fno-strict-aliasing -O2 -g -m64 -mtune=generic -c -o libustcomm_la-ustcomm.lo `test -f 'ustcomm.c' || echo './'`ustcomm.c
> libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I../include -DUST_COMPONENT=libustcomm -fPIC -fno-strict-aliasing -O2 -g -m64 -mtune=generic -c ustcomm.c -fPIC -DPIC -o .libs/libustcomm_la-ustcomm.o
> libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I../include -DUST_COMPONENT=libustcomm -fPIC -fno-strict-aliasing -O2 -g -m64 -mtune=generic -c ustcomm.c -o libustcomm_la-ustcomm.o >/dev/null 2>&1
> /bin/sh ../libtool --tag=CC --mode=link gcc -DUST_COMPONENT="libustcomm" -fPIC -fno-strict-aliasing -O2 -g -m64 -mtune=generic -no-undefined -static -o libustcomm.la libustcomm_la-ustcomm.lo -lurcu-bp -lurcu-bp
> libtool: link: ar cru .libs/libustcomm.a libustcomm_la-ustcomm.o
> libtool: link: ranlib .libs/libustcomm.a
> libtool: link: ( cd ".libs" && rm -f "libustcomm.la" && ln -s "../libustcomm.la" "libustcomm.la" )
> make[2]: Leaving directory `/usr/src/redhat/BUILD/ust-0.12/libustcomm'
> Making all in libustctl
> make[2]: Entering directory `/usr/src/redhat/BUILD/ust-0.12/libustctl'
> \
> # source='libustctl.c' object='libustctl_la-libustctl.lo' libtool=yes
> /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../libustcomm -DUST_COMPONENT="libustctl" -fno-strict-aliasing -O2 -g -m64 -mtune=generic -c -o libustctl_la-libustctl.lo `test -f 'libustctl.c' || echo './'`libustctl.c
> libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../libustcomm -DUST_COMPONENT=libustctl -fno-strict-aliasing -O2 -g -m64 -mtune=generic -c libustctl.c -fPIC -DPIC -o .libs/libustctl_la-libustctl.o
> libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../libustcomm -DUST_COMPONENT=libustctl -fno-strict-aliasing -O2 -g -m64 -mtune=generic -c libustctl.c -o libustctl_la-libustctl.o >/dev/null 2>&1
> /bin/sh ../libtool --tag=CC --mode=link gcc -DUST_COMPONENT="libustctl" -fno-strict-aliasing -O2 -g -m64 -mtune=generic -no-undefined -version-info 0:0:0 -o libustctl.la -rpath /usr/lib64 libustctl_la-libustctl.lo ../libustcomm/libustcomm.la -lurcu-bp -lurcu-bp
> libtool: link: gcc -shared .libs/libustctl_la-libustctl.o -Wl,--whole-archive ../libustcomm/.libs/libustcomm.a -Wl,--no-whole-archive -lurcu-bp -m64 -mtune=generic -Wl,-soname -Wl,libustctl.so.0 -o .libs/libustctl.so.0.0.0
> libtool: link: (cd ".libs" && rm -f "libustctl.so.0" && ln -s "libustctl.so.0.0.0" "libustctl.so.0")
> libtool: link: (cd ".libs" && rm -f "libustctl.so" && ln -s "libustctl.so.0.0.0" "libustctl.so")
> libtool: link: (cd .libs/libustctl.lax/libustcomm.a && ar x "/usr/src/redhat/BUILD/ust-0.12/libustctl/../libustcomm/.libs/libustcomm.a")
> libtool: link: ar cru .libs/libustctl.a libustctl_la-libustctl.o .libs/libustctl.lax/libustcomm.a/libustcomm_la-ustcomm.o
> libtool: link: ranlib .libs/libustctl.a
> libtool: link: rm -fr .libs/libustctl.lax
> libtool: link: ( cd ".libs" && rm -f "libustctl.la" && ln -s "../libustctl.la" "libustctl.la" )
> make[2]: Leaving directory `/usr/src/redhat/BUILD/ust-0.12/libustctl'
> Making all in libust
> make[2]: Entering directory `/usr/src/redhat/BUILD/ust-0.12/libust'
> \
> # source='marker.c' object='libust_la-marker.lo' libtool=yes
> \
> # source='tracepoint.c' object='libust_la-tracepoint.lo' libtool=yes
> \
> # source='trace_event.c' object='libust_la-trace_event.lo' libtool=yes
> \
> # source='channels.c' object='libust_la-channels.lo' libtool=yes
> /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../libustcomm -DUST_COMPONENT="libust" -fno-strict-aliasing -O2 -g -m64 -mtune=generic -c -o libust_la-marker.lo `test -f 'marker.c' || echo './'`marker.c
> /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../libustcomm -DUST_COMPONENT="libust" -fno-strict-aliasing -O2 -g -m64 -mtune=generic -c -o libust_la-tracepoint.lo `test -f 'tracepoint.c' || echo './'`tracepoint.c
> /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../libustcomm -DUST_COMPONENT="libust" -fno-strict-aliasing -O2 -g -m64 -mtune=generic -c -o libust_la-trace_event.lo `test -f 'trace_event.c' || echo './'`trace_event.c
> /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../libustcomm -DUST_COMPONENT="libust" -fno-strict-aliasing -O2 -g -m64 -mtune=generic -c -o libust_la-channels.lo `test -f 'channels.c' || echo './'`channels.c
> libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../libustcomm -DUST_COMPONENT=libust -fno-strict-aliasing -O2 -g -m64 -mtune=generic -c tracepoint.c -fPIC -DPIC -o .libs/libust_la-tracepoint.o
> libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../libustcomm -DUST_COMPONENT=libust -fno-strict-aliasing -O2 -g -m64 -mtune=generic -c marker.c -fPIC -DPIC -o .libs/libust_la-marker.o
> libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../libustcomm -DUST_COMPONENT=libust -fno-strict-aliasing -O2 -g -m64 -mtune=generic -c channels.c -fPIC -DPIC -o .libs/libust_la-channels.o
> libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../libustcomm -DUST_COMPONENT=libust -fno-strict-aliasing -O2 -g -m64 -mtune=generic -c trace_event.c -fPIC -DPIC -o .libs/libust_la-trace_event.o
> libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../libustcomm -DUST_COMPONENT=libust -fno-strict-aliasing -O2 -g -m64 -mtune=generic -c channels.c -o libust_la-channels.o >/dev/null 2>&1
> libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../libustcomm -DUST_COMPONENT=libust -fno-strict-aliasing -O2 -g -m64 -mtune=generic -c trace_event.c -o libust_la-trace_event.o >/dev/null 2>&1
> libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../libustcomm -DUST_COMPONENT=libust -fno-strict-aliasing -O2 -g -m64 -mtune=generic -c tracepoint.c -o libust_la-tracepoint.o >/dev/null 2>&1
> \
> # source='marker-control.c' object='libust_la-marker-control.lo' libtool=yes
> /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../libustcomm -DUST_COMPONENT="libust" -fno-strict-aliasing -O2 -g -m64 -mtune=generic -c -o libust_la-marker-control.lo `test -f 'marker-control.c' || echo './'`marker-control.c
> libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../libustcomm -DUST_COMPONENT=libust -fno-strict-aliasing -O2 -g -m64 -mtune=generic -c marker-control.c -fPIC -DPIC -o .libs/libust_la-marker-control.o
> \
> # source='buffers.c' object='libust_la-buffers.lo' libtool=yes
> /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../libustcomm -DUST_COMPONENT="libust" -fno-strict-aliasing -O2 -g -m64 -mtune=generic -c -o libust_la-buffers.lo `test -f 'buffers.c' || echo './'`buffers.c
> libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../libustcomm -DUST_COMPONENT=libust -fno-strict-aliasing -O2 -g -m64 -mtune=generic -c buffers.c -fPIC -DPIC -o .libs/libust_la-buffers.o
> buffers.c: In function 'unmap_buf_structs':
> buffers.c:586: warning: 'return' with a value, in function returning void
> libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../libustcomm -DUST_COMPONENT=libust -fno-strict-aliasing -O2 -g -m64 -mtune=generic -c marker-control.c -o libust_la-marker-control.o >/dev/null 2>&1
> \
> # source='tracer.c' object='libust_la-tracer.lo' libtool=yes
> /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../libustcomm -DUST_COMPONENT="libust" -fno-strict-aliasing -O2 -g -m64 -mtune=generic -c -o libust_la-tracer.lo `test -f 'tracer.c' || echo './'`tracer.c
> libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../libustcomm -DUST_COMPONENT=libust -fno-strict-aliasing -O2 -g -m64 -mtune=generic -c tracer.c -fPIC -DPIC -o .libs/libust_la-tracer.o
> libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../libustcomm -DUST_COMPONENT=libust -fno-strict-aliasing -O2 -g -m64 -mtune=generic -c marker.c -o libust_la-marker.o >/dev/null 2>&1
> \
> # source='tracercore.c' object='libust_la-tracercore.lo' libtool=yes
> /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../libustcomm -DUST_COMPONENT="libust" -fno-strict-aliasing -O2 -g -m64 -mtune=generic -c -o libust_la-tracercore.lo `test -f 'tracercore.c' || echo './'`tracercore.c
> libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../libustcomm -DUST_COMPONENT=libust -fno-strict-aliasing -O2 -g -m64 -mtune=generic -c tracercore.c -fPIC -DPIC -o .libs/libust_la-tracercore.o
> libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../libustcomm -DUST_COMPONENT=libust -fno-strict-aliasing -O2 -g -m64 -mtune=generic -c tracercore.c -o libust_la-tracercore.o >/dev/null 2>&1
> \
> # source='serialize.c' object='libust_la-serialize.lo' libtool=yes
> /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../libustcomm -DUST_COMPONENT="libust" -fno-strict-aliasing -O2 -g -m64 -mtune=generic -c -o libust_la-serialize.lo `test -f 'serialize.c' || echo './'`serialize.c
> libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../libustcomm -DUST_COMPONENT=libust -fno-strict-aliasing -O2 -g -m64 -mtune=generic -c serialize.c -fPIC -DPIC -o .libs/libust_la-serialize.o
> libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../libustcomm -DUST_COMPONENT=libust -fno-strict-aliasing -O2 -g -m64 -mtune=generic -c buffers.c -o libust_la-buffers.o >/dev/null 2>&1
> libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../libustcomm -DUST_COMPONENT=libust -fno-strict-aliasing -O2 -g -m64 -mtune=generic -c tracer.c -o libust_la-tracer.o >/dev/null 2>&1
> libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../libustcomm -DUST_COMPONENT=libust -fno-strict-aliasing -O2 -g -m64 -mtune=generic -c serialize.c -o libust_la-serialize.o >/dev/null 2>&1
> \
> # source='tracectl.c' object='libust_la-tracectl.lo' libtool=yes
> /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../libustcomm -DUST_COMPONENT="libust" -fno-strict-aliasing -O2 -g -m64 -mtune=generic -c -o libust_la-tracectl.lo `test -f 'tracectl.c' || echo './'`tracectl.c
> libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../libustcomm -DUST_COMPONENT=libust -fno-strict-aliasing -O2 -g -m64 -mtune=generic -c tracectl.c -fPIC -DPIC -o .libs/libust_la-tracectl.o
> \
> # source='type-serializer.c' object='libust_la-type-serializer.lo' libtool=yes
> /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../libustcomm -DUST_COMPONENT="libust" -fno-strict-aliasing -O2 -g -m64 -mtune=generic -c -o libust_la-type-serializer.lo `test -f 'type-serializer.c' || echo './'`type-serializer.c
> libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../libustcomm -DUST_COMPONENT=libust -fno-strict-aliasing -O2 -g -m64 -mtune=generic -c type-serializer.c -fPIC -DPIC -o .libs/libust_la-type-serializer.o
> libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../libustcomm -DUST_COMPONENT=libust -fno-strict-aliasing -O2 -g -m64 -mtune=generic -c type-serializer.c -o libust_la-type-serializer.o >/dev/null 2>&1
> libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../libustcomm -DUST_COMPONENT=libust -fno-strict-aliasing -O2 -g -m64 -mtune=generic -c tracectl.c -o libust_la-tracectl.o >/dev/null 2>&1
> /bin/sh ../libtool --tag=CC --mode=link gcc -DUST_COMPONENT="libust" -fno-strict-aliasing -O2 -g -m64 -mtune=generic -no-undefined -version-info 0:0:0 -o libust.la -rpath /usr/lib64 libust_la-marker.lo libust_la-tracepoint.lo libust_la-trace_event.lo libust_la-channels.lo libust_la-marker-control.lo libust_la-buffers.lo libust_la-tracer.lo libust_la-tracercore.lo libust_la-serialize.lo libust_la-tracectl.lo libust_la-type-serializer.lo -lpthread -lrt ../snprintf/libustsnprintf.la ../libustcomm/libustcomm.la -lurcu-bp -lurcu-bp
> libtool: link: gcc -shared .libs/libust_la-marker.o .libs/libust_la-tracepoint.o .libs/libust_la-trace_event.o .libs/libust_la-channels.o .libs/libust_la-marker-control.o .libs/libust_la-buffers.o .libs/libust_la-tracer.o .libs/libust_la-tracercore.o .libs/libust_la-serialize.o .libs/libust_la-tracectl.o .libs/libust_la-type-serializer.o -Wl,--whole-archive ../snprintf/.libs/libustsnprintf.a ../libustcomm/.libs/libustcomm.a -Wl,--no-whole-archive -lpthread -lrt -lurcu-bp -m64 -mtune=generic -Wl,-soname -Wl,libust.so.0 -o .libs/libust.so.0.0.0
> /usr/bin/ld: .libs/libust_la-marker.o: relocation R_X86_64_PC32 against `__start___markers_ptrs' can not be used when making a shared object; recompile with -fPIC
> /usr/bin/ld: final link failed: Bad value
> collect2: ld returned 1 exit status
> make[2]: *** [libust.la] Error 1
> make[2]: Leaving directory `/usr/src/redhat/BUILD/ust-0.12/libust'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/usr/src/redhat/BUILD/ust-0.12'
> make: *** [all] Error 2
> error: Bad exit status from /var/tmp/rpm-tmp.6266 (%build)
>
>
> RPM build errors:
> Bad exit status from /var/tmp/rpm-tmp.6266 (%build)
> _______________________________________________
> ltt-dev mailing list
> ltt-dev at lists.casi.polymtl.ca
> http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev
--
Mathieu Desnoyers
Operating System Efficiency R&D Consultant
EfficiOS Inc.
http://www.efficios.com
More information about the lttng-dev
mailing list