From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 15E84C3D2 for ; Sun, 26 Apr 2015 18:53:13 +0200 (CEST) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP; 26 Apr 2015 09:53:12 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.11,652,1422950400"; d="scan'208";a="719422815" Received: from orsmsx103.amr.corp.intel.com ([10.22.225.130]) by orsmga002.jf.intel.com with ESMTP; 26 Apr 2015 09:53:12 -0700 Received: from FMSMSX109.amr.corp.intel.com (10.18.116.9) by ORSMSX103.amr.corp.intel.com (10.22.225.130) with Microsoft SMTP Server (TLS) id 14.3.224.2; Sun, 26 Apr 2015 09:53:12 -0700 Received: from fmsmsx113.amr.corp.intel.com ([169.254.13.26]) by FMSMSX109.amr.corp.intel.com ([169.254.15.14]) with mapi id 14.03.0224.002; Sun, 26 Apr 2015 09:53:12 -0700 From: "Wiles, Keith" To: "dev@dpdk.org" Thread-Topic: Compiling files with .S with GCC Thread-Index: AQHQgEF6Ax1RHJOTDUynRqCbVzLFXA== Date: Sun, 26 Apr 2015 16:53:11 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.255.69.36] Content-Type: text/plain; charset="Windows-1252" Content-ID: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: [dpdk-dev] Compiling files with .S with GCC X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Apr 2015 16:53:14 -0000 Hi All, I noticed in my builds with foo.S file I would get a warning from the compiler the foo_s.o.tmp linker file will not be used as the code is not linked. A strange error and the foo_s.o file would not be created. In the mk/internal/rte.compile-pre.mk we have the following # command to assemble a .S file to generate an object ifeq ($(USE_HOST),1) S_TO_O =3D $(CPP) $(HOST_CPPFLAGS) $($(@)_CPPFLAGS) $(HOST_EXTRA_CPPFLAGS) $< $(@).tmp && \ $(HOSTAS) $(HOST_ASFLAGS) $($(@)_ASFLAGS) $(HOST_EXTRA_ASFLAGS) -o $@ $(@).tmp S_TO_O_STR =3D $(subst ','\'',$(S_TO_O)) #'# fix syntax highlight S_TO_O_DISP =3D $(if $(V),"$(S_TO_O_STR)"," HOSTAS $(@)") else S_TO_O =3D $(CPP) $(CPPFLAGS) $($(@)_CPPFLAGS) $(EXTRA_CPPFLAGS) $< -o $(@).tmp && \ $(AS) $(ASFLAGS) $($(@)_ASFLAGS) $(EXTRA_ASFLAGS) -o $@ $(@).tmp S_TO_O_STR =3D $(subst ','\'',$(S_TO_O)) #'# fix syntax highlight S_TO_O_DISP =3D $(if $(V),"$(S_TO_O_STR)"," AS $(@)") endif I had to change the above =8C.tmp=B9 strings to =8C.s=B9 to remove this war= ning and get the foo_s.o file created. Using the .s the file name becomes foo_s.o.s Did not try this with clang or any other compiler, but I expect we can safely change the =8C.tmp=B9 to =8C.s=B9 IMO Anyone else notice this problem? Regards, ++Keith