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

Run judger on alpine linux container (for cloud environments) #67

Open
maradanasai opened this issue Aug 4, 2022 · 3 comments
Open

Comments

@maradanasai
Copy link

I'm trying to build a judger on alpine base image for running it on cloud container environments. but I'm getting following errors (I know you have mentioned that it is tested on ubuntu:18.04)

-- The C compiler identification is GNU 11.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /Judger/build
[  7%] Building C object CMakeFiles/libjudger.so.dir/src/argtable3.o
In function 'arg_cat',
    inlined from 'arg_cat_option' at /Judger/src/argtable3.c:4479:13,
    inlined from 'arg_print_syntax' at /Judger/src/argtable3.c:4680:9:
/Judger/src/argtable3.c:4406:11: error: writing 1 byte into a region of size 0 [-Werror=stringop-overflow=]
 4406 |     *dest = 0;
      |     ~~~~~~^~~
/Judger/src/argtable3.c: In function 'arg_print_syntax':
/Judger/src/argtable3.c:4669:14: note: at offset 200 into destination object 'syntax' of size 200
 4669 |         char syntax[200] = "";
      |              ^~~~~~
cc1: all warnings being treated as errors
make[2]: *** [CMakeFiles/libjudger.so.dir/build.make:76: CMakeFiles/libjudger.so.dir/src/argtable3.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/libjudger.so.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
/Judger/build #

Kindly help

@xiaokang00010
Copy link

I have the same problem in docker ubuntu:22.04 image, is there anyone to give us some help?

@xiaokang00010
Copy link

Oh, I found a way to solve this problem, just downgrade your ubuntu to ubuntu:20.04 and it works.

@wangxso
Copy link

wangxso commented Aug 8, 2023

Duplicate of #73

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