Gergely Gábor | 3 Jan 03:41 2008
Picon

__udivdi3

hello

i was about to try nilfs (testing-8) but altough it compiles, it doesnt work, as it can't find a symbol:

  Building modules, stage 2.
  MODPOST 1 modules
WARNING: "__udivdi3" [/home/ggergely/tmp/nilfs/nilfs-2.0.0-testing-8/fs/nilfs2.ko] undefined!
WARNING: "__umoddi3" [/home/ggergely/tmp/nilfs/nilfs-2.0.0-testing-8/fs/nilfs2.ko] undefined!
  CC      /home/ggergely/tmp/nilfs/nilfs-2.0.0-testing-8/fs/nilfs2.mod.o

insmod also complains about this. Found a latter on this list, but I couldn't find a solution. Serche the net
but i couldn't solve the problem (I didnt even find where is a reference to this symbol....)

Regards: Gábor Gergely

--

-- 
Gergely Gábor <elentirmo.gilgalad@...>
_______________________________________________
users mailing list
users@...
https://www.nilfs.org/mailman/listinfo/users
Chris Samuel | 3 Jan 12:38 2008

Re: __udivdi3

On Thu, 3 Jan 2008, Gergely Gábor wrote:

> Serche the net but i couldn't solve the problem (I didnt even find
> where is a reference to this symbol....)

A reference from the ARM list:

http://marc.info/?l=linux-arm-kernel&m=112125281504347&w=2

Andrew Morton back in February implied that it was still there for 
x86:

http://www.ussg.iu.edu/hypermail/linux/kernel/0702.3/1064.html

Dunno if it's been pulled in later kernels though..

cheers!
Chris
--

-- 
 Chris Samuel  :  http://www.csamuel.org/  :  Melbourne, VIC

This email may come with a PGP signature as a file. Do not panic.
For more info see: http://en.wikipedia.org/wiki/OpenPGP
_______________________________________________
users mailing list
users@...
https://www.nilfs.org/mailman/listinfo/users
(Continue reading)

Gergely Gábor | 3 Jan 16:17 2008
Picon

Re: __udivdi3

On Thu, 3 Jan 2008 22:38:42 +1100
Chris Samuel <chris@...> wrote:

> On Thu, 3 Jan 2008, Gergely Gábor wrote:
> 
> > Serche the net but i couldn't solve the problem (I didnt even find
> > where is a reference to this symbol....)
> 
> A reference from the ARM list:
> 
> http://marc.info/?l=linux-arm-kernel&m=112125281504347&w=2
> 
> Andrew Morton back in February implied that it was still there for 
> x86:
> 
> http://www.ussg.iu.edu/hypermail/linux/kernel/0702.3/1064.html
> 
> Dunno if it's been pulled in later kernels though..
> 
> cheers!
> Chris

If I understand well, this is used by the standard '/' operator on x86 (that is my case, and btw. I have 2.6.23
kernel with gentoo patches, if that counts), so some division on the code references that macro. this case
I cannot solve this myself, yet I can't get the code to work... Please help, I'm really eager to try nilfs!

Should the final 2.0 nilfs be released, will it be ready for use for example on a /home partition in real life,
or will that still be considered risky/dangerous?

BTW: if I'll be able to get nilfs to work, I'll make an ebuild for gentoo, that can be put up to the nilfs site.
(Continue reading)

amagai | 4 Jan 02:47 2008
Picon

Re: __udivdi3

Hi,

Could you try following steps?
================
cd nilfs-2.0.0-testing-8/fs
edit Makefile, uncomment this line to enable debug option.

#CONFIG_NILFS_DEBUG=y

make clean
make

egrep -i udivdi *.lst
================
I hope that the egrep shows filename which includes the
undefined symbols.

Should the final 2.0 nilfs be released, will it be ready for use for 
example on a /home partition in real life, or will that still be
considered risky

My colleagues (and include me) are used nilfs 2 as /home 
of developping PC's with onw risk :-)
Nilfs 2 cannot handle a disk full condition well, 
so, parameter tuning in /etc/nilfs_cleanerd.conf are very critical.

Thank you.

Amagai Yoshiji
amagai@...
(Continue reading)

Gergely Gábor | 4 Jan 04:16 2008
Picon

Re: __udivdi3

On Fri,  4 Jan 2008 10:47:21 +0900 (JST)
amagai@... wrote:

> Hi,
> 
> Could you try following steps?
> ================
> cd nilfs-2.0.0-testing-8/fs
> edit Makefile, uncomment this line to enable debug option.
> 
> #CONFIG_NILFS_DEBUG=y
> 
> make clean
> make
> 
> egrep -i udivdi *.lst
> ================
> I hope that the egrep shows filename which includes the
> undefined symbols.
> 
To me it looks like the Makefile has some errors, or my make behaves strangely
/*
ggergely <at> vosztok ~ $ make -v
GNU Make 3.81
Copyright (C) 2006  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

This program built for i686-pc-linux-gnu
(Continue reading)

amagai | 4 Jan 05:29 2008
Picon

Re: __udivdi3

--text follows this line--
Gergely, thank you your report!

> GNU Make 3.81

The version of gnu make is same as one that I used on OpenSuse
10.3.  What's wrong???

> dat.o.lst: 974              	.globl __udivdi3
> dat.o.lst: 1245 03cb E8FCFFFF 	call __udivdi3
> dat.o.lst:__udivdi3

Could you send me ( amagai@... , not to ML) the whole
dat.o.lst ?  It's very useful to solve issue.

Thanks

amagai@...
NTT CyberSpace Laboratories
NILFS team
amagai | 4 Jan 05:32 2008
Picon

Re: __udivdi3

Gergely, thank you for your report!

> GNU Make 3.81

The version of gnu make is same as one that I used on OpenSuse
10.3.  What's wrong???

> dat.o.lst: 974              	.globl __udivdi3
> dat.o.lst: 1245 03cb E8FCFFFF 	call __udivdi3
> dat.o.lst:__udivdi3

Could you send me ( amagai@... , not to ML) the whole
dat.o.lst ?  It's very useful to solve issue.

amagai@...
NTT Cyber Space Laboratories
NILFS team
amagai | 4 Jan 12:46 2008
Picon

Re: Unknown symbol __umoddi3 / ... __udivdi3

Hi,
 Pierre Etchemaite <petchema@...> wrote:

>  Now, back to more down-to-earth considerations :)
> I'd like to give the nilfs 2.0.0-testing7 release a try with linux 
> kernel 2.6.23, but I can't load the kernel module; dmesg says
> nilfs2: Unknown symbol __umoddi3
> nilfs2: Unknown symbol __udivdi3

We apologize for making no reply to your report. 
The problem will be fixed soon, I hope.  We make some work around
or patches and send them to this ML. Could you try again later?

Thank you.

Amagai Yoshiji
NTT CyberSpace Laboratories
NILFS team
Pierre Etchemaite | 4 Jan 12:57 2008

Re: Unknown symbol __umoddi3 / ... __udivdi3

Le vendredi 04 janvier 2008 à 20:46 +0900, amagai@... a écrit :
> The problem will be fixed soon, I hope.  We make some work around
> or patches and send them to this ML. Could you try again later?

Sure, no problem. This project is really interesting.

Best regards,
Pierre.
amagai | 4 Jan 15:02 2008
Picon

Re: __udivdi3

Hi, 
please try following patch, 

  cd nilfs-2.0.0-testing-8
  patch -p0 < patch_file
  cd fs
  make clean
  make
  make install

Thanks to Gergely, your dat.o.lst is very helpful!

Amagai Yoshiji
NTT
NILFS team.
================================================================

diff -u fs.save/dat.c fs/dat.c
--- fs.save/dat.c	2008-01-04 22:43:58.000000000 +0900
+++ fs/dat.c	2008-01-04 22:48:46.000000000 +0900
 <at>  <at>  -74,7 +74,7  <at>  <at> 
 inline static unsigned long
 nilfs_dat_group_offset(const struct inode *dat, nilfs_sector_t vblocknr)
 {
-	return sector_div(vblocknr, nilfs_dat_entries_per_group(dat));
+	return do_div(vblocknr, nilfs_dat_entries_per_group(dat));
 }

 inline static nilfs_gdno_t
 <at>  <at>  -1161,7 +1161,7  <at>  <at> 
(Continue reading)


Gmane