This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

LINKER command in OPENMP project?

Other Parts Discussed in Thread: SYSBIOS

Hi,

I try to run the hello project of OPENMP. After I check the posts of e2e, I update the .cfg file and .xdc file.

http://e2e.ti.com/support/development_tools/compiler/f/343/p/218468/821972.aspx#821972

I rename the old package.xdc file under the folder

C:\ti\xdctools_3_23_04_60\packages\ti\platforms\evm6678\

to another name and copy the new package.xdc file there. The problem is the compiling cannot pass, see the error message below:

'Building target: openmpHello0.out'

'Invoking: C6000 Linker'

"C:/Program Files (x86)/Texas Instruments/C6000 Code Generation Tools 7.4.2/bin/cl6x" -mv6600 --abi=eabi -g --display_error_number --diag_warning=225 --openmp -z --stack_size=0x8000 -m"openmpHello0.map" --heap_size=0x8000 -i"C:/Program Files (x86)/Texas Instruments/C6000 Code Generation Tools 7.4.2/lib" -i"C:/Program Files (x86)/Texas Instruments/C6000 Code Generation Tools 7.4.2/include" --reread_libs --warn_sections --display_error_number --rom_model -o "openmpHello0.out" -l"./configPkg/linker.cmd"  "./omp_hello.obj" -l"libc.a"

<Linking>

error #10008-D: cannot find file "./configPkg/linker.cmd"

undefined           first referenced

  symbol                 in file   

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

GOMP_parallel_end   ./omp_hello.obj

GOMP_parallel_start ./omp_hello.obj

omp_get_num_threads ./omp_hello.obj

omp_get_thread_num  ./omp_hello.obj

omp_set_num_threads ./omp_hello.obj

error #10234-D: unresolved symbols remain

error #10010: errors encountered during linking; "openmpHello0.out" not built

>> Compilation failure

gmake: *** [openmpHello0.out] Error 1

gmake: Target `all' not remade because of errors.

**** Build Finished ****

I suspect that it needs a linker file.

How to add a linker cmd file? Where can I find one? This system is CCS v5.2, windows 7, 64 bit. Thanks

  • Hi,

    Now there is no undefined symbol as in last post, but it does no know the .xdc content as shown below.

     

    **** Build of configuration Debug for project openmpHello0 ****

    C:\ti\ccsv5\utils\bin\gmake -j4 -k all

    'Building file: ../omp_config.cfg'

    'Invoking: XDCtools'

    "C:/ti/xdctools_3_23_04_60/xs" --xdcpath="C:/ti/omp_1_01_03_02/packages;C:/ti/bios_6_33_06_50/packages;C:/ti/ipc_1_24_03_32/packages;C:/ti/pdk_C6678_1_1_2_5/packages;C:/ti/ccsv5/ccs_base;C:/ti/mcsdk_2_01_02_05/demos;" xdc.tools.configuro -o configPkg -t ti.targets.elf.C66 -p ti.omp.examples.platforms.evm6678 -r debug -c "C:/Program Files (x86)/Texas Instruments/C6000 Code Generation Tools 7.4.2" "../omp_config.cfg"

    making package.mak (because of package.bld) ...

    generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...

    configuring omp_config.xe66 from package/cfg/omp_config_pe66.cfg ...

    js: "C:/Users/Jeff/workspace_v5_1_OPENMP/openmpHello0/omp_config.cfg", line 44: TypeError: Cannot read property "base" from undefined (C:/Users/Jeff/workspace_v5_1_OPENMP/openmpHello0/omp_config.cfg#44)

        "./package/cfg/omp_config_pe66.cfg", line 201

        "./package/cfg/omp_config_pe66.cfg", line 280

        "./package/cfg/omp_config_pe66.cfg", line 188

    gmake.exe: *** [package/cfg/omp_config_pe66.xdl] Error 1

    js: "C:/ti/xdctools_3_23_04_60/packages/xdc/tools/Cmdr.xs", line 51: Error: xdc.tools.configuro: configuration failed due to earlier errors (status = 2); 'linker.cmd' deleted.

    gmake: *** [configPkg/compiler.opt] Error 1

    gmake: Target `all' not remade because of errors.

    **** Build Finished ****

    I have tried both platform: ti.omp.examples.platforms.evm6678 and ti.platforms.evm6678. There is the same error as above. What settings can make the linker know where they are? Or, there is a library settings? Now, the only change is "Compiler version", selected as TI v7.4.2. There is no explicit "Runtime support library" selected. It is still as "<automatic>. What is wrong in the above settings? Thanks,

     

  • Robert,

    I am not the most knowledgeable person to talk about MCSDK, but I tried to reproduce this issue here. I just installed the MCSDK package (release 1.1.2.5 with OpenMP 1.1.3.02) and managed to create and build the first openMP project without errors. I am using CCSv5.3.0 with its default tools (SYSBIOS 6.34.2.18, XDC 3.24.5.48, IPC 1.25.0.04, Compiler 7.4.1) and therefore it seems this is affecting the ability to build this project.

    The first build output error (cannot find file "./configPkg/linker.cmd") is caused when the tool fails to build the .cfg file (this linker.cmd is auto-generated).

    The second build output you sent evidences the reason why the .cfg file is failing to build (the invalid property "base" issue), which leads to the deletion of the aforementioned linker.cmd file and therefore failing the build.

    There are no problems with the project options you sent, since the location of the linker.cmd and the library selection are automatically set by the tool. The origin of this issue is located in the .cfg file.

    As I mentioned before, I am not the most knowledgeable person to talk about this software package, therefore I will move this thread to the multicore forum so the experts there will be able to have more educated insights.

    Regards,

    Rafael

     

  • Hi Robert,

    Could you please attach the project as a zip, and I will try to recreate the issue here.

  • Is there a resolution for this? I am having similar issues with OpenMP in the CFG file.