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

Error during native build #1

Open
jadonk opened this issue Oct 1, 2018 · 0 comments
Open

Error during native build #1

jadonk opened this issue Oct 1, 2018 · 0 comments

Comments

@jadonk
Copy link

jadonk commented Oct 1, 2018

See https://groups.google.com/d/msgid/beagleboard/d4b09b9d-8864-4c49-8242-8ea2e05ca17a%40googlegroups.com

Full error log when trying to re-run make at http://paste.debian.net/1045440/:

if ( \
	if [ -f "lib/litehtml/liblitehtml.a" ] ; then : ; \
	else \
		cd lib/litehtml && \
		cmake . && \
		make && \
		cd ../.. ; \
	fi ; \
	g++ -Wall -Wextra -Wpedantic -Wchkp -Wformat=2 -Wcast-align -Wcast-qual -Wctor-dtor-privacy -Wdisabled-optimization -Wlogical-op -Wmissing-declarations -Wmissing-include-dirs -Wnoexcept -Wold-style-cast -Woverloaded-virtual -Wredundant-decls -Wshadow -Wsign-conversion -Wsign-promo -Wstrict-null-sentinel -Wstrict-overflow=5 -Wswitch-default -Wundef -Wno-unused-parameter -fno-rtti -fno-builtin -Os -ffreestanding `pkg-config --cflags freetype2` `pkg-config --cflags libpng` -isystem lib/litehtml/include/ -c main.cpp ; \
	g++ -o build/uxmux main.o -Wl,-Map=build/uxmux.map,--cref -s -v -nodefaultlibs -lc -ldl -lstdc++ -lgcc_s -Wl,-t -Llib/litehtml/ -llitehtml `pkg-config --libs freetype2` `pkg-config --libs libpng` \
) ; then : ; else echo "FAILURE: Running 'make clean_all && make' may solve the problem." ; fi
In file included from main.cpp:1:0:
uxmux.h:30:6: error: ‘void uxmux_container::render(litehtml::uint_ptr, litehtml::document::ptr, uxmux_container*, fb_var_screeninfo*, fb_fix_screeninfo*, litehtml::uint_ptr, int, int, unsigned char, bool)’ cannot be overloaded
 void render(litehtml::uint_ptr hdc, litehtml::document::ptr doc, uxmux_container* painter, struct fb_var_screeninfo* vinfo, struct fb_fix_screeninfo* finfo, litehtml::uint_ptr hdcMouse, int x, int y, unsigned char click_ie, bool redraw) {
      ^~~~~~
In file included from main.cpp:1:0:
uxmux.h:24:6: error: with ‘void uxmux_container::render(litehtml::uint_ptr, litehtml::document::ptr, uxmux_container*, fb_var_screeninfo*, fb_fix_screeninfo*, litehtml::uint_ptr, int, int, unsigned char, bool)’
 void render(litehtml::uint_ptr hdc, litehtml::document::ptr doc, uxmux_container* painter, struct fb_var_screeninfo* vinfo, struct fb_fix_screeninfo* finfo, litehtml::uint_ptr hdcMouse, int x, int y, unsigned char click_ie, bool redraw);
      ^~~~~~
In file included from main.cpp:1:0:
uxmux.h:73:6: error: ‘bool uxmux_container::update(litehtml::document::ptr, uxmux_container*, unsigned char, int, int, bool*, bool*)’ cannot be overloaded
 bool update(litehtml::document::ptr doc, uxmux_container* painter, unsigned char click_ie, int x, int y, bool* redraw, bool* is_clicked) {
      ^~~~~~
uxmux.h:25:6: error: with ‘bool uxmux_container::update(litehtml::document::ptr, uxmux_container*, unsigned char, int, int, bool*, bool*)’
 bool update(litehtml::document::ptr doc, uxmux_container* painter, unsigned char click_ie, int x, int y, bool* redraw, bool* is_clicked);
      ^~~~~~
uxmux.h:94:20: error: ‘void* uxmux_container::get_drawable(fb_fix_screeninfo*, fb_var_screeninfo*)’ cannot be overloaded
 litehtml::uint_ptr get_drawable(struct fb_fix_screeninfo *_finfo, struct fb_var_screeninfo *_vinfo) {
                    ^~~~~~~~~~~~
uxmux.h:26:20: error: with ‘void* uxmux_container::get_drawable(fb_fix_screeninfo*, fb_var_screeninfo*)’
 litehtml::uint_ptr get_drawable(struct fb_fix_screeninfo *_finfo, struct fb_var_screeninfo *_vinfo);
                    ^~~~~~~~~~~~
uxmux.h:129:15: error: ‘unsigned char uxmux_container::handle_mouse(int, int, int*, int*, unsigned char)’ cannot be overloaded
 unsigned char handle_mouse(int mcf, int mmf, int* x_ret, int* y_ret, unsigned char last_click) {
               ^~~~~~~~~~~~
uxmux.h:27:15: error: with ‘unsigned char uxmux_container::handle_mouse(int, int, int*, int*, unsigned char)’
 unsigned char handle_mouse(int mcf, int mmf, int* x_ret, int* y_ret, unsigned char last_click);
               ^~~~~~~~~~~~
main.cpp:179:1: error: expected ‘}’ at end of input
 }
 ^
In file included from uxmux.h:14:0,
                 from main.cpp:1:
uxmux_container.h: In member function ‘virtual void* uxmux_container::create_font(const tchar_t*, int, int, litehtml::font_style, unsigned int, litehtml::font_metrics*)’:
uxmux_container.h:755:45: error: a function-definition is not allowed here before ‘{’ token
  void delete_font(litehtml::uint_ptr hFont) {
                                             ^
uxmux_container.h:759:74: error: a function-definition is not allowed here before ‘{’ token
  int text_width(const litehtml::tchar_t *text, litehtml::uint_ptr hFont) {
                                                                          ^
uxmux_container.h:1176:1: error: expected ‘}’ at end of input
 };
 ^
main.cpp: In member function ‘int uxmux_container::main(int, char**)’:
main.cpp:60:76: error: invalid new-expression of abstract class type ‘uxmux_container’
   uxmux_container *painter = new uxmux_container(prefix, "", &finfo, &vinfo);
                                                                            ^
In file included from uxmux.h:14:0,
                 from main.cpp:1:
uxmux_container.h:36:7: note:   because the following virtual functions are pure within ‘uxmux_container’:
 class uxmux_container : public litehtml::document_container {
       ^~~~~~~~~~~~~~~
In file included from lib/litehtml/include/litehtml.h:3:0,
                 from uxmux.h:13,
                 from main.cpp:1:
lib/litehtml/include/../src/html.h:35:19: note: 	virtual void litehtml::document_container::delete_font(litehtml::uint_ptr)
   virtual void    delete_font(litehtml::uint_ptr hFont) = 0;
                   ^~~~~~~~~~~
lib/litehtml/include/../src/html.h:36:19: note: 	virtual int litehtml::document_container::text_width(const tchar_t*, litehtml::uint_ptr)
   virtual int     text_width(const litehtml::tchar_t* text, litehtml::uint_ptr hFont) = 0;
                   ^~~~~~~~~~
lib/litehtml/include/../src/html.h:37:19: note: 	virtual void litehtml::document_container::draw_text(litehtml::uint_ptr, const tchar_t*, litehtml::uint_ptr, litehtml::web_color, const litehtml::position&)
   virtual void    draw_text(litehtml::uint_ptr hdc, const litehtml::tchar_t* text, litehtml::uint_ptr hFont, litehtml::web_color color, const litehtml::position& pos) = 0;
                   ^~~~~~~~~
lib/litehtml/include/../src/html.h:38:19: note: 	virtual int litehtml::document_container::pt_to_px(int)
   virtual int     pt_to_px(int pt) = 0;
                   ^~~~~~~~
lib/litehtml/include/../src/html.h:39:19: note: 	virtual int litehtml::document_container::get_default_font_size() const
   virtual int     get_default_font_size() const = 0;
                   ^~~~~~~~~~~~~~~~~~~~~
lib/litehtml/include/../src/html.h:40:36: note: 	virtual const tchar_t* litehtml::document_container::get_default_font_name() const
   virtual const litehtml::tchar_t* get_default_font_name() const = 0;
                                    ^~~~~~~~~~~~~~~~~~~~~
lib/litehtml/include/../src/html.h:41:19: note: 	virtual void litehtml::document_container::draw_list_marker(litehtml::uint_ptr, const litehtml::list_marker&)
   virtual void    draw_list_marker(litehtml::uint_ptr hdc, const litehtml::list_marker& marker) = 0;
                   ^~~~~~~~~~~~~~~~
lib/litehtml/include/../src/html.h:42:19: note: 	virtual void litehtml::document_container::load_image(const tchar_t*, const tchar_t*, bool)
   virtual void    load_image(const litehtml::tchar_t* src, const litehtml::tchar_t* baseurl, bool redraw_on_ready) = 0;
                   ^~~~~~~~~~
lib/litehtml/include/../src/html.h:43:19: note: 	virtual void litehtml::document_container::get_image_size(const tchar_t*, const tchar_t*, litehtml::size&)
   virtual void    get_image_size(const litehtml::tchar_t* src, const litehtml::tchar_t* baseurl, litehtml::size& sz) = 0;
                   ^~~~~~~~~~~~~~
lib/litehtml/include/../src/html.h:44:19: note: 	virtual void litehtml::document_container::draw_background(litehtml::uint_ptr, const litehtml::background_paint&)
   virtual void    draw_background(litehtml::uint_ptr hdc, const litehtml::background_paint& bg) = 0;
                   ^~~~~~~~~~~~~~~
lib/litehtml/include/../src/html.h:45:19: note: 	virtual void litehtml::document_container::draw_borders(litehtml::uint_ptr, const litehtml::borders&, const litehtml::position&, bool)
   virtual void    draw_borders(litehtml::uint_ptr hdc, const litehtml::borders& borders, const litehtml::position& draw_pos, bool root) = 0;
                   ^~~~~~~~~~~~
lib/litehtml/include/../src/html.h:47:19: note: 	virtual void litehtml::document_container::set_caption(const tchar_t*)
   virtual void    set_caption(const litehtml::tchar_t* caption) = 0;
                   ^~~~~~~~~~~
lib/litehtml/include/../src/html.h:48:19: note: 	virtual void litehtml::document_container::set_base_url(const tchar_t*)
   virtual void    set_base_url(const litehtml::tchar_t* base_url) = 0;
                   ^~~~~~~~~~~~
lib/litehtml/include/../src/html.h:49:19: note: 	virtual void litehtml::document_container::link(const std::shared_ptr<litehtml::document>&, const ptr&)
   virtual void    link(const std::shared_ptr<litehtml::document>& doc, const litehtml::element::ptr& el) = 0;
                   ^~~~
lib/litehtml/include/../src/html.h:50:19: note: 	virtual void litehtml::document_container::on_anchor_click(const tchar_t*, const ptr&)
   virtual void    on_anchor_click(const litehtml::tchar_t* url, const litehtml::element::ptr& el) = 0;
                   ^~~~~~~~~~~~~~~
lib/litehtml/include/../src/html.h:51:19: note: 	virtual void litehtml::document_container::set_cursor(const tchar_t*)
   virtual void    set_cursor(const litehtml::tchar_t* cursor) = 0;
                   ^~~~~~~~~~
lib/litehtml/include/../src/html.h:52:19: note: 	virtual void litehtml::document_container::transform_text(litehtml::tstring&, litehtml::text_transform)
   virtual void    transform_text(litehtml::tstring& text, litehtml::text_transform tt) = 0;
                   ^~~~~~~~~~~~~~
lib/litehtml/include/../src/html.h:53:19: note: 	virtual void litehtml::document_container::import_css(litehtml::tstring&, const tstring&, litehtml::tstring&)
   virtual void    import_css(litehtml::tstring& text, const litehtml::tstring& url, litehtml::tstring& baseurl) = 0;
                   ^~~~~~~~~~
lib/litehtml/include/../src/html.h:54:19: note: 	virtual void litehtml::document_container::set_clip(const litehtml::position&, const litehtml::border_radiuses&, bool, bool)
   virtual void    set_clip(const litehtml::position& pos, const litehtml::border_radiuses& bdr_radius, bool valid_x, bool valid_y) = 0;
                   ^~~~~~~~
lib/litehtml/include/../src/html.h:55:19: note: 	virtual void litehtml::document_container::del_clip()
   virtual void    del_clip() = 0;
                   ^~~~~~~~
lib/litehtml/include/../src/html.h:56:19: note: 	virtual void litehtml::document_container::get_client_rect(litehtml::position&) const
   virtual void    get_client_rect(litehtml::position& client) const = 0;
                   ^~~~~~~~~~~~~~~
lib/litehtml/include/../src/html.h:57:46: note: 	virtual std::shared_ptr<litehtml::element> litehtml::document_container::create_element(const tchar_t*, const string_map&, const std::shared_ptr<litehtml::document>&)
   virtual std::shared_ptr<litehtml::element> create_element(const litehtml::tchar_t *tag_name,
                                              ^~~~~~~~~~~~~~
lib/litehtml/include/../src/html.h:61:19: note: 	virtual void litehtml::document_container::get_media_features(litehtml::media_features&) const
   virtual void    get_media_features(litehtml::media_features& media) const = 0;
                   ^~~~~~~~~~~~~~~~~~
lib/litehtml/include/../src/html.h:62:19: note: 	virtual void litehtml::document_container::get_language(litehtml::tstring&, litehtml::tstring&) const
   virtual void    get_language(litehtml::tstring& language, litehtml::tstring & culture) const = 0;
                   ^~~~~~~~~~~~
main.cpp:135:87: error: invalid new-expression of abstract class type ‘uxmux_container’
      painter = new uxmux_container(page, painter->get_font_directory(), &finfo, &vinfo);
                                                                                       ^
main.cpp:158:88: error: invalid new-expression of abstract class type ‘uxmux_container’
       painter = new uxmux_container(page, painter->get_font_directory(), &finfo, &vinfo);
                                                                                        ^
main.cpp: At global scope:
main.cpp:179:1: error: expected unqualified-id at end of input
 }
 ^
g++: error: main.o: No such file or directory
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/arm-linux-gnueabihf/6/lto-wrapper
Target: arm-linux-gnueabihf
Configured with: ../src/configure -v --with-pkgversion='Debian 6.3.0-18' --with-bugurl=file:///usr/share/doc/gcc-6/README.Bugs --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-6 --program-prefix=arm-linux-gnueabihf- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-libitm --disable-libquadmath --enable-plugin --enable-default-pie --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-6-armhf/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-6-armhf --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-6-armhf --with-arch-directory=arm --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --disable-sjlj-exceptions --with-arch=armv7-a --with-fpu=vfpv3-d16 --with-float=hard --with-mode=thumb --enable-checking=release --build=arm-linux-gnueabihf --host=arm-linux-gnueabihf --target=arm-linux-gnueabihf
Thread model: posix
gcc version 6.3.0 20170516 (Debian 6.3.0-18) 
FAILURE: Running 'make clean_all && make' may solve the problem.
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

1 participant