|
From: Rich C. <rc...@wi...> - 2011-05-09 04:13:00
|
Nightly build on macbook ( Darwin 9.8.0 i386 ) Started at 2011-05-08 23:05:00 CDT Ended at 2011-05-08 23:12:50 CDT Results differ from 24 hours ago Checking out valgrind source tree ... done Configuring valgrind ... done Building valgrind ... failed Last 20 lines of verbose log follow echo mv -f .deps/libreplacemalloc_toolpreload_x86_darwin_a-vg_replace_malloc.Tpo .deps/libreplacemalloc_toolpreload_x86_darwin_a-vg_replace_malloc.Po rm -f libreplacemalloc_toolpreload-x86-darwin.a /usr/bin/ar cru libreplacemalloc_toolpreload-x86-darwin.a libreplacemalloc_toolpreload_x86_darwin_a-vg_replace_malloc.o ranlib libreplacemalloc_toolpreload-x86-darwin.a gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../include -I../VEX/pub -DVGA_x86=1 -DVGO_darwin=1 -DVGP_x86_darwin=1 -I../coregrind -DVG_LIBDIR="\"/Users/minime/src/vg/nightly/valgrind-new/Inst/lib/valgrind"\" -DVG_PLATFORM="\"x86-darwin\"" -arch i386 -O2 -g -Wall -Wmissing-prototypes -Wshadow -Wpointer-arith -Wstrict-prototypes -Wmissing-declarations -Wno-format-zero-length -fno-strict-aliasing -mmacosx-version-min=10.5 -fno-stack-protector -fno-pic -fno-PIC -Wno-long-long -Wno-pointer-sign -fno-stack-protector -MT valgrind-launcher-darwin.o -MD -MP -MF .deps/valgrind-launcher-darwin.Tpo -c -o valgrind-launcher-darwin.o `test -f 'launcher-darwin.c' || echo './'`launcher-darwin.c mv -f .deps/valgrind-launcher-darwin.Tpo .deps/valgrind-launcher-darwin.Po gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../include -I../VEX/pub -DVGA_x86=1 -DVGO_darwin=1 -DVGP_x86_darwin=1 -I../coregrind -DVG_LIBDIR="\"/Users/minime/src/vg/nightly/valgrind-new/Inst/lib/valgrind"\" -DVG_PLATFORM="\"x86-darwin\"" -arch i386 -O2 -g -Wall -Wmissing-prototypes -Wshadow -Wpointer-arith -Wstrict-prototypes -Wmissing-declarations -Wno-format-zero-length -fno-strict-aliasing -mmacosx-version-min=10.5 -fno-stack-protector -fno-pic -fno-PIC -Wno-long-long -Wno-pointer-sign -fno-stack-protector -MT valgrind-m_debuglog.o -MD -MP -MF .deps/valgrind-m_debuglog.Tpo -c -o valgrind-m_debuglog.o `test -f 'm_debuglog.c' || echo './'`m_debuglog.c mv -f .deps/valgrind-m_debuglog.Tpo .deps/valgrind-m_debuglog.Po gcc -arch i386 -O2 -g -Wall -Wmissing-prototypes -Wshadow -Wpointer-arith -Wstrict-prototypes -Wmissing-declarations -Wno-format-zero-length -fno-strict-aliasing -mmacosx-version-min=10.5 -fno-stack-protector -fno-pic -fno-PIC -Wno-long-long -Wno-pointer-sign -fno-stack-protector -arch i386 -O2 -g -Wall -Wmissing-prototypes -Wshadow -Wpointer-arith -Wstrict-prototypes -Wmissing-declarations -Wno-format-zero-length -fno-strict-aliasing -mmacosx-version-min=10.5 -fno-stack-protector -fno-pic -fno-PIC -Wl,-read_only_relocs -Wl,suppress -o valgrind valgrind-launcher-darwin.o valgrind-m_debuglog.o gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../include -I../VEX/pub -DVGA_x86=1 -DVGO_darwin=1 -DVGP_x86_darwin=1 -I../coregrind -DVG_LIBDIR="\"/Users/minime/src/vg/nightly/valgrind-new/Inst/lib/valgrind"\" -DVG_PLATFORM="\"x86-darwin\"" -arch i386 -O2 -g -Wall -Wmissing-prototypes -Wshadow -Wpointer-arith -Wstrict-prototypes -Wmissing-declarations -Wno-format-zero-length -fno-strict-aliasing -mmacosx-version-min=10.5 -fno-stack-protector -fno-pic -fno-PIC -Wno-long-long -Wno-pointer-sign -fno-stack-protector -MT vgdb-vgdb.o -MD -MP -MF .deps/vgdb-vgdb.Tpo -c -o vgdb-vgdb.o `test -f 'vgdb.c' || echo './'`vgdb.c vgdb.c: In function 'map_vgdbshared': vgdb.c:199: warning: format '%ld' expects type 'long int', but argument 5 has type 'off_t' mv -f .deps/vgdb-vgdb.Tpo .deps/vgdb-vgdb.Po gcc -arch i386 -O2 -g -Wall -Wmissing-prototypes -Wshadow -Wpointer-arith -Wstrict-prototypes -Wmissing-declarations -Wno-format-zero-length -fno-strict-aliasing -mmacosx-version-min=10.5 -fno-stack-protector -fno-pic -fno-PIC -Wno-long-long -Wno-pointer-sign -fno-stack-protector -arch i386 -O2 -g -Wall -Wmissing-prototypes -Wshadow -Wpointer-arith -Wstrict-prototypes -Wmissing-declarations -Wno-format-zero-length -fno-strict-aliasing -mmacosx-version-min=10.5 -fno-stack-protector -fno-pic -fno-PIC -lpthread -o vgdb vgdb-vgdb.o ld: absolute addressing (perhaps -mdynamic-no-pic) used in _vmalloc from vgdb-vgdb.o not allowed in slidable image. Use '-read_only_relocs suppress' to enable text relocs collect2: ld returned 1 exit status make[3]: *** [vgdb] Error 1 make[2]: *** [all] Error 2 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 ================================================= == Results from 24 hours ago == ================================================= Checking out valgrind source tree ... done Configuring valgrind ... done Building valgrind ... failed Last 20 lines of verbose log follow echo mv -f .deps/libreplacemalloc_toolpreload_x86_darwin_a-vg_replace_malloc.Tpo .deps/libreplacemalloc_toolpreload_x86_darwin_a-vg_replace_malloc.Po rm -f libreplacemalloc_toolpreload-x86-darwin.a /usr/bin/ar cru libreplacemalloc_toolpreload-x86-darwin.a libreplacemalloc_toolpreload_x86_darwin_a-vg_replace_malloc.o ranlib libreplacemalloc_toolpreload-x86-darwin.a gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../include -I../VEX/pub -DVGA_x86=1 -DVGO_darwin=1 -DVGP_x86_darwin=1 -I../coregrind -DVG_LIBDIR="\"/Users/minime/src/vg/nightly/valgrind-old/Inst/lib/valgrind"\" -DVG_PLATFORM="\"x86-darwin\"" -arch i386 -O2 -g -Wall -Wmissing-prototypes -Wshadow -Wpointer-arith -Wstrict-prototypes -Wmissing-declarations -Wno-format-zero-length -fno-strict-aliasing -mmacosx-version-min=10.5 -fno-stack-protector -fno-pic -fno-PIC -Wno-long-long -Wno-pointer-sign -fno-stack-protector -MT valgrind-launcher-darwin.o -MD -MP -MF .deps/valgrind-launcher-darwin.Tpo -c -o valgrind-launcher-darwin.o `test -f 'launcher-darwin.c' || echo './'`launcher-darwin.c mv -f .deps/valgrind-launcher-darwin.Tpo .deps/valgrind-launcher-darwin.Po gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../include -I../VEX/pub -DVGA_x86=1 -DVGO_darwin=1 -DVGP_x86_darwin=1 -I../coregrind -DVG_LIBDIR="\"/Users/minime/src/vg/nightly/valgrind-old/Inst/lib/valgrind"\" -DVG_PLATFORM="\"x86-darwin\"" -arch i386 -O2 -g -Wall -Wmissing-prototypes -Wshadow -Wpointer-arith -Wstrict-prototypes -Wmissing-declarations -Wno-format-zero-length -fno-strict-aliasing -mmacosx-version-min=10.5 -fno-stack-protector -fno-pic -fno-PIC -Wno-long-long -Wno-pointer-sign -fno-stack-protector -MT valgrind-m_debuglog.o -MD -MP -MF .deps/valgrind-m_debuglog.Tpo -c -o valgrind-m_debuglog.o `test -f 'm_debuglog.c' || echo './'`m_debuglog.c mv -f .deps/valgrind-m_debuglog.Tpo .deps/valgrind-m_debuglog.Po gcc -arch i386 -O2 -g -Wall -Wmissing-prototypes -Wshadow -Wpointer-arith -Wstrict-prototypes -Wmissing-declarations -Wno-format-zero-length -fno-strict-aliasing -mmacosx-version-min=10.5 -fno-stack-protector -fno-pic -fno-PIC -Wno-long-long -Wno-pointer-sign -fno-stack-protector -arch i386 -O2 -g -Wall -Wmissing-prototypes -Wshadow -Wpointer-arith -Wstrict-prototypes -Wmissing-declarations -Wno-format-zero-length -fno-strict-aliasing -mmacosx-version-min=10.5 -fno-stack-protector -fno-pic -fno-PIC -Wl,-read_only_relocs -Wl,suppress -o valgrind valgrind-launcher-darwin.o valgrind-m_debuglog.o gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../include -I../VEX/pub -DVGA_x86=1 -DVGO_darwin=1 -DVGP_x86_darwin=1 -I../coregrind -DVG_LIBDIR="\"/Users/minime/src/vg/nightly/valgrind-old/Inst/lib/valgrind"\" -DVG_PLATFORM="\"x86-darwin\"" -arch i386 -O2 -g -Wall -Wmissing-prototypes -Wshadow -Wpointer-arith -Wstrict-prototypes -Wmissing-declarations -Wno-format-zero-length -fno-strict-aliasing -mmacosx-version-min=10.5 -fno-stack-protector -fno-pic -fno-PIC -Wno-long-long -Wno-pointer-sign -fno-stack-protector -MT vgdb-vgdb.o -MD -MP -MF .deps/vgdb-vgdb.Tpo -c -o vgdb-vgdb.o `test -f 'vgdb.c' || echo './'`vgdb.c vgdb.c: In function 'map_vgdbshared': vgdb.c:199: warning: format '%ld' expects type 'long int', but argument 5 has type 'off_t' mv -f .deps/vgdb-vgdb.Tpo .deps/vgdb-vgdb.Po gcc -arch i386 -O2 -g -Wall -Wmissing-prototypes -Wshadow -Wpointer-arith -Wstrict-prototypes -Wmissing-declarations -Wno-format-zero-length -fno-strict-aliasing -mmacosx-version-min=10.5 -fno-stack-protector -fno-pic -fno-PIC -Wno-long-long -Wno-pointer-sign -fno-stack-protector -arch i386 -O2 -g -Wall -Wmissing-prototypes -Wshadow -Wpointer-arith -Wstrict-prototypes -Wmissing-declarations -Wno-format-zero-length -fno-strict-aliasing -mmacosx-version-min=10.5 -fno-stack-protector -fno-pic -fno-PIC -lpthread -o vgdb vgdb-vgdb.o ld: absolute addressing (perhaps -mdynamic-no-pic) used in _vmalloc from vgdb-vgdb.o not allowed in slidable image. Use '-read_only_relocs suppress' to enable text relocs collect2: ld returned 1 exit status make[3]: *** [vgdb] Error 1 make[2]: *** [all] Error 2 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 ================================================= == Difference between 24 hours ago and now == ================================================= *** old.short Sun May 8 23:09:06 2011 --- new.short Sun May 8 23:12:50 2011 *************** *** 10,17 **** ranlib libreplacemalloc_toolpreload-x86-darwin.a ! gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../include -I../VEX/pub -DVGA_x86=1 -DVGO_darwin=1 -DVGP_x86_darwin=1 -I../coregrind -DVG_LIBDIR="\"/Users/minime/src/vg/nightly/valgrind-old/Inst/lib/valgrind"\" -DVG_PLATFORM="\"x86-darwin\"" -arch i386 -O2 -g -Wall -Wmissing-prototypes -Wshadow -Wpointer-arith -Wstrict-prototypes -Wmissing-declarations -Wno-format-zero-length -fno-strict-aliasing -mmacosx-version-min=10.5 -fno-stack-protector -fno-pic -fno-PIC -Wno-long-long -Wno-pointer-sign -fno-stack-protector -MT valgrind-launcher-darwin.o -MD -MP -MF .deps/valgrind-launcher-darwin.Tpo -c -o valgrind-launcher-darwin.o `test -f 'launcher-darwin.c' || echo './'`launcher-darwin.c mv -f .deps/valgrind-launcher-darwin.Tpo .deps/valgrind-launcher-darwin.Po ! gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../include -I../VEX/pub -DVGA_x86=1 -DVGO_darwin=1 -DVGP_x86_darwin=1 -I../coregrind -DVG_LIBDIR="\"/Users/minime/src/vg/nightly/valgrind-old/Inst/lib/valgrind"\" -DVG_PLATFORM="\"x86-darwin\"" -arch i386 -O2 -g -Wall -Wmissing-prototypes -Wshadow -Wpointer-arith -Wstrict-prototypes -Wmissing-declarations -Wno-format-zero-length -fno-strict-aliasing -mmacosx-version-min=10.5 -fno-stack-protector -fno-pic -fno-PIC -Wno-long-long -Wno-pointer-sign -fno-stack-protector -MT valgrind-m_debuglog.o -MD -MP -MF .deps/valgrind-m_debuglog.Tpo -c -o valgrind-m_debuglog.o `test -f 'm_debuglog.c' || echo './'`m_debuglog.c mv -f .deps/valgrind-m_debuglog.Tpo .deps/valgrind-m_debuglog.Po gcc -arch i386 -O2 -g -Wall -Wmissing-prototypes -Wshadow -Wpointer-arith -Wstrict-prototypes -Wmissing-declarations -Wno-format-zero-length -fno-strict-aliasing -mmacosx-version-min=10.5 -fno-stack-protector -fno-pic -fno-PIC -Wno-long-long -Wno-pointer-sign -fno-stack-protector -arch i386 -O2 -g -Wall -Wmissing-prototypes -Wshadow -Wpointer-arith -Wstrict-prototypes -Wmissing-declarations -Wno-format-zero-length -fno-strict-aliasing -mmacosx-version-min=10.5 -fno-stack-protector -fno-pic -fno-PIC -Wl,-read_only_relocs -Wl,suppress -o valgrind valgrind-launcher-darwin.o valgrind-m_debuglog.o ! gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../include -I../VEX/pub -DVGA_x86=1 -DVGO_darwin=1 -DVGP_x86_darwin=1 -I../coregrind -DVG_LIBDIR="\"/Users/minime/src/vg/nightly/valgrind-old/Inst/lib/valgrind"\" -DVG_PLATFORM="\"x86-darwin\"" -arch i386 -O2 -g -Wall -Wmissing-prototypes -Wshadow -Wpointer-arith -Wstrict-prototypes -Wmissing-declarations -Wno-format-zero-length -fno-strict-aliasing -mmacosx-version-min=10.5 -fno-stack-protector -fno-pic -fno-PIC -Wno-long-long -Wno-pointer-sign -fno-stack-protector -MT vgdb-vgdb.o -MD -MP -MF .deps/vgdb-vgdb.Tpo -c -o vgdb-vgdb.o `test -f 'vgdb.c' || echo './'`vgdb.c vgdb.c: In function 'map_vgdbshared': --- 10,17 ---- ranlib libreplacemalloc_toolpreload-x86-darwin.a ! gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../include -I../VEX/pub -DVGA_x86=1 -DVGO_darwin=1 -DVGP_x86_darwin=1 -I../coregrind -DVG_LIBDIR="\"/Users/minime/src/vg/nightly/valgrind-new/Inst/lib/valgrind"\" -DVG_PLATFORM="\"x86-darwin\"" -arch i386 -O2 -g -Wall -Wmissing-prototypes -Wshadow -Wpointer-arith -Wstrict-prototypes -Wmissing-declarations -Wno-format-zero-length -fno-strict-aliasing -mmacosx-version-min=10.5 -fno-stack-protector -fno-pic -fno-PIC -Wno-long-long -Wno-pointer-sign -fno-stack-protector -MT valgrind-launcher-darwin.o -MD -MP -MF .deps/valgrind-launcher-darwin.Tpo -c -o valgrind-launcher-darwin.o `test -f 'launcher-darwin.c' || echo './'`launcher-darwin.c mv -f .deps/valgrind-launcher-darwin.Tpo .deps/valgrind-launcher-darwin.Po ! gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../include -I../VEX/pub -DVGA_x86=1 -DVGO_darwin=1 -DVGP_x86_darwin=1 -I../coregrind -DVG_LIBDIR="\"/Users/minime/src/vg/nightly/valgrind-new/Inst/lib/valgrind"\" -DVG_PLATFORM="\"x86-darwin\"" -arch i386 -O2 -g -Wall -Wmissing-prototypes -Wshadow -Wpointer-arith -Wstrict-prototypes -Wmissing-declarations -Wno-format-zero-length -fno-strict-aliasing -mmacosx-version-min=10.5 -fno-stack-protector -fno-pic -fno-PIC -Wno-long-long -Wno-pointer-sign -fno-stack-protector -MT valgrind-m_debuglog.o -MD -MP -MF .deps/valgrind-m_debuglog.Tpo -c -o valgrind-m_debuglog.o `test -f 'm_debuglog.c' || echo './'`m_debuglog.c mv -f .deps/valgrind-m_debuglog.Tpo .deps/valgrind-m_debuglog.Po gcc -arch i386 -O2 -g -Wall -Wmissing-prototypes -Wshadow -Wpointer-arith -Wstrict-prototypes -Wmissing-declarations -Wno-format-zero-length -fno-strict-aliasing -mmacosx-version-min=10.5 -fno-stack-protector -fno-pic -fno-PIC -Wno-long-long -Wno-pointer-sign -fno-stack-protector -arch i386 -O2 -g -Wall -Wmissing-prototypes -Wshadow -Wpointer-arith -Wstrict-prototypes -Wmissing-declarations -Wno-format-zero-length -fno-strict-aliasing -mmacosx-version-min=10.5 -fno-stack-protector -fno-pic -fno-PIC -Wl,-read_only_relocs -Wl,suppress -o valgrind valgrind-launcher-darwin.o valgrind-m_debuglog.o ! gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../include -I../VEX/pub -DVGA_x86=1 -DVGO_darwin=1 -DVGP_x86_darwin=1 -I../coregrind -DVG_LIBDIR="\"/Users/minime/src/vg/nightly/valgrind-new/Inst/lib/valgrind"\" -DVG_PLATFORM="\"x86-darwin\"" -arch i386 -O2 -g -Wall -Wmissing-prototypes -Wshadow -Wpointer-arith -Wstrict-prototypes -Wmissing-declarations -Wno-format-zero-length -fno-strict-aliasing -mmacosx-version-min=10.5 -fno-stack-protector -fno-pic -fno-PIC -Wno-long-long -Wno-pointer-sign -fno-stack-protector -MT vgdb-vgdb.o -MD -MP -MF .deps/vgdb-vgdb.Tpo -c -o vgdb-vgdb.o `test -f 'vgdb.c' || echo './'`vgdb.c vgdb.c: In function 'map_vgdbshared': Congratulations, all tests passed! |
|
From: Philippe W. <phi...@sk...> - 2011-05-09 18:52:47
|
I see vgdb fails to link as indicated below. I have no idea what could be the cause of the below. vgdb is a normal executable (so e.g. it can and uses libc). Does someone has an idea what is wrong in the below ? > gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../include -I../VEX/pub -DVGA_x86=1 -DVGO_darwin=1 -DVGP_x86_darwin=1 -I../coregrind -DVG_LIBDIR="\"/Users/minime/src/vg/nightly/valgrind-new/Inst/lib/valgrind"\" > -DVG_PLATFORM="\"x86-darwin\"" -arch > i386 -O2 -g -Wall -Wmissing-prototypes -Wshadow -Wpointer-arith -Wstrict-prototypes -Wmissing-declarations -Wno-format-zero-length > -fno-strict-aliasing -mmacosx-version-min=10.5 -fno-stack-protector -fno-pic -fno-PIC -Wno-long-long -Wno-pointer-sign -fno-stack-protector > -MT vgdb-vgdb.o -MD -MP -MF .deps/vgdb-vgdb.Tpo -c -o vgdb-vgdb.o `test -f 'vgdb.c' || echo './'`vgdb.c > vgdb.c: In function 'map_vgdbshared': > vgdb.c:199: warning: format '%ld' expects type 'long int', but argument 5 has type 'off_t' > mv -f .deps/vgdb-vgdb.Tpo .deps/vgdb-vgdb.Po > gcc -arch > i386 -O2 -g -Wall -Wmissing-prototypes -Wshadow -Wpointer-arith -Wstrict-prototypes -Wmissing-declarations -Wno-format-zero-length > -fno-strict-aliasing -mmacosx-version-min=10.5 -fno-stack-protector -fno-pic -fno-PIC -Wno-long-long -Wno-pointer-sign -fno-stack-protector > -arch > i386 -O2 -g -Wall -Wmissing-prototypes -Wshadow -Wpointer-arith -Wstrict-prototypes -Wmissing-declarations -Wno-format-zero-length > -fno-strict-aliasing -mmacosx-version-min=10.5 -fno-stack-protector -fno-pic -fno-PIC -lpthread -o vgdb vgdb-vgdb.o > ld: absolute addressing (perhaps -mdynamic-no-pic) used in _vmalloc from vgdb-vgdb.o not allowed in slidable image. Use > '-read_only_relocs suppress' to enable text relocs > collect2: ld returned 1 exit status > make[3]: *** [vgdb] Error 1 > make[2]: *** [all] Error 2 > make[1]: *** [all-recursive] Error 1 > make: *** [all] Error 2 |
|
From: John R. <jr...@bi...> - 2011-05-09 19:40:38
|
>> gcc -arch >> i386 -O2 -g -Wall -Wmissing-prototypes -Wshadow -Wpointer-arith -Wstrict-prototypes -Wmissing-declarations -Wno-format-zero-length >> -fno-strict-aliasing -mmacosx-version-min=10.5 -fno-stack-protector -fno-pic -fno-PIC -Wno-long-long -Wno-pointer-sign -fno-stack-protector >> -arch >> i386 -O2 -g -Wall -Wmissing-prototypes -Wshadow -Wpointer-arith -Wstrict-prototypes -Wmissing-declarations -Wno-format-zero-length >> -fno-strict-aliasing -mmacosx-version-min=10.5 -fno-stack-protector -fno-pic -fno-PIC -lpthread -o vgdb vgdb-vgdb.o >> ld: absolute addressing (perhaps -mdynamic-no-pic) used in _vmalloc from vgdb-vgdb.o not allowed in slidable image. Use >> '-read_only_relocs suppress' to enable text relocs >> collect2: ld returned 1 exit status The conflict between "gcc ... -fno-pic -fno-PIC" and the message "ld: absolute addressing... not allowed..." suggests a mixup in flags to ld. What were the actual flags to ld? Run with "gcc -v", then re-run the last part with "collect2 -v" to see. (It is a bug that "gcc -v" does not forward the -v to collect2.) Or, run the whole thing under "strace -f -e execve gcc ...". -- |
|
From: Rich C. <rc...@wi...> - 2011-05-09 20:08:23
|
It looks like vgdb is trying to be compiled with non-position-independent code, viz -fno-pic, and the linker is pulling in a PIC object, making the linker flag the whole object PIC. Then the linker is objecting to the absolute address of _vmalloc. I'll see what I can find out. Rich On Mon, 9 May 2011 20:52:58 +0200 "Philippe Waroquiers" <phi...@sk...> wrote: > I see vgdb fails to link as indicated below. > I have no idea what could be the cause of the below. vgdb is a normal executable > (so e.g. it can and uses libc). > > Does someone has an idea what is wrong in the below ? > > > > > gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../include -I../VEX/pub -DVGA_x86=1 -DVGO_darwin=1 -DVGP_x86_darwin=1 -I../coregrind -DVG_LIBDIR="\"/Users/minime/src/vg/nightly/valgrind-new/Inst/lib/valgrind"\" > > -DVG_PLATFORM="\"x86-darwin\"" -arch > > i386 -O2 -g -Wall -Wmissing-prototypes -Wshadow -Wpointer-arith -Wstrict-prototypes -Wmissing-declarations -Wno-format-zero-length > > -fno-strict-aliasing -mmacosx-version-min=10.5 -fno-stack-protector -fno-pic -fno-PIC -Wno-long-long -Wno-pointer-sign -fno-stack-protector > > -MT vgdb-vgdb.o -MD -MP -MF .deps/vgdb-vgdb.Tpo -c -o vgdb-vgdb.o `test -f 'vgdb.c' || echo './'`vgdb.c > > vgdb.c: In function 'map_vgdbshared': > > vgdb.c:199: warning: format '%ld' expects type 'long int', but argument 5 has type 'off_t' > > mv -f .deps/vgdb-vgdb.Tpo .deps/vgdb-vgdb.Po > > gcc -arch > > i386 -O2 -g -Wall -Wmissing-prototypes -Wshadow -Wpointer-arith -Wstrict-prototypes -Wmissing-declarations -Wno-format-zero-length > > -fno-strict-aliasing -mmacosx-version-min=10.5 -fno-stack-protector -fno-pic -fno-PIC -Wno-long-long -Wno-pointer-sign -fno-stack-protector > > -arch > > i386 -O2 -g -Wall -Wmissing-prototypes -Wshadow -Wpointer-arith -Wstrict-prototypes -Wmissing-declarations -Wno-format-zero-length > > -fno-strict-aliasing -mmacosx-version-min=10.5 -fno-stack-protector -fno-pic -fno-PIC -lpthread -o vgdb vgdb-vgdb.o > > ld: absolute addressing (perhaps -mdynamic-no-pic) used in _vmalloc from vgdb-vgdb.o not allowed in slidable image. Use > > '-read_only_relocs suppress' to enable text relocs > > collect2: ld returned 1 exit status > > make[3]: *** [vgdb] Error 1 > > make[2]: *** [all] Error 2 > > make[1]: *** [all-recursive] Error 1 > > make: *** [all] Error 2 > -- Rich Coe rc...@wi... |
|
From: Julian S. <js...@ac...> - 2011-05-09 21:07:58
|
On Monday, May 09, 2011, Philippe Waroquiers wrote: > I see vgdb fails to link as indicated below. > I have no idea what could be the cause of the below. vgdb is a normal > executable (so e.g. it can and uses libc). > > Does someone has an idea what is wrong in the below ? Not exactly, but I can offer a some explanation and a suggestion. The main tool executables (memcheck-amd64-linux, etc) have strange constraints: no libc use, statically linked, alternate load address. Hence there are these "funny flags" in the build system for them. But there are also some "normal" programs, with no such constraints: "valgrind" (a small program which selects and starts the main tool exes), "no_op_client_for_valgrind" (a kludge for the AIX port; does nothing), and now "vgdb". Looking at coregrind/Makefile.am near line 67 .. and comparing with the neighbouring valgrind_ and no_op_client_for_valgrind_ above and below .. do you maybe need to add something like this: if VGCONF_PLATFORMS_INCLUDE_X86_DARWIN vgdb_LDFLAGS += -Wl,-read_only_relocs -Wl,suppress endif Looks like it is missing. Does adding it help? (Just a guess.) J |
|
From: Julian S. <js...@ac...> - 2011-05-09 21:35:05
|
On Monday, May 09, 2011, Julian Seward wrote: > if VGCONF_PLATFORMS_INCLUDE_X86_DARWIN > vgdb_LDFLAGS += -Wl,-read_only_relocs -Wl,suppress > endif > > Looks like it is missing. Does adding it help? Yeah, that makes it link I think. Committed as r11735. What I infer from this is that the macbook you are using is a 32-bit only machine -- is that correct? J |