B2G Desktop App build fails with "undefined reference to `mozilla::Time*`

RESOLVED WORKSFORME

Status

Firefox Build System
General
RESOLVED WORKSFORME
6 years ago
3 months ago

People

(Reporter: arky, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

6 years ago
Building B2G Desktop App fails with the following error on Ubuntu 12.04. 



/home/arky/src/mozilla-central/xpcom/base/nsCycleCollector.cpp:2656: undefined reference to `mozilla::TimeStamp::Now()'
../../xpcom/base/nsCycleCollector.o: In function `mozilla::TimeDuration::ToMilliseconds() const':
/home/arky/dev/b2g-build/xpcom/base/../../dist/include/mozilla/TimeStamp.h:49: undefined reference to `mozilla::TimeDuration::ToSeconds() const'
../../gfx/layers/BasicLayers.o: In function `mozilla::layers::ImageContainer::NotifyPaintedImage(mozilla::layers::Image*)':
/home/arky/src/mozilla-central/gfx/layers/ImageLayers.h:442: undefined reference to `mozilla::TimeStamp::Now()'
../../gfx/layers/Layers.o: In function `mozilla::layers::LayerManager::StartFrameTimeRecording()':
/home/arky/src/mozilla-central/gfx/layers/Layers.cpp:525: undefined reference to `mozilla::TimeStamp::Now()'
../../gfx/layers/Layers.o: In function `mozilla::layers::LayerManager::PostPresent()':
/home/arky/src/mozilla-central/gfx/layers/Layers.cpp:532: undefined reference to `mozilla::TimeStamp::Now()'
../../gfx/layers/Layers.o: In function `mozilla::TimeDuration::ToMilliseconds() const':
/home/arky/dev/b2g-build/gfx/layers/../../dist/include/mozilla/TimeStamp.h:49: undefined reference to `mozilla::TimeDuration::ToSeconds() const'
../../gfx/layers/ImageLayerOGL.o: In function `mozilla::layers::ImageContainer::NotifyPaintedImage(mozilla::layers::Image*)':
/home/arky/src/mozilla-central/gfx/layers/ImageLayers.h:442: undefined reference to `mozilla::TimeStamp::Now()'
../../gfx/layers/LayerManagerOGL.o: In function `FPSState':
/home/arky/src/mozilla-central/gfx/layers/opengl/LayerManagerOGL.h:451: undefined reference to `mozilla::TimeStamp::Now()'
../../gfx/layers/LayerManagerOGL.o: In function `mozilla::layers::LayerManagerOGL::FPSState::DrawFPS(mozilla::gl::GLContext*, mozilla::layers::ShaderProgramOGL*)':
/home/arky/src/mozilla-central/gfx/layers/opengl/LayerManagerOGL.cpp:510: undefined reference to `mozilla::TimeStamp::Now()'
/home/arky/src/mozilla-central/gfx/layers/opengl/LayerManagerOGL.cpp:513: undefined reference to `mozilla::TimeDuration::ToSeconds() const'
../../gfx/layers/CompositorParent.o: In function `mozilla::layers::CompositorParent::ScheduleComposition()':
/home/arky/src/mozilla-central/gfx/layers/ipc/CompositorParent.cpp:221: undefined reference to `mozilla::TimeStamp::Now()'
../../gfx/layers/CompositorParent.o: In function `mozilla::TimeDuration::ToMilliseconds() const':
/home/arky/dev/b2g-build/gfx/layers/../../dist/include/mozilla/TimeStamp.h:49: undefined reference to `mozilla::TimeDuration::ToSeconds() const'
/home/arky/dev/b2g-build/gfx/layers/../../dist/include/mozilla/TimeStamp.h:49: undefined reference to `mozilla::TimeDuration::ToSeconds() const'
../../gfx/layers/CompositorParent.o: In function `mozilla::layers::CompositorParent::Composite()':
/home/arky/src/mozilla-central/gfx/layers/ipc/CompositorParent.cpp:256: undefined reference to `mozilla::TimeStamp::Now()'
/usr/bin/ld.bfd.real: libxul.so: hidden symbol `mozilla::TimeStamp::Startup()' isn't defined
/usr/bin/ld.bfd.real: final link failed: Bad value
collect2: ld returned 1 exit status
make[5]: *** [libxul.so] Error 1
make[5]: Leaving directory `/home/arky/dev/b2g-build/toolkit/library'
make[4]: *** [libs_tier_platform] Error 2
make[4]: Leaving directory `/home/arky/dev/b2g-build'
make[3]: *** [tier_platform] Error 2
make[3]: Leaving directory `/home/arky/dev/b2g-build'
make[2]: *** [default] Error 2
make[2]: Leaving directory `/home/arky/dev/b2g-build'
make[1]: *** [realbuild] Error 2
make[1]: Leaving directory `/home/arky/src/mozilla-central'
make: *** [build] Error 2


Build instructions used for producing this bug are here: 


http://playingwithsid.blogspot.com/2012/03/building-boot2gecko-on-ubuntu.html
Fwiw, I can do debug builds on ubuntu 12.04
(Reporter)

Comment 3

6 years ago
Thanks Fabrice, I rebuild with the latest checkouts from mozilla-central with no problems.
Status: NEW → RESOLVED
Last Resolved: 4 years ago
Resolution: --- → INVALID

Updated

3 months ago
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.