Leftwm: Arm Build failed

Created on 11 Jun 2021  路  9Comments  路  Source: leftwm/leftwm

Describe the bug
on building odroid xu4 the build fails with Error-Log

To Reproduce
Steps to reproduce the behavior:

  1. paru -Sy leftwm
  2. wait
  3. See error

Expected behavior
A clean build

Environment:

  • OS/Distro: Arch arm

Most helpful comment

@Hero9909 I tried to get this working about 6 months ago and was never successful. I just tried again and this time no errors. I remember reading something about rust improving its compatibility with arm. I wonder if this has just been fixed somewhere deep in the compiler.

Would you mind running a rustup update and trying with the latest stable version of rust.

Please let me know success or failure, we don't get many people testing on arm :)

A couple notes:

  • alacritty does not work for me on arm.
  • polybar-git will complain about the wrong architecture, but will work

Screenshot at 2021-06-12 18-20-29

All 9 comments

Ooof, this looks like a tough one.
I don't know if there is an easy or at least somewhat feasible option to help the compiler to build a 32bit binary from otherwise 64bit code? From a brief glance there are no values where we actually would need to have 64bit necessarily.
But manually keeping everything downwards-compatibly seems like a heavy burden.

the last error doesnt seems to match the others as a u32 were found but u 64 were expected...

src/display_servers/xlib_display_server/xwrap.rs:1496:31
     |
1496 |             self.grab_pointer(cursor);

Yes you are right. Is It possible, that this one is missing in the hastebin? I can't see it there..

oh, i see, its one of the build of leftwm-git, illupload its log later if im back at my workmachine.

As all of these are interactions with xlib, I think we might be able to replace them with c_ulong/c_long which will change depending on system. This should then remove all u64/i64's, fixing the problem, but I would have to check that when I'm not tired.

@Hero9909 I tried to get this working about 6 months ago and was never successful. I just tried again and this time no errors. I remember reading something about rust improving its compatibility with arm. I wonder if this has just been fixed somewhere deep in the compiler.

Would you mind running a rustup update and trying with the latest stable version of rust.

Please let me know success or failure, we don't get many people testing on arm :)

A couple notes:

  • alacritty does not work for me on arm.
  • polybar-git will complain about the wrong architecture, but will work

Screenshot at 2021-06-12 18-20-29

@lex148 shure, ill check this out asap.

sadly, same error as before. ive tried a build directly from git with nightly and stable toolchain same errors as before. aswell ive tried install from cargo. what kind of setup do you have?

I have a vanilla install of Manjaro from here
Looking back add your build log, It looks more like a 32bit vs 64bit OS issue not Arm. Are you running a 32bit OS?
My guess is that you are running a 32bit OS on a 64bit arm CPU

Knowing your toolchain would be helpful. What do you see when you type?

rustup toolchain list
Was this page helpful?
0 / 5 - 0 ratings

Related issues

JwanKhalaf picture JwanKhalaf  路  3Comments

mautamu picture mautamu  路  5Comments

mikaelmantel picture mikaelmantel  路  3Comments

tommasoxd picture tommasoxd  路  4Comments

carrascomj picture carrascomj  路  3Comments