rmottola / Arctic-Fox

Web Browser for Mac OS X 10.6+, Linux (PowerPC, x86, amd64, ARM, MIPS), NetBSD, OpenBSD, and Windows XP.
Other
289 stars 35 forks source link

Linux GCC 7 & 8 support #55

Closed rmottola closed 3 years ago

rmottola commented 4 years ago

On (tested Devuan, Debian and Gentoo) ArcticFox compiles with up to gcc 6.5 . Later compilers compile code, but fail to link.

NetBSD instead is capable of building with gcc 7, so it appears to be some platform specific option, maybe linker related.

iDevPro commented 4 years ago

@rmottola "Later compilers compile code, but fail to link." With relocation error ?

rmottola commented 4 years ago

No, failure is not found symbols: 92:52.96 /usr/bin/ld: ../../netwerk/base/Unified_cpp_netwerk_base0.o: in functionmozilla::net::Predictor::ParseMetaDataEntry(char const, char const, nsIURI, unsigned int&, unsigned int&, unsigned int&)': 92:52.96 /usr/include/stdlib.h:363: undefined reference to strtol' 92:52.96 /usr/bin/ld: /usr/include/stdlib.h:363: undefined reference tostrtol' 92:52.96 /usr/bin/ld: /usr/include/stdlib.h:363: undefined reference to strtol' 92:52.96 /usr/bin/ld: /usr/include/stdlib.h:363: undefined reference tostrtol' 92:52.97 /usr/bin/ld: ../../netwerk/base/Unified_cpp_netwerk_base0.o: in function mozilla::net::Predictor::LearnForSubresource(nsICacheEntry*, nsIURI*)': 92:52.97 /usr/include/stdlib.h:363: undefined reference tostrtol' 92:52.97 /usr/bin/ld: ../../netwerk/cache2/Unified_cpp_netwerk_cache20.o: in function `mozilla::net::CacheFileIOManager::GetDoomedFile(nsIFile)': 92:52.97 /home/riccardo/Arctic-Fox/netwerk/cache2/CacheFileIOManager.cpp:3424: undefined reference to srand' .... (and many more)

rmottola commented 3 years ago

Finally fixed, I can compile up with gcc 10.