On 13/11/2017 09:32, Pierre Labastie wrote:
Hi,

When building firefox-56.0.2, I get:
----------------
 0:32.23 ../x86_64-unknown-linux-gnu/release/libgkrust_gtest.a(gkrust_gtest-5079 090a0c02d0cc.0.o):gkrust_gtest.cgu-0.rs:function nsstring_gtest::nonfatal_fail:
error: undefined reference to 'GTest_ExpectFailure'
 0:32.23 ../x86_64-unknown-linux-gnu/release/libgkrust_gtest.a(gkrust_gtest-5079 090a0c02d0cc.0.o):gkrust_gtest.cgu-0.rs:function Rust_AssignFromCpp: error: unde
fined reference to 'Cpp_AssignFromCpp'
 0:32.23 ../x86_64-unknown-linux-gnu/release/libgkrust_gtest.a(gkrust_gtest-5079 090a0c02d0cc.0.o):gkrust_gtest.cgu-0.rs:function Rust_FixedAssignFromCpp: error:
 undefined reference to 'Cpp_AssignFromCpp'
 0:32.23 ../x86_64-unknown-linux-gnu/release/libgkrust_gtest.a(gkrust_gtest-5079 090a0c02d0cc.0.o):gkrust_gtest.cgu-0.rs:function Rust_AutoAssignFromCpp: error:
undefined reference to 'Cpp_AssignFromCpp'
 0:32.23 collect2: error: ld returned 1 exit status
 0:32.42 make[4]: *** [/sources/firefox/firefox-56.0.2/config/rules.mk:719: libx
ul.so] Error 1
 0:32.42 make[3]: *** [/sources/firefox/firefox-56.0.2/config/recurse.mk:73: too
lkit/library/gtest/target] Error 2
 0:32.42 make[2]: *** [Makefile:25: gtestxul] Error 2
-----------------

Looks like it is a known issue[1]. AFAICT, it does not showup if "--enable-tests"
is used (I haven't tried). But with the mozconfig in the book + :
------
# ac_add_options --disable-dbus
# ac_add_options --disable-necko-wifi
ac_add_options --with-mozilla-api-keyfile=$PWD/mozilla-key
ac_add_options --with-google-api-keyfile=$PWD/google-key
ac_add_options --enable-startup-notification
# ac_add_options --disable-gconf
ac_add_options --with-system-graphite2
ac_add_options --with-system-harfbuzz
------
I get this error.

Making a patch, unless somebody speaks up...

Regards
Pierre
[1] https://bugzilla.mozilla.org/show_bug.cgi?id=1393454

OK, forget about this: it came from trying to run the tests without passing enable-tests. On other pages, the layout for running tests is not the same, so that jhalfs blindly tried to run"./mach gtest". Now, what amazes me is:
- they have a fix upstream
- Douglas seemed to have the same error

Anyway, sorry about the noise. Will change layout of the sentence talking about tests, though :)
Pierre
--
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to