Opened 9 years ago

Closed 6 years ago

Last modified 4 years ago

#9971 closed defect (invalid)

Build problem in boehm_gc found with randomised testing

Reported by: drkirkby Owned by: GeorgSWeber
Priority: major Milestone: sage-duplicate/invalid/wontfix
Component: build Keywords:
Cc: leif Merged in:
Authors: Reviewers: Jeroen Demeyer
Report Upstream: None of the above - read trac for reasoning. Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Description (last modified by chapoton)

In an attempt to uncover race conditions in Makefiles, a shell script called "gcc" was written which calls the normal "gcc" after some random time interval. This was done in response to build problems in Singular (see #9946), were the source code of the file for generating the random delay can be found.

When I tried to build the whole of Sage, there's a failure of boehm_gc-7.1.p6.

Despite the package name, this would appear to be an unstable snapshot taken from CVS, as the latest stable release is 6.8 - see http://www.hpl.hp.com/personal/Hans_Boehm/gc/

Here's the build failure, though a full log is attached in the file boehm_gc-7.1.p6.log.nfg.txt

I'll try the latest CVS and see if this is the latest version, but its difficult to report this upstream when we use a non-stable release.

 gcc "-DPACKAGE_NAME=\"gc\"" "-DPACKAGE_TARNAME=\"gc\"" "-DPACKAGE_VERSION=\"7.1\"" "-DPACKAGE_STRING=\"gc 7.1\"" "-DPACKAGE_BUGREPORT=\"Hans.Boehm@hp.com\"" -DGC_VERSION_MAJOR=7 -DGC_VERSION_MINOR=1 "-DPACKAGE=\"gc\"" "-DVERSION=\"7.1\"" -DGC_SOLARIS_THREADS=1 -DTHREAD_LOCAL_ALLOC=1 -DSOLARIS25_PROC_VDB_BUG_FIXED=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DNO_EXECUTE_PERMISSION=1 -DALL_INTERIOR_POINTERS=1 -DGC_GCJ_SUPPORT=1 -DJAVA_FINALIZATION=1 -DATOMIC_UNCOLLECTABLE=1 -DLARGE_CONFIG=1 -I./include -fexceptions -I libatomic_ops/src -g -O2 -MT finalize.lo -MD -MP -MF .deps/finalize.Tpo -c finalize.c  -fPIC -DPIC -o .libs/finalize.o
 gcc "-DPACKAGE_NAME=\"gc\"" "-DPACKAGE_TARNAME=\"gc\"" "-DPACKAGE_VERSION=\"7.1\"" "-DPACKAGE_STRING=\"gc 7.1\"" "-DPACKAGE_BUGREPORT=\"Hans.Boehm@hp.com\"" -DGC_VERSION_MAJOR=7 -DGC_VERSION_MINOR=1 "-DPACKAGE=\"gc\"" "-DVERSION=\"7.1\"" -DGC_SOLARIS_THREADS=1 -DTHREAD_LOCAL_ALLOC=1 -DSOLARIS25_PROC_VDB_BUG_FIXED=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DNO_EXECUTE_PERMISSION=1 -DALL_INTERIOR_POINTERS=1 -DGC_GCJ_SUPPORT=1 -DJAVA_FINALIZATION=1 -DATOMIC_UNCOLLECTABLE=1 -DLARGE_CONFIG=1 -I./include -fexceptions -I libatomic_ops/src -g -O2 -MT dyn_load.lo -MD -MP -MF .deps/dyn_load.Tpo -c dyn_load.c  -fPIC -DPIC -o .libs/dyn_load.o
 gcc "-DPACKAGE_NAME=\"gc\"" "-DPACKAGE_TARNAME=\"gc\"" "-DPACKAGE_VERSION=\"7.1\"" "-DPACKAGE_STRING=\"gc 7.1\"" "-DPACKAGE_BUGREPORT=\"Hans.Boehm@hp.com\"" -DGC_VERSION_MAJOR=7 -DGC_VERSION_MINOR=1 "-DPACKAGE=\"gc\"" "-DVERSION=\"7.1\"" -DGC_SOLARIS_THREADS=1 -DTHREAD_LOCAL_ALLOC=1 -DSOLARIS25_PROC_VDB_BUG_FIXED=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DNO_EXECUTE_PERMISSION=1 -DALL_INTERIOR_POINTERS=1 -DGC_GCJ_SUPPORT=1 -DJAVA_FINALIZATION=1 -DATOMIC_UNCOLLECTABLE=1 -DLARGE_CONFIG=1 -I./include -fexceptions -I libatomic_ops/src -g -O2 -MT blacklst.lo -MD -MP -MF .deps/blacklst.Tpo -c blacklst.c  -fPIC -DPIC -o .libs/blacklst.o
 gcc "-DPACKAGE_NAME=\"gc\"" "-DPACKAGE_TARNAME=\"gc\"" "-DPACKAGE_VERSION=\"7.1\"" "-DPACKAGE_STRING=\"gc 7.1\"" "-DPACKAGE_BUGREPORT=\"Hans.Boehm@hp.com\"" -DGC_VERSION_MAJOR=7 -DGC_VERSION_MINOR=1 "-DPACKAGE=\"gc\"" "-DVERSION=\"7.1\"" -DGC_SOLARIS_THREADS=1 -DTHREAD_LOCAL_ALLOC=1 -DSOLARIS25_PROC_VDB_BUG_FIXED=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DNO_EXECUTE_PERMISSION=1 -DALL_INTERIOR_POINTERS=1 -DGC_GCJ_SUPPORT=1 -DJAVA_FINALIZATION=1 -DATOMIC_UNCOLLECTABLE=1 -DLARGE_CONFIG=1 -I./include -fexceptions -I libatomic_ops/src -g -O2 -MT dbg_mlc.lo -MD -MP -MF .deps/dbg_mlc.Tpo -c dbg_mlc.c  -fPIC -DPIC -o .libs/dbg_mlc.o
gcc: 7.1": No such file or directory
<command-line>:0:16: warning: missing terminating " character
make[3]: *** [dyn_load.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
gcc: 7.1": No such file or directory
<command-line>:0:16: warning: missing terminating " character
gcc: 7.1": No such file or directory
<command-line>:0:16: warning: missing terminating " character
make[3]: *** [alloc.lo] Error 1
make[3]: *** [mallocx.lo] Error 1
gcc: 7.1": No such file or directory
<command-line>:0:16: warning: missing terminating " character
make[3]: *** [finalize.lo] Error 1
gcc: 7.1": No such file or directory
<command-line>:0:16: warning: missing terminating " character
make[3]: *** [gcj_mlc.lo] Error 1
gcc: 7.1": No such file or directory
<command-line>:0:16: warning: missing terminating " character
gcc: 7.1": No such file or directory
<command-line>:0:16: warning: missing terminating " character
make[3]: *** [checksums.lo] Error 1
make[3]: *** [allchblk.lo] Error 1
gcc: 7.1": No such file or directory
<command-line>:0:16: warning: missing terminating " character
make[3]: *** [headers.lo] Error 1
gcc: 7.1": No such file or directory
<command-line>:0:16: warning: missing terminating " character
make[3]: *** [gc_dlopen.lo] Error 1
gcc: 7.1": No such file or directory
<command-line>:0:16: warning: missing terminating " character
make[3]: *** [dbg_mlc.lo] Error 1
gcc: 7.1": No such file or directory
<command-line>:0:16: warning: missing terminating " character
make[3]: *** [blacklst.lo] Error 1
gcc: 7.1": No such file or directory
<command-line>:0:16: warning: missing terminating " character
make[3]: *** [malloc.lo] Error 1
make[3]: Leaving directory `/export/home/drkirkby/slow/sage-4.6.alpha1/spkg/build/boehm_gc-7.1.p6/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/export/home/drkirkby/slow/sage-4.6.alpha1/spkg/build/boehm_gc-7.1.p6/src'
Error building BoehmGC.

real 8m38.373s
user 0m4.844s
sys 0m5.826s
sage: An error occurred while installing boehm_gc-7.1.p6

Attachments (2)

boehm_gc-7.1.p6.log.nfg.txt (51.0 KB) - added by drkirkby 9 years ago.
Build failure obseved when random delays were inserted into the build process of boehm_gc-7.1.p6
gcc (70 bytes) - added by drkirkby 9 years ago.
gcc script, which calls the real gcc after some delay

Download all attachments as: .zip

Change History (12)

Changed 9 years ago by drkirkby

Build failure obseved when random delays were inserted into the build process of boehm_gc-7.1.p6

comment:1 Changed 9 years ago by drkirkby

  • Cc leif added

comment:2 Changed 9 years ago by leif

Looks more like an error in your script, not like a race condition. ;-)

Changed 9 years ago by drkirkby

gcc script, which calls the real gcc after some delay

comment:3 follow-up: Changed 9 years ago by drkirkby

I've attached the script. How would you change it?

Dave

comment:4 in reply to: ↑ 3 Changed 9 years ago by leif

Replying to drkirkby:

I've attached the script. How would you change it?

  • gcc

    old new  
    11#!/bin/sh
    22/usr/local/bin/randomsleep
    3 /usr/local/gcc-4.5.0/bin/gcc $@
     3/usr/local/gcc-4.5.0/bin/gcc "$@"

So should I set it to "needs work" or "won't fix / invalid"? ;-)

comment:5 Changed 9 years ago by drkirkby

  • Status changed from new to needs_info

Yes, I should have quoted it.

Since at this point we don't know if there's an issue with this boehm_gc, I've stuck it to "needs info". I'll test it with the revised scrpt, then either set either set the ticket to "new" or "invalid".

Dave

comment:6 Changed 6 years ago by jdemeyer

  • Milestone changed from sage-5.11 to sage-5.12

comment:7 Changed 6 years ago by vbraun_spam

  • Milestone changed from sage-6.1 to sage-6.2

comment:8 Changed 6 years ago by jdemeyer

  • Milestone changed from sage-6.2 to sage-duplicate/invalid/wontfix
  • Reviewers set to Jeroen Demeyer
  • Status changed from needs_info to positive_review

Close as invalid.

comment:9 Changed 6 years ago by vbraun

  • Resolution set to invalid
  • Status changed from positive_review to closed

comment:10 Changed 4 years ago by chapoton

  • Description modified (diff)
Note: See TracTickets for help on using tickets.