Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] subdir.mk rule for XL UPC wrong?

I am new to eclipse and it might be that I am doing something wrong. I installed the latest eclipse
and CDT 6.0.1 and tried to create a toolchain for GCCUPC (gccupc.org) compiler. I was able to model
it based on XL UPC, however, I am not able to compile any code because of the wrong subdir.mk
file. I was able to duplicate the problem with XL UPC compiler too.

This is a rule I get for UPC files (my example has two upc files):

# Each subdirectory must supply rules for building sources it contributes
%.o: ../%.upc
      @echo 'Building file: $<'
      @echo 'Invoking: XL UPC Compiler'
      /opt/ibmcmp/xlupc -c -O0 -g -o"$@" "$<" "../test.upc" "../test1.upc"
      @echo 'Finished building: $<'
      @echo ' '


I don't know how xlupc behaves, but our gcc based compiler complains with multiple source
files specified with "-c" switch.

I this an error or I am doing something wrong. I only created a project as executable XL UPC, created
two source files, and created a build configuration with Make Targets->Build.


Nenad

Back to the top