Record Detail

Compile Error

prepare (1/4): 
finished

cmake (2/4): 
-- The C compiler identification is Clang 6.0.0
-- The CXX compiler identification is Clang 6.0.0
-- Check for working C compiler: /usr/bin/clang
-- Check for working C compiler: /usr/bin/clang -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/clang++
-- Check for working CXX compiler: /usr/bin/clang++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /out/build
finished

make (3/4): 
Scanning dependencies of target driver
[ 16%] Building C object CMakeFiles/driver.dir/driver.c.o
[ 33%] Linking C executable driver
[ 33%] Built target driver
Scanning dependencies of target mumsh
[ 50%] Building C object mumsh/CMakeFiles/mumsh.dir/main.c.o
/in/main.c:236:21: error: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Werror,-Wshorten-64-to-32]
        int ssize = strlen(token[loc]);
            ~~~~~   ^~~~~~~~~~~~~~~~~~
/in/main.c:477:56: error: implicit conversion changes signedness: 'int' to 'unsigned long' [-Werror,-Wsign-conversion]
    arg2 = realloc(arg2, sizeof(char *) * (index - pos + 3));
                                        ~  ~~~~~~~~~~~~^~~
/in/main.c:550:53: error: implicit conversion changes signedness: 'int' to 'unsigned long' [-Werror,-Wsign-conversion]
        arg2 = realloc(arg2,sizeof(char*)*(index-pos+3));
                                         ~ ~~~~~~~~~^~
/in/main.c:714:29: error: implicit conversion loses integer precision: 'int' to 'char' [-Werror,-Wconversion]
        plain_input[ppos] = c;
                          ~ ^
/in/main.c:724:31: error: implicit conversion loses integer precision: 'int' to 'char' [-Werror,-Wconversion]
            user_input[pos] = c;
                            ~ ^
/in/main.c:733:35: error: implicit conversion loses integer precision: 'int' to 'char' [-Werror,-Wconversion]
                user_input[pos] = c;
                                ~ ^
/in/main.c:741:39: error: implicit conversion loses integer precision: 'int' to 'char' [-Werror,-Wconversion]
                    user_input[pos] = c;
                                    ~ ^
/in/main.c:747:39: error: implicit conversion loses integer precision: 'int' to 'char' [-Werror,-Wconversion]
                    user_input[pos] = c;
                                    ~ ^
/in/main.c:772:49: error: implicit conversion loses integer precision: 'int' to 'char' [-Werror,-Wconversion]
                            user_input[pos+1] = c;
                                              ~ ^
/in/main.c:787:49: error: implicit conversion loses integer precision: 'int' to 'char' [-Werror,-Wconversion]
                            user_input[pos+1] = c;
                                              ~ ^
/in/main.c:795:35: error: implicit conversion loses integer precision: 'int' to 'char' [-Werror,-Wconversion]
                user_input[pos] = c;
                                ~ ^
/in/main.c:856:53: error: implicit conversion loses integer precision: 'int' to 'char' [-Werror,-Wconversion]
                                user_input[pos-1] = c;
                                                  ~ ^
/in/main.c:884:53: error: implicit conversion loses integer precision: 'int' to 'char' [-Werror,-Wconversion]
                                user_input[pos-1] = c;
                                                  ~ ^
/in/main.c:897:27: error: implicit conversion loses integer precision: 'int' to 'char' [-Werror,-Wconversion]
        user_input[pos] = c;
                        ~ ^
/in/main.c:1087:41: error: implicit conversion changes signedness: 'int' to 'unsigned long' [-Werror,-Wsign-conversion]
    char** token = malloc(sizeof(char*)*token_size);
                                       ~^~~~~~~~~~
/in/main.c:1097:49: error: implicit conversion changes signedness: 'int' to 'unsigned long' [-Werror,-Wsign-conversion]
            token = realloc(token,sizeof(char*)*token_size+5);
                                               ~^~~~~~~~~~
/in/main.c:1109:2: error: no newline at end of file [-Werror,-Wnewline-eof]
}
 ^
17 errors generated.
mumsh/CMakeFiles/mumsh.dir/build.make:62: recipe for target 'mumsh/CMakeFiles/mumsh.dir/main.c.o' failed
make[2]: *** [mumsh/CMakeFiles/mumsh.dir/main.c.o] Error 1
CMakeFiles/Makefile2:124: recipe for target 'mumsh/CMakeFiles/mumsh.dir/all' failed
make[1]: *** [mumsh/CMakeFiles/mumsh.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

build failed

Information

Submit By
Type
Submission
Homework
Project 1 Milestone 1
Language
CMake
Submit At
2021-09-29 23:49:35
Judged At
2021-09-29 23:49:35
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes