Vik Agr

Unable to generate library.

Discussion created by Vik Agr on Aug 16, 2011
Latest reply on Aug 24, 2011 by Vik Agr

During the build process, I receive an error while trying to build a library of the modules. For example, I have a module with a file ( Version.c  ). After the successful compilation of the file, I am trying to build a library from the generated .obj files.

 

My compiler flags are:

Involking tool to generate the obj file

CC        = $(TOOLSDIR)/CodeWarrior/cgtools/bin/mwcceppc.exe

CFLAGS    = -c -v -abi eabi -ext obj

 

My flags to generate the library are

Involking tool to generate the lib file

AR      = $(TOOLSDIR)/CodeWarrior/cgtools/bin/mwldeppc.exe

ARFLAGS = -library -abi eabi -v

 

 

 

##########################################################

Log Info

############################################################

Building in directory SYS_VERSION

Working in directory src

Parsing for TraceMsgs Version.c
START TRACE ACCUMULATION
       ../../../TOOLS/Python_scripts/TraceScripts/GenerateTraceID.py
       file
       Version.c
       Version.id
       Version.tr
       Version.enum
       FileID 0x30000
Exit with result 0 ...
Compiling uC file Version.c
../../../TOOLS/CodeWarrior/cgtools/bin/mwcceppc.exe -c -v -abi eabi -ext obj -I../../../MOD/SYS_MAIN/inc -I../../../MOD/SYS_VERSION/inc -I../../../MOD/CONFIG_PLATFORM/inc

Freescale C/C++ Compiler for Embedded PowerPC.
Copyright(C) 2010, Freescale Semiconductor, Inc.
All rights reserved.
Version 4.3 build 209
Runtime Built: May  9 2011 11:24:39

### mwcceppc.exe Usage Warning:
#   Specified directory '/PA_Support/ewl/EWL_Runtime/Runtime_PA/Include' not
#   found
### mwcceppc.exe Usage Warning:
#   Specified directory '/PA_Support/ewl/EWL_Runtime/Runtime_PA/Include' not
#   found
### mwcceppc.exe Usage Warning:
#   Specified directory '/PA_Support/ewl/EWL_Runtime/Runtime_PA/Include' not
#   found
### mwcceppc.exe Usage Warning:
#   Specified directory '/PA_Support/ewl/EWL_C/include' not found
### mwcceppc.exe Usage Warning:
#   Specified directory '/PA_Support/ewl/EWL_C++/include' not found
### mwcceppc.exe Usage Warning:
#   Specified directory '/PA_Support/ewl/EWL_Runtime/Runtime_PA/Include' not
#   found
### mwcceppc.exe Usage Warning:
#   Specified directory '/PA_Support/ewl/lib' not found
### mwcceppc.exe Usage Warning:
#   Specified directory '/PA_Support/Serial/lib' not found
### mwcceppc.exe Usage Warning:
#   Environment variable 'MWCIncludes' not found
#   Contents of (command-line defines):
===============
#define PROCESSOR_MPC5603 1
===============
#   User include search paths ([d] = default, [r] = recursive):
#       F:\MyDocuments\workspace\eclipse\PowerPC\MOD\SYS_MAIN\inc\
#       F:\MyDocuments\workspace\eclipse\PowerPC\MOD\SYS_VERSION\inc\
#       F:\MyDocuments\workspace\eclipse\PowerPC\MOD\CONFIG_PLATFORM\inc\
#       E:\Program Files\Freescale\CW for MPC55xx and MPC56xx
#   2.8\(CodeWarrior_Examples)\560xB-CW\UART_TxRx_Polling\
#       E:\Program Files\Freescale\CW for MPC55xx and MPC56xx
#   2.8\(CodeWarrior_Examples)\560xB-CW\UART_TxRx_Polling\src\
#       E:\Program Files\Freescale\CW for MPC55xx and MPC56xx
#   2.8\(CodeWarrior_Examples)\560xB-CW\UART_TxRx_Polling\lcf\
#   System include search paths ([d] = default, [r] = recursive):
#      
#   F:\MyDocuments\workspace\eclipse\PowerPC\TOOLS\CodeWarrior\cgtools\include\
#  
#   Files in project (relative to CWD):
#       Version.c
#       (command-line defines)  (virtual file)
#   Compiling: 'Version.c' with 'MW C/C++ PPC EABI'
#   Writing object file 'Version.obj'
#           24 lines compiled
#            0 bytes code
#           40 bytes init'd data
#            0 bytes uninit'd data

Building uC library Version.lib
../../../TOOLS/CodeWarrior/cgtools/bin/mwldeppc.exe -library -abi eabi -v Version.lib Version.obj
### mwldeppc.exe Usage Error:
#   Specified file 'Version.lib' not found

Errors caused tool to abort.
make[6]: *** [Version.lib] Error 1
make[5]: *** [src] Error 2
make[4]: *** [all] Error 2
make[3]: *** [SYS_VERSION] Error 2
make[2]: *** [all] Error 2
make[1]: *** [MOD] Error 2
make: *** [all] Error 2
Fehler: 2

###########################################################

Outcomes