From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from shelob.surriel.com (shelob.surriel.com [96.67.55.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B1BD5C433FE for ; Thu, 24 Nov 2022 21:07:26 +0000 (UTC) Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.96) (envelope-from ) id 1oyJR5-0000On-2p; Thu, 24 Nov 2022 16:07:07 -0500 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by shelob.surriel.com with esmtps (TLS1.2) tls TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1oyJR1-0000A3-1i for kernelnewbies@kernelnewbies.org; Thu, 24 Nov 2022 16:07:03 -0500 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id EF5613200A6B; Thu, 24 Nov 2022 16:06:58 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Thu, 24 Nov 2022 16:07:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kroah.com; h=cc :cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm1; t=1669324018; x=1669410418; bh=8CEj2REjt/ Cpu9PVrcS0Ej8RlkM0BRcAByk9q/BqXCU=; b=saKmVkfpZdHEX5KQDqmUxhnhIP F4zPAv7kBxLWx654QigXeb/aWQkonkpQB/pwniedEPvG8pxx3M/PurZ24xkA4TZj FQIw9t+eNUI/Ya7YTTcLeYEFu3U8R9chwFmA6ay65Ne+DSM3I8ldTp3wNPP79ony 5ZkTJEkJwAttKgy3stgRjnOmLzy92wN5R2shi3HlIPVIWXrwo1qWHAmtxQ2s59Yc FpgCXHupmVtw/uexzpbsNs5ubkHuiqQTOeRU8I0E+ojCLHjsk7LwV77jp5KdwEk3 76oy6CnmOuddIS+aXP/VCQqnOWX8Mg6N8YoPYpAuysSBYNi/Fbe4dQncx95w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1669324018; x=1669410418; bh=8CEj2REjt/Cpu9PVrcS0Ej8RlkM0 BRcAByk9q/BqXCU=; b=RyI2/btNOsKbFyTyHllXwmdgsgr0SQJJlNsUpq69LXbp VVcju08yMZlRZz5g1F0bYJ66vfmMp0K/vsl6/n9fNuAuWNYzzSrnobZl3xaCtbFP rm6xfk2zkjiQJgMYkScogUKGADUre3FaRMVgXnqDuqctCAr42eXl+mo9+bY+P2oC eOQshYWkT4kpsE2w6gzqaqq/rK1MX0Q93HF6+IdYfzsrI9joiruueGYMOYmPH/xv AZBCqG9IqpiqP5WDoI0mtwnI3DA70DZW72kj+F5oh9grBIwHCdkqIUa+e2GQUinj 3CzGCebcDAEqNmWDxpWyc428/7RxrcSUKTDHeK+Siw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvgedrieefgddugeeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkfhggtggujgesthdtredttddtvdenucfhrhhomhepifhrvghg ucfmjfcuoehgrhgvgheskhhrohgrhhdrtghomheqnecuggftrfgrthhtvghrnhepheegvd evvdeljeeugfdtudduhfekledtiefhveejkeejuefhtdeufefhgfehkeetnecuvehluhhs thgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepghhrvghgsehkrhhorg hhrdgtohhm X-ME-Proxy: Feedback-ID: i787e41f1:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 24 Nov 2022 16:06:57 -0500 (EST) Date: Thu, 24 Nov 2022 22:06:55 +0100 From: Greg KH To: John Aron Subject: Re: OBJTOOL Build error Message-ID: References: <041601d90035$4f738de0$ee5aa9a0$@aronetics.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <041601d90035$4f738de0$ee5aa9a0$@aronetics.com> Cc: 'Mark Salter' , Mark Lewis , regressions@lists.linux.dev, stable@vger.kernel.org, kernelnewbies@kernelnewbies.org X-BeenThere: kernelnewbies@kernelnewbies.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Learn about the Linux kernel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: kernelnewbies-bounces@kernelnewbies.org On Thu, Nov 24, 2022 at 01:48:08PM -0500, John Aron wrote: > Hello - > > > > I have an idea of where to begin: our kernel code compiles and works on Red > Hat, CentOS, and Fedora. In Ubuntu 20.04, I have an error. > > > > root@form:/home/john/thor-linux/Kernel/ubuntu20.04# make > > rmmod: ERROR: Module thor is not currently loaded > > make: [Makefile:7: all] Error 1 (ignored) > > make[1]: Entering directory '/usr/src/linux-headers-5.4.0-131-generic' > > CC [M] /home/john/thor-linux/Kernel/ubuntu22.04/thor.o > > /home/john/thor-linux/Kernel/ubuntu22.04/thor.o: warning: objtool: > _Controller_process_response_map()+0x1b3: unreachable instruction > > Building modules, stage 2. > > MODPOST 1 modules > > CC [M] /home/john/thor-linux/Kernel/ubuntu22.04/thor.mod.o > > LD [M] /home/john/thor-linux/Kernel/ubuntu22.04/thor.ko > > make[1]: Leaving directory '/usr/src/linux-headers-5.4.0-131-generic' > > make[1]: Entering directory '/usr/src/linux-headers-5.4.0-131-generic' > > CLEAN /home/john/thor-linux/Kernel/ubuntu22.04/Module.symvers > > make[1]: Leaving directory '/usr/src/linux-headers-5.4.0-131-generic' > > #@sudo dmesg -C > > #@sudo insmod /usr/local/etc/thor.ko > > filename: /usr/local/etc/thor.ko > > version: 0.1 > > description: THOR KMOD > > author: Aronetics > > license: GPL > > srcversion: BC856FA85DB2FEFD38A1B2A > > depends: > > retpoline: Y > > name: thor > > vermagic: 5.4.0-131-generic SMP mod_unload modversions > > #@sudo dmesg > > root@form:/home/john/thor-linux/Kernel/ubuntu20.04# > > > > > Every 2.0s: tail -n30 /var/lib/dkms/thor/1.0.1/build/make.log > > > > DKMS make.log for thor-1.0.1 for kernel 5.4.0-131-generic (x86_64) > > Thu 24 Nov 2022 01:10:33 PM EST > > make: Entering directory '/usr/src/linux-headers-5.4.0-131-generic' > > CC [M] /var/lib/dkms/thor/1.0.1/build/thor.o > > /var/lib/dkms/thor/1.0.1/build/thor.o: warning: objtool: > _Controller_process_response_map()+0x1b3: unreachable instruction > > Building modules, stage 2. > > MODPOST 1 modules > > CC [M] /var/lib/dkms/thor/1.0.1/build/thor.mod.o > > LD [M] /var/lib/dkms/thor/1.0.1/build/thor.ko > > make: Leaving directory '/usr/src/linux-headers-5.4.0-131-generic' > > > > Is this an error in objtool on Ubuntu within > /usr/src/linux-headers-5.4.0-${26-130}/tools/objtool ? Do you have a pointer to your code anywhere? Do you have .S files in it, or is it all C files? And did you ask the Canonical developers about this? You should have a support contract you are paying for with them, so why not use that? thanks, greg k-h _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies