Skip to content

Instantly share code, notes, and snippets.

@Quaker762
Created April 16, 2021 15:31
Show Gist options
  • Save Quaker762/0554b8210283b27f83754e70ced9299a to your computer and use it in GitHub Desktop.
Save Quaker762/0554b8210283b27f83754e70ced9299a to your computer and use it in GitHub Desktop.
Division causing build error?
AILED: Userland/Libraries/LibGL/CMakeFiles/LibGL.dir/GLUtils.cpp.o
/home/quaker/SerenityOS/serenity/Toolchain/Local/i686/bin/i686-pc-serenity-g++ -DDEBUG -DENABLE_COMPILETIME_FORMAT_CHECK -DLibGL_EXPORTS -DSANITIZE_PTRS -I../../Userland/Libraries -I../../. -I. -I../../Userland/Libraries/LibC -I../../Userland/Libraries/LibM -I../../Userland/Libraries/LibSystem -I../../Userland/Services -I../../Userland -IUserland/Services -IUserland/Libraries -IUserland -pie -fpic -fPIC -fconcepts -Wno-literal-suffix -Wformat=2 -fdiagnostics-color=always -Werror -Wall -Wextra -Wno-address-of-packed-member -Wcast-align -Wcast-qual -Wno-deprecated-copy -Wduplicated-cond -Wno-expansion-to-defined -Wimplicit-fallthrough -Wlogical-op -Wmisleading-indentation -Wmissing-declarations -Wno-nonnull-compare -Wnon-virtual-dtor -Wno-unknown-warning-option -Wundef -Wunused -Wwrite-strings -ffile-prefix-map=/home/quaker/SerenityOS/serenity=. -fno-exceptions -fstack-protector-strong -g1 -fstack-clash-protection -O2 -std=c++2a -MD -MT Userland/Libraries/LibGL/CMakeFiles/LibGL.dir/GLUtils.cpp.o -MF Userland/Libraries/LibGL/CMakeFiles/LibGL.dir/GLUtils.cpp.o.d -o Userland/Libraries/LibGL/CMakeFiles/LibGL.dir/GLUtils.cpp.o -c ../../Userland/Libraries/LibGL/GLUtils.cpp
In file included from /home/quaker/SerenityOS/serenity/Toolchain/Local/i686/i686-pc-serenity/include/c++/10.3.0/bits/std_abs.h:38,
from /home/quaker/SerenityOS/serenity/Toolchain/Local/i686/i686-pc-serenity/include/c++/10.3.0/cmath:47,
from ../../Userland/Libraries/LibGL/GLUtils.cpp:25:
/home/quaker/SerenityOS/serenity/Build/i686/Root/usr/include/stdlib.h:98:3: error: conflicting declaration 'typedef struct div_t div_t'
98 | } div_t;
| ^~~~~
In file included from ../.././AK/kmalloc.h:46,
from ../.././AK/Optional.h:32,
from ../.././AK/Vector.h:33,
from ../.././AK/StringView.h:35,
from ../.././AK/CheckedFormatString.h:32,
from ../.././AK/Format.h:29,
from ../.././AK/String.h:29,
from ../../Userland/Libraries/LibGL/math/mat4.h:25,
from ../../Userland/Libraries/LibGL/GLContext.h:36,
from ../../Userland/Libraries/LibGL/GLUtils.cpp:22:
../../Userland/Libraries/LibC/stdlib.h:98:3: note: previous declaration as 'typedef struct div_t div_t'
98 | } div_t;
| ^~~~~
In file included from /home/quaker/SerenityOS/serenity/Toolchain/Local/i686/i686-pc-serenity/include/c++/10.3.0/bits/std_abs.h:38,
from /home/quaker/SerenityOS/serenity/Toolchain/Local/i686/i686-pc-serenity/include/c++/10.3.0/cmath:47,
from ../../Userland/Libraries/LibGL/GLUtils.cpp:25:
/home/quaker/SerenityOS/serenity/Build/i686/Root/usr/include/stdlib.h:103:3: error: conflicting declaration 'typedef struct ldiv_t ldiv_t'
103 | } ldiv_t;
| ^~~~~~
In file included from ../.././AK/kmalloc.h:46,
from ../.././AK/Optional.h:32,
from ../.././AK/Vector.h:33,
from ../.././AK/StringView.h:35,
from ../.././AK/CheckedFormatString.h:32,
from ../.././AK/Format.h:29,
from ../.././AK/String.h:29,
from ../../Userland/Libraries/LibGL/math/mat4.h:25,
from ../../Userland/Libraries/LibGL/GLContext.h:36,
from ../../Userland/Libraries/LibGL/GLUtils.cpp:22:
../../Userland/Libraries/LibC/stdlib.h:103:3: note: previous declaration as 'typedef struct ldiv_t ldiv_t'
103 | } ldiv_t;
| ^~~~~~
In file included from /home/quaker/SerenityOS/serenity/Toolchain/Local/i686/i686-pc-serenity/include/c++/10.3.0/bits/std_abs.h:38,
from /home/quaker/SerenityOS/serenity/Toolchain/Local/i686/i686-pc-serenity/include/c++/10.3.0/cmath:47,
from ../../Userland/Libraries/LibGL/GLUtils.cpp:25:
/home/quaker/SerenityOS/serenity/Build/i686/Root/usr/include/stdlib.h:108:3: error: conflicting declaration 'typedef struct lldiv_t lldiv_t'
108 | } lldiv_t;
| ^~~~~~~
In file included from ../.././AK/kmalloc.h:46,
from ../.././AK/Optional.h:32,
from ../.././AK/Vector.h:33,
from ../.././AK/StringView.h:35,
from ../.././AK/CheckedFormatString.h:32,
from ../.././AK/Format.h:29,
from ../.././AK/String.h:29,
from ../../Userland/Libraries/LibGL/math/mat4.h:25,
from ../../Userland/Libraries/LibGL/GLContext.h:36,
from ../../Userland/Libraries/LibGL/GLUtils.cpp:22:
../../Userland/Libraries/LibC/stdlib.h:108:3: note: previous declaration as 'typedef struct lldiv_t lldiv_t'
108 | } lldiv_t;
| ^~~~~~~
cc1plus: note: unrecognized command-line option '-Wno-unknown-warning-option' may have been intended to silence earlier diagnostics
[5/2410] Building CXX object Userland/Libraries/LibGL/CMakeFiles/LibGL.dir/GLVert.cpp.o
FAILED: Userland/Libraries/LibGL/CMakeFiles/LibGL.dir/GLVert.cpp.o
/home/quaker/SerenityOS/serenity/Toolchain/Local/i686/bin/i686-pc-serenity-g++ -DDEBUG -DENABLE_COMPILETIME_FORMAT_CHECK -DLibGL_EXPORTS -DSANITIZE_PTRS -I../../Userland/Libraries -I../../. -I. -I../../Userland/Libraries/LibC -I../../Userland/Libraries/LibM -I../../Userland/Libraries/LibSystem -I../../Userland/Services -I../../Userland -IUserland/Services -IUserland/Libraries -IUserland -pie -fpic -fPIC -fconcepts -Wno-literal-suffix -Wformat=2 -fdiagnostics-color=always -Werror -Wall -Wextra -Wno-address-of-packed-member -Wcast-align -Wcast-qual -Wno-deprecated-copy -Wduplicated-cond -Wno-expansion-to-defined -Wimplicit-fallthrough -Wlogical-op -Wmisleading-indentation -Wmissing-declarations -Wno-nonnull-compare -Wnon-virtual-dtor -Wno-unknown-warning-option -Wundef -Wunused -Wwrite-strings -ffile-prefix-map=/home/quaker/SerenityOS/serenity=. -fno-exceptions -fstack-protector-strong -g1 -fstack-clash-protection -O2 -std=c++2a -MD -MT Userland/Libraries/LibGL/CMakeFiles/LibGL.dir/GLVert.cpp.o -MF Userland/Libraries/LibGL/CMakeFiles/LibGL.dir/GLVert.cpp.o.d -o Userland/Libraries/LibGL/CMakeFiles/LibGL.dir/GLVert.cpp.o -c ../../Userland/Libraries/LibGL/GLVert.cpp
In file included from /home/quaker/SerenityOS/serenity/Toolchain/Local/i686/i686-pc-serenity/include/c++/10.3.0/bits/std_abs.h:38,
from /home/quaker/SerenityOS/serenity/Toolchain/Local/i686/i686-pc-serenity/include/c++/10.3.0/cmath:47,
from ../../Userland/Libraries/LibGL/GLVert.cpp:28:
/home/quaker/SerenityOS/serenity/Build/i686/Root/usr/include/stdlib.h:98:3: error: conflicting declaration 'typedef struct div_t div_t'
98 | } div_t;
| ^~~~~
In file included from ../.././AK/kmalloc.h:46,
from ../.././AK/Optional.h:32,
from ../.././AK/Vector.h:33,
from ../.././AK/StringView.h:35,
from ../.././AK/CheckedFormatString.h:32,
from ../.././AK/Format.h:29,
from ../.././AK/String.h:29,
from ../../Userland/Libraries/LibGL/math/mat4.h:25,
from ../../Userland/Libraries/LibGL/GLContext.h:36,
from ../../Userland/Libraries/LibGL/GLVert.cpp:23:
../../Userland/Libraries/LibC/stdlib.h:98:3: note: previous declaration as 'typedef struct div_t div_t'
98 | } div_t;
| ^~~~~
In file included from /home/quaker/SerenityOS/serenity/Toolchain/Local/i686/i686-pc-serenity/include/c++/10.3.0/bits/std_abs.h:38,
from /home/quaker/SerenityOS/serenity/Toolchain/Local/i686/i686-pc-serenity/include/c++/10.3.0/cmath:47,
from ../../Userland/Libraries/LibGL/GLVert.cpp:28:
/home/quaker/SerenityOS/serenity/Build/i686/Root/usr/include/stdlib.h:103:3: error: conflicting declaration 'typedef struct ldiv_t ldiv_t'
103 | } ldiv_t;
| ^~~~~~
In file included from ../.././AK/kmalloc.h:46,
from ../.././AK/Optional.h:32,
from ../.././AK/Vector.h:33,
from ../.././AK/StringView.h:35,
from ../.././AK/CheckedFormatString.h:32,
from ../.././AK/Format.h:29,
from ../.././AK/String.h:29,
from ../../Userland/Libraries/LibGL/math/mat4.h:25,
from ../../Userland/Libraries/LibGL/GLContext.h:36,
from ../../Userland/Libraries/LibGL/GLVert.cpp:23:
../../Userland/Libraries/LibC/stdlib.h:103:3: note: previous declaration as 'typedef struct ldiv_t ldiv_t'
103 | } ldiv_t;
| ^~~~~~
In file included from /home/quaker/SerenityOS/serenity/Toolchain/Local/i686/i686-pc-serenity/include/c++/10.3.0/bits/std_abs.h:38,
from /home/quaker/SerenityOS/serenity/Toolchain/Local/i686/i686-pc-serenity/include/c++/10.3.0/cmath:47,
from ../../Userland/Libraries/LibGL/GLVert.cpp:28:
/home/quaker/SerenityOS/serenity/Build/i686/Root/usr/include/stdlib.h:108:3: error: conflicting declaration 'typedef struct lldiv_t lldiv_t'
108 | } lldiv_t;
| ^~~~~~~
In file included from ../.././AK/kmalloc.h:46,
from ../.././AK/Optional.h:32,
from ../.././AK/Vector.h:33,
from ../.././AK/StringView.h:35,
from ../.././AK/CheckedFormatString.h:32,
from ../.././AK/Format.h:29,
from ../.././AK/String.h:29,
from ../../Userland/Libraries/LibGL/math/mat4.h:25,
from ../../Userland/Libraries/LibGL/GLContext.h:36,
from ../../Userland/Libraries/LibGL/GLVert.cpp:23:
../../Userland/Libraries/LibC/stdlib.h:108:3: note: previous declaration as 'typedef struct lldiv_t lldiv_t'
108 | } lldiv_t;
| ^~~~~~~
cc1plus: note: unrecognized command-line option '-Wno-unknown-warning-option' may have been intended to silence earlier diagnostics
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment