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

Failing to build (futures) #2

Closed
stopiccot opened this issue Jun 30, 2013 · 6 comments
Closed

Failing to build (futures) #2

stopiccot opened this issue Jun 30, 2013 · 6 comments
Labels

Comments

@stopiccot
Copy link
Contributor

After successfully building master branch I'm trying to build futures branch. It fails for me while building "base" target. Here is build log:

rsync -az --no-p --no-g --chmod=ugo=rwX --exclude 'iconv.h' avm2_env/usr/include/ /Users/stopiccot/code/flash/crossbridge/sdk/usr/include
rsync -az --no-p --no-g --chmod=ugo=rwX avm2_env/usr/lib/ /Users/stopiccot/code/flash/crossbridge/sdk/usr/lib
rsync: change_dir "/Users/stopiccot/code/flash/crossbridge//avm2_env/usr/lib" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1122) [sender=3.0.9]
make[1]: *
* [base] Error 23

There is really no /avm2_env/usr/lib forlder in futures branch. Can someone upload missing folder?

@cbakgly
Copy link
Contributor

cbakgly commented Jul 1, 2013

You can safely remove that rsync statement. Neither does that folder exist nor build need. :)

@stopiccot
Copy link
Contributor Author

OK, I commented this line. Now I'm getting error while building stdlibs target:

In file included from /Users/stopiccot/code/flash/crossbridge/avm2_env/usr/src/kern/kern_umtx.c:41:
/Users/stopiccot/code/flash/crossbridge/sdk/usr/platform/darwin/bin/../../usr/include/sys/mutex.h:49:27: error: machine/mutex.h: No such file or directory

Where I can get missing files?

@cbakgly
Copy link
Contributor

cbakgly commented Jul 2, 2013

This comes from folder avm2_env. Please try to search for that file, and copy it to the location prompted.
Well, a better way to do this, is manually build each target to see if anything wrong.
And may need to remove the folder where output files are laying at. Or modify the Makefile, since is very big, and tends to be error-prone.
Some targets on branch futures still fail. Either need to modify the compiler or the library code.
It's not completed yet.

@stopiccot
Copy link
Contributor Author

I've found machine/mutex.h in avm2_env only on master branch. On futures branch there is only sys/mutex.h file. Can I just copy machine/mutex.h from master branch? As for building each target manually I don't know which targets I need. I just want to build whole sdk to test it on my C++11 code and provide you some feedback.

@cbakgly
Copy link
Contributor

cbakgly commented Jul 2, 2013

Uploaded. Thanks for your feedback!
After pull it, you still have to copy it from avm2_env/usr/include/machine to sdk/usr/include/machine, if you want to continue with your current build.

And yes, most of files are the same on both branches. You surely can borrow one.
If you want to try clang, you have to change the variable to 3.2 (searching for "2.9") in the Makefile.
But the compiler is partially workable. And may not be successfully to do what you want. FYI.

@cbakgly cbakgly closed this as completed Jul 2, 2013
@stopiccot
Copy link
Contributor Author

I've copied machine/mutex.h from master branch (still not sure it is OK). Now I'm getting another error while building stdlibs target:

--- sigwait.o ---
/Users/stopiccot/code/flash/crossbridge/build/mac/lib/src/lib/libc/sys/sigwait.c:34: error: ‘_sigwait’ undeclared here (not in a function)
cc1: warnings being treated as errors
/Users/stopiccot/code/flash/crossbridge/build/mac/lib/src/lib/libc/sys/sigwait.c:34: warning: type defaults to ‘int’ in declaration of ‘sigwait’
/Users/stopiccot/code/flash/crossbridge/build/mac/lib/src/lib/libc/sys/sigwait.c:34: error: ‘sigwait’ redeclared as different kind of symbol
/Users/stopiccot/code/flash/crossbridge/build/mac/lib/src/lib/libc/../../include/signal.h:87: error: previous declaration of ‘sigwait’ was here
*** [sigwait.o] Error code 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants