Skip to contentSkip to conversation

problem building qemu-0.10.6 under SUSE-11.1 (was OK under SUSE-10.3)

Qemu-devel Sergei Steshenko 2 participants 4 messages Nov 16, 2009

lore
Share & tools
lore
#0 lore raw

Hello All,

I've been routinely building QEMU up to (inclusive) version 0.10.6 on my SUSE-10.3 box - in the framework of my own AppsFromScratch.

Over the weekend I've upgraded to SUSE-11.1 and now the build fails with these messages:

"
LINK sparc64-bsd-user/qemu-sparc64
/usr/lib/libc_nonshared.a(elf-init.oS): In function `__libc_csu_init':
/usr/src/packages/BUILD/glibc-2.9/csu/elf-init.c:82: undefined reference to `__init_array_end'
/usr/bin/ld: /usr/lib/libc_nonshared.a(elf-init.oS): relocation R_386_GOTOFF against undefined hidden symbol `__init_array_end' can not be used when making a shared object /usr/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
make[1]: *** [qemu-sparc64] Error 1
make[1]: Leaving directory `/mnt/sdb8/sergei/AFSWD_debug/build/qemu-0.10.6/sparc64-bsd-user'
make: *** [subdir-sparc64-bsd-user] Error 2
".

If I understand correctly, the problem is somewhere between _system_ linker and _system_ glibc - I think so because of all these:

/usr/lib/libc_nonshared.a
/usr/src/packages/BUILD/glibc-2.9/csu/elf-init.c
/usr/bin/ld

- they are all system stuff _not_ touched/changed by my AppsFromScratch - the latter is _not_ run under 'root' privileges and changes nothing in system areas.

Is my understanding correct ? If yes, how can the problem be fixed ?

Output of 'uname -a':

Linux amdam2 2.6.27.7-9-pae #1 SMP 2008-12-04 18:10:04 +0100 i686 athlon i386 GNU/Linux .

Thanks,
Sergei.

P.S. Have just noticed the 'pae' in the kernel name - 10.3 -> 11.1 upgrade caused it, I have only 2GB of RAM, so PAE is unnecessary. Probably has nothing to do with the problem.

#1 lore raw
Quoted 8 lines · Sergei Steshenko

Hello All,

I've been routinely building QEMU up to (inclusive) version 0.10.6 on my SUSE-10.3 box - in the framework of my own AppsFromScratch.

Over the weekend I've upgraded to SUSE-11.1 and now the build fails with these messages:

Quoted 6 lines

"
 LINK  sparc64-bsd-user/qemu-sparc64

Output of 'uname -a':

Linux amdam2 2.6.27.7-9-pae #1 SMP 2008-12-04 18:10:04 +0100 i686 athlon i386 GNU/Linux

BSD user emulators are not supposed to work in Linux and vice versa.

#2 lore raw
Quoted 22 lines · Blue Swirl

From: Blue Swirl <[email protected]>
Subject: Re: [Qemu-devel] problem building qemu-0.10.6 under SUSE-11.1 (was OK under SUSE-10.3)
To: "Sergei Steshenko" <[email protected]>
Cc: [email protected]
Date: Monday, November 16, 2009, 7:54 AM

Quoted 3 lines · Sergei Steshenko

Hello All,

I've been routinely building QEMU up to (inclusive)

version 0.10.6 on my

Quoted 1 line

SUSE-10.3 box - in the framework of my own

AppsFromScratch.

Quoted 2 lines

Over the weekend I've upgraded to SUSE-11.1 and now

the build fails with

Quoted 4 lines

these messages:

"
 LINK  sparc64-bsd-user/qemu-sparc64

Quoted 8 lines
Quoted 3 lines

Output of 'uname -a':

Linux amdam2 2.6.27.7-9-pae #1 SMP 2008-12-04 18:10:04

+0100 i686 athlon i386 GNU/Linux

BSD user emulators are not supposed to work in Linux and vice versa.

1) then 'configure' should exclude "BSD user emulators" from Makefile in the first place;

2) as I wrote, the whole thing used to compile under SUSE-10.3.

Regards,
Sergei.

#3 lore raw
Quoted 51 lines · Sergei Steshenko

From: Sergei Steshenko <[email protected]>
Subject: Re: [Qemu-devel] problem building qemu-0.10.6 under SUSE-11.1 (was OK under SUSE-10.3)
To: "Blue Swirl" <[email protected]>
Cc: [email protected]
Date: Monday, November 16, 2009, 8:22 AM

--- On Mon, 11/16/09, Blue Swirl <[email protected]>

Quoted 2 lines · wrote:

From: Blue Swirl <[email protected]>
Subject: Re: [Qemu-devel] problem building qemu-0.10.6

under SUSE-11.1 (was OK  under SUSE-10.3)

Quoted 9 lines

To: "Sergei Steshenko" <[email protected]>
Cc: [email protected]
Date: Monday, November 16, 2009, 7:54 AM

Quoted 3 lines · Sergei Steshenko

Hello All,

I've been routinely building QEMU up to

(inclusive)

Quoted 5 lines

version 0.10.6 on my

Quoted 1 line

SUSE-10.3 box - in the framework of my own

AppsFromScratch.

Quoted 2 lines

Over the weekend I've upgraded to SUSE-11.1 and

now

Quoted 9 lines

the build fails with

Quoted 8 lines

these messages:

"
 LINK  sparc64-bsd-user/qemu-sparc64

Output of 'uname -a':

Linux amdam2 2.6.27.7-9-pae #1 SMP 2008-12-04

18:10:04

Quoted 3 lines

+0100 i686 athlon i386 GNU/Linux

BSD user emulators are not supposed to work in Linux

and

Quoted 2 lines

vice versa.

1) then 'configure' should exclude "BSD user emulators" from Makefile in
the first place;

Quoted 7 lines

2) as I wrote, the whole thing used to compile under SUSE-10.3.

Regards,
  Sergei.

FWIW, qemu-0.11.0 build fails the same way.

And, whatever are the gory details, successful 'configure' followed by failing 'make' is by definition a bug in build mechanism.

Regards,
Sergei.