Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Architectures & Platforms Gentoo on ARM
  • Search

user mode qemu-arm : unsupported syscalls

Gentoo on all things ARM. Both 32 bit and 64 bit.
Tell about your hardware and CHOST.
Problems with crossdev targeting ARM hardware go here too.
Post Reply
  • Print view
Advanced search
20 posts • Page 1 of 1
Author
Message
xaviermiller
Bodhisattva
Bodhisattva
User avatar
Posts: 8740
Joined: Fri Jul 23, 2004 6:49 pm
Location: ~Brussels - Belgique
Contact:
Contact xaviermiller
Website

user mode qemu-arm : unsupported syscalls

  • Quote

Post by xaviermiller » Sat Sep 23, 2017 7:01 pm

Hi!

I'm using qemu-arm in user mode to chroot an armv6j image (Raspberry Pi).

When emerging (instal phase), I got the following messages :

Code: Select all

qemu: Unsupported syscall: 383
scanelf: seccomp_load failed: Bad address
or

Code: Select all

qemu: Unsupported syscall: 391
Running locale-gen, I got:

Code: Select all

# locale-gen 
 * Generating 8 locales (this might take a while) with 4 jobs
 *  (1/8) Generating en_US.ISO-8859-1 ...
localedef: ../sysdeps/unix/sysv/linux/spawni.c:366: __spawnix: Assertion `ec >= 0' failed.
qemu: uncaught target signal 6 (Aborted) - core dumped                                                                                                                                                                                  [ !! ]
I have to run it on the Raspberry Pi to get is successful.

Is there a configuration problem on the host?
Can I fix something to not have those errors?
Kind regards,
Xavier Miller
Top
n05ph3r42
Tux's lil' helper
Tux's lil' helper
Posts: 137
Joined: Mon Jul 11, 2016 7:21 pm

  • Quote

Post by n05ph3r42 » Mon Oct 02, 2017 5:30 pm

HIYA.
Same situation, but actually it affects not only locale-gen. It affects bunch of other packages, producing same error while emerging (iproute for example):

Code: Select all

armv7a-hardfloat-linux-gnueabi-gcc -Wall -Wstrict-prototypes  -Wmissing-prototypes -Wmissing-declarations -Wold-style-definition -Wformat=2 -O2 -pipe -fomit-frame-pointer -ftree-vectorize -march=armv7-a -mtune=cortex-a9 -mfpu=vfpv3-d16 -mfloat-abi=hard  -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/lib\" -DCONFDIR=\"/etc/iproute2\" -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -O2 -pipe -fomit-frame-pointer -ftree-vectorize -march=armv7-a -mtune=cortex-a9 -mfpu=vfpv3-d16 -mfloat-abi=hard -DHAVE_SETNS -DHAVE_LIBMNL  -DCONFIG_GACT -DCONFIG_GACT_PROB -DIPT_LIB_DIR=\"/usr/lib/xtables\" -DYY_NO_INPUT   -c -o m_ematch.o m_ematch.c
bison -d -t -v -o emp_ematch.yacc.c emp_ematch.y
bison: ../sysdeps/unix/sysv/linux/spawni.c:366: __spawnix: Assertion `ec >= 0' failed.
qemu: uncaught target signal 6 (Aborted) - core dumped
make[1]: *** [Makefile:178: emp_ematch.yacc.c] Aborted
make[1]: *** Waiting for unfinished jobs....
/usr/share/bison/c-skel.m4:20: error: invalid glr value: b4_glr_flag
/usr/share/bison/c-skel.m4:20: the top level
make[1]: Leaving directory '/tmp/portage/sys-apps/iproute2-4.13.0/work/iproute2-4.13.0/tc'
make: *** [Makefile:57: all] Error 2
 * ERROR: sys-apps/iproute2-4.13.0::gentoo failed (compile phase):
 *   emake failed
I think problem is not in qemu (or it present in earlier versions of qemu too, but arises with newer system libs), because error appeared after upgrading glibc version fom sys-libs/glibc-2.23-r4 to 2.25-r5, and binutils sys-devel/binutils-2.28.1 to 2.29.1, when qemu was still 2.9.x (i forgot to update qemu binpkg at chroot first).
Top
fedeliallalinea
Administrator
Administrator
User avatar
Posts: 31985
Joined: Sat Mar 08, 2003 11:15 pm
Location: here
Contact:
Contact fedeliallalinea
Website

  • Quote

Post by fedeliallalinea » Mon Oct 02, 2017 6:30 pm

Here a open bug in qemu bug tracker
Questions are guaranteed in life; Answers aren't.

"Those who would give up essential liberty to purchase a little temporary safety,
deserve neither liberty nor safety."
- Ben Franklin
https://www.news.admin.ch/it/nsb?id=103968
Top
xaviermiller
Bodhisattva
Bodhisattva
User avatar
Posts: 8740
Joined: Fri Jul 23, 2004 6:49 pm
Location: ~Brussels - Belgique
Contact:
Contact xaviermiller
Website

  • Quote

Post by xaviermiller » Mon Oct 02, 2017 6:33 pm

Hi,

I run full ~arch systems, and qemu-user-arm is always synced before I chroot.

So, I have

Code: Select all

Portage 2.3.10 (python 2.7.14-final-0, default/linux/amd64/17.0/no-multilib, gcc-7.2.0, glibc-2.25-r5, 4.13.4-gentoo x86_64)
Portage 2.3.10 (python 3.4.6-final-0, default/linux/arm/13.0/armv6j, gcc-7.2.0, glibc-2.25-r5, 4.13.3+ armv6l)
Kind regards,
Xavier Miller
Top
xaviermiller
Bodhisattva
Bodhisattva
User avatar
Posts: 8740
Joined: Fri Jul 23, 2004 6:49 pm
Location: ~Brussels - Belgique
Contact:
Contact xaviermiller
Website

  • Quote

Post by xaviermiller » Mon Oct 02, 2017 6:38 pm

fedeliallalinea wrote:Here a open bug in qemu bug tracker
Done, thanks! :)
Kind regards,
Xavier Miller
Top
xaviermiller
Bodhisattva
Bodhisattva
User avatar
Posts: 8740
Joined: Fri Jul 23, 2004 6:49 pm
Location: ~Brussels - Belgique
Contact:
Contact xaviermiller
Website

  • Quote

Post by xaviermiller » Mon Oct 02, 2017 6:46 pm

Following this; syscall 383 is seccomp, and 391 is copy_file_range which are, I think, active on the host system.
Kind regards,
Xavier Miller
Top
n05ph3r42
Tux's lil' helper
Tux's lil' helper
Posts: 137
Joined: Mon Jul 11, 2016 7:21 pm

  • Quote

Post by n05ph3r42 » Mon Oct 02, 2017 8:18 pm

xaviermiller wrote:Following this; syscall 383 is seccomp, and 391 is copy_file_range which are, I think, active on the host system.
Yup. Those are constantly present when cross-compiling whith qemu, - listed syscalls just cannot be emulated, i think.
Top
xaviermiller
Bodhisattva
Bodhisattva
User avatar
Posts: 8740
Joined: Fri Jul 23, 2004 6:49 pm
Location: ~Brussels - Belgique
Contact:
Contact xaviermiller
Website

  • Quote

Post by xaviermiller » Thu Oct 05, 2017 8:25 pm

And one other unsupported syscall: 1000

Code: Select all

>>> Running pre-merge checks for sys-libs/glibc-2.25-r6
make -j5 -l3 -s glibc-test 
make -j5 -l3 -s glibc-test 
qemu: Unsupported syscall: 1000
But I cannot find it in the table I've found
Kind regards,
Xavier Miller
Top
xaviermiller
Bodhisattva
Bodhisattva
User avatar
Posts: 8740
Joined: Fri Jul 23, 2004 6:49 pm
Location: ~Brussels - Belgique
Contact:
Contact xaviermiller
Website

  • Quote

Post by xaviermiller » Fri Oct 06, 2017 6:01 am

and today, I cannot emerge glibc using qemu:

Code: Select all

qemu: Unsupported syscall: 26
 * /var/tmp/portage/sys-apps/sandbox-2.12/work/sandbox-2.12/libsandbox/trace.c:_do_ptrace():75: failure (Function not implemented):
 * ISE:_do_ptrace: ptrace(PTRACE_TRACEME, ..., 0x00000000, 0x00000000): Function not implemented
/proc/5968/cmdline: /usr/bin/make -r PARALLELMFLAGS= -C /var/tmp/portage/sys-libs/glibc-2.25-r6/work/glibc-2.25 objdir=/var/tmp/portage/sys-libs/glibc-2.25-r6/work/build-arm-armv6j-hardfloat-linux-gnueabi-nptl install

qemu: uncaught target signal 6 (Aborted) - core dumped
make[1]: *** [Makefile:106: install-symbolic-link] Error 134
make[1]: Leaving directory '/var/tmp/portage/sys-libs/glibc-2.25-r6/work/glibc-2.25'
make: *** [Makefile:12: install] Error 2
 * ERROR: sys-libs/glibc-2.25-r6::gentoo failed (install phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=sys-libs/glibc-2.25-r6::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-libs/glibc-2.25-r6::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/sys-libs/glibc-2.25-r6/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-libs/glibc-2.25-r6/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-libs/glibc-2.25-r6/work/build-arm-armv6j-hardfloat-linux-gnueabi-nptl'
 * S: '/var/tmp/portage/sys-libs/glibc-2.25-r6/work/glibc-2.25'

>>> Failed to emerge sys-libs/glibc-2.25-r6, Log file:
Is it due to the new sandbox?
Kind regards,
Xavier Miller
Top
n05ph3r42
Tux's lil' helper
Tux's lil' helper
Posts: 137
Joined: Mon Jul 11, 2016 7:21 pm

  • Quote

Post by n05ph3r42 » Sun Oct 08, 2017 6:50 pm

I suggest to emerge glibc 2.26 version via true cross-compiling (w/o chrooting + qemu). It seems that version 2.25 is too buggy. It works for me, at least many packages emerged fine with version 2.26, which failed with 2.25.
Sandbox 2.12 is emerged, btw.
Top
n05ph3r42
Tux's lil' helper
Tux's lil' helper
Posts: 137
Joined: Mon Jul 11, 2016 7:21 pm

  • Quote

Post by n05ph3r42 » Fri Nov 10, 2017 6:13 am

updated: https://bugs.launchpad.net/qemu/+bug/1673976/comments/7
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56104
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Fri Nov 10, 2017 9:40 am

Moved from Portage & Programming to Gentoo on ARM.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
n05ph3r42
Tux's lil' helper
Tux's lil' helper
Posts: 137
Joined: Mon Jul 11, 2016 7:21 pm

Assertion `ec >= 0' failed

  • Quote

Post by n05ph3r42 » Sat Nov 11, 2017 7:58 am

SUMMARY:
Linux-user clone() can't handle glibc posix_spawn() causing

Code: Select all

../sysdeps/unix/sysv/linux/spawni.c:366: __spawnix: Assertion `ec >= 0' failed

due to QEMU strict flag check.
Top
n05ph3r42
Tux's lil' helper
Tux's lil' helper
Posts: 137
Joined: Mon Jul 11, 2016 7:21 pm

  • Quote

Post by n05ph3r42 » Wed Nov 29, 2017 5:41 pm

Apparently I was right.
n05ph3r42 wrote: I think problem is not in qemu (or it present in earlier versions of qemu too, but arises with newer system libs), because error appeared after upgrading glibc version fom sys-libs/glibc-2.23-r4 to 2.25-r5, and binutils sys-devel/binutils-2.28.1 to 2.29.1, when qemu was still 2.9.x (i forgot to update qemu binpkg at chroot first).
The problem, in fact, is in new posix_spawn implementation in glibc:

https://bugs.launchpad.net/qemu/+bug/16 ... omments/13

https://sourceware.org/git/?p=glibc.git ... 927d6e8a27
Top
n05ph3r42
Tux's lil' helper
Tux's lil' helper
Posts: 137
Joined: Mon Jul 11, 2016 7:21 pm

Assertion `ec >= 0' failed

  • Quote

Post by n05ph3r42 » Tue Dec 05, 2017 8:00 pm

Improper assert in Linux posix_spawn implementation
FIXED https://sourceware.org/bugzilla/show_bug.cgi?id=22273
Top
xaviermiller
Bodhisattva
Bodhisattva
User avatar
Posts: 8740
Joined: Fri Jul 23, 2004 6:49 pm
Location: ~Brussels - Belgique
Contact:
Contact xaviermiller
Website

  • Quote

Post by xaviermiller » Tue Jun 12, 2018 12:19 pm

xaviermiller wrote:and today, I cannot emerge glibc using qemu:

Code: Select all

qemu: Unsupported syscall: 26
 * /var/tmp/portage/sys-apps/sandbox-2.12/work/sandbox-2.12/libsandbox/trace.c:_do_ptrace():75: failure (Function not implemented):
 * ISE:_do_ptrace: ptrace(PTRACE_TRACEME, ..., 0x00000000, 0x00000000): Function not implemented
/proc/5968/cmdline: /usr/bin/make -r PARALLELMFLAGS= -C /var/tmp/portage/sys-libs/glibc-2.25-r6/work/glibc-2.25 objdir=/var/tmp/portage/sys-libs/glibc-2.25-r6/work/build-arm-armv6j-hardfloat-linux-gnueabi-nptl install

qemu: uncaught target signal 6 (Aborted) - core dumped
make[1]: *** [Makefile:106: install-symbolic-link] Error 134
make[1]: Leaving directory '/var/tmp/portage/sys-libs/glibc-2.25-r6/work/glibc-2.25'
make: *** [Makefile:12: install] Error 2
 * ERROR: sys-libs/glibc-2.25-r6::gentoo failed (install phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=sys-libs/glibc-2.25-r6::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-libs/glibc-2.25-r6::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/sys-libs/glibc-2.25-r6/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-libs/glibc-2.25-r6/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-libs/glibc-2.25-r6/work/build-arm-armv6j-hardfloat-linux-gnueabi-nptl'
 * S: '/var/tmp/portage/sys-libs/glibc-2.25-r6/work/glibc-2.25'

>>> Failed to emerge sys-libs/glibc-2.25-r6, Log file:
Is it due to the new sandbox?
Hi,

Same problem again... tested with glibc 2.26, 2.27 and qemu 2.11, 2.12 :(
Kind regards,
Xavier Miller
Top
n05ph3r42
Tux's lil' helper
Tux's lil' helper
Posts: 137
Joined: Mon Jul 11, 2016 7:21 pm

  • Quote

Post by n05ph3r42 » Tue Jun 12, 2018 11:08 pm

IDK, but last glibc update caused issue with sandbox in tor in ~amd64. Only disabling sandbox in torrc allowed daemon to work.

Did you tried w/o sandbox?
Top
xaviermiller
Bodhisattva
Bodhisattva
User avatar
Posts: 8740
Joined: Fri Jul 23, 2004 6:49 pm
Location: ~Brussels - Belgique
Contact:
Contact xaviermiller
Website

  • Quote

Post by xaviermiller » Fri Jun 15, 2018 9:08 pm

No, disabling sandbox doesn't help
Kind regards,
Xavier Miller
Top
steils
n00b
n00b
Posts: 4
Joined: Thu Sep 20, 2018 2:42 am
Contact:
Contact steils
Website

  • Quote

Post by steils » Sat Mar 23, 2019 10:46 am

xaviermiller wrote:No, disabling sandbox doesn't help
I had the same issue with compiling gobject-introspection ("ISE:_do_ptrace: ptrace(PTRACE_TRACEME, ..., 0x00000000, 0x00000000): Function not implemented") with qemu-arm (this manual: https://wiki.gentoo.org/wiki/Cross_build_environment).
Disabling sandbox did not help. However temporarily removing sandbox with `emerge -C sandbox` did help.
Top
nkichukov
n00b
n00b
Posts: 15
Joined: Tue Oct 16, 2012 1:11 pm
Location: Amstelveen, Netherlands

  • Quote

Post by nkichukov » Mon Apr 06, 2020 10:02 am

steils wrote:
xaviermiller wrote:No, disabling sandbox doesn't help
I had the same issue with compiling gobject-introspection ("ISE:_do_ptrace: ptrace(PTRACE_TRACEME, ..., 0x00000000, 0x00000000): Function not implemented") with qemu-arm (this manual: https://wiki.gentoo.org/wiki/Cross_build_environment).
Disabling sandbox did not help. However temporarily removing sandbox with `emerge -C sandbox` did help.
Thanks, this helped me with various packages that were failing!
Top
Post Reply
  • Print view

20 posts • Page 1 of 1

Return to “Gentoo on ARM”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic