dmlc / dmlc/dgl

Build failed on `s390x`(LinuxONE) platfrom

Open
#6,487 2 comments 0 reactions 1 assignee Claimed by @frozenbugs View on GitHub
bug:unconfirmed help wanted
Dominant language
Python
Stars
14.3k
Forks
3.1k
PR merge metrics
No merged PRs in 30d

Description

## 🐛 Bug

I've just tried to run a model built with DGL on an `IBM s390x` machine (aka LinuxONE), since DGL doesn't provide a official build for this platform, I tried to build myself.

## To Reproduce

Steps to reproduce the behavior:

1. Prepare environment & start building by following https://docs.dgl.ai/install/index.html#install-from-source:
```
bash script/create_dev_conda_env.sh -c -p 3.10 -o
# Manually install dependencies..
bash script/build_dgl.sh -c
```
2. Build failed with the following error:
![image](https://github.com/dmlc/dgl/assets/29349119/4533ddbd-7478-4200-9389-cb17d94b6253)

```
error: ‘Write’ is not a member of ‘dmlc::serializer::UndefinedSerializerFor’
63 | Else::Write(strm, data);
| ~~~~~~~~~~~^~~~~~~~~~~~
```

## Expected behavior

DGL built successfully.

## Environment

- DGL Version (e.g., 1.0): 1.1.2
- Backend Library & Version (e.g., PyTorch 0.4.1, MXNet/Gluon 1.3):
- OS (e.g., Linux): Ubuntu 22.04 on s390x
- How you installed DGL (`conda`, `pip`, source): source
- Build command you used (if compiling from source):
- Python version: 3.10
- GPU models and configuration (e.g. V100): none
- My compiler version:
```
g++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
```

## Additional context

Since S390X is a big-endian architecture, I wonder if there are any code that doesn't support big-endian exists. Maybe I can workaround it by disabling these components.

Any help would be thanked!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.