Skip to main content

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

Something is definitely going wrong in the makefile generation... it should not be doing that. It might be a bug in the generator or a bug in the toolchain. I'm guessing the latter because no one has been complaining about this for GCC projects. Can you please file a bug? Thanks.

===========================
Chris Recoskie
Team Lead, IBM CDT and RDT
IBM Toronto
Inactive hide details for Nenad Vukicevic <nenad@xxxxxxxxxxxx>Nenad Vukicevic <nenad@xxxxxxxxxxxx>


          Nenad Vukicevic <nenad@xxxxxxxxxxxx>
          Sent by: cdt-dev-bounces@xxxxxxxxxxx

          10/19/2009 12:46 PM

          Please respond to
          "CDT General developers list." <cdt-dev@xxxxxxxxxxx>

To

cdt-dev@xxxxxxxxxxx

cc


Subject

[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
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev

GIF image

GIF image

GIF image


Back to the top