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

Can't install wget on OS X due to nettle failing to compile #103

Closed
jwiegley opened this issue Aug 15, 2012 · 3 comments
Closed

Can't install wget on OS X due to nettle failing to compile #103

jwiegley opened this issue Aug 15, 2012 · 3 comments

Comments

@jwiegley
Copy link
Contributor

I see this output:

gcc -I.  -DHAVE_CONFIG_H -g -O2 -ggdb3 -Wno-pointer-sign -Wall -W   -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes   -Wpointer-arith -Wbad-function-cast -Wnested-externs -fPIC  -fPIC -c aes-decrypt-internal.s
aes-decrypt-internal.asm:109:suffix or operands invalid for `push'
aes-decrypt-internal.asm:110:suffix or operands invalid for `push'
aes-decrypt-internal.asm:111:suffix or operands invalid for `push'
aes-decrypt-internal.asm:112:suffix or operands invalid for `push'
aes-decrypt-internal.asm:328:suffix or operands invalid for `pop'
aes-decrypt-internal.asm:329:suffix or operands invalid for `pop'
aes-decrypt-internal.asm:330:suffix or operands invalid for `pop'
aes-decrypt-internal.asm:331:suffix or operands invalid for `pop'
make[1]: *** [aes-decrypt-internal.o] Error 1
make[1]: Leaving directory `/private/tmp/nix-build-8l97dzcxdpi6ra3wry8rkkyv4mnbz5kc-nettle-2.4.drv-0/nettle-2.4'
make: *** [all] Error 2
builder for `/nix/store/8l97dzcxdpi6ra3wry8rkkyv4mnbz5kc-nettle-2.4.drv' failed with exit code 2
cannot build derivation `/nix/store/cvvzb3hhs3g9948md0ghw9p532ggnr6a-gnutls-3.0.22.drv': 1 dependencies couldn't be built
cannot build derivation `/nix/store/4kswdvkcns1j7ck7lgrd3r2gzf38zhzj-wget-1.13.4.drv': 1 dependencies couldn't be built
error: build of `/nix/store/4kswdvkcns1j7ck7lgrd3r2gzf38zhzj-wget-1.13.4.drv' failed

Note that this exact some compiler error happens when I try to install
nixpkgs.haskellPackages_ghc742.ghcMod too.

@noahl
Copy link

noahl commented Aug 16, 2012

I've seen exactly the same error on OS X 10.6.8.

@aristidb
Copy link
Contributor

Can we close this now?

@jwiegley
Copy link
Contributor Author

I don't use Nix anymore, so I can't confirm if it's fixed now or not.

offlinehacker pushed a commit to xtruder/nixpkgs that referenced this issue Jan 31, 2014
This is a rather large commit that switches user/group creation from using
useradd/groupadd on activation to just generating the contents of /etc/passwd
and /etc/group, and then on activation merging the generated files with the
files that exist in the system. This makes the user activation process much
cleaner, in my opinion.

The users.extraUsers.<user>.uid and users.extraGroups.<group>.gid must all be
properly defined (if <user>.createUser is true, which it is by default). My
pull request adds a lot of uids/gids to config.ids to solve this problem for
existing nixos services, but there might be configurations that break because
this change. However, this will be discovered during the build.

Option changes introduced by this commit:

* Remove the options <user>.isSystemUser and <user>.isAlias since
they don't make sense when generating /etc/passwd statically.

* Add <group>.members as a complement to <user>.extraGroups.

* Add <user>.passwordFile for setting a user's password from an encrypted
(shadow-style) file.

* Add users.mutableUsers which is true by default. This means you can keep
managing your users as previously, by using useradd/groupadd manually. This is
accomplished by merging the generated passwd/group file with the existing files
in /etc on system activation. The merging of the files is simplistic. It just
looks at the user/group names. If a user/group exists both on the system and
in the generated files, the system entry will be kept un-changed and the
generated entries will be ignored. The merging itself is performed with the
help of vipw/vigr to properly lock the account files during edit.
If mutableUsers is set to false, the generated passwd and group files will not
be merged with the system files on activation. Instead they will simply replace
the system files, and overwrite any changes done on the running system. The
same logic holds for user password, if the <user>.password or
<user>.passwordFile options are used. If mutableUsers is false, password will
simply be replaced on activation. If true, the initial user passwords will be
set according to the configuration, but existing passwords will not be touched.

I have tested this on a couple of different systems and it seems to work fine
so far. If you think this is a good idea, please test it. This way of adding
local users has been discussed in issue NixOS#103 (and this commit solves that
issue).
rickynils added a commit to rickynils/nixpkgs that referenced this issue Feb 5, 2014
This is a rather large commit that switches user/group creation from using
useradd/groupadd on activation to just generating the contents of /etc/passwd
and /etc/group, and then on activation merging the generated files with the
files that exist in the system. This makes the user activation process much
cleaner, in my opinion.

The users.extraUsers.<user>.uid and users.extraGroups.<group>.gid must all be
properly defined (if <user>.createUser is true, which it is by default). My
pull request adds a lot of uids/gids to config.ids to solve this problem for
existing nixos services, but there might be configurations that break because
this change. However, this will be discovered during the build.

Option changes introduced by this commit:

* Remove the options <user>.isSystemUser and <user>.isAlias since
they don't make sense when generating /etc/passwd statically.

* Add <group>.members as a complement to <user>.extraGroups.

* Add <user>.passwordFile for setting a user's password from an encrypted
(shadow-style) file.

* Add users.mutableUsers which is true by default. This means you can keep
managing your users as previously, by using useradd/groupadd manually. This is
accomplished by merging the generated passwd/group file with the existing files
in /etc on system activation. The merging of the files is simplistic. It just
looks at the user/group names. If a user/group exists both on the system and
in the generated files, the system entry will be kept un-changed and the
generated entries will be ignored. The merging itself is performed with the
help of vipw/vigr to properly lock the account files during edit.
If mutableUsers is set to false, the generated passwd and group files will not
be merged with the system files on activation. Instead they will simply replace
the system files, and overwrite any changes done on the running system. The
same logic holds for user password, if the <user>.password or
<user>.passwordFile options are used. If mutableUsers is false, password will
simply be replaced on activation. If true, the initial user passwords will be
set according to the configuration, but existing passwords will not be touched.

I have tested this on a couple of different systems and it seems to work fine
so far. If you think this is a good idea, please test it. This way of adding
local users has been discussed in issue NixOS#103 (and this commit solves that
issue).
rickynils added a commit that referenced this issue Feb 5, 2014
This is a rather large commit that switches user/group creation from using
useradd/groupadd on activation to just generating the contents of /etc/passwd
and /etc/group, and then on activation merging the generated files with the
files that exist in the system. This makes the user activation process much
cleaner, in my opinion.

The users.extraUsers.<user>.uid and users.extraGroups.<group>.gid must all be
properly defined (if <user>.createUser is true, which it is by default). My
pull request adds a lot of uids/gids to config.ids to solve this problem for
existing nixos services, but there might be configurations that break because
this change. However, this will be discovered during the build.

Option changes introduced by this commit:

* Remove the options <user>.isSystemUser and <user>.isAlias since
they don't make sense when generating /etc/passwd statically.

* Add <group>.members as a complement to <user>.extraGroups.

* Add <user>.passwordFile for setting a user's password from an encrypted
(shadow-style) file.

* Add users.mutableUsers which is true by default. This means you can keep
managing your users as previously, by using useradd/groupadd manually. This is
accomplished by merging the generated passwd/group file with the existing files
in /etc on system activation. The merging of the files is simplistic. It just
looks at the user/group names. If a user/group exists both on the system and
in the generated files, the system entry will be kept un-changed and the
generated entries will be ignored. The merging itself is performed with the
help of vipw/vigr to properly lock the account files during edit.
If mutableUsers is set to false, the generated passwd and group files will not
be merged with the system files on activation. Instead they will simply replace
the system files, and overwrite any changes done on the running system. The
same logic holds for user password, if the <user>.password or
<user>.passwordFile options are used. If mutableUsers is false, password will
simply be replaced on activation. If true, the initial user passwords will be
set according to the configuration, but existing passwords will not be touched.

I have tested this on a couple of different systems and it seems to work fine
so far. If you think this is a good idea, please test it. This way of adding
local users has been discussed in issue #103 (and this commit solves that
issue).
Profpatsch pushed a commit that referenced this issue Jun 20, 2020
pcengines/apu: expose GRUB over serial
ethancedwards8 pushed a commit to ethancedwards8/nixpkgs that referenced this issue Apr 2, 2021
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

Successfully merging a pull request may close this issue.

4 participants