Skip to contentSkip to conversation

Error in linux-3.0.72 build.

DISCUSSION Michael D. Setzer II 4 participants 7 messages Apr 6, 2013 – Apr 10, 2013

lore
Share & tools
lore
#0 lore raw

Just downloaded new kernels, and find this error in build.

fs/built-in.o: In function `find_group_flex':
/home/msetzerii/data/linux-3.0.72/fs/ext4/ialloc.c:359: undefined reference to __udivdi3' /home/msetzerii/data/linux-3.0.72/fs/ext4/ialloc.c:374: undefined reference to __udivdi3'
make: *** [.tmp_vmlinux1] Error 1

+----------------------------------------------------------+
  Michael D. Setzer II -  Computer Science Instructor      
  Guam Community College  Computer Center                  
  mailto:[email protected]                            

mailto:[email protected]
http://www.guam.net/home/mikes
Guam - Where America's Day Begins
G4L Disk Imaging Project maintainer
http://sourceforge.net/projects/g4l/
+----------------------------------------------------------+

http://setiathome.berkeley.edu (Original)

Number of Seti Units Returned:  19,471
Processing time:  32 years, 290 days, 12 hours, 58 minutes

(Total Hours: 287,489)

BOINC@HOME CREDITS

SETI        14361044.287140   |   EINSTEIN    10723942.979852
ROSETTA      6832434.144171   |   ABC         15903532.519753
#1 lore raw
Quoted 8 lines · Michael D. Setzer II

Just downloaded new kernels, and find this error in build.

fs/built-in.o: In function `find_group_flex':
/home/msetzerii/data/linux-3.0.72/fs/ext4/ialloc.c:359: undefined reference to __udivdi3' /home/msetzerii/data/linux-3.0.72/fs/ext4/ialloc.c:374: undefined reference to __udivdi3'
make: *** [.tmp_vmlinux1] Error 1

Looks like your compiler is generating 64-bit division which is a call into libgcc. Which gcc version are you using?

+ext4 folks.

Signature · 5 lines
Regards/Gruss,
    Boris.

Sent from a fat crate under my desk. Formatting is fine.
--
#2 lore raw

On 6 Apr 2013 at 13:26, Borislav Petkov wrote:

Date sent:      	Sat, 6 Apr 2013 13:26:57 +0200
From:           	Borislav Petkov <[email protected]>
To:             	"Michael D. Setzer II" <[email protected]>
Copies to:      	[email protected], 

[email protected]
Subject: Re: Error in linux-3.0.72 build.

Quoted 10 lines · Michael D. Setzer II
Quoted 8 lines

Just downloaded new kernels, and find this error in build.

fs/built-in.o: In function `find_group_flex':
/home/msetzerii/data/linux-3.0.72/fs/ext4/ialloc.c:359: undefined reference to __udivdi3' /home/msetzerii/data/linux-3.0.72/fs/ext4/ialloc.c:374: undefined reference to __udivdi3'
make: *** [.tmp_vmlinux1] Error 1

Quoted 3 lines

Looks like your compiler is generating 64-bit division which is a call into libgcc. Which gcc version are you using?

gcc (GCC) 4.5.1 20100924 (Red Hat 4.5.1-4)

Other two new kernel built fine, and all the previous 3.0.x kernels have build using the same .config on system.

It is a quad core phenom II machine running Fedora 14 with the linux32 option to build 32bit kernels for use on my g4l project cd image.

Quoted 8 lines

+ext4 folks.

Signature · 5 lines
Regards/Gruss,
    Boris.

Sent from a fat crate under my desk. Formatting is fine.
--
+----------------------------------------------------------+
  Michael D. Setzer II -  Computer Science Instructor      
  Guam Community College  Computer Center                  
  mailto:[email protected]                            

mailto:[email protected]
http://www.guam.net/home/mikes
Guam - Where America's Day Begins
G4L Disk Imaging Project maintainer
http://sourceforge.net/projects/g4l/
+----------------------------------------------------------+

http://setiathome.berkeley.edu (Original)

Number of Seti Units Returned:  19,471
Processing time:  32 years, 290 days, 12 hours, 58 minutes

(Total Hours: 287,489)

BOINC@HOME CREDITS

SETI        14361044.287140   |   EINSTEIN    10723942.979852
ROSETTA      6832434.144171   |   ABC         15903532.519753
#3 lore raw
In reply to Borislav Petkov

On 6 Apr 2013 at 13:26, Borislav Petkov wrote:

Date sent:      	Sat, 6 Apr 2013 13:26:57 +0200
From:           	Borislav Petkov <[email protected]>
To:             	"Michael D. Setzer II" <[email protected]>
Copies to:      	[email protected], 

[email protected]
Subject: Re: Error in linux-3.0.72 build.

Quoted 10 lines · Michael D. Setzer II
Quoted 8 lines

Just downloaded new kernels, and find this error in build.

fs/built-in.o: In function `find_group_flex':
/home/msetzerii/data/linux-3.0.72/fs/ext4/ialloc.c:359: undefined reference to __udivdi3' /home/msetzerii/data/linux-3.0.72/fs/ext4/ialloc.c:374: undefined reference to __udivdi3'
make: *** [.tmp_vmlinux1] Error 1

Quoted 4 lines

Looks like your compiler is generating 64-bit division which is a call into libgcc. Which gcc version are you using?

+ext4 folks.

Did a diff on the new ialloc.c and the previous one from 3.0.71

348,349c348,349
< ext4_fsblk_t blocks_per_flex = sbi->s_blocks_per_group *
flex_size;
< ext4_fsblk_t flexbg_free_blocks;
---

Quoted 2 lines
	int blocks_per_flex = sbi->s_blocks_per_group * flex_size;
	int flexbg_free_blocks;

358c358
< flexbg_free_blocks =
atomic64_read(&flex_group[best_flex].free_blocks);
---

Quoted 1 line

flexbg_free_blocks =

atomic_read(&flex_group[best_flex].free_blocks);
373c373
< flexbg_free_blocks =
atomic64_read(&flex_group[i].free_blocks);
---

Quoted 1 line

flexbg_free_blocks =

atomic_read(&flex_group[i].free_blocks); 383,384c383,384
< ((atomic64_read(&flex_group[i].free_blocks) >
< atomic64_read(&flex_group[best_flex].free_blocks)) &&
---

Quoted 2 lines
		    ((atomic_read(&flex_group[i].free_blocks) >
		      atomic_read(&flex_group[best_flex].free_blocks)) 

&&
390c390
< !atomic64_read(&flex_group[best_flex].free_blocks))
---

Quoted 1 line

!atomic_read(&flex_group[best_flex].free_blocks))

409d408
< __u64 free_blocks;
410a410

Quoted 1 line
	__u32 free_blocks;

427c427
< stats->free_blocks =
atomic64_read(&flex_group[g].free_blocks);
---

Quoted 1 line
		stats->free_blocks = 

atomic_read(&flex_group[g].free_blocks);

Quoted 7 lines
Signature · 6 lines
-- 
Regards/Gruss,
    Boris.

Sent from a fat crate under my desk. Formatting is fine.
--
+----------------------------------------------------------+
  Michael D. Setzer II -  Computer Science Instructor      
  Guam Community College  Computer Center                  
  mailto:[email protected]                            

mailto:[email protected]
http://www.guam.net/home/mikes
Guam - Where America's Day Begins
G4L Disk Imaging Project maintainer
http://sourceforge.net/projects/g4l/
+----------------------------------------------------------+

http://setiathome.berkeley.edu (Original)

Number of Seti Units Returned:  19,471
Processing time:  32 years, 290 days, 12 hours, 58 minutes

(Total Hours: 287,489)

BOINC@HOME CREDITS

SETI        14361044.287140   |   EINSTEIN    10723942.979852
ROSETTA      6832434.144171   |   ABC         15903532.519753
#5 lore raw

On 6 Apr 2013 at 8:41, Theodore Ts'o wrote:

Date sent:      	Sat, 6 Apr 2013 08:41:01 -0400
From:           	Theodore Ts'o <[email protected]>
To:             	"Michael D. Setzer II" <[email protected]>
Copies to:      	[email protected]
Subject:        	Re: Error in linux-3.0.72 build.
Quoted 11 lines · Michael D. Setzer II
Quoted 1 line

Just downloaded new kernels, and find this error in build.

Patch is here:

http://www.spinics.net/lists/linux-ext4/msg37598.html

Explanation of why it's needed is here:

http://www.spinics.net/lists/linux-ext4/msg37600.html

Thanks. Made the patch, and it now compiles.

Quoted 5 lines

Greg has queued it for the next stable release.

Cheers,

- Ted

+----------------------------------------------------------+
  Michael D. Setzer II -  Computer Science Instructor      
  Guam Community College  Computer Center                  
  mailto:[email protected]                            

mailto:[email protected]
http://www.guam.net/home/mikes
Guam - Where America's Day Begins
G4L Disk Imaging Project maintainer
http://sourceforge.net/projects/g4l/
+----------------------------------------------------------+

http://setiathome.berkeley.edu (Original)

Number of Seti Units Returned:  19,471
Processing time:  32 years, 290 days, 12 hours, 58 minutes

(Total Hours: 287,489)

BOINC@HOME CREDITS

SETI        14361044.287140   |   EINSTEIN    10723942.979852
ROSETTA      6832434.144171   |   ABC         15903532.519753
#6 lore raw
In reply to Theodore Ts'o
Quoted 5 lines · Theodore Ts'o
Quoted 1 line · Michael D. Setzer II

Just downloaded new kernels, and find this error in build.

Patch is here:

Quoted 8 lines

http://www.spinics.net/lists/linux-ext4/msg37598.html

Explanation of why it's needed is here:

http://www.spinics.net/lists/linux-ext4/msg37600.html

Greg has queued it for the next stable release.

Grumble, I just stumbled over this for the 3.0-rt release. I guess 3.0-rt will have to wait till the next stable is out.

-- Steve