skilion / onedrive

Free Client for OneDrive on Linux

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LDC Make error under debian stretch

Boia11 opened this issue · comments

Error while building on Debian Stretch [arm64] :

**make DC=ldmd2**
echo v1.1.3 >version
ldmd2 -g -ofonedrive -O -L-lcurl -L-lsqlite3 -L-ldl -J. src/config.d src/itemdb.d src/log.d src/main.d src/monitor.d src/onedrive.d src/qxor.d src/selective.d src/sqlite.d src/sync.d src/upload.d src/util.d
onedrive.o: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
Error: /usr/bin/gcc failed with status: 1
Makefile:29: recipe for target 'onedrive' failed
make: *** [onedrive] Error 1

Procedure followed:

apt install libcurl4-openssl-dev
apt install libsqlite3-dev
apt-get -t stretch-backports install ldc
git clone https://github.com/skilion/onedrive.git
cd onedrive
make DC=ldmd2

LDC version info:

**ldmd2 --version**
LDC - the LLVM D compiler (1.2.0):
  based on DMD v2.072.2 and LLVM 3.9.1
  built with LDC - the LLVM D compiler (0.17.4)
  Default target: armv7l-unknown-linux-gnueabihf
  Host CPU: (unknown)
  http://dlang.org - http://wiki.dlang.org/LDC

  Registered Targets:
    aarch64    - AArch64 (little endian)
    aarch64_be - AArch64 (big endian)
    amdgcn     - AMD GCN GPUs
    arm        - ARM
    arm64      - ARM64 (little endian)
    armeb      - ARM (big endian)
    bpf        - BPF (host endian)
    bpfeb      - BPF (big endian)
    bpfel      - BPF (little endian)
    hexagon    - Hexagon
    mips       - Mips
    mips64     - Mips64 [experimental]
    mips64el   - Mips64el [experimental]
    mipsel     - Mipsel
    msp430     - MSP430 [experimental]
    nvptx      - NVIDIA PTX 32-bit
    nvptx64    - NVIDIA PTX 64-bit
    ppc32      - PowerPC 32
    ppc64      - PowerPC 64
    ppc64le    - PowerPC 64 LE
    r600       - AMD GPUs HD2XXX-HD6XXX
    sparc      - Sparc
    sparcel    - Sparc LE
    sparcv9    - Sparc V9
    systemz    - SystemZ
    thumb      - Thumb
    thumbeb    - Thumb (big endian)
    x86        - 32-bit X86: Pentium-Pro and above
    x86-64     - 64-bit X86: EM64T and AMD64
    xcore      - XCore

@Boia11
Compiling as you have done under ARM64 should work - however your LDC version is WAY too old.

Refer to the following link to assist in getting the code compiling on ARM64 correctly.

Also, the 'skilion' code appears to have been abandoned and contains issues that have not been fixed. If you wish to use the latest code which contains numerous fixes and enhancements you need clone from here: https://github.com/abraunegg/onedrive

If you have any issues when using my branch submit your issue against my branch for resolution & management.

Ok. Thanks @abraunegg