linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* undefined reference to `printk'
@ 2016-06-12  2:17 kbuild test robot
  2016-06-12  4:38 ` Josh Triplett
  0 siblings, 1 reply; 19+ messages in thread
From: kbuild test robot @ 2016-06-12  2:17 UTC (permalink / raw)
  Cc: kbuild-all, linux-kernel, Josh Triplett, Andrew Morton,
	Linux Memory Management List

[-- Attachment #1: Type: text/plain, Size: 1205 bytes --]

Hi,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   8714f8f5fe396ca513ccaaac2304497439c181fb
commit: 5d2acfc7b974bbd3858b4dd3f2cdc6362dd8843a kconfig: make allnoconfig disable options behind EMBEDDED and EXPERT
date:   2 years, 2 months ago
config: m32r-allnoconfig (attached as .config)
compiler: m32r-linux-gcc (GCC) 4.9.0
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 5d2acfc7b974bbd3858b4dd3f2cdc6362dd8843a
        # save the attached .config to linux build tree
        make.cross ARCH=m32r 

All errors (new ones prefixed by >>):

   arch/m32r/kernel/built-in.o: In function `default_eit_handler':
>> (.text+0x3f8): undefined reference to `printk'
   arch/m32r/kernel/built-in.o: In function `default_eit_handler':
   (.text+0x3f8): relocation truncated to fit: R_M32R_26_PCREL_RELA against undefined symbol `printk'

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 3473 bytes --]

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: undefined reference to `printk'
  2016-06-12  2:17 undefined reference to `printk' kbuild test robot
@ 2016-06-12  4:38 ` Josh Triplett
  2016-06-27  5:26   ` Yoshinori Sato
  0 siblings, 1 reply; 19+ messages in thread
From: Josh Triplett @ 2016-06-12  4:38 UTC (permalink / raw)
  To: linux-kernel, linux-arch
  Cc: kbuild-all, linux-kernel, Andrew Morton,
	Linux Memory Management List, kbuild test robot

[Adding LKML, linux-arch, and Linus.]

On Sun, Jun 12, 2016 at 10:17:01AM +0800, kbuild test robot wrote:
> All errors (new ones prefixed by >>):
> 
>    arch/m32r/kernel/built-in.o: In function `default_eit_handler':
> >> (.text+0x3f8): undefined reference to `printk'
>    arch/m32r/kernel/built-in.o: In function `default_eit_handler':
>    (.text+0x3f8): relocation truncated to fit: R_M32R_26_PCREL_RELA against undefined symbol `printk'

As far as I can tell, there has been a patch available for this for
months, and it still doesn't seem to have been applied anywhere.

m32r is listed in MAINTAINERS as "Orphan", and has been since commit
b4174867bee83e79dc155479cb1b67c452da6476 in 2014.  And that commit
in turn observed no commits from the maintainer since 2009.  Looking at
the log for arch/m32r, I don't see any activity other than random fixes
by others, and based on the signoffs, all of those seem to go through
miscellaneous trees.

Is anyone using m32r?  Is anyone willing to maintain it?  And if not,
should we consider removing it?

- Josh Triplett

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: undefined reference to `printk'
  2016-06-12  4:38 ` Josh Triplett
@ 2016-06-27  5:26   ` Yoshinori Sato
  0 siblings, 0 replies; 19+ messages in thread
From: Yoshinori Sato @ 2016-06-27  5:26 UTC (permalink / raw)
  To: Josh Triplett
  Cc: linux-kernel, linux-arch, kbuild-all, Andrew Morton,
	Linux Memory Management List, kbuild test robot

On Sun, 12 Jun 2016 13:38:10 +0900,
Josh Triplett wrote:
> 
> [Adding LKML, linux-arch, and Linus.]
> 
> On Sun, Jun 12, 2016 at 10:17:01AM +0800, kbuild test robot wrote:
> > All errors (new ones prefixed by >>):
> > 
> >    arch/m32r/kernel/built-in.o: In function `default_eit_handler':
> > >> (.text+0x3f8): undefined reference to `printk'
> >    arch/m32r/kernel/built-in.o: In function `default_eit_handler':
> >    (.text+0x3f8): relocation truncated to fit: R_M32R_26_PCREL_RELA against undefined symbol `printk'
> 
> As far as I can tell, there has been a patch available for this for
> months, and it still doesn't seem to have been applied anywhere.
> 
> m32r is listed in MAINTAINERS as "Orphan", and has been since commit
> b4174867bee83e79dc155479cb1b67c452da6476 in 2014.  And that commit
> in turn observed no commits from the maintainer since 2009.  Looking at
> the log for arch/m32r, I don't see any activity other than random fixes
> by others, and based on the signoffs, all of those seem to go through
> miscellaneous trees.
> 
> Is anyone using m32r?  Is anyone willing to maintain it?  And if not,
> should we consider removing it?

I have m32r target.
So I can testing and housekeeping.
If I'm not in other ones, I work.

> - Josh Triplett
> --
> To unsubscribe from this list: send the line "unsubscribe linux-arch" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

-- 
Yoshinori Sato
<ysato@users.sourceforge.jp>

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: undefined reference to `printk'
  2016-09-25  3:46 ` Joe Perches
@ 2016-09-26  1:54   ` Fengguang Wu
  0 siblings, 0 replies; 19+ messages in thread
From: Fengguang Wu @ 2016-09-26  1:54 UTC (permalink / raw)
  To: Joe Perches
  Cc: kbuild-all, linux-kernel, Andrew Morton, Linux Memory Management List

Hi Joe,

On Sat, Sep 24, 2016 at 08:46:26PM -0700, Joe Perches wrote:
>On Sun, 2016-09-25 at 11:40 +0800, kbuild test robot wrote:
>> Hi Joe,
>
>Hey Fengguang
>
>> It's probably a bug fix that unveils the link errors.
>
>I think all of these reports about compiler-gcc integrations
>are bogons.

Yes, sorry for the noises again!

>> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
>> head:   9c0e28a7be656d737fb18998e2dcb0b8ce595643
>> commit: cb984d101b30eb7478d32df56a0023e4603cba7f compiler-gcc: integrate the various compiler-gcc[345].h files

It looks there are different commit SHA1 in different trees for that patch.
I'll match it by patch subject rather than commit id.

Cheers,
Fengguang

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: undefined reference to `printk'
  2016-09-25  3:40 kbuild test robot
@ 2016-09-25  3:46 ` Joe Perches
  2016-09-26  1:54   ` Fengguang Wu
  0 siblings, 1 reply; 19+ messages in thread
From: Joe Perches @ 2016-09-25  3:46 UTC (permalink / raw)
  To: kbuild test robot
  Cc: kbuild-all, linux-kernel, Andrew Morton, Linux Memory Management List

On Sun, 2016-09-25 at 11:40 +0800, kbuild test robot wrote:
> Hi Joe,

Hey Fengguang

> It's probably a bug fix that unveils the link errors.

I think all of these reports about compiler-gcc integrations
are bogons.

> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head:   9c0e28a7be656d737fb18998e2dcb0b8ce595643
> commit: cb984d101b30eb7478d32df56a0023e4603cba7f compiler-gcc: integrate the various compiler-gcc[345].h files
> date:   1 year, 3 months ago
> config: m32r-allnoconfig (attached as .config)
> compiler: m32r-linux-gcc (GCC) 6.2.0
> reproduce:
>         wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
>         chmod +x ~/bin/make.cross
>         git checkout cb984d101b30eb7478d32df56a0023e4603cba7f
>         # save the attached .config to linux build tree
>         make.cross ARCH=m32r 
> 
> 
> All errors (new ones prefixed by >>):
> 
> 
>    arch/m32r/kernel/built-in.o: In function `default_eit_handler':
> > > (.text+0x3fc): undefined reference to `printk'

There isn't any association to integration here.

> 

^ permalink raw reply	[flat|nested] 19+ messages in thread

* undefined reference to `printk'
@ 2016-09-25  3:40 kbuild test robot
  2016-09-25  3:46 ` Joe Perches
  0 siblings, 1 reply; 19+ messages in thread
From: kbuild test robot @ 2016-09-25  3:40 UTC (permalink / raw)
  To: Joe Perches
  Cc: kbuild-all, linux-kernel, Andrew Morton, Linux Memory Management List

[-- Attachment #1: Type: text/plain, Size: 1217 bytes --]

Hi Joe,

It's probably a bug fix that unveils the link errors.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   9c0e28a7be656d737fb18998e2dcb0b8ce595643
commit: cb984d101b30eb7478d32df56a0023e4603cba7f compiler-gcc: integrate the various compiler-gcc[345].h files
date:   1 year, 3 months ago
config: m32r-allnoconfig (attached as .config)
compiler: m32r-linux-gcc (GCC) 6.2.0
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout cb984d101b30eb7478d32df56a0023e4603cba7f
        # save the attached .config to linux build tree
        make.cross ARCH=m32r 

All errors (new ones prefixed by >>):

   arch/m32r/kernel/built-in.o: In function `default_eit_handler':
>> (.text+0x3fc): undefined reference to `printk'
   arch/m32r/kernel/built-in.o: In function `default_eit_handler':
   (.text+0x3fc): relocation truncated to fit: R_M32R_26_PCREL_RELA against undefined symbol `printk'

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 3696 bytes --]

^ permalink raw reply	[flat|nested] 19+ messages in thread

* undefined reference to `printk'
@ 2016-09-10 17:10 kbuild test robot
  0 siblings, 0 replies; 19+ messages in thread
From: kbuild test robot @ 2016-09-10 17:10 UTC (permalink / raw)
  To: H. Peter Anvin; +Cc: kbuild-all, linux-kernel, David Woodhouse

[-- Attachment #1: Type: text/plain, Size: 1195 bytes --]

Hi Peter,

It's probably a bug fix that unveils the link errors.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   d0acc7dfd90eb97e90ccd42a567034017ec60fb8
commit: 63a3f603413ffe82ad775f2d62a5afff87fd94a0 timeconst.pl: Eliminate Perl warning
date:   3 years, 7 months ago
config: m32r-allnoconfig (attached as .config)
compiler: m32r-linux-gcc (GCC) 4.9.0
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 63a3f603413ffe82ad775f2d62a5afff87fd94a0
        # save the attached .config to linux build tree
        make.cross ARCH=m32r 

All errors (new ones prefixed by >>):

   arch/m32r/kernel/built-in.o: In function `default_eit_handler':
>> (.text+0x51c): undefined reference to `printk'
   arch/m32r/kernel/built-in.o: In function `default_eit_handler':
   (.text+0x51c): relocation truncated to fit: R_M32R_26_PCREL_RELA against undefined symbol `printk'

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 3772 bytes --]

^ permalink raw reply	[flat|nested] 19+ messages in thread

* undefined reference to `printk'
@ 2016-09-05  8:04 kbuild test robot
  0 siblings, 0 replies; 19+ messages in thread
From: kbuild test robot @ 2016-09-05  8:04 UTC (permalink / raw)
  To: H. Peter Anvin; +Cc: kbuild-all, linux-kernel, David Woodhouse

[-- Attachment #1: Type: text/plain, Size: 1195 bytes --]

Hi Peter,

It's probably a bug fix that unveils the link errors.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   c6935931c1894ff857616ff8549b61236a19148f
commit: 63a3f603413ffe82ad775f2d62a5afff87fd94a0 timeconst.pl: Eliminate Perl warning
date:   3 years, 7 months ago
config: m32r-allnoconfig (attached as .config)
compiler: m32r-linux-gcc (GCC) 4.9.0
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 63a3f603413ffe82ad775f2d62a5afff87fd94a0
        # save the attached .config to linux build tree
        make.cross ARCH=m32r 

All errors (new ones prefixed by >>):

   arch/m32r/kernel/built-in.o: In function `default_eit_handler':
>> (.text+0x51c): undefined reference to `printk'
   arch/m32r/kernel/built-in.o: In function `default_eit_handler':
   (.text+0x51c): relocation truncated to fit: R_M32R_26_PCREL_RELA against undefined symbol `printk'

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 3772 bytes --]

^ permalink raw reply	[flat|nested] 19+ messages in thread

* undefined reference to `printk'
@ 2016-08-28 16:56 kbuild test robot
  0 siblings, 0 replies; 19+ messages in thread
From: kbuild test robot @ 2016-08-28 16:56 UTC (permalink / raw)
  To: H. Peter Anvin; +Cc: kbuild-all, linux-kernel, David Woodhouse

[-- Attachment #1: Type: text/plain, Size: 1195 bytes --]

Hi Peter,

It's probably a bug fix that unveils the link errors.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   af56ff27eba54fceee5f5643e79bf6531f2e1739
commit: 63a3f603413ffe82ad775f2d62a5afff87fd94a0 timeconst.pl: Eliminate Perl warning
date:   3 years, 7 months ago
config: m32r-allnoconfig (attached as .config)
compiler: m32r-linux-gcc (GCC) 4.9.0
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 63a3f603413ffe82ad775f2d62a5afff87fd94a0
        # save the attached .config to linux build tree
        make.cross ARCH=m32r 

All errors (new ones prefixed by >>):

   arch/m32r/kernel/built-in.o: In function `default_eit_handler':
>> (.text+0x51c): undefined reference to `printk'
   arch/m32r/kernel/built-in.o: In function `default_eit_handler':
   (.text+0x51c): relocation truncated to fit: R_M32R_26_PCREL_RELA against undefined symbol `printk'

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 3772 bytes --]

^ permalink raw reply	[flat|nested] 19+ messages in thread

* undefined reference to `printk'
@ 2016-08-16  1:20 kbuild test robot
  0 siblings, 0 replies; 19+ messages in thread
From: kbuild test robot @ 2016-08-16  1:20 UTC (permalink / raw)
  To: H. Peter Anvin; +Cc: kbuild-all, linux-kernel, David Woodhouse

[-- Attachment #1: Type: text/plain, Size: 1195 bytes --]

Hi Peter,

It's probably a bug fix that unveils the link errors.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   3684b03d8e9a889eda94ee74421959a9d55e5e19
commit: 63a3f603413ffe82ad775f2d62a5afff87fd94a0 timeconst.pl: Eliminate Perl warning
date:   3 years, 6 months ago
config: m32r-allnoconfig (attached as .config)
compiler: m32r-linux-gcc (GCC) 4.9.0
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 63a3f603413ffe82ad775f2d62a5afff87fd94a0
        # save the attached .config to linux build tree
        make.cross ARCH=m32r 

All errors (new ones prefixed by >>):

   arch/m32r/kernel/built-in.o: In function `default_eit_handler':
>> (.text+0x51c): undefined reference to `printk'
   arch/m32r/kernel/built-in.o: In function `default_eit_handler':
   (.text+0x51c): relocation truncated to fit: R_M32R_26_PCREL_RELA against undefined symbol `printk'

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 3772 bytes --]

^ permalink raw reply	[flat|nested] 19+ messages in thread

* undefined reference to `printk'
@ 2016-08-07  7:17 kbuild test robot
  0 siblings, 0 replies; 19+ messages in thread
From: kbuild test robot @ 2016-08-07  7:17 UTC (permalink / raw)
  To: H. Peter Anvin; +Cc: kbuild-all, linux-kernel, David Woodhouse

[-- Attachment #1: Type: text/plain, Size: 1195 bytes --]

Hi Peter,

It's probably a bug fix that unveils the link errors.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   0cbbc422d56668528f6efd1234fe908010284082
commit: 63a3f603413ffe82ad775f2d62a5afff87fd94a0 timeconst.pl: Eliminate Perl warning
date:   3 years, 6 months ago
config: m32r-allnoconfig (attached as .config)
compiler: m32r-linux-gcc (GCC) 4.9.0
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 63a3f603413ffe82ad775f2d62a5afff87fd94a0
        # save the attached .config to linux build tree
        make.cross ARCH=m32r 

All errors (new ones prefixed by >>):

   arch/m32r/kernel/built-in.o: In function `default_eit_handler':
>> (.text+0x51c): undefined reference to `printk'
   arch/m32r/kernel/built-in.o: In function `default_eit_handler':
   (.text+0x51c): relocation truncated to fit: R_M32R_26_PCREL_RELA against undefined symbol `printk'

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 3772 bytes --]

^ permalink raw reply	[flat|nested] 19+ messages in thread

* undefined reference to `printk'
@ 2016-07-27 20:56 kbuild test robot
  0 siblings, 0 replies; 19+ messages in thread
From: kbuild test robot @ 2016-07-27 20:56 UTC (permalink / raw)
  Cc: kbuild-all, linux-kernel, Josh Triplett, Andrew Morton,
	Linux Memory Management List

[-- Attachment #1: Type: text/plain, Size: 1205 bytes --]

Hi,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   08fd8c17686c6b09fa410a26d516548dd80ff147
commit: 5d2acfc7b974bbd3858b4dd3f2cdc6362dd8843a kconfig: make allnoconfig disable options behind EMBEDDED and EXPERT
date:   2 years, 4 months ago
config: m32r-allnoconfig (attached as .config)
compiler: m32r-linux-gcc (GCC) 4.9.0
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 5d2acfc7b974bbd3858b4dd3f2cdc6362dd8843a
        # save the attached .config to linux build tree
        make.cross ARCH=m32r 

All errors (new ones prefixed by >>):

   arch/m32r/kernel/built-in.o: In function `default_eit_handler':
>> (.text+0x3f8): undefined reference to `printk'
   arch/m32r/kernel/built-in.o: In function `default_eit_handler':
   (.text+0x3f8): relocation truncated to fit: R_M32R_26_PCREL_RELA against undefined symbol `printk'

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 3470 bytes --]

^ permalink raw reply	[flat|nested] 19+ messages in thread

* undefined reference to `printk'
@ 2016-07-19  9:10 kbuild test robot
  0 siblings, 0 replies; 19+ messages in thread
From: kbuild test robot @ 2016-07-19  9:10 UTC (permalink / raw)
  Cc: kbuild-all, linux-kernel, Josh Triplett, Andrew Morton,
	Linux Memory Management List

[-- Attachment #1: Type: text/plain, Size: 1205 bytes --]

Hi,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   47ef4ad2684d380dd6d596140fb79395115c3950
commit: 5d2acfc7b974bbd3858b4dd3f2cdc6362dd8843a kconfig: make allnoconfig disable options behind EMBEDDED and EXPERT
date:   2 years, 3 months ago
config: m32r-allnoconfig (attached as .config)
compiler: m32r-linux-gcc (GCC) 4.9.0
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 5d2acfc7b974bbd3858b4dd3f2cdc6362dd8843a
        # save the attached .config to linux build tree
        make.cross ARCH=m32r 

All errors (new ones prefixed by >>):

   arch/m32r/kernel/built-in.o: In function `default_eit_handler':
>> (.text+0x3f8): undefined reference to `printk'
   arch/m32r/kernel/built-in.o: In function `default_eit_handler':
   (.text+0x3f8): relocation truncated to fit: R_M32R_26_PCREL_RELA against undefined symbol `printk'

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 3470 bytes --]

^ permalink raw reply	[flat|nested] 19+ messages in thread

* undefined reference to `printk'
@ 2016-07-03 15:39 kbuild test robot
  0 siblings, 0 replies; 19+ messages in thread
From: kbuild test robot @ 2016-07-03 15:39 UTC (permalink / raw)
  Cc: kbuild-all, linux-kernel, Josh Triplett, Andrew Morton,
	Linux Memory Management List

[-- Attachment #1: Type: text/plain, Size: 1205 bytes --]

Hi,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   4f302921c1458d790ae21147f7043f4e6b6a1085
commit: 5d2acfc7b974bbd3858b4dd3f2cdc6362dd8843a kconfig: make allnoconfig disable options behind EMBEDDED and EXPERT
date:   2 years, 3 months ago
config: m32r-allnoconfig (attached as .config)
compiler: m32r-linux-gcc (GCC) 4.9.0
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 5d2acfc7b974bbd3858b4dd3f2cdc6362dd8843a
        # save the attached .config to linux build tree
        make.cross ARCH=m32r 

All errors (new ones prefixed by >>):

   arch/m32r/kernel/built-in.o: In function `default_eit_handler':
>> (.text+0x3f8): undefined reference to `printk'
   arch/m32r/kernel/built-in.o: In function `default_eit_handler':
   (.text+0x3f8): relocation truncated to fit: R_M32R_26_PCREL_RELA against undefined symbol `printk'

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 3473 bytes --]

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: undefined reference to `printk'
  2016-06-26  1:19 kbuild test robot
@ 2016-06-27  5:14 ` Yoshinori Sato
  0 siblings, 0 replies; 19+ messages in thread
From: Yoshinori Sato @ 2016-06-27  5:14 UTC (permalink / raw)
  To: linux-kernel, Josh Triplett, Andrew Morton
  Cc: kbuild-all, Linux Memory Management List

I think fix it.
default_eit_handler rewritten in C, it is best way.
But it test difficult.

Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
---
 arch/m32r/kernel/entry.S | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/arch/m32r/kernel/entry.S b/arch/m32r/kernel/entry.S
index c639bfa..a71105c 100644
--- a/arch/m32r/kernel/entry.S
+++ b/arch/m32r/kernel/entry.S
@@ -419,6 +419,12 @@ ENTRY(default_eit_handler)
 infinit:
 	bra	infinit
 
+#ifndef CONFIG_PRINTK
+printk:
+	jmp	lr
+	.fillinsn
+#endif
+
 #ifdef CONFIG_ MMU
 /*
  * Access Exception handler
2.7.0

On Sun, 26 Jun 2016 10:19:50 +0900,
kbuild test robot wrote:
> 
> Hi,
> 
> FYI, the error/warning still remains.
> 
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head:   da2f6aba4a21f8da3331e5251a117c52764da579
> commit: 5d2acfc7b974bbd3858b4dd3f2cdc6362dd8843a kconfig: make allnoconfig disable options behind EMBEDDED and EXPERT
> date:   2 years, 3 months ago
> config: m32r-allnoconfig (attached as .config)
> compiler: m32r-linux-gcc (GCC) 4.9.0
> reproduce:
>         wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
>         chmod +x ~/bin/make.cross
>         git checkout 5d2acfc7b974bbd3858b4dd3f2cdc6362dd8843a
>         # save the attached .config to linux build tree
>         make.cross ARCH=m32r 
> 
> All errors (new ones prefixed by >>):
> 
>    arch/m32r/kernel/built-in.o: In function `default_eit_handler':
> >> (.text+0x3f8): undefined reference to `printk'
>    arch/m32r/kernel/built-in.o: In function `default_eit_handler':
>    (.text+0x3f8): relocation truncated to fit: R_M32R_26_PCREL_RELA against undefined symbol `printk'
> 
> ---
> 0-DAY kernel test infrastructure                Open Source Technology Center
> https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

-- 
Yoshinori Sato
<ysato@users.sourceforge.jp>

^ permalink raw reply related	[flat|nested] 19+ messages in thread

* undefined reference to `printk'
@ 2016-06-26  1:19 kbuild test robot
  2016-06-27  5:14 ` Yoshinori Sato
  0 siblings, 1 reply; 19+ messages in thread
From: kbuild test robot @ 2016-06-26  1:19 UTC (permalink / raw)
  Cc: kbuild-all, linux-kernel, Josh Triplett, Andrew Morton,
	Linux Memory Management List

[-- Attachment #1: Type: text/plain, Size: 1205 bytes --]

Hi,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   da2f6aba4a21f8da3331e5251a117c52764da579
commit: 5d2acfc7b974bbd3858b4dd3f2cdc6362dd8843a kconfig: make allnoconfig disable options behind EMBEDDED and EXPERT
date:   2 years, 3 months ago
config: m32r-allnoconfig (attached as .config)
compiler: m32r-linux-gcc (GCC) 4.9.0
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 5d2acfc7b974bbd3858b4dd3f2cdc6362dd8843a
        # save the attached .config to linux build tree
        make.cross ARCH=m32r 

All errors (new ones prefixed by >>):

   arch/m32r/kernel/built-in.o: In function `default_eit_handler':
>> (.text+0x3f8): undefined reference to `printk'
   arch/m32r/kernel/built-in.o: In function `default_eit_handler':
   (.text+0x3f8): relocation truncated to fit: R_M32R_26_PCREL_RELA against undefined symbol `printk'

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 3473 bytes --]

^ permalink raw reply	[flat|nested] 19+ messages in thread

* undefined reference to `printk'
@ 2016-06-05  0:43 kbuild test robot
  0 siblings, 0 replies; 19+ messages in thread
From: kbuild test robot @ 2016-06-05  0:43 UTC (permalink / raw)
  Cc: kbuild-all, linux-kernel, Josh Triplett, Andrew Morton,
	Linux Memory Management List

[-- Attachment #1: Type: text/plain, Size: 1205 bytes --]

Hi,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   049ec1b5a76d34a6980cccdb7c0baeb4eed7a993
commit: 5d2acfc7b974bbd3858b4dd3f2cdc6362dd8843a kconfig: make allnoconfig disable options behind EMBEDDED and EXPERT
date:   2 years, 2 months ago
config: m32r-allnoconfig (attached as .config)
compiler: m32r-linux-gcc (GCC) 4.9.0
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 5d2acfc7b974bbd3858b4dd3f2cdc6362dd8843a
        # save the attached .config to linux build tree
        make.cross ARCH=m32r 

All errors (new ones prefixed by >>):

   arch/m32r/kernel/built-in.o: In function `default_eit_handler':
>> (.text+0x3f8): undefined reference to `printk'
   arch/m32r/kernel/built-in.o: In function `default_eit_handler':
   (.text+0x3f8): relocation truncated to fit: R_M32R_26_PCREL_RELA against undefined symbol `printk'

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 3473 bytes --]

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: undefined reference to printk()
  2002-04-23 13:34 undefined reference to printk() gio zanei
@ 2002-04-23 13:56 ` Richard B. Johnson
  0 siblings, 0 replies; 19+ messages in thread
From: Richard B. Johnson @ 2002-04-23 13:56 UTC (permalink / raw)
  To: gio zanei; +Cc: linux-kernel

On Tue, 23 Apr 2002, gio zanei wrote:

> hi to all,
> i need to compile a small program that i made. WHen i try to do it, it 
> compiles all right with the -c option ( that is i get the .o file), but if i 
> do even the linking it just keep giving me the undefined reference error to 
> some kernel functions that i need to use. In particular are the printk, 
> filp_open, generic_file_read....  I have included the header files that 
> declare them ( kernel.h and fs.h) and i have compiled the program with the 
> -D__KERNEL__ and other option used by the compiler when it wants to compile 
> a module in the kernel. I tried in many different ways but the error in the 
> linking is always the same.
> thank you,
> boba
> 

Stuff compiled to run in the kernel needs to be run in the kernel.
Stuff compiled to run in user-mode needs to be run in user-mode.
None the twain shall meet.

You can't make a 'program' that calls kernel functions. You make
a module and install it. Modules are not linked as user-mode
executables. They remain object files.

Cheers,
Dick Johnson

Penguin : Linux version 2.4.18 on an i686 machine (797.90 BogoMips).

                 Windows-2000/Professional isn't.


^ permalink raw reply	[flat|nested] 19+ messages in thread

* undefined reference to printk()
@ 2002-04-23 13:34 gio zanei
  2002-04-23 13:56 ` Richard B. Johnson
  0 siblings, 1 reply; 19+ messages in thread
From: gio zanei @ 2002-04-23 13:34 UTC (permalink / raw)
  To: linux-kernel

hi to all,
i need to compile a small program that i made. WHen i try to do it, it 
compiles all right with the -c option ( that is i get the .o file), but if i 
do even the linking it just keep giving me the undefined reference error to 
some kernel functions that i need to use. In particular are the printk, 
filp_open, generic_file_read....  I have included the header files that 
declare them ( kernel.h and fs.h) and i have compiled the program with the 
-D__KERNEL__ and other option used by the compiler when it wants to compile 
a module in the kernel. I tried in many different ways but the error in the 
linking is always the same.
thank you,
boba


_________________________________________________________________
MSN Foto è il modo più semplice per condividere e stampare le tue foto: 
http://photos.msn.com/support/worldwide.aspx


^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2016-09-26  1:54 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-12  2:17 undefined reference to `printk' kbuild test robot
2016-06-12  4:38 ` Josh Triplett
2016-06-27  5:26   ` Yoshinori Sato
  -- strict thread matches above, loose matches on Subject: below --
2016-09-25  3:40 kbuild test robot
2016-09-25  3:46 ` Joe Perches
2016-09-26  1:54   ` Fengguang Wu
2016-09-10 17:10 kbuild test robot
2016-09-05  8:04 kbuild test robot
2016-08-28 16:56 kbuild test robot
2016-08-16  1:20 kbuild test robot
2016-08-07  7:17 kbuild test robot
2016-07-27 20:56 kbuild test robot
2016-07-19  9:10 kbuild test robot
2016-07-03 15:39 kbuild test robot
2016-06-26  1:19 kbuild test robot
2016-06-27  5:14 ` Yoshinori Sato
2016-06-05  0:43 kbuild test robot
2002-04-23 13:34 undefined reference to printk() gio zanei
2002-04-23 13:56 ` Richard B. Johnson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).