Howto: configure the AMSS compiling environment in Ubuntu

Source: Internet
Author: User
This is the internal document of elder brother. It is for your reference only! /*************************************** **************************************** ***************************************/ Gedit ~ /. Add the following content to bashrc: & n

This is the internal document of elder brother. It is for your reference only!
/*************************************** **************************************** ***************************************/
Gedit ~ /. Bashrc
Add the following content:
# For_arm_9_build
Export ARMROOT = ~ /ARM
Export ARMINCLUDE = $ ARMROOT/RVCT/Data/2.2/349/include/windows
Export ARMTOOLS = RVCT221
Export ARMLIB = $ ARMROOT/RVCT/Data/2.2/349/lib
Export ARMINC = $ ARMINCLUDE
Export ARMBIN = $ ARMROOT/RVCT/Programs/2.2/349/win_32-pentium
Export PATH = $ PYTHON_PATH: $ ARMBIN: $ PATH
Export ARMHOME = $ ARMROOT
Export LM_LICENSE_FILE = $ ARMROOT/crack/license. dat
# For_arm_9_build_end
Then save and restart the machine.
/*************************************** **************************************** ***************************************/
Copy the ARM folder to your home directory.
Then
Chmod + x ~ /ARM/RVCT/Programs/2.2/349/win_32-pentium /*
/*************************************** **************************************** ***************************************/
Compile:
Cd AMSS/products/76XX/build/MS
This is because the attributes of the following files are modified during the copy process. So correct it.
Chmod + x 'Find.-name "*. pl"-o-name "*. exe"-o-name "*. cmd "'
AMSS/products/76XX/build/ms $./TFNCKNLYM. cmd
If the following error occurs:
Error: C3397E: Cannot obtain license for Compiler (feature compiler) with license version> = 2.2:
Cd to the Crack directory, run: wine keygen.exe to generate a new license to replace the original license!
If the following error occurs after compilation:
Bytes ------------------------------------------------------------------------------------------------------------------------
Error: L6630E: Invalid token start expected number or (but found A at position 15 on line 11535
Error: L6629E: Unmatched parentheses expecting) but found A at position 15 on line 11535
M76XXTTFNCKNLYM ____. scl (line 11535, col 15) Error: L6268E: Non-word aligned address 4294967295 specified for region MSM_NOTPAGED.
M76XXTTFNCKNLYM ____. scl (line 11535, col 15) Error: L6292E: Ignoring unknown attribute 'A' specified for region MSM_NOTPAGED.
M76XXTTFNCKNLYM ____. scl (line 11535, col 18) Error: L6292E: Ignoring unknown attribute 'error' specified for region MSM_NOTPAGED.
M76XXTTFNCKNLYM ____. scl (line 11535, col 24) Error: L6292E: Ignoring unknown attribute 'occurred: 'specified for region MSM_NOTPAGED.
M76XXTTFNCKNLYM ____. scl (line 11535, col 34) Error: L6292E: Ignoring unknown attribute 'bad' specified for region MSM_NOTPAGED.
M76XXTTFNCKNLYM ____. scl (line 11535, col 38) Error: L6292E: Ignoring unknown attribute 'Magic 'specified for region MSM_NOTPAGED.
M76XXTTFNCKNLYM ____. scl (line 11535, col 44) Error: L6292E: Ignoring unknown attribute 'number' specified for region MSM_NOTPAGED.
M76XXTTFNCKNLYM ____. scl (line 11535, col 51) Error: L6292E: Ignoring unknown attribute 'in 'specified for region MSM_NOTPAGED.
M76XXTTFNCKNLYM ____. scl (line 11535, col 54) Error: L6292E: ignoring unknown attribute '/home/cpp/i700t_arm9/i700t_arm9/AMSS/platform/l4/tools/pyelf/weaver/_ init _ 'specified for region MSM_NOTPAGED.
M76XXTTFNCKNLYM ____. scl (line 11535, col 131) Error: L6292E: Ignoring unknown attribute '. 'specified for region MSM_NOTPAGED.
M76XXTTFNCKNLYM ____. scl (line 11535, col 133) Error: L6292E: Ignoring unknown attribute 'pyc' specified for region MSM_NOTPAGED.
M76XXTTFNCKNLYM ____. scl (line 11535, col 136) Error: L6228E: Expected '{', found ')...'.
Not enough information to produce a SYMDEFs file.
Not enough information to list image symbols.
Not enough information to list the image map.
Finished: 3 information, 27 warning and 14 error messages.
Make: *** [link_only] Error 1
Cpp @ cpp :~ /I700t_arm9/i700t_arm9/AMSS/products/76XX/build/ms $
Cpp @ cpp :~ /I700t_arm9/i700t_arm9/AMSS/products/76XX/build/ms $
Bytes ------------------------------------------------------------------------------------------------------------------------
/*************************************** **************************************** ***************************************/
Install Python-2.4.3, download it to the source code, and execute
1./configure
2. make
If an error occurs during the make process:
____________________________________________________________________________________________________________________
* ** Buffer overflow detected **:./python terminated
======= Backtrace: ============
/Lib/tls/i686/cmov/libc. so.6 (_ fortify_fail + 0x50) [0x40275390]
/Lib/tls/i686/cmov/libc. so.6 (+ 0xe12ca) [0x402742ca]
/Lib/tls/i686/cmov/libc. so.6 (+ 0xe19e8) [0x402749e8]
./Python (PySys_SetArgv + 0x279) [0x80e6e19]
./Python (Py_Main + 0x4d8) [0x8057298]
./Python (main + 0x1b) [0x8056c9b]
/Lib/tls/i686/cmov/libc. so.6 (_ libc_start_main + 0xe6) [0x401a9bd6]
./Python [0x8056be1]
======= Memory map: ========
08048000-08125000 r-xp 00000000/home/cpp/Downloads/Python-4202539/python
08125000-08126000 r -- p 000dc000 08:09 4202539/home/cpp/Downloads/Python-2.4.3/python
____________________________________________________________________________________________________________________
Follow these steps:
A. make distclean
B../configure BASECFLAGS =-U_FORTIFY_SOURCE
C. make
3. sudo make install
/*************************************** **************************************** ***************************************/
After compilation, You can compile the AMSS, and it is very successful, but later found that the repo is not available, and the error is:
Bytes ------------------------------------------------------------------------------------------------------------------------
Cpp @ cpp :~ $ Repo
Traceback (most recent call last ):
File "/home/cpp/bin/repo", line 91, in?
Import readline
ImportError: No module named readline
Cpp @ cpp :~ $
Bytes ------------------------------------------------------------------------------------------------------------------------
Readline exists in the system, but the repo script cannot be imported. Later, it was found that it was an error caused by python installation. You should add the readline compilation option during python compilation, install python as follows
First install the readline software package:
Sudo apt-get install libreadline5-dev
Sudo apt-get install zlib1g-dev
Then:
1. make distclean
2../configure -- enable-readline BASECFLAGS =-U_FORTIFY_SOURCE
3. make-j4
4. sudo make install
Note: I also found that python-2.4.3 supports this compilation option, but this -- enable-readline compilation parameter cannot be identified in version 3.1.3. So I currently use version 2.4.3.
To sum up, I have no time to learn the pythom script of this dog day. I am just as busy as a dog in the past two days! I think the boss should raise my salary for me. I am working as an engineer. I am even busier than an engineer, but I am holding the intern's salary. Tell the truth, brother really didn't feel how strong the engineers around him were, and the boss didn't take the initiative. This is wrong! Brother is not satisfied ......
The following is another online readline solution. I have not tried it,
________________________________________________________________________________________________________________________
Http://www.velocityreviews.com/forums/t361627-realine-not-found-error.html
In fact, more for my own records in case I get this again. I had the same problem with SUSE10.2. I had installed Python2.5 using YAST along with Numpy, Scipy, IPython and some other packages. I 'd also attempted to install these packages without YAST (probably causing the error in the first place ).
Turns out, all these packages were being installed to '/usr/lib/python2.5/site-packages '.
Inspection of the path Python was using
>>> Import sys
>>> Sys. path
Showed python was using/usr/local/lib/python2.5/site-packages
The path was modified by editing the 'site. py' file, to include the following in the main () routine, just below the 'abs _ file _ () 'line.

# Add new paths to the python search path, derived
# From those in sys. path. Current entries contain
# '\ Local \'. They shoshould not. Added 29/June/07, MS
A = sys. path
For I in:
If '/local/' in I:
Sys. path. append (I. replace ('/local ',''))
This updates the path with entries not including the '/local' entry. This fixed my Scipy and my readline error on startup.
Mark.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.