Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chroot failing to setup #4943

Open
swedishsplidney opened this issue Mar 11, 2023 · 23 comments
Open

Chroot failing to setup #4943

swedishsplidney opened this issue Mar 11, 2023 · 23 comments

Comments

@swedishsplidney
Copy link

swedishsplidney commented Mar 11, 2023

Please paste the output of the following command here: sudo edit-chroot -all
name: xenial
encrypted: no
Entering /mnt/stateful_partition/crouton/chroots/xenial...
crouton: version 1-20220903004123~dev:5d4688c2
release: xenial
architecture: amd64
targets: lxde
host: version 15329.44.0 (Official Build) stable-channel octopus 
kernel: Linux localhost 4.14.254-20279-gdb10dc132e24 #1 SMP PREEMPT Tue Mar 7 19:24:51 PST 2023 x86_64 x86_64 x86_64 GNU/Linux
freon: yes
Unmounting /mnt/stateful_partition/crouton/chroots/xenial...

Please describe your issue:

whenever I try to install a chroot, it will go fine for about 2 minutes, and then say:
Compiling CRAS (i386)...
gcc: error: unrecognized command line option '-Wundef-prefix=HAVE_,CRAS_'
Failed to complete chroot setup.
Unmounting /mnt/stateful_partition/crouton/chroots/xenial...

when I try to enter the chroot it will say:
Compiling CRAS (i386)...
gcc: error: unrecognized command line option '-Wundef-prefix=HAVE_,CRAS_'
Failed to complete chroot setup.
The chroot setup script may be broken. Your chroot is not fully configured.
Removing the chroot setup script. You may want to update your chroot again.
UID 1000 not found in xenial
Unmounting /mnt/stateful_partition/crouton/chroots/xenial...

I think there is a fix at https://github.com/iptoux/crouton/tree/9109b631e3d363630b6430d60651fc516b4e8081,
but i am extremely new to crouton, and I have no idea how to follow the steps listed.
I have tried to install it and deleted it many times, and I get the same issue.
I am trying to install lxde.
my chroot is named xenial.

If known, describe the steps to reproduce the issue:

any time I run the following commands:
sudo crouton -t lxde
sudo enter-chroot
sudo enter-chroot -n xenial croutonversion

@02tz
Copy link

02tz commented Mar 11, 2023

i was just gonna report this, having same issue at the exact same time

@grekpg
Copy link

grekpg commented Mar 12, 2023

@pevsner
Copy link

pevsner commented Mar 12, 2023

I had the same issue when updating my chroot after the ChromeOs 111.0.5563.71 update.
I can stll enter my chroot, sound works but volume is uncontollable via CRAS. Changing the sound card in alsamixer does enable volume change. The cras option is preferable. Hopefully this will be fixed soon. Thanks in advance.

@grekpg
Copy link

grekpg commented Mar 14, 2023

i have chromebook that have 111 so cannot restorie old version so how to install it ?

i replace audio file - but now - Install crouton the usual way, with the new compiled crouton

but usual way is https://goo.gl/fd3zc - so i belive that download original from repo .... anyone know how to install it ?

@grekpg
Copy link

grekpg commented Mar 14, 2023

i compile source but not work here is compiled file https://drive.google.com/file/d/1VENdY60vIsnVB4AnzKLoHryvwGR-dyhY/view?usp=sharing

i get error

sudo crouton -t kde-desktop -r list -n kde 
/usr/local/bin/crouton: 99: .: Refusing to exec /tmp/crouton.Rjb/installer/main.sh from noexec mount; see https://chromium.googlesource.com/chromiumos/docs/+/master/security/noexec_shell_scripts.md

@ghost
Copy link

ghost commented Mar 14, 2023

i compile source but not work here is compiled file https://drive.google.com/file/d/1VENdY60vIsnVB4AnzKLoHryvwGR-dyhY/view?usp=sharing

i get error

sudo crouton -t kde-desktop -r list -n kde 
/usr/local/bin/crouton: 99: .: Refusing to exec /tmp/crouton.Rjb/installer/main.sh from noexec mount; see https://chromium.googlesource.com/chromiumos/docs/+/master/security/noexec_shell_scripts.md

I downloaded it and got the same error

@swedishsplidney
Copy link
Author

i compile source but not work here is compiled file https://drive.google.com/file/d/1VENdY60vIsnVB4AnzKLoHryvwGR-dyhY/view?usp=sharing

i get error

sudo crouton -t kde-desktop -r list -n kde 
/usr/local/bin/crouton: 99: .: Refusing to exec /tmp/crouton.Rjb/installer/main.sh from noexec mount; see https://chromium.googlesource.com/chromiumos/docs/+/master/security/noexec_shell_scripts.md

I got the same error too

@ghost
Copy link

ghost commented Mar 14, 2023

Ok, I fixed the new error so I managed to execute the new file however I get the original error again. Any ideas?

@swedishsplidney
Copy link
Author

Ok, I fixed the new error so I managed to execute the new file however I get the original error again. Any ideas?

What did you do?

@ghost
Copy link

ghost commented Mar 15, 2023

Ok, I fixed the new error so I managed to execute the new file however I get the original error again. Any ideas?

What did you do?

  1. Delete all crouton files (in Downloads and usr/local/bin)
  2. Download the new crouton to Downloads
  3. Open a shell
  4. Type sudo install -Dt /usr/local/bin -m 755 ~/Downloads/crouton
  5. Type sudo mount -o remount,exec /tmp
  6. Run crouton
  7. Type sudo mount -o remount,noexec /tmp (Make sure to do this step!)

@ghost
Copy link

ghost commented Mar 15, 2023

@dnschneid @drinkcat @DennisLfromGA Do you guys know how we could get this to work on the new update?

@DennisLfromGA
Copy link
Collaborator

Concerning the '-Wundef-prefix=HAVE_,CRAS_' error, there was a fix merged for a different CRAS error but alas another one has popped up.

A temporary fix for this new error can be found here: #4923

You may have to do that until a permanent fix can be merged.

-DennisLfromGA

@ghost
Copy link

ghost commented Mar 15, 2023

Concerning the '-Wundef-prefix=HAVE_,CRAS_' error, there was a fix merged for a different CRAS error but alas another one has popped up.

A temporary fix for this new error can be found here: #4923

You may have to do that until a permanent fix can be merged.

-DennisLfromGA

We tried that but got the original error again.

@DennisLfromGA
Copy link
Collaborator

Original error meaning you got this again?:

gcc: error: unrecognized command line option '-Wundef-prefix=HAVE_,CRAS_'

If not, what 'original' error are you talking about?

-DennisLfromGA

@ghost
Copy link

ghost commented Mar 15, 2023

Yeah

@DennisLfromGA
Copy link
Collaborator

So, you modified Makefile.am, and recompiled CRAS and it didn't work?

Then I don't know, maybe ask @DerenCinar about it.

-DennisLfromGA

@mkststrahilov
Copy link

mkststrahilov commented Apr 2, 2023

I could not get it to work via patching targets/audio but have successfully compiled CRAS by patching prepare.sh instead

Add to prepare.sh line 225, within convert_automake

     # Fix for #4932
        s/\-Wundef\-prefix=HAVE_,CRAS_//g
        s/-Wundef\-prefix=HAVE_,CRAS_//g
        s/\-Werror=undef-prefix//g
        s/-Werror=undef-prefix//g

@ghost
Copy link

ghost commented Apr 2, 2023

I could not get it to work via patching targets/audio but have successfully compiled CRAS by patching prepare.sh instead

Add to prepare.sh line 225, within convert_automake


     # Fix for #4932

        s/\-Wundef\-prefix=HAVE_,CRAS_//g

        s/-Wundef\-prefix=HAVE_,CRAS_//g

        s/\-Werror=undef-prefix//g

        s/-Werror=undef-prefix//g

Can you share the new complied file?

@02tz
Copy link

02tz commented Apr 2, 2023 via email

@ghost
Copy link

ghost commented Apr 4, 2023

@mkststrahilov can you link the compiled one

@ileathan
Copy link

ileathan commented Apr 5, 2023

I have 3 pixelbook machines but the 3rd one wont install my chroot because of this error.

Very confusing... So i need to patch CRAS via prepare.sh inside of the chroot/xenial? I cant figure it out.

Compiling CRAS (i386)...
gcc: error: unrecognized command line option '-Wundef-prefix=HAVE_,CRAS_'
Failed to complete chroot setup.

@DennisLfromGA
Copy link
Collaborator

See: Figure out a way to build audio target now that autotools is removed #4958

@CABLE353

This comment was marked as duplicate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants