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

make build_compiled fail on my mac #128

Open
nbren12 opened this issue Jan 20, 2021 · 1 comment
Open

make build_compiled fail on my mac #128

nbren12 opened this issue Jan 20, 2021 · 1 comment

Comments

@nbren12
Copy link
Contributor

nbren12 commented Jan 20, 2021

I get this error

$ make pull_deps
$ make build_compiled
docker build \
		--build-arg compile_option= \
		 --build-arg BASE_IMAGE=ubuntu:18.04 \
		-f docker/Dockerfile \
		-t us.gcr.io/vcm-ml/fv3gfs-compiled:gnu7-mpich314-nocuda \
		--target fv3gfs-compiled .
Sending build context to Docker daemon  133.3MB
Step 1/72 : ARG serialize=false
Step 2/72 : ARG BASE_IMAGE
Step 3/72 : ARG MPI_IMAGE=fv3gfs-mpi
Step 4/72 : ARG FMS_IMAGE=fv3gfs-fms
Step 5/72 : ARG ESMF_IMAGE=fv3gfs-esmf
Step 6/72 : ARG SERIALBOX_IMAGE=fv3gfs-environment-serialbox
Step 7/72 : FROM $BASE_IMAGE AS fv3gfs-mpi
 ---> 2c047404e52d
Step 8/72 : RUN apt-get update && apt-get install -y     wget     libtool-bin     gcc     g++     gfortran     make
 ---> Running in 0800aba17e04
Get:1 http://archive.ubuntu.com/ubuntu bionic InRelease [242 kB]
Get:2 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Err:2 http://security.ubuntu.com/ubuntu bionic-security InRelease
  At least one invalid signature was encountered.
Err:1 http://archive.ubuntu.com/ubuntu bionic InRelease
  At least one invalid signature was encountered.
Get:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Err:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease
  At least one invalid signature was encountered.
Get:4 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Err:4 http://archive.ubuntu.com/ubuntu bionic-backports InRelease
  At least one invalid signature was encountered.
Reading package lists...
W: GPG error: http://security.ubuntu.com/ubuntu bionic-security InRelease: At least one invalid signature was encountered.
E: The repository 'http://security.ubuntu.com/ubuntu bionic-security InRelease' is not signed.
W: GPG error: http://archive.ubuntu.com/ubuntu bionic InRelease: At least one invalid signature was encountered.
E: The repository 'http://archive.ubuntu.com/ubuntu bionic InRelease' is not signed.
W: GPG error: http://archive.ubuntu.com/ubuntu bionic-updates InRelease: At least one invalid signature was encountered.
E: The repository 'http://archive.ubuntu.com/ubuntu bionic-updates InRelease' is not signed.
W: GPG error: http://archive.ubuntu.com/ubuntu bionic-backports InRelease: At least one invalid signature was encountered.
E: The repository 'http://archive.ubuntu.com/ubuntu bionic-backports InRelease' is not signed.
The command '/bin/sh -c apt-get update && apt-get install -y     wget     libtool-bin     gcc     g++     gfortran     make' returned a non-zero code: 100
make: *** [build_compiled] Error 100

Is this rule still supported?

@spencerkclark
Copy link
Member

Yes, I use this rule on my VM, and it is also used in CI. I have not tried it elsewhere.

nbren12 pushed a commit that referenced this issue Apr 11, 2022
A user would like to be able to change the dimension ordering of Quantity objects, since the wrapper and new dynamical core use different dimension ordering for many (all?) values. Currently it requires significantly complicated user code to do this. This PR adds a `.transpose(dims)` method to Quantity which allows performing this re-ordering much more easily.

If you know you are working with cell-centered variables, you can do:

```python3
from fv3gfs.util import X_DIM, Y_DIM, Z_DIM
transposed_quantity = quantity.transpose([X_DIM, Y_DIM, Z_DIM])
```

To support re-ordering without checking whether quantities are on cell centers or interfaces, the API supports giving a list of dimension names for dimensions. For example, to re-order to X-Y-Z dimensions regardless of the grid the variable is on, one could do:
```python3
from fv3gfs.util import X_DIMS, Y_DIMS, Z_DIMS
transposed_quantity = quantity.transpose([X_DIMS, Y_DIMS, Z_DIMS])
```
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

2 participants