Skip to content

Commit 095a140

Browse files
alexcrichtonnikic
authored andcommitted
Fix compile on dist-i686-linux builder
If this lines are present then we apparently get errors [1] when compiling in the current [2] dist-i686-linux container. Attempts to upgrade both gcc and binutils did not fix the error, so it appears that this may just be a bug in the super old glibc we're using on the dist-i686-linux container. We don't actually need this code anyway, so just work around these issues by removing references to the `*64` functions. This'll get things compiling locally and shouldn't be a regression in functionality. [1]: https://travis-ci.org/rust-lang/rust/jobs/257578199 [2]: https://github.com/rust-lang/rust/tree/eba9d7f08ce5c90549ee52337aca0010ad566f0d/src/ci/docker/dist-i686-linux
1 parent 9aac09a commit 095a140

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/lib/ExecutionEngine/RuntimeDyld/RTDyldMemoryManager.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -243,9 +243,9 @@ RTDyldMemoryManager::getSymbolAddressInProcess(const std::string &Name) {
243243
if (Name == "stat") return (uint64_t)&stat;
244244
if (Name == "fstat") return (uint64_t)&fstat;
245245
if (Name == "lstat") return (uint64_t)&lstat;
246-
if (Name == "stat64") return (uint64_t)&stat64;
247-
if (Name == "fstat64") return (uint64_t)&fstat64;
248-
if (Name == "lstat64") return (uint64_t)&lstat64;
246+
// if (Name == "stat64") return (uint64_t)&stat64;
247+
// if (Name == "fstat64") return (uint64_t)&fstat64;
248+
// if (Name == "lstat64") return (uint64_t)&lstat64;
249249
if (Name == "atexit") return (uint64_t)&atexit;
250250
if (Name == "mknod") return (uint64_t)&mknod;
251251

0 commit comments

Comments
 (0)