adobe-flash / crossbridge

Welcome to visit the homepage!
http://www.crossbridge.io
542 stars 194 forks source link

Failing to build #1

Closed stopiccot closed 11 years ago

stopiccot commented 11 years ago

Log after doing a "make" in the root directory on master branch:

stopiccot-macbook:crossbridge stopiccot$ make


-  base
-  make
-  cmake
-  abclibs
-  basictools
  Failed to build: basictools
  make[1]: **\* [all_with_local_make] Error 1
  make: **\* [all] Error 2
liaocheng commented 11 years ago

Hi, you can check build/logs/basictools.txt to see what's the error.

stopiccot commented 11 years ago

The problem is that I don't have this file and logs folder at all:

stopiccot-macbook:crossbridge stopiccot$ cd build/ stopiccot-macbook:build stopiccot$ ls -al total 0 drwxr-xr-x 6 stopiccot staff 204 Jun 27 18:30 . drwxr-xr-x 56 stopiccot staff 1904 Jun 27 18:26 .. drwxr-xr-x 46 stopiccot staff 1564 Jun 27 18:30 apidocs drwxr-xr-x 2 stopiccot staff 68 Jun 27 18:26 extra drwxr-xr-x 12 stopiccot staff 408 Jun 27 18:30 mac drwxr-xr-x 44 stopiccot staff 1496 Jun 27 18:30 tempdita stopiccot-macbook:build stopiccot$

stopiccot commented 11 years ago

Probably you ment "build/mac/logs/basictools.txt"? This is what I have in it:

/Users/stopiccot/code/flash/crossbridge/tools/noenv/noenv.c: In function 'main': /Users/stopiccot/code/flash/crossbridge/tools/noenv/noenv.c:29:3: warning: passing argument 1 of 'execvp' from incompatible pointer type [enabled by default] In file included from /Users/stopiccot/code/flash/crossbridge/tools/noenv/noenv.c:21:0: /usr/include/unistd.h:475:6: note: expected 'const char ' but argument is of type 'const int ' /Users/stopiccot/code/flash/crossbridge/tools/noenv/noenv.c:29:3: warning: passing argument 2 of 'execvp' from incompatible pointer type [enabled by default] In file included from /Users/stopiccot/code/flash/crossbridge/tools/noenv/noenv.c:21:0: /usr/include/unistd.h:475:6: note: expected 'char \ const' but argument is of type 'const int ' /Users/stopiccot/code/flash/crossbridge/tools/as/as.cpp: In function 'FILE tmpfile(std::string_, const string&)': /Users/stopiccot/code/flash/crossbridge/tools/as/as.cpp:223:37: error: 'mkstemps' was not declared in this scope /Users/stopiccot/code/flash/crossbridge/tools/as/as.cpp: In destructor 'Unlinker::~Unlinker()': /Users/stopiccot/code/flash/crossbridge/tools/as/as.cpp:260:25: error: 'unlink' was not declared in this scope make[3]: _* [avm2-as] Error 1 make[3]: * Waiting for unfinished jobs.... make[2]: * [basictools] Error 2

stopiccot commented 11 years ago

Seems that I found the reason. I was building with gcc 4.7 from macports. Everything seems to be OK with llvm-gcc 4.2 from Apple.

stopiccot commented 11 years ago

Now I have another error. This time while building "gcclibs" target:


Making install in po Making install in testsuite make[6]: warning: -jN forced in submake: disabling jobserver mode. /bin/sh: Gaming: command not found make[3]: * [libobjc] Error 127 make[2]: * [gcclibs] Error 2

stopiccot commented 11 years ago

"/bin/sh: Gaming" error was caused by:

export PATH=/Applications/Adobe\ Gaming\ SDK\ 1.1/Utilities/ATF\ Tools/Mac:$PATH

in my bash profile. Seems that spaces in PATH are not supported.

stopiccot commented 11 years ago

After switching to llvm-gcc42 and removing spaces from PATH I finally compiled master branch of crossbridge