Is this likely where MB_LEN_MAX errors are coming from? JK
________________________________ From: René Rebe <[email protected]> Sent: Friday, December 21, 2018 4:35 PM To: Joe Kozak Cc: T2 developers mailing list Subject: Re: [t2] cross compile include question Hi, On 21 Dec 2018, at 22:20, Joe Kozak <[email protected]<mailto:[email protected]>> wrote: ____________as an example i have this line... gcc -fPIC -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers -Wno-cast-function-type -Wstrict-prototypes -Werror=implicit-function-declaration -DHAVE_EXPAT_CONFIG_H=1 -DXML_POOR_ENTROPY=1 -DUSE_PYEXPAT_CAPI -I/root/t2-trunk/src.python.default.20181221.150403.8139.localhost/Python-3.7.1/Modules/expat -I./Include -I/root/t2-trunk/build/default-9.0-svn-generic-sparc64-niagara4-cross-linux/TOOLCHAIN/tools.cross/usr/include -I. -I/usr/local/include -I/root/t2-trunk/src.python.default.20181221.150403.8139.localhost/Python-3.7.1/Include -I/root/t2-trunk/src.python.default.20181221.150403.8139.localhost/Python-3.7.1 -c /root/t2-trunk/src.python.default.20181221.150403.8139.localhost/Python-3.7.1/Modules/_elementtree.c -o build/temp.linux-x86_64-3.7/root/t2-trunk/src.python.default.20181221.150403.8139.localhost/Python-3.7.1/Modules/_elementtree.o ____________there is: -I/root/t2-trunk/src.python.default.20181221.150403.8139.localhost/Python-3.7.1/Modules/expat -I./Include -I/root/t2-trunk/build/default-9.0-svn-generic-sparc64-niagara4-cross-linux/TOOLCHAIN/tools.cross/usr/include -I. -I/usr/local/include ____________(plus some more) should a cross compile be including -I/usr/local/include ? Ideally not, but some upstream packages have such hardcodings and such. It can be our compiler wrapper transforms some of those automatically, or removes them. We run the compiler with -h or so at the beginning of each package build in wrapper debug mode to log the compiler wrapper transforms applied (append, insert, remove, …) Getting arbitrary upstream packages to cross compile requires exactly such kind of things to fix, workaround polish, or other such things to set up. René -- ExactCODE GmbH, Lietzenburger Str. 42, DE-10789 Berlin http://exactcode.com<http://exactcode.com/> | http://exactscan.com<http://exactscan.com/> | http://ocrkit.com<http://ocrkit.com/> | http://t2-project.org<http://t2-project.org/> | http://rene.rebe.de
----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [email protected] with a subject of: unsubscribe t2
