Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple build failures building release version 1.5.1-6 #1289

Closed
derekbruening opened this issue Nov 28, 2014 · 8 comments
Closed

Multiple build failures building release version 1.5.1-6 #1289

derekbruening opened this issue Nov 28, 2014 · 8 comments

Comments

@derekbruening
Copy link
Contributor

From luca.bar...@gmail.com on July 08, 2013 02:51:17

Here the result of a cmake followed by a plain make.

Scanning dependencies of target drconfig_copy_tgt
[ 1%] Generating bin64/drconfig
[ 1%] Built target drconfig_copy_tgt
Scanning dependencies of target api_headers
[ 1%] Generating include/dr_app.h
[ 1%] Built target api_headers
Scanning dependencies of target generate_syslog
[ 2%] Generating ../event_strings.h
[ 2%] Built target generate_syslog
Scanning dependencies of target dynamorio
[ 3%] Building C object dynamorio/core/CMakeFiles/dynamorio.dir/options.c.o
[ 4%] Building C object dynamorio/core/CMakeFiles/dynamorio.dir/dynamo.c.o
[ 4%] Building C object dynamorio/core/CMakeFiles/dynamorio.dir/fragment.c.o
[ 5%] Building C object dynamorio/core/CMakeFiles/dynamorio.dir/fcache.c.o
^Cmake[2]: *** [dynamorio/core/CMakeFiles/dynamorio.dir/fcache.c.o] Interrupt
make[1]: *** [dynamorio/core/CMakeFiles/dynamorio.dir/all] Interrupt
make: *** [all] Interrupt

lu_zero@nyx /tmp/DrMemory-1.5.1-6-Source/build $ make -j
Scanning dependencies of target options_perl
[ 1%] Scanning dependencies of target drloader
[ 1%] Built target drconfig_copy_tgt
[ 2%] [ 2%] Built target api_headers
Generating bin64/options-perl.pl
[ 3%] Building C object dynamorio/tools/CMakeFiles/drloader.dir/drloader.c.o
Built target generate_syslog
Scanning dependencies of target nudgeunix
Scanning dependencies of target runstats
Scanning dependencies of target run_in_bg
[ 4%] Scanning dependencies of target htmldocs
Scanning dependencies of target track_origins.pattern
Scanning dependencies of target malloc.pattern
Scanning dependencies of target free.pattern
[ 4%] Building C object dynamorio/tools/CMakeFiles/runstats.dir/runstats.c.o
Scanning dependencies of target run_in_bg_tgt
Scanning dependencies of target drsyscall_test
[ 4%] [ 5%] [ 5%] [ 6%] Building C object dynamorio/tools/CMakeFiles/nudgeunix.dir/nudgeunix.c.o
Building C object dynamorio/tools/CMakeFiles/nudgeunix.dir/__/core/linux/nudgesig.c.o
Generating options-docs.dox.in
[ 8%] [ 6%] [ 7%] Building C object dynamorio/tools/CMakeFiles/run_in_bg.dir/run_in_bg.c.o
[ 9%] [ 9%] Building C object tests/CMakeFiles/malloc.pattern.dir/malloc.c.o
Building C object tests/CMakeFiles/run_in_bg_tgt.dir/run_in_bg.c.o
Built target options_perl
Building C object tests/CMakeFiles/free.pattern.dir/free.c.o
Building C object tests/CMakeFiles/track_origins.pattern.dir/track_origins.c.o
Scanning dependencies of target strace_test
[ 10%] Building C object tests/framework/CMakeFiles/drsyscall_test.dir/drsyscall_app.c.o
Generating Doxyfile
[ 10%] Scanning dependencies of target drdecode
Building C object tests/framework/CMakeFiles/strace_test.dir/drsyscall_app.c.o
Scanning dependencies of target drconfiglib
Scanning dependencies of target drpreload
/tmp/DrMemory-1.5.1-6-Source/dynamorio/tools/runstats.c:61:41: error: ‘struct siginfo’ declared inside parameter list [-Werror][ 10%]
/tmp/DrMemory-1.5.1-6-Source/dynamorio/tools/runstats.c:61:41: error: its scope is only this definition or declaration, which is probably not what you want [-Werror]
/tmp/DrMemory-1.5.1-6-Source/dynamorio/tools/runstats.c: In function ‘intercept_signal’:
/tmp/DrMemory-1.5.1-6-Source/dynamorio/tools/runstats.c:208:22: error: assignment from incompatible pointer type [-Werror]
/tmp/DrMemory-1.5.1-6-Source/dynamorio/tools/runstats.c: In function ‘print_stats’:
/tmp/DrMemory-1.5.1-6-Source/dynamorio/tools/runstats.c:257:11: error: dereferencing pointer to incomplete type
/tmp/DrMemory-1.5.1-6-Source/dynamorio/tools/runstats.c:257:40: error: dereferencing pointer to incomplete type
/tmp/DrMemory-1.5.1-6-Source/dynamorio/tools/runstats.c:258:11: error: dereferencing pointer to incomplete type
/tmp/DrMemory-1.5.1-6-Source/dynamorio/tools/runstats.c:258:40: error: dereferencing pointer to incomplete type
/tmp/DrMemory-1.5.1-6-Source/dynamorio/tools/runstats.c:278:15: error: dereferencing pointer to incomplete type[ 11%]
/tmp/DrMemory-1.5.1-6-Source/dynamorio/tools/runstats.c:278:36: error: dereferencing pointer to incomplete type
/tmp/DrMemory-1.5.1-6-Source/dynamorio/tools/runstats.c:280:15: error: dereferencing pointer to incomplete type
/tmp/DrMemory-1.5.1-6-Source/dynamorio/tools/runstats.c:280:36: error: dereferencing pointer to incomplete type
/tmp/DrMemory-1.5.1-6-Source/dynamorio/tools/runstats.c:282:15: error: dereferencing pointer to incomplete type
/tmp/DrMemory-1.5.1-6-Source/dynamorio/tools/runstats.c:283:15: error: dereferencing pointer to incomplete type
/tmp/DrMemory-1.5.1-6-Source/dynamorio/tools/runstats.c:284:15: error: dereferencing pointer to incomplete type
/tmp/DrMemory-1.5.1-6-Source/dynamorio/tools/runstats.c: In function ‘main’:
/tmp/DrMemory-1.5.1-6-Source/dynamorio/tools/runstats.c:312:19: error: storage size of ‘ru’ isn’t known
/tmp/DrMemory-1.5.1-6-Source/tests/malloc.c:34:41: warning: ‘struct siginfo’ declared inside parameter list [enabled by default]
/tmp/DrMemory-1.5.1-6-Source/tests/malloc.c:34:41: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]
/tmp/DrMemory-1.5.1-6-Source/tests/malloc.c: In function ‘intercept_signal’:Building C object dynamorio/libutil/CMakeFiles/drconfiglib.dir/dr_config.c.o

/tmp/DrMemory-1.5.1-6-Source/tests/malloc.c:54:22: warning: assignment from incompatible pointer type [enabled by default]
Building C object dynamorio/libutil/CMakeFiles/drconfiglib.dir/utils.c.o
Linking C executable track_origins.pattern
/tmp/DrMemory-1.5.1-6-Source/dynamorio/tools/runstats.c:312:19: error: unused variable ‘ru’ [-Werror=unused-variable]
cc1: all warnings being treated as errors
make[2]: *** [dynamorio/tools/CMakeFiles/runstats.dir/runstats.c.o] Error 1
[ 12%] make[1]: *** [dynamorio/tools/CMakeFiles/runstats.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
Linking C executable free.pattern
Linking C executable run_in_bg
[ 13%] [ 13%] [ 14%] Linking C executable ../bin64/drloader
[ 14%] [ 15%] Building C object dynamorio/core/CMakeFiles/drpreload.dir/linux/preload.c.o
[ 16%] Linking C executable ../drsyscall_test
Building C object dynamorio/core/CMakeFiles/dynamorio.dir/fcache.c.o
Building C object dynamorio/core/CMakeFiles/dynamorio.dir/link.c.o
[ 16%] Building C object dynamorio/core/CMakeFiles/drpreload.dir/config.c.o
[ 16%] Linking C executable malloc.pattern
[ 17%] Building C object dynamorio/core/CMakeFiles/drpreload.dir/linux/os.c.o
Building C object dynamorio/core/CMakeFiles/drdecode.dir/instrlist.c.o
Building ASM object dynamorio/core/CMakeFiles/drpreload.dir/x86/x86.asm.o
[ 18%] Building C object dynamorio/core/CMakeFiles/dynamorio.dir/dispatch.c.o
Building C object dynamorio/core/CMakeFiles/drdecode.dir/x86/decode_table.c.o
Building C object dynamorio/core/CMakeFiles/drdecode.dir/x86/decode.c.o
[ 19%] Building C object dynamorio/core/CMakeFiles/dynamorio.dir/emit.c.o
Linking C executable ../strace_test
[ 20%] [ 20%] [ 20%] Building C object dynamorio/core/CMakeFiles/drdecode.dir/x86/encode.c.o
Built target track_origins.pattern
[ 20%] Building C object dynamorio/core/CMakeFiles/dynamorio.dir/utils.c.o
Building C object dynamorio/core/CMakeFiles/drdecode.dir/x86/instr.c.o
[ 23%] Built target drsyscall_test
[ 21%] [ 21%] [ 23%] [ 22%] [ 23%] [ 23%] Built target free.pattern
Building C object dynamorio/core/CMakeFiles/dynamorio.dir/config.c.o
Building C object dynamorio/core/CMakeFiles/dynamorio.dir/stats.c.o
[ 23%] Built target malloc.pattern
Building C object dynamorio/core/CMakeFiles/dynamorio.dir/heap.c.o
Building C object dynamorio/core/CMakeFiles/dynamorio.dir/instrlist.c.o
[ 24%] [ 25%] Built target run_in_bg_tgt
[ 25%] Building C object dynamorio/core/CMakeFiles/drdecode.dir/x86/disassemble.c.o
Built target drloader
[ 26%] [ 26%] [ 26%] Built target strace_test
[ 27%] Building C object dynamorio/core/CMakeFiles/drdecode.dir/x86/decode_fast.c.o
Building C object dynamorio/core/CMakeFiles/dynamorio.dir/monitor.c.o
Building C object dynamorio/core/CMakeFiles/dynamorio.dir/perfctr.c.o
[ 27%] Building C object dynamorio/core/CMakeFiles/drdecode.dir/x86/mangle.c.o
Linking C executable ../bin64/run_in_bg
Building C object dynamorio/core/CMakeFiles/drdecode.dir/x86/decodelib.c.o
[ 28%] [ 29%] Building C object dynamorio/core/CMakeFiles/dynamorio.dir/vmareas.c.o
Building C object dynamorio/core/CMakeFiles/dynamorio.dir/rct.c.o
[ 29%] Building C object dynamorio/core/CMakeFiles/dynamorio.dir/hotpatch.c.o
Building C object dynamorio/core/CMakeFiles/dynamorio.dir/hashtable.c.o
[ 30%] [ 31%] Building C object dynamorio/core/CMakeFiles/dynamorio.dir/module_list.c.o
Building C object dynamorio/core/CMakeFiles/dynamorio.dir/moduledb.c.o
[ 31%] [ 32%] Building C object dynamorio/core/CMakeFiles/dynamorio.dir/perscache.c.o
[ 33%] Building C object dynamorio/core/CMakeFiles/dynamorio.dir/nudge.c.o
[ 33%] [ 33%] Built target run_in_b...

Original issue: http://code.google.com/p/drmemory/issues/detail?id=1289

@derekbruening
Copy link
Contributor Author

From luca.bar...@gmail.com on July 07, 2013 23:52:05

That when testing the just provided source tarball.

@derekbruening
Copy link
Contributor Author

From dtouc...@gmail.com on July 08, 2013 02:16:50

I can see a "^C" and a "interrupt" in the cmake output above. Maybe you pressed Ctrl-C ? Please try again on a clean build directory.

Also, please state the compiler version.

Labels: Component-Build

@derekbruening
Copy link
Contributor Author

From luca.bar...@gmail.com on July 08, 2013 04:06:39

If interrupting a serial make and re-issuing a parallel make causes
problems you should reconsider the build system in use.

Anyway here a short summary of the problems saw so far:

  • You are using -Werror, do not do that, is wrong in every possible
    way, even more if you consider that gcc and clang diagnostic
    add more warning every release.
  • You have some typos
    make[1]: *** [dynamorio/core/CMakeFiles/drpreload.dir/all] Error 2
    /tmp/DrMemory-1.5.1-6-Source/dynamorio/core/linux/signal.c: In
    function is_sys_kill:
    /tmp/DrMemory-1.5.1-6-Source/dynamorio/core/linux/signal.c:3659:13:
    error: dereferencing pointer to incomplete type
    /tmp/DrMemory-1.5.1-6-Source/dynamorio/core/linux/signal.c: In
    function master_signal_handler_C:
    /tmp/DrMemory-1.5.1-6-Source/dynamorio/core/linux/signal.c:4191:13:
    error: passing argument 4 of is_sys_kill from incompatible pointer
    type [-Werror]
    /tmp/DrMemory-1.5.1-6-Source/dynamorio/core/linux/signal.c:3652:1:
    note: expected struct siginfo * but argument is of type struct
    siginfo_t *

The compiler is a stock gcc-4.7.2, I doubt clang-3.3 or gcc-4.8.1
would do any better.

@derekbruening
Copy link
Contributor Author

From dtouc...@gmail.com on July 08, 2013 06:30:09

Please consider using an older version of gcc (such as gcc 4.4 as stated in the wiki) or use the latest code from svn.

@derekbruening
Copy link
Contributor Author

From bruen...@google.com on July 08, 2013 07:05:01

Dup of issue #1259 Plus https://code.google.com/p/dynamorio/issues/detail?id=1179 , fixed by DR update in r1439

Summary: Multiple build failures building release version 1.5.1-6 (was: Multiple build failures)
Status: Duplicate
Labels: OpSys-Linux
Mergedinto: 1259

@derekbruening
Copy link
Contributor Author

From bruen...@google.com on July 08, 2013 07:52:40

BTW, it looks like 1.5.1-6 on Linux was built with gcc 4.7.2-2 and glibc 2.15-58 FC17

@derekbruening
Copy link
Contributor Author

From luca.bar...@gmail.com on July 09, 2013 02:58:19

My aim is to provide an ebuild for Gentoo, using a stale compiler is
not feasible, nor is quite useful making a snapshot if the next
release will be working.

@derekbruening
Copy link
Contributor Author

From bruen...@google.com on July 09, 2013 08:05:43

1.5.1-6 was released in Feb 2013 and was built with the latest gcc version. At that time, gcc 4.7.2 was the latest compiler (neither 4.7.3 nor 4.8.1 was released yet).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant