I realized that the several modules where not installed on python3-native build. Looking at log.do_install there were errors with linker (/usr/bin/ld: cannot find -lpython3.3m) for these modules, for example: array cmath math time _datetime Reading [1] I did a patch that get all modules linked: Index: Python-3.3.3/setup.py =================================================================== --- Python-3.3.3.orig/setup.py 2014-05-23 16:46:26.288763157 -0300 +++ Python-3.3.3/setup.py 2014-05-23 16:46:40.252763736 -0300 @@ -439,6 +439,7 @@ # directories (i.e. '.' and 'Include') must be first. See issue # 10520. if not cross_compiling: + add_dir_to_list(self.compiler.library_dirs, ('.')) add_dir_to_list(self.compiler.library_dirs, os.path.join('/usr/local', sys.lib)) add_dir_to_list(self.compiler.include_dirs, '/usr/local/include') # only change this for cross builds for 3.3, issues on Mageia [1] http://bugs.python.org/issue4366
(In reply to comment #0) > I realized that the several modules where not installed on python3-native > build. > Looking at log.do_install there were errors with linker (/usr/bin/ld: cannot > find -lpython3.3m) for these modules, for example: > > array > cmath > math > time > _datetime > > Reading [1] I did a patch that get all modules linked: > > Index: Python-3.3.3/setup.py > =================================================================== > --- Python-3.3.3.orig/setup.py 2014-05-23 16:46:26.288763157 -0300 > +++ Python-3.3.3/setup.py 2014-05-23 16:46:40.252763736 -0300 > @@ -439,6 +439,7 @@ > # directories (i.e. '.' and 'Include') must be first. See issue > # 10520. > if not cross_compiling: > + add_dir_to_list(self.compiler.library_dirs, ('.')) > add_dir_to_list(self.compiler.library_dirs, > os.path.join('/usr/local', sys.lib)) > add_dir_to_list(self.compiler.include_dirs, > '/usr/local/include') > # only change this for cross builds for 3.3, issues on Mageia > > > > [1] http://bugs.python.org/issue4366 That's strange it just works (get modules installed) if after a "bitbake python3-native" I do "bitbake python3-native -fccompile;bitbake python3-native -f;"
Can you give a little more details about if this is still failing for you? If you can reproduce it or not? If you can reproduce it can you give me some additional details on how you reproduced it. I tried to reproduce this but could not.
(In reply to comment #2) > Can you give a little more details about if this is still failing for you? > If you can reproduce it or not? > > If you can reproduce it can you give me some additional details on how you > reproduced it. I tried to reproduce this but could not. Following is my Build Configuration: BB_VERSION = "1.22.0" BUILD_SYS = "x86_64-linux" NATIVELSBSTRING = "Ubuntu-14.04" TARGET_SYS = "arm-poky-linux-gnueabi" MACHINE = "qemuarm" DISTRO = "poky" DISTRO_VERSION = "1.6" TUNE_FEATURES = "armv5 thumb dsp" TARGET_FPU = "soft" meta meta-yocto meta-yocto-bsp = "daisy:b8f6c7c794438fcfacef4fed8a9285f5dd2cb663" When I run bitbake python3-distribute from a completely new build environment I get the following error: ERROR: Function failed: do_compile (log file is located at /home/builder/yocto/build-daisy/tmp/work/armv5te-poky-linux-gnueabi/python3-distribute/0.6.32-ml5/temp/log.do_compile.23095) ERROR: Logfile of failure stored in: /home/builder/yocto/build-daisy/tmp/work/armv5te-poky-linux-gnueabi/python3-distribute/0.6.32-ml5/temp/log.do_compile.23095 Log data follows: | DEBUG: Executing shell function do_compile | creating build | creating build/src | creating build/src/_markerlib | creating build/src/docs | creating build/src/docs/_templates | creating build/src/docs/_theme | creating build/src/docs/_theme/nature | creating build/src/docs/_theme/nature/static | creating build/src/docs/build | creating build/src/docs/build/html | creating build/src/docs/build/html/_sources | creating build/src/docs/build/html/_static | creating build/src/setuptools | creating build/src/setuptools/command | creating build/src/setuptools/tests | creating build/src/setuptools/tests/indexes | creating build/src/setuptools/tests/indexes/test_links_priority | creating build/src/setuptools/tests/indexes/test_links_priority/simple | creating build/src/setuptools/tests/indexes/test_links_priority/simple/foobar | creating build/src/tests | creating build/src/tests/shlib_test | copying setuptools/__init__.py -> build/src/setuptools | copying setuptools/archive_util.py -> build/src/setuptools | copying setuptools/script template.py -> build/src/setuptools | copying setuptools/extension.py -> build/src/setuptools | copying setuptools/script template (dev).py -> build/src/setuptools | copying setuptools/package_index.py -> build/src/setuptools | copying setuptools/dist.py -> build/src/setuptools | copying setuptools/sandbox.py -> build/src/setuptools | copying setuptools/depends.py -> build/src/setuptools | copying setuptools/command/__init__.py -> build/src/setuptools/command | copying setuptools/command/test.py -> build/src/setuptools/command | copying setuptools/command/install_lib.py -> build/src/setuptools/command | copying setuptools/command/saveopts.py -> build/src/setuptools/command | copying setuptools/command/setopt.py -> build/src/setuptools/command | copying setuptools/command/upload_docs.py -> build/src/setuptools/command | copying setuptools/command/rotate.py -> build/src/setuptools/command | copying setuptools/command/alias.py -> build/src/setuptools/command | copying setuptools/command/install_egg_info.py -> build/src/setuptools/command | copying setuptools/command/bdist_egg.py -> build/src/setuptools/command | copying setuptools/command/bdist_rpm.py -> build/src/setuptools/command | copying setuptools/command/easy_install.py -> build/src/setuptools/command | copying setuptools/command/register.py -> build/src/setuptools/command | copying setuptools/command/upload.py -> build/src/setuptools/command | copying setuptools/command/install_scripts.py -> build/src/setuptools/command | copying setuptools/command/egg_info.py -> build/src/setuptools/command | copying setuptools/command/install.py -> build/src/setuptools/command | copying setuptools/command/build_ext.py -> build/src/setuptools/command | copying setuptools/command/develop.py -> build/src/setuptools/command | copying setuptools/command/build_py.py -> build/src/setuptools/command | copying setuptools/command/sdist.py -> build/src/setuptools/command | copying setuptools/command/bdist_wininst.py -> build/src/setuptools/command | copying setuptools/tests/test_bdist_egg.py -> build/src/setuptools/tests | copying setuptools/tests/__init__.py -> build/src/setuptools/tests | copying setuptools/tests/doctest.py -> build/src/setuptools/tests | copying setuptools/tests/test_develop.py -> build/src/setuptools/tests | copying setuptools/tests/test_resources.py -> build/src/setuptools/tests | copying setuptools/tests/test_sdist.py -> build/src/setuptools/tests | copying setuptools/tests/test_build_ext.py -> build/src/setuptools/tests | copying setuptools/tests/server.py -> build/src/setuptools/tests | copying setuptools/tests/test_test.py -> build/src/setuptools/tests | copying setuptools/tests/test_sandbox.py -> build/src/setuptools/tests | copying setuptools/tests/test_dist_info.py -> build/src/setuptools/tests | copying setuptools/tests/test_markerlib.py -> build/src/setuptools/tests | copying setuptools/tests/test_easy_install.py -> build/src/setuptools/tests | copying setuptools/tests/py26compat.py -> build/src/setuptools/tests | copying setuptools/tests/test_upload_docs.py -> build/src/setuptools/tests | copying setuptools/tests/test_packageindex.py -> build/src/setuptools/tests | copying setuptools/tests/win_script_wrapper.txt -> build/src/setuptools/tests | copying setuptools/gui.exe -> build/src/setuptools | copying setuptools/cli.exe -> build/src/setuptools | copying setuptools/cli-32.exe -> build/src/setuptools | copying setuptools/cli-64.exe -> build/src/setuptools | copying setuptools/gui-64.exe -> build/src/setuptools | copying setuptools/gui-32.exe -> build/src/setuptools | copying tests/manual_test.py -> build/src/tests | copying tests/test_distribute_setup.py -> build/src/tests | copying tests/install_test.py -> build/src/tests | copying tests/shlib_test/test_hello.py -> build/src/tests/shlib_test | copying tests/shlib_test/setup.py -> build/src/tests/shlib_test | copying tests/shlib_test/hello.c -> build/src/tests/shlib_test | copying tests/shlib_test/hellolib.c -> build/src/tests/shlib_test | copying tests/shlib_test/hello.pyx -> build/src/tests/shlib_test | copying tests/api_tests.txt -> build/src/tests | Traceback (most recent call last): | File "setup.py", line 31, in <module> | from lib2to3.main import main | File "/home/builder/yocto/build-daisy/tmp/sysroots/x86_64-linux/usr/lib/python3.3/lib2to3/main.py", line 10, in <module> | import logging | File "/home/builder/yocto/build-daisy/tmp/sysroots/x86_64-linux/usr/lib/python3.3/logging/__init__.py", line 26, in <module> | import sys, os, time, io, traceback, warnings, weakref | ImportError: No module named 'time' | ERROR: python3 setup.py build_ext execution failed. | WARNING: exit code 1 from a shell command. | ERROR: Function failed: do_compile (log file is located at /home/builder/yocto/build-daisy/tmp/work/armv5te-poky-linux-gnueabi/python3-distribute/0.6.32-ml5/temp/log.do_compile.23095) ERROR: Task 6 (/home/builder/yocto/poky-daisy/meta/recipes-devtools/python/python3-distribute_0.6.32.bb, do_compile) failed with exit code '1' NOTE: Tasks Summary: Attempted 561 tasks of which 15 didn't need to be rerun and 1 failed. Waiting for 0 running tasks to finish: Summary: 1 task failed: /home/builder/yocto/poky-daisy/meta/recipes-devtools/python/python3-distribute_0.6.32.bb, do_compile Summary: There were 4 WARNING messages shown. Summary: There was 1 ERROR message shown, returning a non-zero exit code. Testing the python3-native i got this error: builder@builder-note:~/yocto/build-daisy$ cd /home/builder/yocto/build-daisy/tmp/sysroots/x86_64-linux/usr/bin/python3-native/ builder@builder-note:~/yocto/build-daisy/tmp/sysroots/x86_64-linux/usr/bin/python3-native$ ./python3 Python 3.3.3 (default, Jun 3 2014, 18:56:41) [GCC 4.8.2] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import time Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: No module named 'time' >>> Issuing the commands "bitbake python3-native -fccompile ; bitbake python3-native -f", makes python3-native to get all internal modules installed on sysroot: builder@builder-note:~/yocto/build-daisy$ cd /home/builder/yocto/build-daisy/tmp/sysroots/x86_64-linux/usr/bin/python3-native/ builder@builder-note:~/yocto/build-daisy/tmp/sysroots/x86_64-linux/usr/bin/python3-native$ ./python3 Python 3.3.3 (default, Jun 3 2014, 18:56:41) [GCC 4.8.2] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import time >>> And now, "bitbake python3-distribute" gives me another error message: ERROR: Function failed: do_compile (log file is located at /home/builder/yocto/build-daisy/tmp/work/armv5te-poky-linux-gnueabi/python3-distribute/0.6.32-ml5/temp/log.do_compile.13268) ERROR: Logfile of failure stored in: /home/builder/yocto/build-daisy/tmp/work/armv5te-poky-linux-gnueabi/python3-distribute/0.6.32-ml5/temp/log.do_compile.13268 Log data follows: | DEBUG: Executing shell function do_compile | copying setuptools/tests/indexes/test_links_priority/external.html -> build/src/setuptools/tests/indexes/test_links_priority | copying setuptools/tests/indexes/test_links_priority/simple/foobar/index.html -> build/src/setuptools/tests/indexes/test_links_priority/simple/foobar | copying docs/conf.py -> build/src/docs | copying docs/roadmap.txt -> build/src/docs | copying docs/python3.txt -> build/src/docs | copying docs/pkg_resources.txt -> build/src/docs | copying docs/easy_install.txt -> build/src/docs | copying docs/setuptools.txt -> build/src/docs | copying docs/index.txt -> build/src/docs | copying docs/using.txt -> build/src/docs | copying docs/build/html/_sources/roadmap.txt -> build/src/docs/build/html/_sources | copying docs/build/html/_sources/python3.txt -> build/src/docs/build/html/_sources | copying docs/build/html/_sources/pkg_resources.txt -> build/src/docs/build/html/_sources | copying docs/build/html/_sources/easy_install.txt -> build/src/docs/build/html/_sources | copying docs/build/html/_sources/setuptools.txt -> build/src/docs/build/html/_sources | copying docs/build/html/_sources/index.txt -> build/src/docs/build/html/_sources | copying docs/build/html/_sources/using.txt -> build/src/docs/build/html/_sources | copying docs/_theme/nature/theme.conf -> build/src/docs/_theme/nature | copying docs/build/html/_static/nature.css -> build/src/docs/build/html/_static | copying docs/build/html/_static/basic.css -> build/src/docs/build/html/_static | copying docs/build/html/_static/pygments.css -> build/src/docs/build/html/_static | copying docs/_theme/nature/static/pygments.css -> build/src/docs/_theme/nature/static | copying docs/_theme/nature/static/nature.css_t -> build/src/docs/_theme/nature/static | copying docs/Makefile -> build/src/docs | copying docs/_templates/indexsidebar.html -> build/src/docs/_templates | copying _markerlib/__init__.py -> build/src/_markerlib | copying _markerlib/markers.py -> build/src/_markerlib | copying distribute_setup.py -> build/src | copying setup.py -> build/src | copying site.py -> build/src | copying pkg_resources.py -> build/src | copying easy_install.py -> build/src | copying release.py -> build/src | copying CHANGES.txt -> build/src | copying DEVGUIDE.txt -> build/src | copying CONTRIBUTORS.txt -> build/src | copying README.txt -> build/src | copying MANIFEST.in -> build/src | copying launcher.c -> build/src | Skipping implicit fixer: buffer | Skipping implicit fixer: idioms | Skipping implicit fixer: set_literal | Skipping implicit fixer: ws_comma | Traceback (most recent call last): | File "setup.py", line 45, in <module> | exec(init_file.read(), d) | File "<string>", line 8, in <module> | File "/home/builder/yocto/build-daisy/tmp/work/armv5te-poky-linux-gnueabi/python3-distribute/0.6.32-ml5/distribute-0.6.32/build/src/setuptools/__init__.py", line 2, in <module> | from setuptools.extension import Extension, Library | File "/home/builder/yocto/build-daisy/tmp/work/armv5te-poky-linux-gnueabi/python3-distribute/0.6.32-ml5/distribute-0.6.32/build/src/setuptools/extension.py", line 5, in <module> | from setuptools.dist import _get_unpatched | File "/home/builder/yocto/build-daisy/tmp/work/armv5te-poky-linux-gnueabi/python3-distribute/0.6.32-ml5/distribute-0.6.32/build/src/setuptools/dist.py", line 103 | except ValueError, e: | ^ | SyntaxError: invalid syntax | ERROR: python3 setup.py build_ext execution failed. | WARNING: exit code 1 from a shell command. | ERROR: Function failed: do_compile (log file is located at /home/builder/yocto/build-daisy/tmp/work/armv5te-poky-linux-gnueabi/python3-distribute/0.6.32-ml5/temp/log.do_compile.13268) ERROR: Task 6 (/home/builder/yocto/poky-daisy/meta/recipes-devtools/python/python3-distribute_0.6.32.bb, do_compile) failed with exit code '1' Please, let me know if you need more information.
I can not seem to reproduce this issue at all, Until we can get a solid reproducible case I am going to close this.
(In reply to comment #4) > I can not seem to reproduce this issue at all, Until we can get a solid > reproducible case I am going to close this. As you can see there is another person who faced with the same issue: https://lists.yoctoproject.org/pipermail/yocto/2014-June/020065.html
We were facing exactly the same issue on Ubuntu 14.04 build host, and the following patch resolved the issue: https://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=0ed5a13f5f9478e2c22f517fb3504b738422f85c
(In reply to comment #6) > We were facing exactly the same issue on Ubuntu 14.04 build host, and the > following patch resolved the issue: > > https://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/ > ?id=0ed5a13f5f9478e2c22f517fb3504b738422f85c Thanks for the tip. I' going to test it.