Skip to content

make -jnproc error #225

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

Closed
BigGitWorld opened this issue Feb 14, 2022 · 1 comment
Closed

make -jnproc error #225

BigGitWorld opened this issue Feb 14, 2022 · 1 comment

Comments

@BigGitWorld
Copy link

BigGitWorld commented Feb 14, 2022

make -j`nproc` results in the below error:

Scanning dependencies of target flutter-pi
[ 25%] Building C object CMakeFiles/flutter-pi.dir/src/platformchannel.c.o
[ 25%] Building C object CMakeFiles/flutter-pi.dir/src/flutter-pi.c.o
[ 25%] Building C object CMakeFiles/flutter-pi.dir/src/pluginregistry.c.o
[ 25%] Building C object CMakeFiles/flutter-pi.dir/src/texture_registry.c.o
In file included from /home/pi/flutter_all/flutter-pi/include/platformchannel.h:6,
                 from /home/pi/flutter_all/flutter-pi/src/pluginregistry.c:11:
/home/pi/flutter_all/flutter-pi/build/flutter_embedder.h:1594: error: unterminated #ifndef
 #ifndef FLUTTER_ENGINE_NO_PROTOTYPES
 
In file included from /home/pi/flutter_all/flutter-pi/include/platformchannel.h:6,
                 from /home/pi/flutter_all/flutter-pi/src/pluginregistry.c:11:
/home/pi/flutter_all/flutter-pi/build/flutter_embedder.h:5: error: unterminated #ifndef
 #ifndef FLUTTER_EMBEDDER_H_
 
In file included from /home/pi/flutter_all/flutter-pi/src/texture_registry.c:8:
/home/pi/flutter_all/flutter-pi/build/flutter_embedder.h:1594: error: unterminated #ifndef
 #ifndef FLUTTER_ENGINE_NO_PROTOTYPES
 
In file included from /home/pi/flutter_all/flutter-pi/src/texture_registry.c:8:
/home/pi/flutter_all/flutter-pi/build/flutter_embedder.h:5: error: unterminated #ifndef
 #ifndef FLUTTER_EMBEDDER_H_
 
In file included from /home/pi/flutter_all/flutter-pi/src/platformchannel.c:9:
/home/pi/flutter_all/flutter-pi/build/flutter_embedder.h:1594: error: unterminated #ifndef
 #ifndef FLUTTER_ENGINE_NO_PROTOTYPES
 
In file included from /home/pi/flutter_all/flutter-pi/src/platformchannel.c:9:
/home/pi/flutter_all/flutter-pi/build/flutter_embedder.h:5: error: unterminated #ifndef
 #ifndef FLUTTER_EMBEDDER_H_
 
In file included from /home/pi/flutter_all/flutter-pi/include/platformchannel.h:6,
                 from /home/pi/flutter_all/flutter-pi/src/platformchannel.c:11:
/home/pi/flutter_all/flutter-pi/build/flutter_embedder.h:1594: error: unterminated #ifndef
 #ifndef FLUTTER_ENGINE_NO_PROTOTYPES
 
/home/pi/flutter_all/flutter-pi/build/flutter_embedder.h:5: error: unterminated #ifndef
 #ifndef FLUTTER_EMBEDDER_H_
 
In file included from /home/pi/flutter_all/flutter-pi/include/texture_registry.h:5,
                 from /home/pi/flutter_all/flutter-pi/src/texture_registry.c:10:
/home/pi/flutter_all/flutter-pi/build/flutter_embedder.h:1594: error: unterminated #ifndef
 #ifndef FLUTTER_ENGINE_NO_PROTOTYPES
 
/home/pi/flutter_all/flutter-pi/build/flutter_embedder.h:5: error: unterminated #ifndef
 #ifndef FLUTTER_EMBEDDER_H_
 
In file included from /home/pi/flutter_all/flutter-pi/include/plugins/omxplayer_video_player.h:11,
                 from /home/pi/flutter_all/flutter-pi/src/pluginregistry.c:28:
/home/pi/flutter_all/flutter-pi/build/flutter_embedder.h:1594: error: unterminated #ifndef
 #ifndef FLUTTER_ENGINE_NO_PROTOTYPES
 
/home/pi/flutter_all/flutter-pi/build/flutter_embedder.h:5: error: unterminated #ifndef
 #ifndef FLUTTER_EMBEDDER_H_
 
make[2]: *** [CMakeFiles/flutter-pi.dir/build.make:89: CMakeFiles/flutter-pi.dir/src/pluginregistry.c.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /home/pi/flutter_all/flutter-pi/include/flutter-pi.h:27,
                 from /home/pi/flutter_all/flutter-pi/src/texture_registry.c:11:
/home/pi/flutter_all/flutter-pi/build/flutter_embedder.h:1594: error: unterminated #ifndef
 #ifndef FLUTTER_ENGINE_NO_PROTOTYPES
 
/home/pi/flutter_all/flutter-pi/build/flutter_embedder.h:5: error: unterminated #ifndef
 #ifndef FLUTTER_EMBEDDER_H_
 
In file included from /home/pi/flutter_all/flutter-pi/include/flutter-pi.h:27,
                 from /home/pi/flutter_all/flutter-pi/src/platformchannel.c:12:
/home/pi/flutter_all/flutter-pi/build/flutter_embedder.h:1594: error: unterminated #ifndef
 #ifndef FLUTTER_ENGINE_NO_PROTOTYPES
 
/home/pi/flutter_all/flutter-pi/build/flutter_embedder.h:5: error: unterminated #ifndef
 #ifndef FLUTTER_EMBEDDER_H_
 
make[2]: *** [CMakeFiles/flutter-pi.dir/build.make:102: CMakeFiles/flutter-pi.dir/src/texture_registry.c.o] Error 1
In file included from /home/pi/flutter_all/flutter-pi/src/flutter-pi.c:45:
/home/pi/flutter_all/flutter-pi/build/flutter_embedder.h:1594: error: unterminated #ifndef
 #ifndef FLUTTER_ENGINE_NO_PROTOTYPES
 
In file included from /home/pi/flutter_all/flutter-pi/src/flutter-pi.c:45:
/home/pi/flutter_all/flutter-pi/build/flutter_embedder.h:5: error: unterminated #ifndef
 #ifndef FLUTTER_EMBEDDER_H_
 
In file included from /home/pi/flutter_all/flutter-pi/include/flutter-pi.h:27,
                 from /home/pi/flutter_all/flutter-pi/src/flutter-pi.c:47:
/home/pi/flutter_all/flutter-pi/build/flutter_embedder.h:1594: error: unterminated #ifndef
 #ifndef FLUTTER_ENGINE_NO_PROTOTYPES
 
/home/pi/flutter_all/flutter-pi/build/flutter_embedder.h:5: error: unterminated #ifndef
 #ifndef FLUTTER_EMBEDDER_H_
 
make[2]: *** [CMakeFiles/flutter-pi.dir/build.make:76: CMakeFiles/flutter-pi.dir/src/platformchannel.c.o] Error 1
In file included from /home/pi/flutter_all/flutter-pi/include/compositor.h:7,
                 from /home/pi/flutter_all/flutter-pi/src/flutter-pi.c:48:
/home/pi/flutter_all/flutter-pi/build/flutter_embedder.h:1594: error: unterminated #ifndef
 #ifndef FLUTTER_ENGINE_NO_PROTOTYPES
 
/home/pi/flutter_all/flutter-pi/build/flutter_embedder.h:5: error: unterminated #ifndef
 #ifndef FLUTTER_EMBEDDER_H_
 
In file included from /home/pi/flutter_all/flutter-pi/include/user_input.h:5,
                 from /home/pi/flutter_all/flutter-pi/src/flutter-pi.c:50:
/home/pi/flutter_all/flutter-pi/build/flutter_embedder.h:1594: error: unterminated #ifndef
 #ifndef FLUTTER_ENGINE_NO_PROTOTYPES
 
/home/pi/flutter_all/flutter-pi/build/flutter_embedder.h:5: error: unterminated #ifndef
 #ifndef FLUTTER_EMBEDDER_H_
 
In file included from /home/pi/flutter_all/flutter-pi/include/locales.h:4,
                 from /home/pi/flutter_all/flutter-pi/src/flutter-pi.c:51:
/home/pi/flutter_all/flutter-pi/build/flutter_embedder.h:1594: error: unterminated #ifndef
 #ifndef FLUTTER_ENGINE_NO_PROTOTYPES
 
/home/pi/flutter_all/flutter-pi/build/flutter_embedder.h:5: error: unterminated #ifndef
 #ifndef FLUTTER_EMBEDDER_H_
 
In file included from /home/pi/flutter_all/flutter-pi/src/flutter-pi.c:51:
/home/pi/flutter_all/flutter-pi/include/locales.h:33:77: error: unknown type name ‘FlutterEngineUpdateLocalesFnPtr’; did you mean ‘FlutterEngineAOTDataSource’?
 int locales_add_to_fl_engine(struct locales *locales, FlutterEngine engine, FlutterEngineUpdateLocalesFnPtr update_locales);
                                                                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                                                             FlutterEngineAOTDataSource
In file included from /home/pi/flutter_all/flutter-pi/include/platformchannel.h:6,
                 from /home/pi/flutter_all/flutter-pi/src/flutter-pi.c:52:
/home/pi/flutter_all/flutter-pi/build/flutter_embedder.h:1594: error: unterminated #ifndef
 #ifndef FLUTTER_ENGINE_NO_PROTOTYPES
 
/home/pi/flutter_all/flutter-pi/build/flutter_embedder.h:5: error: unterminated #ifndef
 #ifndef FLUTTER_EMBEDDER_H_
 
In file included from /home/pi/flutter_all/flutter-pi/include/texture_registry.h:5,
                 from /home/pi/flutter_all/flutter-pi/src/flutter-pi.c:54:
/home/pi/flutter_all/flutter-pi/build/flutter_embedder.h:1594: error: unterminated #ifndef
 #ifndef FLUTTER_ENGINE_NO_PROTOTYPES
 
/home/pi/flutter_all/flutter-pi/build/flutter_embedder.h:5: error: unterminated #ifndef
 #ifndef FLUTTER_EMBEDDER_H_
 
/home/pi/flutter_all/flutter-pi/src/flutter-pi.c: In function ‘init_application’:
/home/pi/flutter_all/flutter-pi/src/flutter-pi.c:1868:7: warning: implicit declaration of function ‘locales_add_to_fl_engine’; did you mean ‘locale_get_fl_locale’? [-Wimplicit-function-declaration]
  ok = locales_add_to_fl_engine(flutterpi.locales, flutterpi.flutter.engine, libflutter_engine->FlutterEngineUpdateLocales);
       ^~~~~~~~~~~~~~~~~~~~~~~~
       locale_get_fl_locale
make[2]: *** [CMakeFiles/flutter-pi.dir/build.make:63: CMakeFiles/flutter-pi.dir/src/flutter-pi.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:76: CMakeFiles/flutter-pi.dir/all] Error 2
make: *** [Makefile:130: all] Error 2

also :
flutter-pi/build -> cmake .. results in:

cmake ..
-- CMAKE_BUILD_TYPE not set, defaulting to Release.
-- The C compiler identification is GNU 8.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Generator .............. Unix Makefiles
-- Build Type ............. Release
-- Flutter Channel not set, defaulting to stable
-- Flutter Channel ........ stable
-- Engine SHA1 ............ ab46186b246f5a36bd1f3f295d14a43abb1e2f38
-- PKG_CONFIG_PATH ........ 
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29") 
-- Checking for module 'libdrm'
--   Found libdrm, version 2.4.100
-- Checking for module 'gbm'
--   Found gbm, version 19.3.2
-- Checking for module 'egl'
--   Found egl, version 1.5
-- Checking for module 'glesv2'
--   Found glesv2, version 3.2
-- Checking for module 'libsystemd'
--   Found libsystemd, version 241
-- Checking for module 'libinput'
--   Found libinput, version 1.12.6
-- Checking for module 'xkbcommon'
--   Found xkbcommon, version 0.8.2
-- Checking for module 'libudev'
--   Found libudev, version 241
-- Configuring done
-- Generating done
-- Build files have been written to: /home/pi/flutter_all/flutter-pi/build

what is the problem?

@ardera
Copy link
Owner

ardera commented Feb 28, 2022

It looks like something went wrong while fetching the flutter_embedder.h. Did you try deleting the build folder and reconfiguring?

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

2 participants