Bug 6500

Summary: php fails to build for armel.
Product: buildroot Reporter: twobob <seetwobob>
Component: OtherAssignee: Gustavo Zacarias <gustavo>
Status: RESOLVED FIXED    
Severity: minor CC: buildroot, seetwobob
Priority: P5    
Version: 2013.08   
Target Milestone: ---   
Hardware: Other   
OS: Linux   
Host: Target:
Build:

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.