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

app-admin/opensnitch-1.5.3 fails to compile #1486

Closed
mahdi1234 opened this issue Jan 29, 2023 · 6 comments
Closed

app-admin/opensnitch-1.5.3 fails to compile #1486

mahdi1234 opened this issue Jan 29, 2023 · 6 comments

Comments

@mahdi1234
Copy link

Both 1.5.3 and 1.5.2 fail to compile on ryzen laptop while both do compile on old i7 (not sure this is relevant)

Attached is build log and emerge --info output.

emerge.info.txt
build.log

@anders-larsson
Copy link

I'm also experiencing this. Same error on a Ryzen 1800X CPU. Any suggestion would be helpful.

@kcning
Copy link
Contributor

kcning commented Feb 8, 2023

From build.log I see you're using go-1.19.4. I had the same problem and solved it by rolling dev-lang/go back to version 1.18.10. Both 1.5.2 and 1.5.3 then build correctly.

@anders-larsson
Copy link

Looks like the earliest version of dev-lang/go in portage is 1.19.14 (I'm on 1.20 myself). Did you re-add the old dev-lang/go ebuild to a custom repository to build it?

@kcning
Copy link
Contributor

kcning commented Feb 8, 2023

I noticed the issue some time ago and have masked >dev-lang/go-1.18.10 since. 1.18.10 was dropped 5 days ago: gentoo/gentoo@5918f60

You can create a local repo to add it back.

@Bogdan107
Copy link

Bogdan107 commented Mar 1, 2023

app-admin/opensnitch-1.5.3::pentoo - build fails with gcc-12.
Build success with gcc-11.

I use gcc-switcher script to change the choise of the gcc version to build the opensnitch package.
I think, that more universal way - to select gcc version in the ebuild (maybe, by use function from the some eclass).

Change gcc version per package by gcc-switcher script:

1. See default gcc version:

# eselect gcc list
 [1] x86_64-pc-linux-gnu-10
 [2] x86_64-pc-linux-gnu-11
 [3] x86_64-pc-linux-gnu-12 *

2. Change gcc version for selected package:

# grep opensnitch /etc/portage/package.compilers
app-admin/opensnitch 11

3. Apply gcc version selection by additional app-portage/gcc-switcher script:

# equery b /etc/portage/package.compilers
 * Searching for /etc/portage/package.compilers ... 
app-portage/gcc-switcher-1.4.1 (/etc/portage/package.compilers)

@mahdi1234
Copy link
Author

1.5.8 compiles fine and works including SMB / NFS, great!

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

4 participants