Bug 6500 - php fails to build for armel.
Summary: php fails to build for armel.
Status: RESOLVED FIXED
Alias: None
Product: buildroot
Classification: Unclassified
Component: Other (show other bugs)
Version: 2013.08
Hardware: Other Linux
: P5 minor
Target Milestone: ---
Assignee: Gustavo Zacarias
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-25 00:03 UTC by twobob
Modified: 2013-11-28 11:52 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description twobob 2013-09-25 00:03:54 UTC
Unsure what other details may be helpful...


/home/me/GIT/buildroot-13-08/output/build/php-5.3.27/ext/fileinfo/libmagic/apprentice.c: In function 'apprentice_load':
/home/me/GIT/buildroot-13-08/output/build/php-5.3.27/ext/fileinfo/libmagic/apprentice.c:781:4: warning: passing argument 1 of '_php_stream_opendir' discards 'const' qualifier from pointer target type [enabled by default]
In file included from /home/me/GIT/buildroot-13-08/output/build/php-5.3.27/main/php.h:400:0,
                 from /home/me/GIT/buildroot-13-08/output/build/php-5.3.27/ext/fileinfo/libmagic/apprentice.c:32:
/home/me/GIT/buildroot-13-08/output/build/php-5.3.27/main/php_streams.h:339:53: note: expected 'char *' but argument is of type 'const char *'
make[1]: Leaving directory `/home/me/GIT/buildroot-13-08/output/build/php-5.3.27'
make: *** [/home/me/GIT/buildroot-13-08/output/build/php-5.3.27/.stamp_built] Error 2

Seems like a minor messup somewhere.
Upstream?  Unsure.  seems likely

Happy to provide more details upon request.
Hope this helps.

Will dig around for similar errors. I did find a bunch of pastebin logs of fails that looked PRETTY similar but now obvious patches...

and a few similar reports of this error output laterally.
Just thought you should know.
Comment 1 twobob 2013-09-25 00:12:59 UTC
Not sure if this is the actual error that kills it but
http://gcov.php.net/viewer.php?version=PHP_5_3&func=compile_results
Has no reference to this I can find.
Comment 2 twobob 2013-09-25 00:19:11 UTC
okay...

perhaps it is this?

cc1: warning: include location "/usr/include" is unsafe for cross-compilation [-Wpoison-system-directories]
In file included from /usr/include/features.h:389:0,
                 from /usr/include/stdlib.h:25,
                 from /home/me/GIT/buildroot-13-08/output/build/php-5.3.27/include/../main/php_config.h:2458,
                 from /home/me/GIT/buildroot-13-08/output/build/php-5.3.27/Zend/zend_config.h:1,
                 from /home/me/GIT/buildroot-13-08/output/build/php-5.3.27/Zend/zend.h:51,
                 from /home/me/GIT/buildroot-13-08/output/build/php-5.3.27/main/php.h:34,
                 from /home/me/GIT/buildroot-13-08/output/build/php-5.3.27/ext/iconv/iconv.c:27:
/usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file or directory
compilation terminated.
make[1]: *** [ext/iconv/iconv.lo] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/home/me/GIT/buildroot-13-08/output/build/php-5.3.27'
make: *** [/home/me/GIT/buildroot-13-08/output/build/php-5.3.27/.stamp_built] Error 2


Hope this helps.
Comment 3 Thomas Petazzoni 2013-10-01 21:28:33 UTC
Can you specify which Buildroot version you are using, and attach a Buildroot .config file that allows us to reproduce the problem?
Comment 4 Thomas Petazzoni 2013-10-30 21:56:28 UTC
Ping? Can you provide more details, especially the Buildroot version and configuration? Without these details, I'm afraid it will be hard for us to look at this bug. Thanks!
Comment 5 Thomas Petazzoni 2013-11-14 00:04:37 UTC
Now that I look at this, it seems similar to an autobuilder failure that we have seen, where the iconv module gets built with -I"/usr/include" in the compiler flags.
Comment 6 Gustavo Zacarias 2013-11-28 11:52:59 UTC
Should be solved in commit f2a2c4cce60b6fda5541ac5cb945abe9958c93eb for the upcoming 2013.11 release.