Unused&Constraint

本文详细阐述了在SQL环境中通过UNUSED命令移除特定列约束的过程,包括约束定义、实例操作及约束恢复后的状态变化,提供了从初始状态到最终状态的完整步骤说明。

1 constraints defined on the column would be removed by the UNUSED command:

SQL> desc  LOCATIONS;
 名称                                      是否为空? 类型
 ----------------------------------------- -------- ----------------------------
 LOCATION_ID                               NOT NULL NUMBER(4)
 STREET_ADDRESS                                     VARCHAR2(40)
 POSTAL_CODE                                        VARCHAR2(12)
 CITY                                      NOT NULL VARCHAR2(30)
 STATE_PROVINCE                                     VARCHAR2(25)
 COUNTRY_ID                                         CHAR(2)

SQL>  select count(*) from  LOCATIONS;

  COUNT(*)
----------
        23

SQL>  select  constraint_name,constraint_type from user_constraints
  2   where table_name='LOCATIONS';

CONSTRAINT_NAME                C
------------------------------ -
LOC_CITY_NN                    C
LOC_ID_PK                      P
LOC_C_ID_FK                    R

SQL> select column_name from user_cons_columns
  2   where constraint_name='LOC_CITY_NN';

COLUMN_NAME
--------------------------------------------------------------------------------
CITY

SQL>  alter table hr.LOCATIONS set unused (CITY);

表已更改。

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

SQL>   select object_id from dba_objects where object_name='LOCATIONS';

 OBJECT_ID
----------
     51900
     52376

SQL>
SQL> select col#,segcol#,name,intcol# from col$ where obj#=51900;

      COL#    SEGCOL# NAME                              INTCOL#
---------- ---------- ------------------------------ ----------
         1          1 LOCATION_ID                             1
         2          2 STREET_ADDRESS                          2
         3          3 POSTAL_CODE                             3
         0          4 SYS_C00004_12031823:21:22$              4
         4          5 STATE_PROVINCE                          5
         5          6 COUNTRY_ID                              6

已选择6行。

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

SQL>  select  constraint_name,constraint_type from user_constraints
  2   where table_name='LOCATIONS';

CONSTRAINT_NAME                C
------------------------------ -
LOC_ID_PK                      P
LOC_C_ID_FK                    R

2 recovery:

SQL> select col#,segcol#,name,intcol# from col$ where obj#=51900;

      COL#    SEGCOL# NAME                              INTCOL#
---------- ---------- ------------------------------ ----------
         1          1 LOCATION_ID                             1
         2          2 STREET_ADDRESS                          2
         3          3 POSTAL_CODE                             3
         0          4 SYS_C00004_12031823:21:22$              4
         4          5 STATE_PROVINCE                          5
         5          6 COUNTRY_ID                              6

已选择6行。
-------------------

SQL> UPDATE COL$ SET COL#=INTCOL# WHERE OBJ#=51900;

已更新6行。

SQL> UPDATE TAB$ SET COLS=COLS+1 WHERE OBJ#=51900;

已更新 1 行。

SQL> commti;
SP2-0042: 未知命令 "commti" - 其余行忽略。
SQL> commit;

提交完成。

SQL>  select header_file,header_block from dba_segments where segment_name='LOCATIONS';

HEADER_FILE HEADER_BLOCK
----------- ------------
          5           35

SQL> select col#,segcol#,name,intcol# from col$ where obj#=51900;

      COL#    SEGCOL# NAME                              INTCOL#
---------- ---------- ------------------------------ ----------
         1          1 LOCATION_ID                             1
         2          2 STREET_ADDRESS                          2
         3          3 POSTAL_CODE                             3
         4          4 SYS_C00004_12031823:21:22$              4
         5          5 STATE_PROVINCE                          5
         6          6 COUNTRY_ID                              6

已选择6行。

SQL> select  constraint_name,constraint_type from user_constraints
  2  where table_name='LOCATIONS';

CONSTRAINT_NAME                C
------------------------------ -
LOC_ID_PK                      P
LOC_C_ID_FK                    R

---------before set unused:

SQL>  select  constraint_name,constraint_type from user_constraints
  2   where table_name='LOCATIONS';

CONSTRAINT_NAME                C
------------------------------ -
LOC_CITY_NN                    C
LOC_ID_PK                      P
LOC_C_ID_FK                    R

SQL> desc LOCATIONS;
 名称                                      是否为空? 类型
 ----------------------------------------- -------- ----------------------------
 LOCATION_ID                               NOT NULL NUMBER(4)
 STREET_ADDRESS                                     VARCHAR2(40)
 POSTAL_CODE                                        VARCHAR2(12)
SP2-0642: SQL*Plus 内部错误状态 2131, 上下文 0:0:0
继续执行将不安全

continue:

SQL> update col$ set name='CITY' where obj#=51900 and SEGCOL#=4;

已更新 1 行。

SQL> update col$ set PROPERTY=0 where obj#=51900;

已更新6行。

SQL> commit;

提交完成。

SQL>  select col#,segcol#,name,intcol# from col$ where obj#=51900;

      COL#    SEGCOL# NAME                              INTCOL#
---------- ---------- ------------------------------ ----------
         1          1 LOCATION_ID                             1
         2          2 STREET_ADDRESS                          2
         3          3 POSTAL_CODE                             3
         4          4 CITY                                    4
         5          5 STATE_PROVINCE                          5
         6          6 COUNTRY_ID                              6

已选择6行。

after bounced  my oracle db:

SQL>  desc LOCATIONS;
 名称                                      是否为空? 类型
 ----------------------------------------- -------- ----------------------------
 LOCATION_ID                               NOT NULL NUMBER(4)
 STREET_ADDRESS                                     VARCHAR2(40)
 POSTAL_CODE                                        VARCHAR2(12)
 CITY                                               VARCHAR2(30)
 STATE_PROVINCE                                     VARCHAR2(25)
 COUNTRY_ID                                         CHAR(2)

SQL>  select  constraint_name,constraint_type from user_constraints
  2   where table_name='LOCATIONS';

CONSTRAINT_NAME                C
------------------------------ -
LOC_ID_PK                      P
LOC_C_ID_FK                    R

 

after all,now This can be summarized as follows:

constraints defined on the column would be removed by the UNUSED

2 after update col$ constraints not recoveried;

 

------------end--------------

 

refence:

col$ base insert as follows:
Insert into SYS.COL$
   (OBJ#, COL#, SEGCOL#, SEGCOLLENGTH, OFFSET,
    NAME, TYPE#, LENGTH, FIXEDSTORAGE, PRECISION#,
    SCALE, NULL$, DEFLENGTH, DEFAULT$, INTCOL#,
    PROPERTY, CHARSETID, CHARSETFORM, SPARE1, SPARE2,
    SPARE3, SPARE4, SPARE5, SPARE6)
 Values
   (16416, 1, 1, 22, 0,
    'X', 2, 22, 0, NULL,
    NULL, 0, NULL, NULL, 1,
    0, 0, 0, 0, 0,
    0, NULL, NULL, NULL);
Insert into SYS.COL$
   (OBJ#, COL#, SEGCOL#, SEGCOLLENGTH, OFFSET,
    NAME, TYPE#, LENGTH, FIXEDSTORAGE, PRECISION#,
    SCALE, NULL$, DEFLENGTH, DEFAULT$, INTCOL#,
    PROPERTY, CHARSETID, CHARSETFORM, SPARE1, SPARE2,
    SPARE3, SPARE4, SPARE5, SPARE6)
 Values
   (16416, 2, 2, 22, 0,
    'Y', 2, 22, 0, NULL,
    NULL, 0, NULL, NULL, 2,
    0, 0, 0, 0, 0,
    0, NULL, NULL, NULL);

 

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/13750068/viewspace-718907/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/13750068/viewspace-718907/

结合上面问题和已经操作的过程,vae@vae-ASUS-TUF-Gaming-A15-FA507UU-FA507UU:~$ git clone https://github.com/hungpham2511/toppra.git --depth=1 正克隆到 &#39;toppra&#39;... remote: Enumerating objects: 241, done. remote: Counting objects: 100% (241/241), done. remote: Compressing objects: 100% (230/230), done. remote: Total 241 (delta 4), reused 85 (delta 1), pack-reused 0 (from 0) 接收对象中: 100% (241/241), 917.68 KiB | 1.98 MiB/s, 完成. 处理 delta 中: 100% (4/4), 完成. vae@vae-ASUS-TUF-Gaming-A15-FA507UU-FA507UU:~$ cd toppra vae@vae-ASUS-TUF-Gaming-A15-FA507UU-FA507UU:~/toppra$ git checkout v0.1.0 error: 路径规格 &#39;v0.1.0&#39; 未匹配任何 git 已知文件 vae@vae-ASUS-TUF-Gaming-A15-FA507UU-FA507UU:~/toppra$ git checkout v0.1 error: 路径规格 &#39;v0.1&#39; 未匹配任何 git 已知文件 vae@vae-ASUS-TUF-Gaming-A15-FA507UU-FA507UU:~/toppra$ sed -i &#39;s#<TOPP/#<toppra/TOPP/#&#39; src/TOPP/TOPP.pyx sed: 无法读取 src/TOPP/TOPP.pyx: 没有那个文件或目录 vae@vae-ASUS-TUF-Gaming-A15-FA507UU-FA507UU:~/toppra$ pip3 install numpy cython wheel Requirement already satisfied: numpy in /usr/local/lib/python3.8/dist-packages (1.19.5) Requirement already satisfied: cython in /usr/lib/python3/dist-packages (0.29.14) Requirement already satisfied: wheel in /usr/lib/python3/dist-packages (0.34.2) vae@vae-ASUS-TUF-Gaming-A15-FA507UU-FA507UU:~/toppra$ python3 setup.py build_ext --inplace Compiling toppra/_CythonUtils.pyx because it changed. Compiling toppra/solverwrapper/cy_seidel_solverwrapper.pyx because it changed. [1/2] Cythonizing toppra/_CythonUtils.pyx /usr/lib/python3/dist-packages/Cython/Compiler/Main.py:369: FutureWarning: Cython directive &#39;language_level&#39; not set, using 2 for now (Py2). This will change in a later release! File: /home/vae/toppra/toppra/_CythonUtils.pyx tree = Parsing.p_module(s, pxd, full_module_name) [2/2] Cythonizing toppra/solverwrapper/cy_seidel_solverwrapper.pyx /usr/lib/python3/dist-packages/Cython/Compiler/Main.py:369: FutureWarning: Cython directive &#39;language_level&#39; not set, using 2 for now (Py2). This will change in a later release! File: /home/vae/toppra/toppra/solverwrapper/cy_seidel_solverwrapper.pyx tree = Parsing.p_module(s, pxd, full_module_name) warning: toppra/solverwrapper/cy_seidel_solverwrapper.pyx:591:26: Non-trivial type declarators in shared declaration (e.g. mix of pointers and values). Each pointer declaration should be on its own line. warning: toppra/solverwrapper/cy_seidel_solverwrapper.pyx:591:39: Non-trivial type declarators in shared declaration (e.g. mix of pointers and values). Each pointer declaration should be on its own line. running build_ext building &#39;toppra._CythonUtils&#39; extension creating build creating build/temp.linux-x86_64-3.8 creating build/temp.linux-x86_64-3.8/toppra x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/local/lib/python3.8/dist-packages/numpy/core/include -I/usr/include/python3.8 -c toppra/_CythonUtils.c -o build/temp.linux-x86_64-3.8/toppra/_CythonUtils.o -O2 In file included from /usr/local/lib/python3.8/dist-packages/numpy/core/include/numpy/ndarraytypes.h:1822, from /usr/local/lib/python3.8/dist-packages/numpy/core/include/numpy/ndarrayobject.h:12, from /usr/local/lib/python3.8/dist-packages/numpy/core/include/numpy/arrayobject.h:4, from toppra/_CythonUtils.c:620: /usr/local/lib/python3.8/dist-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp] 17 | #warning "Using deprecated NumPy API, disable it with " \ | ^~~~~~~ x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fwrapv -O2 -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.8/toppra/_CythonUtils.o -o /home/vae/toppra/toppra/_CythonUtils.cpython-38-x86_64-linux-gnu.so building &#39;toppra.solverwrapper.cy_seidel_solverwrapper&#39; extension creating build/temp.linux-x86_64-3.8/toppra/solverwrapper x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/local/lib/python3.8/dist-packages/numpy/core/include -I/usr/include/python3.8 -c toppra/solverwrapper/cy_seidel_solverwrapper.c -o build/temp.linux-x86_64-3.8/toppra/solverwrapper/cy_seidel_solverwrapper.o -O1 In file included from /usr/local/lib/python3.8/dist-packages/numpy/core/include/numpy/ndarraytypes.h:1822, from /usr/local/lib/python3.8/dist-packages/numpy/core/include/numpy/ndarrayobject.h:12, from /usr/local/lib/python3.8/dist-packages/numpy/core/include/numpy/arrayobject.h:4, from toppra/solverwrapper/cy_seidel_solverwrapper.c:620: /usr/local/lib/python3.8/dist-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp] 17 | #warning "Using deprecated NumPy API, disable it with " \ | ^~~~~~~ toppra/solverwrapper/cy_seidel_solverwrapper.c: In function ‘__pyx_f_6toppra_13solverwrapper_23cy_seidel_solverwrapper_cy_solve_lp1d’: toppra/solverwrapper/cy_seidel_solverwrapper.c:3776:33: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 3776 | for (__pyx_t_3 = 0; __pyx_t_3 < __pyx_t_2; __pyx_t_3+=1) { | ^ toppra/solverwrapper/cy_seidel_solverwrapper.c: In function ‘__pyx_f_6toppra_13solverwrapper_23cy_seidel_solverwrapper_cy_solve_lp2d’: toppra/solverwrapper/cy_seidel_solverwrapper.c:5474:50: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 5474 | __pyx_t_6 = (((__pyx_v_sol_1d.active_c[0]) < __pyx_v_k) != 0); | ^ toppra/solverwrapper/cy_seidel_solverwrapper.c:5504:50: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 5504 | __pyx_t_6 = (((__pyx_v_sol_1d.active_c[0]) == __pyx_v_k) != 0); | ^~ toppra/solverwrapper/cy_seidel_solverwrapper.c:5533:50: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 5533 | __pyx_t_6 = (((__pyx_v_sol_1d.active_c[0]) == (__pyx_v_k + 1)) != 0); | ^~ toppra/solverwrapper/cy_seidel_solverwrapper.c:5562:50: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 5562 | __pyx_t_6 = (((__pyx_v_sol_1d.active_c[0]) == (__pyx_v_k + 2)) != 0); | ^~ toppra/solverwrapper/cy_seidel_solverwrapper.c:5591:50: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 5591 | __pyx_t_6 = (((__pyx_v_sol_1d.active_c[0]) == (__pyx_v_k + 3)) != 0); | ^~ toppra/solverwrapper/cy_seidel_solverwrapper.c: In function ‘__pyx_f_6toppra_13solverwrapper_23cy_seidel_solverwrapper_cy_solve_lp1d’: toppra/solverwrapper/cy_seidel_solverwrapper.c:4112:10: warning: ‘__pyx_v_solution.active_c[0]’ may be used uninitialized in this function [-Wmaybe-uninitialized] 4112 | return __pyx_r; | ^~~~~~~ toppra/solverwrapper/cy_seidel_solverwrapper.c:4112:10: warning: ‘__pyx_v_solution.optvar[0]’ may be used uninitialized in this function [-Wmaybe-uninitialized] toppra/solverwrapper/cy_seidel_solverwrapper.c:4112:10: warning: ‘__pyx_v_solution.optval’ may be used uninitialized in this function [-Wmaybe-uninitialized] toppra/solverwrapper/cy_seidel_solverwrapper.c: In function ‘__pyx_f_6toppra_13solverwrapper_23cy_seidel_solverwrapper_cy_solve_lp2d’: toppra/solverwrapper/cy_seidel_solverwrapper.c:5712:10: warning: ‘__pyx_v_sol.optvar[1]’ may be used uninitialized in this function [-Wmaybe-uninitialized] 5712 | return __pyx_r; | ^~~~~~~ toppra/solverwrapper/cy_seidel_solverwrapper.c:5712:10: warning: ‘__pyx_v_sol.optvar[0]’ may be used uninitialized in this function [-Wmaybe-uninitialized] toppra/solverwrapper/cy_seidel_solverwrapper.c:5712:10: warning: ‘__pyx_v_sol.optval’ may be used uninitialized in this function [-Wmaybe-uninitialized] toppra/solverwrapper/cy_seidel_solverwrapper.c:5712:10: warning: ‘__pyx_v_sol.active_c[1]’ may be used uninitialized in this function [-Wmaybe-uninitialized] toppra/solverwrapper/cy_seidel_solverwrapper.c:5712:10: warning: ‘__pyx_v_sol.active_c[0]’ may be used uninitialized in this function [-Wmaybe-uninitialized] x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fwrapv -O2 -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.8/toppra/solverwrapper/cy_seidel_solverwrapper.o -o /home/vae/toppra/toppra/solverwrapper/cy_seidel_solverwrapper.cpython-38-x86_64-linux-gnu.so vae@vae-ASUS-TUF-Gaming-A15-FA507UU-FA507UU:~/toppra$ sudo python3 setup.py install running install running build running build_py creating build/lib.linux-x86_64-3.8 creating build/lib.linux-x86_64-3.8/toppra copying toppra/utils.py -> build/lib.linux-x86_64-3.8/toppra copying toppra/interpolator.py -> build/lib.linux-x86_64-3.8/toppra copying toppra/planning_utils.py -> build/lib.linux-x86_64-3.8/toppra copying toppra/constants.py -> build/lib.linux-x86_64-3.8/toppra copying toppra/__init__.py -> build/lib.linux-x86_64-3.8/toppra copying toppra/parametrizer.py -> build/lib.linux-x86_64-3.8/toppra copying toppra/simplepath.py -> build/lib.linux-x86_64-3.8/toppra copying toppra/exceptions.py -> build/lib.linux-x86_64-3.8/toppra creating build/lib.linux-x86_64-3.8/toppra/constraint copying toppra/constraint/linear_joint_velocity.py -> build/lib.linux-x86_64-3.8/toppra/constraint copying toppra/constraint/linear_constraint.py -> build/lib.linux-x86_64-3.8/toppra/constraint copying toppra/constraint/__init__.py -> build/lib.linux-x86_64-3.8/toppra/constraint copying toppra/constraint/linear_joint_acceleration.py -> build/lib.linux-x86_64-3.8/toppra/constraint copying toppra/constraint/linear_second_order.py -> build/lib.linux-x86_64-3.8/toppra/constraint copying toppra/constraint/constraint.py -> build/lib.linux-x86_64-3.8/toppra/constraint copying toppra/constraint/conic_constraint.py -> build/lib.linux-x86_64-3.8/toppra/constraint copying toppra/constraint/joint_torque.py -> build/lib.linux-x86_64-3.8/toppra/constraint creating build/lib.linux-x86_64-3.8/toppra/algorithm copying toppra/algorithm/__init__.py -> build/lib.linux-x86_64-3.8/toppra/algorithm copying toppra/algorithm/algorithm.py -> build/lib.linux-x86_64-3.8/toppra/algorithm creating build/lib.linux-x86_64-3.8/toppra/algorithm/reachabilitybased copying toppra/algorithm/reachabilitybased/reachability_algorithm.py -> build/lib.linux-x86_64-3.8/toppra/algorithm/reachabilitybased copying toppra/algorithm/reachabilitybased/__init__.py -> build/lib.linux-x86_64-3.8/toppra/algorithm/reachabilitybased copying toppra/algorithm/reachabilitybased/time_optimal_algorithm.py -> build/lib.linux-x86_64-3.8/toppra/algorithm/reachabilitybased copying toppra/algorithm/reachabilitybased/desired_duration_algorithm.py -> build/lib.linux-x86_64-3.8/toppra/algorithm/reachabilitybased creating build/lib.linux-x86_64-3.8/toppra/solverwrapper copying toppra/solverwrapper/cvxpy_solverwrapper.py -> build/lib.linux-x86_64-3.8/toppra/solverwrapper copying toppra/solverwrapper/qpoases_solverwrapper.py -> build/lib.linux-x86_64-3.8/toppra/solverwrapper copying toppra/solverwrapper/ecos_solverwrapper.py -> build/lib.linux-x86_64-3.8/toppra/solverwrapper copying toppra/solverwrapper/__init__.py -> build/lib.linux-x86_64-3.8/toppra/solverwrapper copying toppra/solverwrapper/solverwrapper.py -> build/lib.linux-x86_64-3.8/toppra/solverwrapper copying toppra/solverwrapper/hot_qpoases_solverwrapper.py -> build/lib.linux-x86_64-3.8/toppra/solverwrapper creating build/lib.linux-x86_64-3.8/toppra/cpp copying toppra/cpp/__init__.py -> build/lib.linux-x86_64-3.8/toppra/cpp running build_ext building &#39;toppra._CythonUtils&#39; extension x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/local/lib/python3.8/dist-packages/numpy/core/include -I/usr/include/python3.8 -c toppra/_CythonUtils.c -o build/temp.linux-x86_64-3.8/toppra/_CythonUtils.o -O2 In file included from /usr/local/lib/python3.8/dist-packages/numpy/core/include/numpy/ndarraytypes.h:1822, from /usr/local/lib/python3.8/dist-packages/numpy/core/include/numpy/ndarrayobject.h:12, from /usr/local/lib/python3.8/dist-packages/numpy/core/include/numpy/arrayobject.h:4, from toppra/_CythonUtils.c:620: /usr/local/lib/python3.8/dist-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp] 17 | #warning "Using deprecated NumPy API, disable it with " \ | ^~~~~~~ x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fwrapv -O2 -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.8/toppra/_CythonUtils.o -o build/lib.linux-x86_64-3.8/toppra/_CythonUtils.cpython-38-x86_64-linux-gnu.so building &#39;toppra.solverwrapper.cy_seidel_solverwrapper&#39; extension x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/local/lib/python3.8/dist-packages/numpy/core/include -I/usr/include/python3.8 -c toppra/solverwrapper/cy_seidel_solverwrapper.c -o build/temp.linux-x86_64-3.8/toppra/solverwrapper/cy_seidel_solverwrapper.o -O1 In file included from /usr/local/lib/python3.8/dist-packages/numpy/core/include/numpy/ndarraytypes.h:1822, from /usr/local/lib/python3.8/dist-packages/numpy/core/include/numpy/ndarrayobject.h:12, from /usr/local/lib/python3.8/dist-packages/numpy/core/include/numpy/arrayobject.h:4, from toppra/solverwrapper/cy_seidel_solverwrapper.c:620: /usr/local/lib/python3.8/dist-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp] 17 | #warning "Using deprecated NumPy API, disable it with " \ | ^~~~~~~ toppra/solverwrapper/cy_seidel_solverwrapper.c: In function ‘__pyx_f_6toppra_13solverwrapper_23cy_seidel_solverwrapper_cy_solve_lp1d’: toppra/solverwrapper/cy_seidel_solverwrapper.c:3776:33: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 3776 | for (__pyx_t_3 = 0; __pyx_t_3 < __pyx_t_2; __pyx_t_3+=1) { | ^ toppra/solverwrapper/cy_seidel_solverwrapper.c: In function ‘__pyx_f_6toppra_13solverwrapper_23cy_seidel_solverwrapper_cy_solve_lp2d’: toppra/solverwrapper/cy_seidel_solverwrapper.c:5474:50: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 5474 | __pyx_t_6 = (((__pyx_v_sol_1d.active_c[0]) < __pyx_v_k) != 0); | ^ toppra/solverwrapper/cy_seidel_solverwrapper.c:5504:50: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 5504 | __pyx_t_6 = (((__pyx_v_sol_1d.active_c[0]) == __pyx_v_k) != 0); | ^~ toppra/solverwrapper/cy_seidel_solverwrapper.c:5533:50: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 5533 | __pyx_t_6 = (((__pyx_v_sol_1d.active_c[0]) == (__pyx_v_k + 1)) != 0); | ^~ toppra/solverwrapper/cy_seidel_solverwrapper.c:5562:50: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 5562 | __pyx_t_6 = (((__pyx_v_sol_1d.active_c[0]) == (__pyx_v_k + 2)) != 0); | ^~ toppra/solverwrapper/cy_seidel_solverwrapper.c:5591:50: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 5591 | __pyx_t_6 = (((__pyx_v_sol_1d.active_c[0]) == (__pyx_v_k + 3)) != 0); | ^~ toppra/solverwrapper/cy_seidel_solverwrapper.c: In function ‘__pyx_f_6toppra_13solverwrapper_23cy_seidel_solverwrapper_cy_solve_lp1d’: toppra/solverwrapper/cy_seidel_solverwrapper.c:4112:10: warning: ‘__pyx_v_solution.active_c[0]’ may be used uninitialized in this function [-Wmaybe-uninitialized] 4112 | return __pyx_r; | ^~~~~~~ toppra/solverwrapper/cy_seidel_solverwrapper.c:4112:10: warning: ‘__pyx_v_solution.optvar[0]’ may be used uninitialized in this function [-Wmaybe-uninitialized] toppra/solverwrapper/cy_seidel_solverwrapper.c:4112:10: warning: ‘__pyx_v_solution.optval’ may be used uninitialized in this function [-Wmaybe-uninitialized] toppra/solverwrapper/cy_seidel_solverwrapper.c: In function ‘__pyx_f_6toppra_13solverwrapper_23cy_seidel_solverwrapper_cy_solve_lp2d’: toppra/solverwrapper/cy_seidel_solverwrapper.c:5712:10: warning: ‘__pyx_v_sol.optvar[1]’ may be used uninitialized in this function [-Wmaybe-uninitialized] 5712 | return __pyx_r; | ^~~~~~~ toppra/solverwrapper/cy_seidel_solverwrapper.c:5712:10: warning: ‘__pyx_v_sol.optvar[0]’ may be used uninitialized in this function [-Wmaybe-uninitialized] toppra/solverwrapper/cy_seidel_solverwrapper.c:5712:10: warning: ‘__pyx_v_sol.optval’ may be used uninitialized in this function [-Wmaybe-uninitialized] toppra/solverwrapper/cy_seidel_solverwrapper.c:5712:10: warning: ‘__pyx_v_sol.active_c[1]’ may be used uninitialized in this function [-Wmaybe-uninitialized] toppra/solverwrapper/cy_seidel_solverwrapper.c:5712:10: warning: ‘__pyx_v_sol.active_c[0]’ may be used uninitialized in this function [-Wmaybe-uninitialized] x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fwrapv -O2 -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.8/toppra/solverwrapper/cy_seidel_solverwrapper.o -o build/lib.linux-x86_64-3.8/toppra/solverwrapper/cy_seidel_solverwrapper.cpython-38-x86_64-linux-gnu.so running install_lib creating /usr/local/lib/python3.8/dist-packages/toppra copying build/lib.linux-x86_64-3.8/toppra/utils.py -> /usr/local/lib/python3.8/dist-packages/toppra copying build/lib.linux-x86_64-3.8/toppra/interpolator.py -> /usr/local/lib/python3.8/dist-packages/toppra creating /usr/local/lib/python3.8/dist-packages/toppra/algorithm creating /usr/local/lib/python3.8/dist-packages/toppra/algorithm/reachabilitybased copying build/lib.linux-x86_64-3.8/toppra/algorithm/reachabilitybased/reachability_algorithm.py -> /usr/local/lib/python3.8/dist-packages/toppra/algorithm/reachabilitybased copying build/lib.linux-x86_64-3.8/toppra/algorithm/reachabilitybased/__init__.py -> /usr/local/lib/python3.8/dist-packages/toppra/algorithm/reachabilitybased copying build/lib.linux-x86_64-3.8/toppra/algorithm/reachabilitybased/time_optimal_algorithm.py -> /usr/local/lib/python3.8/dist-packages/toppra/algorithm/reachabilitybased copying build/lib.linux-x86_64-3.8/toppra/algorithm/reachabilitybased/desired_duration_algorithm.py -> /usr/local/lib/python3.8/dist-packages/toppra/algorithm/reachabilitybased copying build/lib.linux-x86_64-3.8/toppra/algorithm/__init__.py -> /usr/local/lib/python3.8/dist-packages/toppra/algorithm copying build/lib.linux-x86_64-3.8/toppra/algorithm/algorithm.py -> /usr/local/lib/python3.8/dist-packages/toppra/algorithm copying build/lib.linux-x86_64-3.8/toppra/planning_utils.py -> /usr/local/lib/python3.8/dist-packages/toppra copying build/lib.linux-x86_64-3.8/toppra/constants.py -> /usr/local/lib/python3.8/dist-packages/toppra copying build/lib.linux-x86_64-3.8/toppra/__init__.py -> /usr/local/lib/python3.8/dist-packages/toppra creating /usr/local/lib/python3.8/dist-packages/toppra/cpp copying build/lib.linux-x86_64-3.8/toppra/cpp/__init__.py -> /usr/local/lib/python3.8/dist-packages/toppra/cpp copying build/lib.linux-x86_64-3.8/toppra/parametrizer.py -> /usr/local/lib/python3.8/dist-packages/toppra copying build/lib.linux-x86_64-3.8/toppra/simplepath.py -> /usr/local/lib/python3.8/dist-packages/toppra creating /usr/local/lib/python3.8/dist-packages/toppra/solverwrapper copying build/lib.linux-x86_64-3.8/toppra/solverwrapper/cvxpy_solverwrapper.py -> /usr/local/lib/python3.8/dist-packages/toppra/solverwrapper copying build/lib.linux-x86_64-3.8/toppra/solverwrapper/qpoases_solverwrapper.py -> /usr/local/lib/python3.8/dist-packages/toppra/solverwrapper copying build/lib.linux-x86_64-3.8/toppra/solverwrapper/ecos_solverwrapper.py -> /usr/local/lib/python3.8/dist-packages/toppra/solverwrapper copying build/lib.linux-x86_64-3.8/toppra/solverwrapper/cy_seidel_solverwrapper.cpython-38-x86_64-linux-gnu.so -> /usr/local/lib/python3.8/dist-packages/toppra/solverwrapper copying build/lib.linux-x86_64-3.8/toppra/solverwrapper/__init__.py -> /usr/local/lib/python3.8/dist-packages/toppra/solverwrapper copying build/lib.linux-x86_64-3.8/toppra/solverwrapper/solverwrapper.py -> /usr/local/lib/python3.8/dist-packages/toppra/solverwrapper copying build/lib.linux-x86_64-3.8/toppra/solverwrapper/hot_qpoases_solverwrapper.py -> /usr/local/lib/python3.8/dist-packages/toppra/solverwrapper creating /usr/local/lib/python3.8/dist-packages/toppra/constraint copying build/lib.linux-x86_64-3.8/toppra/constraint/linear_joint_velocity.py -> /usr/local/lib/python3.8/dist-packages/toppra/constraint copying build/lib.linux-x86_64-3.8/toppra/constraint/linear_constraint.py -> /usr/local/lib/python3.8/dist-packages/toppra/constraint copying build/lib.linux-x86_64-3.8/toppra/constraint/__init__.py -> /usr/local/lib/python3.8/dist-packages/toppra/constraint copying build/lib.linux-x86_64-3.8/toppra/constraint/linear_joint_acceleration.py -> /usr/local/lib/python3.8/dist-packages/toppra/constraint copying build/lib.linux-x86_64-3.8/toppra/constraint/linear_second_order.py -> /usr/local/lib/python3.8/dist-packages/toppra/constraint copying build/lib.linux-x86_64-3.8/toppra/constraint/constraint.py -> /usr/local/lib/python3.8/dist-packages/toppra/constraint copying build/lib.linux-x86_64-3.8/toppra/constraint/conic_constraint.py -> /usr/local/lib/python3.8/dist-packages/toppra/constraint copying build/lib.linux-x86_64-3.8/toppra/constraint/joint_torque.py -> /usr/local/lib/python3.8/dist-packages/toppra/constraint copying build/lib.linux-x86_64-3.8/toppra/exceptions.py -> /usr/local/lib/python3.8/dist-packages/toppra copying build/lib.linux-x86_64-3.8/toppra/_CythonUtils.cpython-38-x86_64-linux-gnu.so -> /usr/local/lib/python3.8/dist-packages/toppra byte-compiling /usr/local/lib/python3.8/dist-packages/toppra/utils.py to utils.cpython-38.pyc byte-compiling /usr/local/lib/python3.8/dist-packages/toppra/interpolator.py to interpolator.cpython-38.pyc byte-compiling /usr/local/lib/python3.8/dist-packages/toppra/algorithm/reachabilitybased/reachability_algorithm.py to reachability_algorithm.cpython-38.pyc byte-compiling /usr/local/lib/python3.8/dist-packages/toppra/algorithm/reachabilitybased/__init__.py to __init__.cpython-38.pyc byte-compiling /usr/local/lib/python3.8/dist-packages/toppra/algorithm/reachabilitybased/time_optimal_algorithm.py to time_optimal_algorithm.cpython-38.pyc byte-compiling /usr/local/lib/python3.8/dist-packages/toppra/algorithm/reachabilitybased/desired_duration_algorithm.py to desired_duration_algorithm.cpython-38.pyc byte-compiling /usr/local/lib/python3.8/dist-packages/toppra/algorithm/__init__.py to __init__.cpython-38.pyc byte-compiling /usr/local/lib/python3.8/dist-packages/toppra/algorithm/algorithm.py to algorithm.cpython-38.pyc byte-compiling /usr/local/lib/python3.8/dist-packages/toppra/planning_utils.py to planning_utils.cpython-38.pyc byte-compiling /usr/local/lib/python3.8/dist-packages/toppra/constants.py to constants.cpython-38.pyc byte-compiling /usr/local/lib/python3.8/dist-packages/toppra/__init__.py to __init__.cpython-38.pyc byte-compiling /usr/local/lib/python3.8/dist-packages/toppra/cpp/__init__.py to __init__.cpython-38.pyc byte-compiling /usr/local/lib/python3.8/dist-packages/toppra/parametrizer.py to parametrizer.cpython-38.pyc byte-compiling /usr/local/lib/python3.8/dist-packages/toppra/simplepath.py to simplepath.cpython-38.pyc byte-compiling /usr/local/lib/python3.8/dist-packages/toppra/solverwrapper/cvxpy_solverwrapper.py to cvxpy_solverwrapper.cpython-38.pyc byte-compiling /usr/local/lib/python3.8/dist-packages/toppra/solverwrapper/qpoases_solverwrapper.py to qpoases_solverwrapper.cpython-38.pyc byte-compiling /usr/local/lib/python3.8/dist-packages/toppra/solverwrapper/ecos_solverwrapper.py to ecos_solverwrapper.cpython-38.pyc byte-compiling /usr/local/lib/python3.8/dist-packages/toppra/solverwrapper/__init__.py to __init__.cpython-38.pyc byte-compiling /usr/local/lib/python3.8/dist-packages/toppra/solverwrapper/solverwrapper.py to solverwrapper.cpython-38.pyc byte-compiling /usr/local/lib/python3.8/dist-packages/toppra/solverwrapper/hot_qpoases_solverwrapper.py to hot_qpoases_solverwrapper.cpython-38.pyc byte-compiling /usr/local/lib/python3.8/dist-packages/toppra/constraint/linear_joint_velocity.py to linear_joint_velocity.cpython-38.pyc byte-compiling /usr/local/lib/python3.8/dist-packages/toppra/constraint/linear_constraint.py to linear_constraint.cpython-38.pyc byte-compiling /usr/local/lib/python3.8/dist-packages/toppra/constraint/__init__.py to __init__.cpython-38.pyc byte-compiling /usr/local/lib/python3.8/dist-packages/toppra/constraint/linear_joint_acceleration.py to linear_joint_acceleration.cpython-38.pyc byte-compiling /usr/local/lib/python3.8/dist-packages/toppra/constraint/linear_second_order.py to linear_second_order.cpython-38.pyc byte-compiling /usr/local/lib/python3.8/dist-packages/toppra/constraint/constraint.py to constraint.cpython-38.pyc byte-compiling /usr/local/lib/python3.8/dist-packages/toppra/constraint/conic_constraint.py to conic_constraint.cpython-38.pyc byte-compiling /usr/local/lib/python3.8/dist-packages/toppra/constraint/joint_torque.py to joint_torque.cpython-38.pyc byte-compiling /usr/local/lib/python3.8/dist-packages/toppra/exceptions.py to exceptions.cpython-38.pyc running install_egg_info running egg_info creating toppra.egg-info writing toppra.egg-info/PKG-INFO writing dependency_links to toppra.egg-info/dependency_links.txt writing requirements to toppra.egg-info/requires.txt writing top-level names to toppra.egg-info/top_level.txt writing manifest file &#39;toppra.egg-info/SOURCES.txt&#39; reading manifest file &#39;toppra.egg-info/SOURCES.txt&#39; reading manifest template &#39;MANIFEST.in&#39; writing manifest file &#39;toppra.egg-info/SOURCES.txt&#39; Copying toppra.egg-info to /usr/local/lib/python3.8/dist-packages/toppra-0.6.2.egg-info vae@vae-ASUS-TUF-Gaming-A15-FA507UU-FA507UU:~/toppra$ cd build/lib.linux-x86_64-3.8/ vae@vae-ASUS-TUF-Gaming-A15-FA507UU-FA507UU:~/toppra/build/lib.linux-x86_64-3.8$ sudo cp -r toppra/TOPP*.so /usr/local/lib/python3.8/dist-packages/toppra/ cp: 无法获取&#39;toppra/TOPP*.so&#39; 的文件状态(stat): 没有那个文件或目录
07-10
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符  | 博主筛选后可见
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值