Opened 10 years ago
Closed 10 years ago
#44626 closed defect (worksforme)
libgcrypt @1.6.1_0: build fails with inline assembly errors
Reported by: | lovatojs@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.3.1 |
Keywords: | Cc: | ryandesign (Ryan Carsten Schmidt), jeremyhu (Jeremy Huddleston Sequoia) | |
Port: | libgcrypt |
Description
For some reason, to install gimp called an installation of llvm and libgcrypt. It fails on the libgcrypt build. I have cleaned the port and tried again, and get the same thing.
I have attached the log file.
Attachments (1)
Change History (14)
Changed 10 years ago by lovatojs@…
comment:1 follow-up: 2 Changed 10 years ago by larryv (Lawrence Velázquez)
Owner: | changed from macports-tickets@… to sfiera@… |
---|---|
Port: | libgcrypt added |
Summary: | libcrypt v1.6.1 will not build, gives asm errors → libgcrypt @1.6.1_0: build fails with inline assembly errors |
Thanks for the report. In future tickets, please Cc relevant port maintainers (e.g., port info --maintainers libgcrypt
).
comment:2 Changed 10 years ago by lovatojs@…
Replying to larryv@…:
Thanks for the report. In future tickets, please Cc relevant port maintainers (e.g.,
port info --maintainers libgcrypt
).
And status on this? Thanks
comment:3 Changed 10 years ago by larryv (Lawrence Velázquez)
Cc: | ryandesign@… jeremyhu@… added |
---|
I cannot reproduce this on Lion (virtualized x86_64 with Apple LLVM Compiler 4.2) or Mavericks (x86_64 with Apple LLVM Compiler 5.1), and I don’t have access to a Snow Leopard system. It also seems that our 64-bit Snow Leopard buildslave did not have a problem.
comment:4 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)
The log shows this is building for 32-bit, and using Xcode clang. The portfile blacklists Xcode's gcc when building for i386. Perhaps the old clang on Snow Leopard's Xcode cannot build this. Try using a newer clang:
sudo port clean libgcrypt sudo port install libgcrypt configure.compiler=macports-gcc-3.4
If that works, we can blacklist old clang in the portfile too.
comment:5 follow-up: 6 Changed 10 years ago by lovatojs@…
Sorry. It's a no go.
Abraxas:~ lovato$ sudo port clean libgcrypt ---> Cleaning libgcrypt Abraxas:~ lovato$ sudo port install libgcrypt configure.compiler=macports-gcc-3.4 Warning: No port gcc34 found in the index. Warning: No port gcc34 found in the index. Warning: No port gcc34 found in the index. Warning: No port gcc34 found in the index. Warning: No port gcc34 found in the index. ---> Computing dependencies for libgcrypt Error: Dependency 'gcc34' not found. To report a bug, follow the instructions in the guide: http://guide.macports.org/#project.tickets Error: Processing of port libgcrypt failed Abraxas:~ lovato$ sudo port search --name --line --regex '^gcc\d*$' gcc42 4.2.4 lang The GNU compiler collection gcc43 4.3.6 lang The GNU compiler collection gcc44 4.4.7 lang The GNU compiler collection gcc45 4.5.4 lang The GNU compiler collection gcc46 4.6.4 lang The GNU compiler collection gcc47 4.7.4 lang The GNU compiler collection gcc48 4.8.3 lang The GNU compiler collection gcc49 4.9.1 lang The GNU compiler collection gcc410 4.10-20140810 lang The GNU compiler collection, prerelease BETA
comment:6 Changed 10 years ago by larryv (Lawrence Velázquez)
Please use WikiFormatting and preview your comments before posting.
Replying to lovatojs@…:
Abraxas:~ lovato$ sudo port clean libgcrypt ---> Cleaning libgcrypt Abraxas:~ lovato$ sudo port install libgcrypt configure.compiler=macports-gcc-3.4
That was a typo on Ryan’s part. He meant “macports-clang-3.4
”.
comment:7 follow-up: 8 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)
Whoops. Indeed. Thanks, Larry. Sorry about that.
comment:8 Changed 10 years ago by lovatojs@…
Replying to ryandesign@…:
Whoops. Indeed. Thanks, Larry. Sorry about that.
I put on clang 3.5 after I saw it was available. I still added the clang-3.4 line and it completed the build. Thanks for all your assistance.
Abraxas:~ lovato$ sudo port clean libgcrypt Password: ---> Cleaning libgcrypt Abraxas:~ lovato$ sudo port install libgcrypt configure.compiler=macports-clang-3.4 ---> Computing dependencies for libgcrypt ---> Fetching archive for libgcrypt ---> Attempting to fetch libgcrypt-1.6.1_0.darwin_10.i386.tbz2 from http://packages.macports.org/libgcrypt ---> Attempting to fetch libgcrypt-1.6.1_0.darwin_10.i386.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/libgcrypt ---> Attempting to fetch libgcrypt-1.6.1_0.darwin_10.i386.tbz2 from http://lil.fr.packages.macports.org/libgcrypt ---> Fetching distfiles for libgcrypt ---> Verifying checksums for libgcrypt ---> Extracting libgcrypt ---> Applying patches to libgcrypt ---> Configuring libgcrypt ---> Building libgcrypt ---> Staging libgcrypt into destroot ---> Installing libgcrypt @1.6.1_0 ---> Activating libgcrypt @1.6.1_0 ---> Cleaning libgcrypt ---> Updating database of binaries ---> Scanning binaries for linking errors ---> No broken files found.
comment:9 Changed 10 years ago by mf2k (Frank Schima)
Owner: | changed from sfiera@… to macports-tickets@… |
---|
sfiera has retired. See #44785.
comment:10 Changed 10 years ago by jeremyhu (Jeremy Huddleston Sequoia)
I'm not reproducing this with clang-77 (Xcode 3.2.6). What version of clang are you seeing this with? What is the output of '/usr/bin/clang --version'?
comment:11 Changed 10 years ago by jeremyhu (Jeremy Huddleston Sequoia)
Also, clang-mp-2.9 through clang-mp-3.5 seem to be working fine as well on SL, tested like:
clang-mp-2.9 -DHAVE_CONFIG_H -I. -I.. -I../src -I../src -I/opt/local/include -I/opt/local/include -pipe -Os -std=gnu89 -fheinous-gnu-extensions -arch i386 -Wall -c rijndael.c -fno-common -DPIC -o /tmp/o
Can you please attach preprocessed source? Try the build that fails, then change to ${worksrcdir}/cipher and run:
/usr/bin/clang -DHAVE_CONFIG_H -I. -I.. -I../src -I../src -I/opt/local/include -I/opt/local/include -pipe -Os -std=gnu89 -fheinous-gnu-extensions -arch i386 -Wall -E rijndael.c -fno-common -DPIC -o ~/Desktop/rijndael.pp.c
Then attach the rijndael.pp.c file that is created on your desktop.
comment:12 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)
I'm not reproducing the issue either right now with clang-77, but that may be because I'm using build_arch=i386
on a 64-bit Intel Mac, which might not be the same as running on an actual 32-bit Intel Mac as we suspect the reporter is.
Note also that I just updated the libgcrypt port to 1.6.2. Did that change anything?
comment:13 Changed 10 years ago by jeremyhu (Jeremy Huddleston Sequoia)
Resolution: | → worksforme |
---|---|
Status: | new → closed |
libgcrypt 1.6.1 main.log after attempted clean build