Bug 292711 - subdir.mk rule for XL UPC wrong?
Summary: subdir.mk rule for XL UPC wrong?
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-build-managed (show other bugs)
Version: 6.0.1   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Elena Laskavaia CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-19 17:40 EDT by nvukicevic CLA
Modified: 2009-10-19 17:50 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description nvukicevic CLA 2009-10-19 17:40:00 EDT
User-Agent:       Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.4) Gecko/20091006 Firefox/3.5.4
Build Identifier: 20090920-1017

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) with 
XL UPC executable project type:

# 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.

Reproducible: Always

Steps to Reproduce:
1.create new C project with Exec XL UPC type
2.create a upc source file
3.try to build