Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raspberry Pi doesn't have 128-bit integer types on gcc #5

Open
athornton opened this issue May 20, 2019 · 5 comments
Open

Raspberry Pi doesn't have 128-bit integer types on gcc #5

athornton opened this issue May 20, 2019 · 5 comments

Comments

@athornton
Copy link

The Pi doesn't define 128-bit integer types, and therefore the things that assume [u]int128_t don't work. There is no mode TI on the machine.

Clang does work, but then you should probably state that it's required for the Pi (and whatever else there is that gcc doesn't support the 128-bit types on), or implement 128-bit types with GMP or something (which would be more painful). Also udplib, in the Makefile, assumes clang rather than $(CC); I don't know if that's intentional or not.

udplib : udplib.c udplib.h

  •   clang udplib.c -o udplib -DTEST=1
    
  •   $(CC) udplib.c -o udplib -DTEST=1
    
@Alchemist2
Copy link

On DPS8M 2.0 both gcc and clang work, provided you set up the M32 variable this way:

make M32=1

Tested on RaspberryPI 3 / Raspbian 10 (buster).

@athornton
Copy link
Author

Is v. 2.0 what is in the "master" branch?

@charlesUnixPro
Copy link
Owner

charlesUnixPro commented Sep 10, 2019 via email

@athornton
Copy link
Author

Ah. What was throwing me is that GitHub hasn't been synchronized with GitLab in quite some time.

@charlesUnixPro
Copy link
Owner

charlesUnixPro commented Sep 11, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants