Re: [protobuf] Cross compiling to ARM on X64 fails, uses ARM js_embed

2017-12-14 Thread Alex Biddulph
We ultimately found an alternative method of handling this issue. The problem we were getting was that the binary (more accurately the dynamic loader) was finding the wrong version of C++ standard library, basically it was picking up our ARM libstdc++ because that was in the LD_LIBRARY_PATH.

Re: [protobuf] Cross compiling to ARM on X64 fails, uses ARM js_embed

2017-12-14 Thread 'Adam Cozzette' via Protocol Buffers
The js_embed binary shouldn't need anything but the C++ standard library. What kind of error are you getting? On Tue, Dec 12, 2017 at 4:55 PM, Alex Biddulph wrote: > @Adam Cozzette I have a further need to also control which libraries > js_embed uses at run time as the

Re: [protobuf] Cross compiling to ARM on X64 fails, uses ARM js_embed

2017-12-12 Thread Alex Biddulph
@Adam Cozzette I have a further need to also control which libraries js_embed uses at run time as the necessary run time libraries are not in the standard system search paths. Is there a way to add an LD_LIBRARY_PATH_FOR_BUILD type environment variable, or some other way of controlling this?

Re: [protobuf] Cross compiling to ARM on X64 fails, uses ARM js_embed

2017-01-06 Thread 'Adam Cozzette' via Protocol Buffers
Great, I'm glad it's working now. Now that you mention it I think there was another bug that js_embed was getting installed to /usr/bin, which doesn't really make sense since that program is just used as part of the build and isn't useful for anything else. I believe that is now fixed, too. On

Re: [protobuf] Cross compiling to ARM on X64 fails, uses ARM js_embed

2017-01-05 Thread Maxx Becker
Thanks so much for your replies! I was able to limp along initially by copying the x64 js_embed binary from /usr/bin to src/ before cross-compiling. make check failed all tests in that case but the tools appear to work! I tried both of your suggestions, with success, as described below. Before

Re: [protobuf] Cross compiling to ARM on X64 fails, uses ARM js_embed

2017-01-05 Thread 'Adam Cozzette' via Protocol Buffers
I went ahead and merged this to master with pull request 2565 and so cross compilation should now work again. On Tue, Jan 3, 2017 at 1:29 PM, Adam Cozzette wrote: > I updated the Autotools build so that it should now correctly

Re: [protobuf] Cross compiling to ARM on X64 fails, uses ARM js_embed

2017-01-03 Thread 'Adam Cozzette' via Protocol Buffers
I updated the Autotools build so that it should now correctly build js_embed in a form that's executable on the build machine. It is not in master yet but it is on my cross-compilation branch here: https://github.com/acozzette/protobuf/tree/cross-compilation Maxx, when you have a chance you could

Re: [protobuf] Cross compiling to ARM on X64 fails, uses ARM js_embed

2017-01-03 Thread 'Adam Cozzette' via Protocol Buffers
I hadn't thought about the cross-compilation use case for this. It seems to me that there are a few different ways to solve this: 1. Just check well_known_types_embed.cc into Git and we can update it manually when necessary. This is probably the easiest solution but is a little bit messy since it

Re: [protobuf] Cross compiling to ARM on X64 fails, uses ARM js_embed

2017-01-03 Thread 'Feng Xiao' via Protocol Buffers
+acozzette The js_embed binary was added very recently. The cross-build support for that binary is missing at the moment. As a temporary solution, you can use this version of protobuf (which doesn't have the js_embed binary): https://github.com/google/protobuf/releases/tag/v3.1.0 On Wed, Dec 28,