All of lore.kernel.org
 help / color / mirror / Atom feed
* Build errors
@ 2006-01-20 21:51 Kurt Schwemmer
  2006-01-22  3:03 ` Ralf Baechle
  0 siblings, 1 reply; 6+ messages in thread
From: Kurt Schwemmer @ 2006-01-20 21:51 UTC (permalink / raw)
  To: linux-mips

Disclaimer: This is my first attempt to recompile the linux-mips kernel
so these are probably just newbie problems.

I sync'd with git clone rsync://ftp.linux-mips.org/git/linux.git
linux.git 2 days ago. I downloaded and installed sde:
ftp://ftp.mips.com/pub/tools/software/sde-for-linux/6.02.03-1/mipsel-sdelinux-v6.02.03-1.i386.rpm

I'm building for a Malta eval board. I'm trying to compile in oprofile
support. I execute the following sequence:
1. Copy the default malta config file to .config
2. run make xconfig and add oprofile support
3. make clean
4. make vmlinux.srec

I get a few warnings:

kernel/pid.c: In function `pidhash_init':
kernel/pid.c:260: warning: comparison of distinct pointer types lacks a
cast
  CC      kernel/rcupdate.o
  CC      kernel/intermodule.o
kernel/intermodule.c:178: warning: `inter_module_register' is deprecated
(declared at kernel/intermodule.c:38)
kernel/intermodule.c:179: warning: `inter_module_unregister' is
deprecated (declared at kernel/intermodule.c:78)
kernel/intermodule.c:181: warning: `inter_module_put' is deprecated
(declared at kernel/intermodule.c:159)

...but the one that kills me is:
mm/msync.o: In function `msync_interval':
msync.c:(.text+0x10c): unmatched HI16 relocation
mipsel-linux-ld: final link failed: Bad value
make[1]: *** [mm/built-in.o] Error 1
make: *** [mm] Error 2

Would someone tell me what I'm doing wrong? I'm pretty sure people
wouldn't be checking in code that doesn't even build!

Thanks,
Kurt Schwemmer

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

* Re: Build errors
  2006-01-20 21:51 Build errors Kurt Schwemmer
@ 2006-01-22  3:03 ` Ralf Baechle
  2006-01-23 15:10   ` Nigel Stephens
  0 siblings, 1 reply; 6+ messages in thread
From: Ralf Baechle @ 2006-01-22  3:03 UTC (permalink / raw)
  To: Kurt Schwemmer; +Cc: linux-mips, sde

On Fri, Jan 20, 2006 at 02:51:05PM -0700, Kurt Schwemmer wrote:

> I sync'd with git clone rsync://ftp.linux-mips.org/git/linux.git
> linux.git 2 days ago. I downloaded and installed sde:
> ftp://ftp.mips.com/pub/tools/software/sde-for-linux/6.02.03-1/mipsel-sdelinux-v6.02.03-1.i386.rpm

> ...but the one that kills me is:
> mm/msync.o: In function `msync_interval':
> msync.c:(.text+0x10c): unmatched HI16 relocation
> mipsel-linux-ld: final link failed: Bad value
> make[1]: *** [mm/built-in.o] Error 1
> make: *** [mm] Error 2

This kind of problem is usually being caused by either broken inline
assembler code or a bug in the compiler.  Since we haven't done any
serious changes to the inline code recently I would put my bets on a gcc
bug, so I'm putting the SDE people at MIPS on Cc.  It could be useful if
you could post your .config kernel configuration file.  Also, which
kernel version exactly are you building?  The command "git-describe HEAD"
will tell you something like "linux-2.6.15-g68cabd8e", can you post that
number?

> Would someone tell me what I'm doing wrong? I'm pretty sure people
> wouldn't be checking in code that doesn't even build!

We try hard - but the number of tools and configuration variants makes it
hard to ensure that kind of thing never happens.

  Ralf

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

* Re: Build errors
  2006-01-22  3:03 ` Ralf Baechle
@ 2006-01-23 15:10   ` Nigel Stephens
  2006-01-23 15:57     ` Kurt Schwemmer
  0 siblings, 1 reply; 6+ messages in thread
From: Nigel Stephens @ 2006-01-23 15:10 UTC (permalink / raw)
  To: Ralf Baechle; +Cc: Kurt Schwemmer, linux-mips, sde

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



Ralf Baechle wrote:

>O
>
>>I sync'd with git clone rsync://ftp.linux-mips.org/git/linux.git
>>linux.git 2 days ago. I downloaded and installed sde:
>>ftp://ftp.mips.com/pub/tools/software/sde-for-linux/6.02.03-1/mipsel-sdelinux-v6.02.03-1.i386.rpm
>>    
>>
>
>  
>

I recommend that you download the latest version of SDE (6.03.01) which 
fixes this, from 
ftp://ftp.mips.com/pub/tools/software/sde-for-linux/v6.03.01-1/mipsel-sdelinux-v6.03.01-1.i386.rpm

Nigel

[-- Attachment #2: Type: text/html, Size: 906 bytes --]

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

* Re: Build errors
  2006-01-23 15:10   ` Nigel Stephens
@ 2006-01-23 15:57     ` Kurt Schwemmer
  2006-01-23 16:04       ` Nigel Stephens
  2006-01-23 16:10       ` Maciej W. Rozycki
  0 siblings, 2 replies; 6+ messages in thread
From: Kurt Schwemmer @ 2006-01-23 15:57 UTC (permalink / raw)
  To: Nigel Stephens; +Cc: Ralf Baechle, linux-mips, sde

On Mon, 2006-01-23 at 15:10 +0000, Nigel Stephens wrote:
> I recommend that you download the latest version of SDE (6.03.01)
> which fixes this, from
> ftp://ftp.mips.com/pub/tools/software/sde-for-linux/v6.03.01-1/mipsel-sdelinux-v6.03.01-1.i386.rpm
> 
> Nigel

Great! It builds now, albeit with warnings:

arch/mips/lib/uncached.c: In function `run_uncached':
arch/mips/lib/uncached.c:47: warning: comparison is always true due to
limited range of data type

Is that normal?

Anyway, is there a particular person who maintains the wiki
( http://www.linux-mips.org/wiki/MIPS_SDE_Installation ) or should I
give it a shot? 

Thanks!,
Kurt Schwemmer

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

* Re: Build errors
  2006-01-23 15:57     ` Kurt Schwemmer
@ 2006-01-23 16:04       ` Nigel Stephens
  2006-01-23 16:10       ` Maciej W. Rozycki
  1 sibling, 0 replies; 6+ messages in thread
From: Nigel Stephens @ 2006-01-23 16:04 UTC (permalink / raw)
  To: Kurt Schwemmer; +Cc: Ralf Baechle, linux-mips, sde



Kurt Schwemmer wrote:

>
>arch/mips/lib/uncached.c: In function `run_uncached':
>arch/mips/lib/uncached.c:47: warning: comparison is always true due to
>limited range of data type
>
>Is that normal?
>  
>

I'll let a kernel expert answer that.

>Anyway, is there a particular person who maintains the wiki
>( http://www.linux-mips.org/wiki/MIPS_SDE_Installation ) or should I
>give it a shot? 
>
>  
>

Usually me, thanks for reminding me :)

Nigel

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

* Re: Build errors
  2006-01-23 15:57     ` Kurt Schwemmer
  2006-01-23 16:04       ` Nigel Stephens
@ 2006-01-23 16:10       ` Maciej W. Rozycki
  1 sibling, 0 replies; 6+ messages in thread
From: Maciej W. Rozycki @ 2006-01-23 16:10 UTC (permalink / raw)
  To: Kurt Schwemmer; +Cc: Nigel Stephens, Ralf Baechle, linux-mips, sde

On Mon, 23 Jan 2006, Kurt Schwemmer wrote:

> Great! It builds now, albeit with warnings:
> 
> arch/mips/lib/uncached.c: In function `run_uncached':
> arch/mips/lib/uncached.c:47: warning: comparison is always true due to
> limited range of data type
> 
> Is that normal?

 That's a bogus warning resulting from unability (despite all the casts) 
to tell GCC that expression is really meant and known to be always true.  
I think it's actually been discussed at the GCC list already; if the 
warning doesn't disappear with 4.1 or so, then it's worth filing a bug 
report at gcc.org.

 Otherwise it's safe to be ignored -- the code produced is correct.

  Maciej

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

end of thread, other threads:[~2006-01-23 16:06 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-20 21:51 Build errors Kurt Schwemmer
2006-01-22  3:03 ` Ralf Baechle
2006-01-23 15:10   ` Nigel Stephens
2006-01-23 15:57     ` Kurt Schwemmer
2006-01-23 16:04       ` Nigel Stephens
2006-01-23 16:10       ` Maciej W. Rozycki

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.