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

glog fails to build on ARM64/AArch64 #107

Closed
awafaa-zz opened this issue May 5, 2016 · 4 comments
Closed

glog fails to build on ARM64/AArch64 #107

awafaa-zz opened this issue May 5, 2016 · 4 comments

Comments

@awafaa-zz
Copy link

The config.guess and config.sub are outdated, and do not have support for 64bit ARM. Without updating it renders glog useless on these new platforms.

@vielmetti
Copy link

Any movement on this? I just tried to build Apache Mesos and got this error:

UNAME_MACHINE = aarch64
UNAME_RELEASE = 4.4.0-77-generic
UNAME_SYSTEM  = Linux
UNAME_VERSION = #98-Ubuntu SMP Wed Apr 26 08:34:20 UTC 2017
configure: error: cannot guess build type; you must specify one
Makefile:1148: recipe for target 'glog-0.3.3-build-stamp' failed

@janisz
Copy link

janisz commented Oct 15, 2017

config.guess and config.sub are no longer stored in repo see this commit 4f3e18b#diff-41e7d4fbb64f67f0225a7aa81731c241

2 tests on ARM are failing:

$ uname -a
Linux ubuntu-arm-eu1 4.10.0-26-generic #30~16.04.1-Ubuntu SMP Tue Jun 27 09:40:29 UTC 2017 aarch64 aarch64 aarch64 GNU/Linux

$ ./src/demangle_unittest.sh
Mangled symbols (24 out of 379) found in demangle.dm:
_ZN3fLS13FLAGS_log_dirB5cxx11E
_ZN3fLS13FLAGS_vmoduleB5cxx11E
_ZN3fLS14FLAGS_log_linkB5cxx11E
_ZN3fLS15FLAGS_logmailerB5cxx11E
_ZN3fLS17FLAGS_log_dir_bufB5cxx11E
_ZN3fLS17FLAGS_vmodule_bufB5cxx11E
_ZN3fLS18FLAGS_log_link_bufB5cxx11E
_ZN3fLS19FLAGS_logmailer_bufB5cxx11E
_ZN3fLS20FLAGS_alsologtoemailB5cxx11E
_ZN3fLS22FLAGS_log_backtrace_atB5cxx11E
_ZN3fLS24FLAGS_alsologtoemail_bufB5cxx11E
_ZN3fLS26FLAGS_log_backtrace_at_bufB5cxx11E
_ZN6google14LogDestination10addresses_B5cxx11E
_ZN6google14LogDestination8hostnameB5cxx11Ev
_ZN6google14LogDestination9hostname_B5cxx11E
_ZN6google19CheckstrcmptrueImplB5cxx11EPKcS1_S1_
_ZN6google20CheckstrcmpfalseImplB5cxx11EPKcS1_S1_
_ZN6google21GetLoggingDirectoriesB5cxx11Ev
_ZN6google23CheckstrcasecmptrueImplB5cxx11EPKcS1_S1_
_ZN6google24CheckstrcasecmpfalseImplB5cxx11EPKcS1_S1_
_ZN6google24glog_internal_namespace_10MyUserNameB5cxx11Ev
_ZN6google4base21CheckOpMessageBuilder9NewStringB5cxx11Ev
_ZN6google7LogSink8ToStringB5cxx11EiPKciPK2tmS2_m
_ZN6google8StrErrorB5cxx11Ei
Mangled symbols (24 out of 379) found in demangle.dm
Makefile:2061: recipe for target 'demangle_unittest_sh' failed
make[1]: *** [demangle_unittest_sh] Error 1
make[1]: Leaving directory '/home/janisz/glog'
Makefile:1907: recipe for target 'check-am' failed
make: *** [check-am] Error 2

$ ./src/signalhandler_unittest.sh
'SIGFPE' should appear in the output
Makefile:2064: recipe for target 'signalhandler_unittest_sh' failed
make[1]: *** [signalhandler_unittest_sh] Error 1
make[1]: Leaving directory '/home/janisz/glog'
Makefile:1907: recipe for target 'check-am' failed
make: *** [check-am] Error 2

@vielmetti
Copy link

The demangle test fix is here: #50

@janisz
Copy link

janisz commented Oct 25, 2017

Demangling problem could be fixed by explicitly disabling the new ABI

CXXFLAGS=-D_GLIBCXX_USE_CXX11_ABI=0 ./configure

meyerj added a commit to meyerj/glog_catkin that referenced this issue Dec 7, 2017
Apply google/glog#188 and invoke autogen.sh in the configure step.
Required to fix build on aarch64 architecture, like google/glog#107.
@sergiud sergiud closed this as completed Mar 30, 2021
@sergiud sergiud mentioned this issue May 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants