Closed Bug 1157611 Opened 9 years ago Closed 5 years ago

Failure to archive libjemalloc due to previous deletion

Categories

(Thunderbird :: Build Config, defect)

31 Branch
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: tanderson, Unassigned)

Details

User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.118 Safari/537.36

Steps to reproduce:

Tried to compile mozilla with jemalloc enabled


Actual results:

make -C probes libs
make[3]: Entering directory '/var/tmp/paludis/build/mail-client-thunderbird-31.5.0/work/build/mail/mozilla/probes'
make[3]: Nothing to be done for 'libs'.
make[3]: Leaving directory '/var/tmp/paludis/build/mail-client-thunderbird-31.5.0/work/build/mail/mozilla/probes'
make -C mfbt libs
make[3]: Entering directory '/var/tmp/paludis/build/mail-client-thunderbird-31.5.0/work/build/mail/mozilla/mfbt'
make[3]: Nothing to be done for 'libs'.
make[3]: Leaving directory '/var/tmp/paludis/build/mail-client-thunderbird-31.5.0/work/build/mail/mozilla/mfbt'
make -C memory libs
make[3]: Entering directory '/var/tmp/paludis/build/mail-client-thunderbird-31.5.0/work/build/mail/mozilla/memory'
make -C mozjemalloc libs
make[4]: Entering directory '/var/tmp/paludis/build/mail-client-thunderbird-31.5.0/work/build/mail/mozilla/memory/mozjemalloc'
make[4]: Nothing to be done for 'libs'.
make[4]: Leaving directory '/var/tmp/paludis/build/mail-client-thunderbird-31.5.0/work/build/mail/mozilla/memory/mozjemalloc'
make -C build libs
make[4]: Entering directory '/var/tmp/paludis/build/mail-client-thunderbird-31.5.0/work/build/mail/mozilla/memory/build'
mkdir -p '.deps/'
jemalloc_config.o
x86_64-pc-linux-gnu-gcc -o jemalloc_config.o -c -I../../dist/system_wrappers -include /var/tmp/paludis/build/mail-client-thunderbird-31.5.0/work/comm-esr31/mozilla/config/gcc_hidden.h -DMOZ_MEMORY_IMPL -DMOZ_GLUE_IN_PROGRAM -DNO_NSPR_10_SUPPORT -I/var/tmp/paludis/build/mail-client-thunderbird-31.5.0/work/comm-esr31/mozilla/memory/build -I.  -I../../dist/include  -I/usr/x86_64-pc-linux-gnu/include/nspr -I/usr/x86_64-pc-linux-gnu/include/nss -I/usr/x86_64-pc-linux-gnu/include/nspr   -I/var/tmp/paludis/build/mail-client-thunderbird-31.5.0/work/build/mail/mozilla/dist/include  -I/usr/x86_64-pc-linux-gnu/include/pixman-1    -fPIC  -pipe -march=native -include ../../mozilla-config.h -DMOZILLA_CLIENT -MD -MP -MF .deps/jemalloc_config.o.pp -pipe -march=native -Wall -Wpointer-arith -Wdeclaration-after-statement -Werror=return-type -Werror=int-to-pointer-cast -Wtype-limits -Wempty-body -Wsign-compare -Wno-unused -Wcast-align -pipe -march=native -mno-avx -std=gnu99 -fgnu89-inline -fno-strict-aliasing -ffunction-sections -fdata-sections -fno-math-errno -pthread -pipe  -DNDEBUG -DTRIMMED -O2 -fomit-frame-pointer     /var/tmp/paludis/build/mail-client-thunderbird-31.5.0/work/comm-esr31/mozilla/memory/build/jemalloc_config.c
mozmemory_wrap.o
x86_64-pc-linux-gnu-gcc -o mozmemory_wrap.o -c -I../../dist/system_wrappers -include /var/tmp/paludis/build/mail-client-thunderbird-31.5.0/work/comm-esr31/mozilla/config/gcc_hidden.h -DMOZ_MEMORY_IMPL -DMOZ_GLUE_IN_PROGRAM -DNO_NSPR_10_SUPPORT -I/var/tmp/paludis/build/mail-client-thunderbird-31.5.0/work/comm-esr31/mozilla/memory/build -I.  -I../../dist/include  -I/usr/x86_64-pc-linux-gnu/include/nspr -I/usr/x86_64-pc-linux-gnu/include/nss -I/usr/x86_64-pc-linux-gnu/include/nspr   -I/var/tmp/paludis/build/mail-client-thunderbird-31.5.0/work/build/mail/mozilla/dist/include  -I/usr/x86_64-pc-linux-gnu/include/pixman-1    -fPIC  -pipe -march=native -include ../../mozilla-config.h -DMOZILLA_CLIENT -MD -MP -MF .deps/mozmemory_wrap.o.pp -pipe -march=native -Wall -Wpointer-arith -Wdeclaration-after-statement -Werror=return-type -Werror=int-to-pointer-cast -Wtype-limits -Wempty-body -Wsign-compare -Wno-unused -Wcast-align -pipe -march=native -mno-avx -std=gnu99 -fgnu89-inline -fno-strict-aliasing -ffunction-sections -fdata-sections -fno-math-errno -pthread -pipe  -DNDEBUG -DTRIMMED -O2 -fomit-frame-pointer     /var/tmp/paludis/build/mail-client-thunderbird-31.5.0/work/comm-esr31/mozilla/memory/build/mozmemory_wrap.c
libmemory.a
rm -f libmemory.a libmemory.a.desc
/var/tmp/paludis/build/mail-client-thunderbird-31.5.0/work/build/mail/mozilla/_virtualenv/bin/python /var/tmp/paludis/build/mail-client-thunderbird-31.5.0/work/comm-esr31/mozilla/config/expandlibs_exec.py --depend .deps/libmemory.a.pp --target libmemory.a --extract -- x86_64-pc-linux-gnu-ar crs libmemory.a jemalloc_config.o mozmemory_wrap.o ../../memory/mozjemalloc/libjemalloc.a

Error:
  * In program cave perform install --hooks --managed-output --output-exclusivity with-others =mail-client/thunderbird-31.5.0:0::desktop --destination installed --x-of-y 1 of 1:
  * When installing 'mail-client/thunderbird-31.5.0:0::desktop':
  * When running an ebuild command on 'mail-client/thunderbird-31.5.0:0::desktop':
  * Install failed for 'mail-client/thunderbird-31.5.0:0::desktop' (paludis::ActionFailedError)

/var/tmp/paludis/build/mail-client-thunderbird-31.5.0/work/comm-esr31/mozilla/config/rules.mk:838: recipe for target 'libmemory.a' failed
make[4]: Leaving directory '/var/tmp/paludis/build/mail-client-thunderbird-31.5.0/work/build/mail/mozilla/memory/build'
/var/tmp/paludis/build/mail-client-thunderbird-31.5.0/work/comm-esr31/mozilla/config/recurse.mk:179: recipe for target 'libs' failed
make[3]: Leaving directory '/var/tmp/paludis/build/mail-client-thunderbird-31.5.0/work/build/mail/mozilla/memory'
/var/tmp/paludis/build/mail-client-thunderbird-31.5.0/work/comm-esr31/mozilla/config/recurse.mk:153: recipe for target 'libs' failed
make[2]: Leaving directory '/var/tmp/paludis/build/mail-client-thunderbird-31.5.0/work/build/mail/mozilla'
/var/tmp/paludis/build/mail-client-thunderbird-31.5.0/work/comm-esr31/mozilla/config/rules.mk:592: recipe for target 'default' failed
make[1]: Leaving directory '/var/tmp/paludis/build/mail-client-thunderbird-31.5.0/work/build/mail/mozilla'
Makefile:52: recipe for target 'default' failed
Executing: x86_64-pc-linux-gnu-ar crs libmemory.a jemalloc_config.o mozmemory_wrap.o ../../memory/mozjemalloc/libjemalloc.a
x86_64-pc-linux-gnu-ar: ../../memory/mozjemalloc/libjemalloc.a: No such file or directory
make[4]: *** [libmemory.a] Error 1
make[3]: *** [libs] Error 2
make[2]: *** [libs] Error 2
make[1]: *** [default] Error 2
make: *** [default] Error 2



Expected results:

The build should not delete libjemalloc.a (see the command issuing `rm -f libjemalloc.a`. This is not correct.
Component: Untriaged → Build Config
Summary: jemalloc → Failure to archive libjemalloc due to previous deletion

This doesn't appear to be happening in current versions. jemalloc is enabled in shipped builds.

Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.