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
[  7%] Building C object CMakeFiles/driver.dir/driver.c.o
[ 14%] Linking C executable driver
[ 14%] Built target driver
Scanning dependencies of target mumsh
[ 21%] Building C object mumsh/CMakeFiles/mumsh.dir/exec.c.o
In file included from /in/exec.c:1:
In file included from /in/exec.h:4:
/in/types.h:140:21: error: no newline at end of file [-Werror,-Wnewline-eof]
#endif /* types_h */
                    ^
In file included from /in/exec.c:1:
/in/exec.h:19:20: error: no newline at end of file [-Werror,-Wnewline-eof]
#endif /* exec_h */
                   ^
/in/exec.c:124:18: error: implicit conversion changes signedness: 'EXEC_ERROR_T' to 'int' [-Werror,-Wsign-conversion]
            exit(ret_code);
            ~~~~ ^~~~~~~~
/in/exec.c:144:18: error: implicit conversion changes signedness: 'EXEC_ERROR_T' to 'int' [-Werror,-Wsign-conversion]
            exit(ret_code);
            ~~~~ ^~~~~~~~
/in/exec.c:151:18: error: implicit conversion changes signedness: 'EXEC_ERROR_T' to 'int' [-Werror,-Wsign-conversion]
            exit(ret_code);
            ~~~~ ^~~~~~~~
/in/exec.c:158:18: error: implicit conversion changes signedness: 'EXEC_ERROR_T' to 'int' [-Werror,-Wsign-conversion]
            exit(ret_code);
            ~~~~ ^~~~~~~~
/in/exec.c:186:70: error: implicit conversion changes signedness: 'int' to 'unsigned long' [-Werror,-Wsign-conversion]
    int** pipe_list = (int**)malloc(sizeof(int*)*(cmd_list->cmd_count+1));
                                                ~ ~~~~~~~~~~~~~~~~~~~^~
/in/exec.c:214:2: error: no newline at end of file [-Werror,-Wnewline-eof]
}
 ^
8 errors generated.
mumsh/CMakeFiles/mumsh.dir/build.make:62: recipe for target 'mumsh/CMakeFiles/mumsh.dir/exec.c.o' failed
make[2]: *** [mumsh/CMakeFiles/mumsh.dir/exec.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:43:39
Judged At
2021-09-29 23:43:39
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes