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

quadmath.h: No such file or directory #8

Closed
almereyda opened this issue Dec 3, 2019 · 12 comments
Closed

quadmath.h: No such file or directory #8

almereyda opened this issue Dec 3, 2019 · 12 comments

Comments

@almereyda
Copy link

After cloning the repository and running cargo build --release (Ubuntu 19.10 arm64), an error is thrown:

$ cargo build --release
info: syncing channel updates for 'nightly-aarch64-unknown-linux-gnu'
info: latest update on 2019-12-03, rust version 1.41.0-nightly (fdc001156 2019-12-02)
info: skipping nightly which is missing installed component 'clippy-preview'
info: syncing channel updates for 'nightly-2019-12-02-aarch64-unknown-linux-gnu'
info: latest update on 2019-12-02, rust version 1.41.0-nightly (4007d4ef2 2019-12-01)
info: skipping nightly which is missing installed component 'clippy-preview'
info: syncing channel updates for 'nightly-2019-12-01-aarch64-unknown-linux-gnu'
info: latest update on 2019-12-01, rust version 1.41.0-nightly (d8bdb3fdc 2019-11-30)
info: skipping nightly which is missing installed component 'clippy-preview'
info: syncing channel updates for 'nightly-2019-11-30-aarch64-unknown-linux-gnu'
info: latest update on 2019-11-30, rust version 1.41.0-nightly (25d8a9494 2019-11-29)
info: skipping nightly which is missing installed component 'clippy-preview'
info: syncing channel updates for 'nightly-2019-11-29-aarch64-unknown-linux-gnu'
info: latest update on 2019-11-29, rust version 1.41.0-nightly (bbb664a99 2019-11-28)
info: skipping nightly which is missing installed component 'clippy-preview'
info: syncing channel updates for 'nightly-2019-11-28-aarch64-unknown-linux-gnu'
info: latest update on 2019-11-28, rust version 1.41.0-nightly (e87a205c2 2019-11-27)
info: skipping nightly which is missing installed component 'clippy-preview'
info: syncing channel updates for 'nightly-2019-11-27-aarch64-unknown-linux-gnu'
info: latest update on 2019-11-27, rust version 1.41.0-nightly (797fd9262 2019-11-26)
info: skipping nightly which is missing installed component 'clippy-preview'
info: syncing channel updates for 'nightly-2019-11-26-aarch64-unknown-linux-gnu'
info: latest update on 2019-11-26, rust version 1.41.0-nightly (a44774c3a 2019-11-25)
info: skipping nightly which is missing installed component 'clippy-preview'
info: syncing channel updates for 'nightly-2019-11-25-aarch64-unknown-linux-gnu'
info: latest update on 2019-11-25, rust version 1.41.0-nightly (412f43ac5 2019-11-24)
info: downloading component 'cargo'
info: downloading component 'clippy'
info: downloading component 'rust-std'
info: downloading component 'rustc'
info: downloading component 'rustc-dev'
info: downloading component 'rustfmt'
info: installing component 'cargo'
info: installing component 'clippy'
info: installing component 'rust-std'
info: installing component 'rustc'
info: installing component 'rustc-dev'
info: installing component 'rustfmt'
    Updating crates.io index
  Downloaded libc v0.2.65
  Downloaded lazy_static v1.4.0
  Downloaded c2rust-asm-casts v0.1.1
  Downloaded f128 v0.2.6
  Downloaded c2rust-bitfields v0.3.0
  Downloaded c2rust-bitfields-derive v0.2.0
  Downloaded quote v0.6.13
  Downloaded syn v0.15.44
  Downloaded num-traits v0.2.9
  Downloaded f128_input v0.2.1
  Downloaded f128_internal v0.2.1
  Downloaded unicode-xid v0.1.0
  Downloaded autocfg v0.1.7
  Downloaded proc-macro2 v0.4.30
  Downloaded cc v1.0.47
   Compiling proc-macro2 v0.4.30
   Compiling autocfg v0.1.7
   Compiling libc v0.2.65
   Compiling cc v1.0.47
   Compiling unicode-xid v0.1.0
   Compiling syn v0.15.44
   Compiling rustybox v0.0.0 (/home/ubuntu/src/github.com/samuela/rustybox)
   Compiling lazy_static v1.4.0
   Compiling c2rust-asm-casts v0.1.1
   Compiling num-traits v0.2.9
   Compiling quote v0.6.13
   Compiling f128_internal v0.2.1
error: failed to run custom build command for `f128_internal v0.2.1`

Caused by:
  process didn't exit successfully: `/home/ubuntu/src/github.com/samuela/rustybox/target/release/build/f128_internal-7dde1865362d42db/build-script-build` (exit code: 1)
--- stdout
TARGET = Some("aarch64-unknown-linux-gnu")
OPT_LEVEL = Some("z")
HOST = Some("aarch64-unknown-linux-gnu")
CC_aarch64-unknown-linux-gnu = None
CC_aarch64_unknown_linux_gnu = None
HOST_CC = None
CC = None
CFLAGS_aarch64-unknown-linux-gnu = None
CFLAGS_aarch64_unknown_linux_gnu = None
HOST_CFLAGS = None
CFLAGS = None
CRATE_CC_NO_DEFAULTS = None
DEBUG = Some("false")
CARGO_CFG_TARGET_FEATURE = Some("fp,neon")
running: "cc" "-Os" "-ffunction-sections" "-fdata-sections" "-fPIC" "-Wall" "-Wextra" "-Bstatic" "-lgfortran" "-lquadmath" "-o" "/home/ubuntu/src/github.com/samuela/rustybox/target/release/build/f128_internal-cd7ce17671f7d9fd/out/src/f128.o" "-c" "src/f128.c"
cargo:warning=src/f128.c:2:10: fatal error: quadmath.h: No such file or directory
cargo:warning=    2 | #include <quadmath.h>
cargo:warning=      |          ^~~~~~~~~~~~
cargo:warning=compilation terminated.
exit code: 1

--- stderr


error occurred: Command "cc" "-Os" "-ffunction-sections" "-fdata-sections" "-fPIC" "-Wall" "-Wextra" "-Bstatic" "-lgfortran" "-lquadmath" "-o" "/home/ubuntu/src/github.com/samuela/rustybox/target/release/build/f128_internal-cd7ce17671f7d9fd/out/src/f128.o" "-c" "src/f128.c" with args "cc" did not execute successfully (status code exit code: 1).



warning: build failed, waiting for other jobs to finish...
error: build failed
@samuela
Copy link
Owner

samuela commented Dec 3, 2019

Ah, looks like it's not able to find the right underlying headers from gcc. Do you have build-essential installed? I think that should do the trick...

@eren123danyel
Copy link

eren123danyel commented Dec 6, 2019

Ah, looks like it's not able to find the right underlying headers from gcc. Do you have build-essential installed? I think that should do the trick...

Hmm, sorry i'm also getting this error, but I have no idea how to get "build-essential" can you please explain this to me?

Edit: I'm on mac and after some searching around seems like I can't install it?

@samuela
Copy link
Owner

samuela commented Dec 7, 2019

@eren123danyel Oh yeah, on macOS it'll be a bit different. Does brew install gcc work for you?

@Akeboshiwind
Copy link
Contributor

Hey, I'm having the same issue. gcc was already installed so installing it wouldn't fix anything :/

@Akeboshiwind
Copy link
Contributor

For anyone else on macOS a workaround is to just use docker:

$ docker run -v /Users/oliverm/prog/rustybox/:/usr/src/ -it rust:1.40 bash

And then in the docker container:

$ cd /usr/src
$ cargo build --release

@samuela
Copy link
Owner

samuela commented Dec 27, 2019

Ok, hopefully b7d7f01 resolves the documentation part of this issue. Let me know if I'm missing anything!

@samuela samuela closed this as completed Dec 27, 2019
@Akeboshiwind
Copy link
Contributor

Akeboshiwind commented Dec 27, 2019 via email

@samuela
Copy link
Owner

samuela commented Dec 27, 2019

@Akeboshiwind if you use vs code you can do the remote connection over docker extension. It's remarkably good. That's actually my standard dev workflow for this project.

@Akeboshiwind
Copy link
Contributor

Akeboshiwind commented Dec 27, 2019 via email

@samuela
Copy link
Owner

samuela commented Dec 27, 2019

Oh well with emacs you could just run emacs within the container I suppose?

Not sure exactly what backend the VSCode extension uses. I'm guessing they built their own kinda thing that handles docker interop.

@Akeboshiwind
Copy link
Contributor

That seems like a nice workflow. I'll have to see if I can replicate it some time.

@atiabjobayer
Copy link

Anyone found any solution to get quadmath.h on macOS other than the docker workaround? Any help would be much appreciated.

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

5 participants