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

Build failure on Gentoo Linux (x86_64) #26

Closed
papa-agoo opened this issue Feb 11, 2014 · 5 comments
Closed

Build failure on Gentoo Linux (x86_64) #26

papa-agoo opened this issue Feb 11, 2014 · 5 comments

Comments

@papa-agoo
Copy link

godot $ scons bin/godot
scons: Reading SConscript files ...
sh: i586-mingw32msvc-gcc: command not found
Detected Platforms: ['server', 'x11']
Detected Modules: ['gridmap']
open path: platform/windows/logo.png
open path: platform/android/logo.png
open path: platform/javascript/logo.png
open path: platform/server/logo.png
open path: platform/iphone/logo.png
open path: platform/osx/logo.png
open path: platform/bb10/logo.png
open path: platform/nacl/logo.png
open path: platform/x11/logo.png

scons: warning: The Options class is deprecated; use the Variables class instead.
File "/mnt/data/development/external/godot/SConstruct", line 90, in
V: no

scons: warning: Two different environments were specified for target method_bind.inc,
but they appear to have the same action: run(target, source, env)
File "/mnt/data/development/external/godot/core/SCsub", line 28, in
V: no
scons: done reading SConscript files.
scons: Building targets ...
g++ -o main/main.o -c -g2 -Wall -DDEBUG_ENABLED -DDEBUG_MEMORY_ENABLED -DFREETYPE_ENABLED -DDEBUG_MEMORY_ALLOC -DSCI_NAMESPACE -DOPENGL_ENABLED -DGLEW_ENABLED -DALSA_ENABLED -DX11_ENABLED -DUNIX_ENABLED -DGLES2_ENABLED -DGLES1_ENABLED -DGLES_OVER_GL -DMUSEPACK_ENABLED -DOLD_SCENE_FORMAT_ENABLED -DSQUISH_ENABLED -DVORBIS_ENABLED -DTHEORA_ENABLED -DPNG_ENABLED -DDDS_ENABLED -DPVR_ENABLED -DJPG_ENABLED -DWEBP_ENABLED -DSPEEX_ENABLED -DTOOLS_ENABLED -DGDSCRIPT_ENABLED -DMINIZIP_ENABLED -DXML_ENABLED -Icore -Icore/math -Itools -Idrivers -I. -Iplatform/x11 -I/usr/include/freetype2 -Imain/vorbis main/main.cpp
In file included from ./core/io/unzip.h:55:0,
from ./core/io/file_access_zip.h:36,
from main/main.cpp:75:
./core/io/ioapi.h:126:51: error: expected initializer before 'OF'
./core/io/ioapi.h:127:51: error: expected initializer before 'OF'
./core/io/ioapi.h:128:51: error: expected initializer before 'OF'
./core/io/ioapi.h:129:51: error: expected initializer before 'OF'
./core/io/ioapi.h:130:51: error: expected initializer before 'OF'
./core/io/ioapi.h:132:51: error: expected initializer before 'OF'
./core/io/ioapi.h:133:51: error: expected initializer before 'OF'
./core/io/ioapi.h:139:5: error: 'open_file_func' does not name a type
./core/io/ioapi.h:140:5: error: 'read_file_func' does not name a type
./core/io/ioapi.h:141:5: error: 'write_file_func' does not name a type
./core/io/ioapi.h:142:5: error: 'tell_file_func' does not name a type
./core/io/ioapi.h:143:5: error: 'seek_file_func' does not name a type
./core/io/ioapi.h:144:5: error: 'close_file_func' does not name a type
./core/io/ioapi.h:145:5: error: 'testerror_file_func' does not name a type
./core/io/ioapi.h:149:51: error: expected initializer before 'OF'
./core/io/ioapi.h:150:51: error: expected initializer before 'OF'
./core/io/ioapi.h:151:51: error: expected initializer before 'OF'
./core/io/ioapi.h:155:5: error: 'open64_file_func' does not name a type
./core/io/ioapi.h:156:5: error: 'read_file_func' does not name a type
./core/io/ioapi.h:157:5: error: 'write_file_func' does not name a type
./core/io/ioapi.h:158:5: error: 'tell64_file_func' does not name a type
./core/io/ioapi.h:159:5: error: 'seek64_file_func' does not name a type
./core/io/ioapi.h:160:5: error: 'close_file_func' does not name a type
./core/io/ioapi.h:161:5: error: 'testerror_file_func' does not name a type
./core/io/ioapi.h:165:28: error: expected initializer before 'OF'
./core/io/ioapi.h:166:26: error: expected initializer before 'OF'
./core/io/ioapi.h:172:5: error: 'open_file_func' does not name a type
./core/io/ioapi.h:173:5: error: 'tell_file_func' does not name a type
./core/io/ioapi.h:174:5: error: 'seek_file_func' does not name a type
./core/io/ioapi.h:185:21: error: expected initializer before 'OF'
./core/io/ioapi.h:186:22: error: expected initializer before 'OF'
./core/io/ioapi.h:187:23: error: expected initializer before 'OF'
In file included from ./core/io/file_access_zip.h:36:0,
from main/main.cpp:75:
./core/io/unzip.h:153:45: error: expected initializer before 'OF'
./core/io/unzip.h:166:32: error: expected initializer before 'OF'
./core/io/unzip.h:167:34: error: expected initializer before 'OF'
./core/io/unzip.h:184:33: error: expected initializer before 'OF'
./core/io/unzip.h:191:36: error: expected initializer before 'OF'
./core/io/unzip.h:198:29: error: expected initializer before 'OF'
./core/io/unzip.h:208:37: error: expected initializer before 'OF'
./core/io/unzip.h:211:39: error: expected initializer before 'OF'
./core/io/unzip.h:219:40: error: expected initializer before 'OF'
./core/io/unzip.h:232:37: error: expected initializer before 'OF'
./core/io/unzip.h:238:36: error: expected initializer before 'OF'
./core/io/unzip.h:245:34: error: expected initializer before 'OF'
./core/io/unzip.h:291:44: error: expected initializer before 'OF'
./core/io/unzip.h:300:42: error: expected initializer before 'OF'
./core/io/unzip.h:324:55: error: expected initializer before 'OF'
./core/io/unzip.h:334:39: error: expected initializer before 'OF'
./core/io/unzip.h:340:47: error: expected initializer before 'OF'
./core/io/unzip.h:348:40: error: expected initializer before 'OF'
./core/io/unzip.h:361:40: error: expected initializer before 'OF'
./core/io/unzip.h:376:40: error: expected initializer before 'OF'
./core/io/unzip.h:382:39: error: expected initializer before 'OF'
./core/io/unzip.h:401:32: error: expected initializer before 'OF'
./core/io/unzip.h:403:35: error: expected initializer before 'OF'
./core/io/unzip.h:408:27: error: expected initializer before 'OF'
./core/io/unzip.h:413:42: error: expected initializer before 'OF'
scons: *** [main/main.o] Error 1
scons: building terminated because of errors.

  • scons v2.3.0
  • python v2.7.5
@papa-agoo
Copy link
Author

scons minizip=no bin/godot leads to this:

...
patform/windows/...
...
platform/android/export/export.cpp:373:14: warning: unused variable 'string_data_offset' [-Wunused-variable]
platform/android/export/export.cpp:374:14: warning: unused variable 'styles_offset' [-Wunused-variable]
platform/android/export/export.cpp:443:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
platform/android/export/export.cpp:430:14: warning: unused variable 'line' [-Wunused-variable]
platform/android/export/export.cpp:431:14: warning: unused variable 'nspace' [-Wunused-variable]
platform/android/export/export.cpp:433:14: warning: unused variable 'check' [-Wunused-variable]
platform/android/export/export.cpp:556:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
platform/android/export/export.cpp:600:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
platform/android/export/export.cpp:326:12: warning: unused variable 'CHUNK_AXML_FILE' [-Wunused-variable]
platform/android/export/export.cpp:327:12: warning: unused variable 'CHUNK_RESOURCEIDS' [-Wunused-variable]
platform/android/export/export.cpp:329:12: warning: unused variable 'CHUNK_XML_END_NAMESPACE' [-Wunused-variable]
platform/android/export/export.cpp:330:12: warning: unused variable 'CHUNK_XML_END_TAG' [-Wunused-variable]
platform/android/export/export.cpp:331:12: warning: unused variable 'CHUNK_XML_START_NAMESPACE' [-Wunused-variable]
platform/android/export/export.cpp:333:12: warning: unused variable 'CHUNK_XML_TEXT' [-Wunused-variable]
platform/android/export/export.cpp:341:11: warning: unused variable 'header' [-Wunused-variable]
platform/android/export/export.cpp:342:11: warning: unused variable 'filesize' [-Wunused-variable]
platform/android/export/export.cpp:347:11: warning: unused variable 'string_count' [-Wunused-variable]
platform/android/export/export.cpp:348:11: warning: unused variable 'styles_count' [-Wunused-variable]
platform/android/export/export.cpp:349:11: warning: unused variable 'string_flags' [-Wunused-variable]
platform/android/export/export.cpp:350:11: warning: unused variable 'string_data_offset' [-Wunused-variable]
platform/android/export/export.cpp:352:11: warning: unused variable 'styles_offset' [-Wunused-variable]
platform/android/export/export.cpp: In static member function 'static Error EditorExportPlatformAndroid::save_apk_file(void_, const String&, const Vector&, int, int)':
platform/android/export/export.cpp:669:24: error: 'zipOpenNewFileInZip' was not declared in this scope
platform/android/export/export.cpp:672:56: error: 'zipWriteInFileInZip' was not declared in this scope
platform/android/export/export.cpp:673:27: error: 'zipCloseFileInZip' was not declared in this scope
platform/android/export/export.cpp: In member function 'virtual Error EditorExportPlatformAndroid::export_project(const String&, bool, const String&)':
platform/android/export/export.cpp:706:55: error: 'unzOpen2' was not declared in this scope
platform/android/export/export.cpp:714:32: error: 'unzGoToFirstFile' was not declared in this scope
platform/android/export/export.cpp:719:78: error: 'zipOpen2' was not declared in this scope
platform/android/export/export.cpp:727:66: error: 'unzGetCurrentFileInfo' was not declared in this scope
platform/android/export/export.cpp:735:25: error: 'unzOpenCurrentFile' was not declared in this scope
platform/android/export/export.cpp:736:48: error: 'unzReadCurrentFile' was not declared in this scope
platform/android/export/export.cpp:737:26: error: 'unzCloseCurrentFile' was not declared in this scope
platform/android/export/export.cpp:791:25: error: 'zipOpenNewFileInZip' was not declared in this scope
platform/android/export/export.cpp:793:49: error: 'zipWriteInFileInZip' was not declared in this scope
platform/android/export/export.cpp:794:24: error: 'zipCloseFileInZip' was not declared in this scope
platform/android/export/export.cpp:796:28: error: 'unzGoToNextFile' was not declared in this scope
platform/android/export/export.cpp:810:19: error: 'zipClose' was not declared in this scope
platform/android/export/export.cpp:811:14: error: 'unzClose' was not declared in this scope
platform/android/export/export.cpp: In static member function 'static void EditorExportPlatformAndroid::device_poll_thread(void)':
platform/android/export/export.cpp:999:12: warning: unused variable 'err' [-Wunused-variable]
platform/android/export/export.cpp:940:9: warning: unused variable 'err' [-Wunused-variable]
platform/android/export/export.cpp: In member function 'virtual Error EditorExportPlatformAndroid::run(int)':
platform/android/export/export.cpp:1099:4: warning: statement has no effect [-Wunused-value]
scons: *** [platform/android/export/export.o] Error 1
scons: building terminated because of errors.

@reduz
Copy link
Member

reduz commented Feb 11, 2014

minizip is needed, but I'm not sure what the original errors mean. My guess is that gentoo does something weird regarding zlib

@JoseJX
Copy link

JoseJX commented Feb 21, 2014

Gentoo sanitizes the zlib headers because of namespace polution:
https://bugs.gentoo.org/show_bug.cgi?id=383179

This patch fixes it for me and should be okay for distros that don't do this:
--- core/io/ioapi.h.bak 2014-02-20 19:54:44.056383280 -0500
+++ core/io/ioapi.h 2014-02-20 19:55:31.060374495 -0500
@@ -99,6 +99,11 @@
extern "C" {
#endif

+#ifdef _Z_OF
+#undef OF
+#define OF _Z_OF
+#endif
+

#define ZLIB_FILEFUNC_SEEK_CUR (1)
#define ZLIB_FILEFUNC_SEEK_END (2)

@Evi1M4chine
Copy link

Just as an info: Godot compiles perfectly fine on Gentoo (amd64) nowadays.
I’ve successfully done Linux, Android and Javascript* builds (debug & release).
So I don’t think this bug is needed anymore.

The integrated libraries are not welcome on Gentoo, and would have to be removed in the ebuild [Gentoo install script], for it to have a chance of becoming integrated in to the package repository. (This is already done with Mozilla software, where it can be turned on with USE flags.)

But generally, everything is fine.


  • JS is of course still broken, but that’s another story. :)

@akien-mga
Copy link
Member

This issue is old, and apparently fixed judging by the last comment, so archiving it.

AndreaCatania added a commit to GodotECS/godot that referenced this issue Aug 10, 2021
lawnjelly added a commit to lawnjelly/godot that referenced this issue Apr 13, 2023
Add MergeGroup node to simplify merging Meshes at runtime
YeldhamDev pushed a commit to YeldhamDev/godot that referenced this issue Dec 5, 2023
…rt_settings

Move ad plugin priority settings to export settings
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants