-
Notifications
You must be signed in to change notification settings - Fork 107
Open
Description
Describe the bug
The gcc compiler is broken
To Reproduce
Steps to reproduce the behavior:
- Run
docker run -it --platform linux/amd64 pangeo/pangeo-notebook:2025.01.10 /bin/bash - [In container] Create a sample c code file
vim test.c
#include <stdio.h>
#define LAST 10
int main()
{
int i, sum = 0;
for ( i = 1; i <= LAST; i++ ) {
sum += i;
} /*-for-*/
printf("sum = %d\n", sum);
return 0;
}
- Compile the test code
gcc test.c - Produces following error
/srv/conda/envs/notebook/bin/../lib/gcc/x86_64-conda-linux-gnu/13.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: cannot find -lgcc: No such file or directory
/srv/conda/envs/notebook/bin/../lib/gcc/x86_64-conda-linux-gnu/13.3.0/../../../../x86_64-conda-linux-gnu/bin/ld: cannot find -lgcc: No such file or directory
Expected behavior
The sample code should compile without any error.
Docker Image Version:
pangeo/pangeo-notebook:2025.01.10
Infrastructure (Where you are running this image):
Personal MacBook Pro Apple M2 Pro, 32 GB, MacOS 15.3.2
Metadata
Metadata
Assignees
Labels
No labels