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
Cannot build any version in specific environment #492
Comments
👍 I got the same problem compiling with NDK. |
I also have the same problem occurs in ubuntu14, it was resolved. If there is experience , please try. |
Yup, same issue with NDK, any known work arounds? Working off Ubuntu btw |
I have the same issue trying to compile with clang++-3.6 and -stdlib=libc++, for some reason .... why does it have to be so hard to cross compile this thing.. and why does it even care that sched_yield exists? :( EDIT: And im compiling with -DGOOGLE_PROTOBUF_NO_RTTI and im still seeing undefined references to type_info and various other RTTI elements.. |
Any update on this? Same problem with ndk 11 |
Seeing this with Mac OS 10.9 and XCode 5.0.2.
|
Got the same problem on Debian testing today trying to compile protobuf 2.6.1. It seems like there is some weird fuckup inside the configure script (additionally to the usual fuckup commonly found in these scripts). My /usr/bin/gcc and /usr/bin/g++ are linked to gcc-5 and g++-5 respectively. Nevertheless the configure script decides to go with gcc-4.9 for whatever reason. It builds some C test cases which succeed. Then it continues with C++ tests and decides to use g++-4.9. But g++-4.9 is not installed on my system. g++-4.7 and g++-5 are. Anyway, installing g++-4.9 solves the problem. config.log attached. The day this autotools shit dies I will throw a big party. |
Need to cross compile protobuf with buildroot on arm target. Same issues. Tested with v2.6.1 & v3.0.0. |
On my system this error was fixed by running |
I also hit a |
You need to install gcc-c++. That should solve problem. |
…fers#492) The documentation for Timestamp.nanos says: <<< Non-negative fractions of a second at nanosecond resolution. Negative second values with fractions must still have non-negative nanos values that count forward in time. Must be from 0 to 999,999,999 inclusive. >>> The documentation for Duration.nanos says: <<< Signed fractions of a second at nanosecond resolution of the span of time. Durations less than one second are represented with a 0 `seconds` field and a positive or negative `nanos` field. For durations of one second or more, a non-zero value for the `nanos` field must be of the same sign as the `seconds` field. Must be from -999,999,999 to +999,999,999 inclusive. >>> Thus, we forbid values beyond the documented range of valid values.
I was trying to cross compile it (x86_64 Ubuntu to arm64) and had the same problem. Installing both gcc-aarch64-linux-gnu and g++-aarch64-linux-gnu seems to resolve the problem. Don't rely on build-essentials to much. |
Thanks a lot. I have fixed the problem after I saw this issue. |
Hi, I tried to build version 2.6.1 and 3.0.0 alpha 2 Linux in C++ using:
gcc (GCC) 4.8.2 20140120 (Red Hat 4.8.2-15) , g++ (GCC) 4.8.2 20140120 (Red Hat 4.8.2-15)
and the same error seems to prevent installation from generating the Makefile, so later make returns:
make: *** No targets specified and no makefile found. Stop.
./configure output shows these strange missing features of C++ environment, that frankly are hard to believe:
checking for working memcmp... no
checking for working strtod... no
checking for pow... no
checking for pow in -lm... no
configure: WARNING: cannot find library containing definition of pow
checking for ftruncate... no
checking for memset... no
checking for mkdir... no
checking for strchr... no
checking for strerror... no
checking for strtol... no
checking zlib version... headers missing or too old (requires 1.2.0.4)
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -pthread... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking whether to check for GCC pthread/shared inconsistencies... yes
checking whether -pthread is sufficient with -shared... yes
checking whether what we have so far is sufficient with -nostdlib... no
checking whether -lpthread saves the day... yes
checking the location of hash_map... <tr1/unordered_map>
checking for library containing sched_yield... no
configure: error: in
/root/source/protobuf-2.6.1': configure: error: sched_yield was not found on your system See
config.log' for more details.About zlib missing headers, yum reports:
Package zlib-1.2.3-29.el6.x86_64 already installed and latest version
which means the installation is not found by ./configure script.
But sched_yield seems to be the final blow.
Can someone please help me understand and/or fix this?
Thank you.
The text was updated successfully, but these errors were encountered: