Hello.

I am new to yocto, and for a project i am in need of modifying openswitch build for a presenattion in a way that the final build ( for this presentation it will be appliance ova) it shows another string or better to say a new Distro instead of openswitch in the final build. what i am looking for is a solution to change the name of all files and folders in the final build so that they show "test" instead of openswitch.

i have been told that it is possible by creating a new layer on top of current openswitch ops-build repo. But since i am new to this i am getting confused on the steps i should follow and thus it will take much time.

can anyone kindly guide me here on how should this be done? what are the processes involved?

one more thing is that any kind of change to the Distro name" openswitch" or created files or folder names by the build process will always result in a python_2.7.9 do_install error which interrupts the process.

Bellow is the error generated by python installation( i have used "test "as the desired distro name).

I will be so grateful if any one can help me get out of this situation.

----------------------------------------------------------------------------------


DEBUG: SITE files ['endian-little', 'common-linux', 'common-glibc', 'bit-64', 'x86_64-linux', 'common']
DEBUG: Executing shell function do_install
NOTE: make -j 4 HOSTPGEN=/home/sasami/ops-build/build/tmp/sysroots/x86_64-linux/usr/bin/python-native/pgen HOSTPYTHON=/home/sasami/ops-build/build/tmp/sysroots/x86_64-linux/usr/bin/python-native/python CROSSPYTHONPATH=/home/sasami/ops-build/build/tmp/sysroots/x86_64-linux/usr/lib/python2.7/lib-dynload/ STAGING_LIBDIR=/home/sasami/ops-build/build/tmp/sysroots/appliance/usr/lib STAGING_INCDIR=/home/sasami/ops-build/build/tmp/sysroots/appliance/usr/include STAGING_BASELIBDIR=/home/sasami/ops-build/build/tmp/sysroots/appliance/lib BUILD_SYS=x86_64-linux HOST_SYS=x86_64-test-linux DESTDIR=/home/sasami/ops-build/build/tmp/work/core2-64-test-linux/python/2.7.9-r1/image LIBDIR=/usr/lib x86_64-test-linux-gcc -m64 -march=core2 -mtune=core2 -msse3 -mfpmath=sse --sysroot=/home/sasami/ops-build/build/tmp/sysroots/appliance -c -fno-strict-aliasing -O2 -pipe -g -feliminate-unused-debug-types -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I. -IInclude -I/home/sasami/ops-build/build/tmp/work/core2-64-test-linux/python/2.7.9-r1/Python-2.7.9/Include -fPIC -DPy_BUILD_CORE -DPYTHONPATH='":plat-linux2:lib-tk:lib-old"' \
        -DPREFIX='"/usr"' \
        -DEXEC_PREFIX='"/usr"' \
        -DVERSION='"2.7"' \
-DVPATH='"/home/sasami/ops-build/build/tmp/work/core2-64-test-linux/python/2.7.9-r1/Python-2.7.9"' \
        -DLIB='"lib"' \
-o Modules/getpath.o /home/sasami/ops-build/build/tmp/work/core2-64-test-linux/python/2.7.9-r1/Python-2.7.9/Modules/getpath.c x86_64-test-linux-gcc -m64 -march=core2 -mtune=core2 -msse3 -mfpmath=sse --sysroot=/home/sasami/ops-build/build/tmp/sysroots/appliance -c -fno-strict-aliasing -O2 -pipe -g -feliminate-unused-debug-types -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I. -IInclude -I/home/sasami/ops-build/build/tmp/work/core2-64-test-linux/python/2.7.9-r1/Python-2.7.9/Include -fPIC -DPy_BUILD_CORE \
          -DSVNVERSION="\"`LC_ALL=C echo Unversioned directory`\"" \
-DHGVERSION="\"`LC_ALL=C hg id -i /home/sasami/ops-build/build/tmp/work/core2-64-test-linux/python/2.7.9-r1/Python-2.7.9`\"" \ -DHGTAG="\"`LC_ALL=C hg id -t /home/sasami/ops-build/build/tmp/work/core2-64-test-linux/python/2.7.9-r1/Python-2.7.9`\"" \ -DHGBRANCH="\"`LC_ALL=C hg id -b /home/sasami/ops-build/build/tmp/work/core2-64-test-linux/python/2.7.9-r1/Python-2.7.9`\"" \ -o Modules/getbuildinfo.o /home/sasami/ops-build/build/tmp/work/core2-64-test-linux/python/2.7.9-r1/Python-2.7.9/Modules/getbuildinfo.c abort: repository /home/sasami/ops-build/build/tmp/work/core2-64-test-linux/python/2.7.9-r1/Python-2.7.9 not found! abort: repository /home/sasami/ops-build/build/tmp/work/core2-64-test-linux/python/2.7.9-r1/Python-2.7.9 not found! abort: repository /home/sasami/ops-build/build/tmp/work/core2-64-test-linux/python/2.7.9-r1/Python-2.7.9 not found!
rm -f libpython2.7.a
if test libpython2.7.so.1.0 != libpython2.7.so; then \
x86_64-test-linux-gcc -m64 -march=core2 -mtune=core2 -msse3 -mfpmath=sse --sysroot=/home/sasami/ops-build/build/tmp/sysroots/appliance -shared -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -Wl,-hlibpython2.7.so.1.0 -o libpython2.7.so.1.0 Modules/getbuildinfo.o Parser/acceler.o Parser/grammar1.o Parser/listnode.o Parser/node.o Parser/parser.o Parser/parsetok.o Parser/bitset.o Parser/metagrammar.o Parser/firstsets.o Parser/grammar.o Parser/pgen.o Parser/myreadline.o Parser/tokenizer.o Objects/abstract.o Objects/boolobject.o Objects/bufferobject.o Objects/bytes_methods.o Objects/bytearrayobject.o Objects/capsule.o Objects/cellobject.o Objects/classobject.o Objects/cobject.o Objects/codeobject.o Objects/complexobject.o Objects/descrobject.o Objects/enumobject.o Objects/exceptions.o Objects/genobject.o Objects/fileobject.o Objects/floatobject.o Objects/frameobject.o Objects/funcobject.o Objects/intobject.o Objects/iterobject.o Objects/listobject.o Objects/longobject.o Objects/dictobject.o Objects/memoryobject.o Objects/methodobject.o Objects/moduleobject.o Objects/object.o Objects/obmalloc.o Objects/rangeobject.o Objects/setobject.o Objects/sliceobject.o Objects/stringobject.o Objects/structseq.o Objects/tupleobject.o Objects/typeobject.o Objects/weakrefobject.o Objects/unicodeobject.o Objects/unicodectype.o Python/_warnings.o Python/Python-ast.o Python/asdl.o Python/ast.o Python/bltinmodule.o Python/ceval.o Python/compile.o Python/codecs.o Python/errors.o Python/frozen.o Python/frozenmain.o Python/future.o Python/getargs.o Python/getcompiler.o Python/getcopyright.o Python/getplatform.o Python/getversion.o Python/graminit.o Python/import.o Python/importdl.o Python/marshal.o Python/modsupport.o Python/mystrtoul.o Python/mysnprintf.o Python/peephole.o Python/pyarena.o Python/pyctype.o Python/pyfpe.o Python/pymath.o Python/pystate.o Python/pythonrun.o Python/random.o Python/structmember.o Python/symtable.o Python/sysmodule.o Python/traceback.o Python/getopt.o Python/pystrcmp.o Python/pystrtod.o Python/dtoa.o Python/formatter_unicode.o Python/formatter_string.o Python/dynload_shlib.o Python/thread.o Modules/config.o Modules/getpath.o Modules/main.o Modules/gcmodule.o Modules/threadmodule.o Modules/signalmodule.o Modules/posixmodule.o Modules/errnomodule.o Modules/pwdmodule.o Modules/_sre.o Modules/_codecsmodule.o Modules/_weakref.o Modules/zipimport.o Modules/symtablemodule.o Modules/md5module.o Modules/md5.o Modules/xxsubtype.o -lpthread -ldl -lpthread -lutil -lm ; \
        ln -f libpython2.7.so.1.0 libpython2.7.so; \
    else \
x86_64-test-linux-gcc -m64 -march=core2 -mtune=core2 -msse3 -mfpmath=sse --sysroot=/home/sasami/ops-build/build/tmp/sysroots/appliance -shared -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -o libpython2.7.so Modules/getbuildinfo.o Parser/acceler.o Parser/grammar1.o Parser/listnode.o Parser/node.o Parser/parser.o Parser/parsetok.o Parser/bitset.o Parser/metagrammar.o Parser/firstsets.o Parser/grammar.o Parser/pgen.o Parser/myreadline.o Parser/tokenizer.o Objects/abstract.o Objects/boolobject.o Objects/bufferobject.o Objects/bytes_methods.o Objects/bytearrayobject.o Objects/capsule.o Objects/cellobject.o Objects/classobject.o Objects/cobject.o Objects/codeobject.o Objects/complexobject.o Objects/descrobject.o Objects/enumobject.o Objects/exceptions.o Objects/genobject.o Objects/fileobject.o Objects/floatobject.o Objects/frameobject.o Objects/funcobject.o Objects/intobject.o Objects/iterobject.o Objects/listobject.o Objects/longobject.o Objects/dictobject.o Objects/memoryobject.o Objects/methodobject.o Objects/moduleobject.o Objects/object.o Objects/obmalloc.o Objects/rangeobject.o Objects/setobject.o Objects/sliceobject.o Objects/stringobject.o Objects/structseq.o Objects/tupleobject.o Objects/typeobject.o Objects/weakrefobject.o Objects/unicodeobject.o Objects/unicodectype.o Python/_warnings.o Python/Python-ast.o Python/asdl.o Python/ast.o Python/bltinmodule.o Python/ceval.o Python/compile.o Python/codecs.o Python/errors.o Python/frozen.o Python/frozenmain.o Python/future.o Python/getargs.o Python/getcompiler.o Python/getcopyright.o Python/getplatform.o Python/getversion.o Python/graminit.o Python/import.o Python/importdl.o Python/marshal.o Python/modsupport.o Python/mystrtoul.o Python/mysnprintf.o Python/peephole.o Python/pyarena.o Python/pyctype.o Python/pyfpe.o Python/pymath.o Python/pystate.o Python/pythonrun.o Python/random.o Python/structmember.o Python/symtable.o Python/sysmodule.o Python/traceback.o Python/getopt.o Python/pystrcmp.o Python/pystrtod.o Python/dtoa.o Python/formatter_unicode.o Python/formatter_string.o Python/dynload_shlib.o Python/thread.o Modules/config.o Modules/getpath.o Modules/main.o Modules/gcmodule.o Modules/threadmodule.o Modules/signalmodule.o Modules/posixmodule.o Modules/errnomodule.o Modules/pwdmodule.o Modules/_sre.o Modules/_codecsmodule.o Modules/_weakref.o Modules/zipimport.o Modules/symtablemodule.o Modules/md5module.o Modules/md5.o Modules/xxsubtype.o -lpthread -ldl -lpthread -lutil -lm ; \
    fi
x86_64-test-linux-ar rc libpython2.7.a Modules/getbuildinfo.o
x86_64-test-linux-ar rc libpython2.7.a Parser/acceler.o Parser/grammar1.o Parser/listnode.o Parser/node.o Parser/parser.o Parser/parsetok.o Parser/bitset.o Parser/metagrammar.o Parser/firstsets.o Parser/grammar.o Parser/pgen.o Parser/myreadline.o Parser/tokenizer.o x86_64-test-linux-ar rc libpython2.7.a Objects/abstract.o Objects/boolobject.o Objects/bufferobject.o Objects/bytes_methods.o Objects/bytearrayobject.o Objects/capsule.o Objects/cellobject.o Objects/classobject.o Objects/cobject.o Objects/codeobject.o Objects/complexobject.o Objects/descrobject.o Objects/enumobject.o Objects/exceptions.o Objects/genobject.o Objects/fileobject.o Objects/floatobject.o Objects/frameobject.o Objects/funcobject.o Objects/intobject.o Objects/iterobject.o Objects/listobject.o Objects/longobject.o Objects/dictobject.o Objects/memoryobject.o Objects/methodobject.o Objects/moduleobject.o Objects/object.o Objects/obmalloc.o Objects/rangeobject.o Objects/setobject.o Objects/sliceobject.o Objects/stringobject.o Objects/structseq.o Objects/tupleobject.o Objects/typeobject.o Objects/weakrefobject.o Objects/unicodeobject.o Objects/unicodectype.o x86_64-test-linux-ar rc libpython2.7.a Python/_warnings.o Python/Python-ast.o Python/asdl.o Python/ast.o Python/bltinmodule.o Python/ceval.o Python/compile.o Python/codecs.o Python/errors.o Python/frozen.o Python/frozenmain.o Python/future.o Python/getargs.o Python/getcompiler.o Python/getcopyright.o Python/getplatform.o Python/getversion.o Python/graminit.o Python/import.o Python/importdl.o Python/marshal.o Python/modsupport.o Python/mystrtoul.o Python/mysnprintf.o Python/peephole.o Python/pyarena.o Python/pyctype.o Python/pyfpe.o Python/pymath.o Python/pystate.o Python/pythonrun.o Python/random.o Python/structmember.o Python/symtable.o Python/sysmodule.o Python/traceback.o Python/getopt.o Python/pystrcmp.o Python/pystrtod.o Python/dtoa.o Python/formatter_unicode.o Python/formatter_string.o Python/dynload_shlib.o Python/thread.o x86_64-test-linux-ar rc libpython2.7.a Modules/config.o Modules/getpath.o Modules/main.o Modules/gcmodule.o x86_64-test-linux-ar rc libpython2.7.a Modules/threadmodule.o Modules/signalmodule.o Modules/posixmodule.o Modules/errnomodule.o Modules/pwdmodule.o Modules/_sre.o Modules/_codecsmodule.o Modules/_weakref.o Modules/zipimport.o Modules/symtablemodule.o Modules/md5module.o Modules/md5.o Modules/xxsubtype.o
Modules/posixmodule.o: In function `posix_tmpnam':
/home/sasami/ops-build/build/tmp/work/core2-64-test-linux/python/2.7.9-r1/Python-2.7.9/Modules/posixmodule.c:7575: warning: the use of `tmpnam_r' is dangerous, better use `mkstemp'
Modules/posixmodule.o: In function `posix_tempnam':
/home/sasami/ops-build/build/tmp/work/core2-64-test-linux/python/2.7.9-r1/Python-2.7.9/Modules/posixmodule.c:7522: warning: the use of `tempnam' is dangerous, better use `mkstemp'
x86_64-test-linux-ranlib libpython2.7.a
x86_64-test-linux-gcc -m64 -march=core2 -mtune=core2 -msse3 -mfpmath=sse --sysroot=/home/sasami/ops-build/build/tmp/sysroots/appliance -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -Xlinker -export-dynamic -o python \
            Modules/python.o \
            -L. -lpython2.7 -lpthread -ldl  -lpthread -lutil   -lm
_PYTHON_PROJECT_BASE=/home/sasami/ops-build/build/tmp/work/core2-64-test-linux/python/2.7.9-r1/build _PYTHON_HOST_PLATFORM=linux2-x86_64 PYTHONPATH=/home/sasami/ops-build/build/tmp/work/core2-64-test-linux/python/2.7.9-r1/build/build/lib.linux2-x86_64-2.7:/home/sasami/ops-build/build/tmp/work/core2-64-test-linux/python/2.7.9-r1/Python-2.7.9/Lib:/home/sasami/ops-build/build/tmp/work/core2-64-test-linux/python/2.7.9-r1/Python-2.7.9/Lib/plat-linux2 python2.7 -S -m sysconfig --generate-posix-vars ;\
    if test $? -ne 0 ; then \
        echo "generate-posix-vars failed" ; \
        rm -f ./pybuilddir.txt ; \
        exit 1 ; \
    fi
Illegal instruction (core dumped)
make: *** [sharedmods] Error 132
ERROR: oe_runmake failed
WARNING: exit code 1 from a shell command.
ERROR: Function failed: do_install (log file is located at /home/sasami/ops-build/build/tmp/work/core2-64-test-linux/python/2.7.9-r1/temp/log.do_install.86396)

--------------------------------------------------------------------------------------------------


--
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to