[MacPorts] #44626: libcrypt v1.6.1 will not build, gives asm errors
#44626: libcrypt v1.6.1 will not build, gives asm errors ------------------------+-------------------------------- Reporter: lovatojs@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Keywords: | Port: ------------------------+-------------------------------- 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. -- Ticket URL: <https://trac.macports.org/ticket/44626> MacPorts <http://www.macports.org/> Ports system for OS X
#44626: libgcrypt @1.6.1_0: build fails with inline assembly errors -------------------------+---------------------- Reporter: lovatojs@… | Owner: sfiera@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Resolution: | Keywords: Port: libgcrypt | -------------------------+---------------------- Changes (by larryv@…): * owner: macports-tickets@… => sfiera@… * port: => libgcrypt Comment: Thanks for the report. In future tickets, please Cc relevant port maintainers (e.g., `port info --maintainers libgcrypt`). -- Ticket URL: <https://trac.macports.org/ticket/44626#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#44626: libgcrypt @1.6.1_0: build fails with inline assembly errors -------------------------+---------------------- Reporter: lovatojs@… | Owner: sfiera@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Resolution: | Keywords: Port: libgcrypt | -------------------------+---------------------- Comment (by lovatojs@…): Replying to [comment:1 larryv@…]:
Thanks for the report. In future tickets, please Cc relevant port maintainers (e.g., `port info --maintainers libgcrypt`).
And status on this? Thanks -- Ticket URL: <https://trac.macports.org/ticket/44626#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#44626: libgcrypt @1.6.1_0: build fails with inline assembly errors -------------------------+---------------------- Reporter: lovatojs@… | Owner: sfiera@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Resolution: | Keywords: Port: libgcrypt | -------------------------+---------------------- Changes (by larryv@…): * cc: ryandesign@…, jeremyhu@… (added) Comment: 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 [http://packages.macports.org/libgcrypt/ did not have a problem]. -- Ticket URL: <https://trac.macports.org/ticket/44626#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
#44626: libgcrypt @1.6.1_0: build fails with inline assembly errors -------------------------+---------------------- Reporter: lovatojs@… | Owner: sfiera@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Resolution: | Keywords: Port: libgcrypt | -------------------------+---------------------- Comment (by ryandesign@…): 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. -- Ticket URL: <https://trac.macports.org/ticket/44626#comment:4> MacPorts <http://www.macports.org/> Ports system for OS X
#44626: libgcrypt @1.6.1_0: build fails with inline assembly errors -------------------------+---------------------- Reporter: lovatojs@… | Owner: sfiera@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Resolution: | Keywords: Port: libgcrypt | -------------------------+---------------------- Comment (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 -- Ticket URL: <https://trac.macports.org/ticket/44626#comment:5> MacPorts <http://www.macports.org/> Ports system for OS X
#44626: libgcrypt @1.6.1_0: build fails with inline assembly errors -------------------------+---------------------- Reporter: lovatojs@… | Owner: sfiera@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Resolution: | Keywords: Port: libgcrypt | -------------------------+---------------------- Comment (by larryv@…): Please use WikiFormatting and preview your comments before posting. Replying to [[comment:5|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`”. -- Ticket URL: <https://trac.macports.org/ticket/44626#comment:6> MacPorts <http://www.macports.org/> Ports system for OS X
#44626: libgcrypt @1.6.1_0: build fails with inline assembly errors -------------------------+---------------------- Reporter: lovatojs@… | Owner: sfiera@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Resolution: | Keywords: Port: libgcrypt | -------------------------+---------------------- Comment (by ryandesign@…): Whoops. Indeed. Thanks, Larry. Sorry about that. -- Ticket URL: <https://trac.macports.org/ticket/44626#comment:7> MacPorts <http://www.macports.org/> Ports system for OS X
#44626: libgcrypt @1.6.1_0: build fails with inline assembly errors -------------------------+---------------------- Reporter: lovatojs@… | Owner: sfiera@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Resolution: | Keywords: Port: libgcrypt | -------------------------+---------------------- Comment (by lovatojs@…): Replying to [comment:7 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. -- Ticket URL: <https://trac.macports.org/ticket/44626#comment:8> MacPorts <http://www.macports.org/> Ports system for OS X
#44626: libgcrypt @1.6.1_0: build fails with inline assembly errors -------------------------+-------------------------------- Reporter: lovatojs@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Resolution: | Keywords: Port: libgcrypt | -------------------------+-------------------------------- Changes (by mf2k@…): * owner: sfiera@… => macports-tickets@… Comment: sfiera has retired. See #44785. -- Ticket URL: <https://trac.macports.org/ticket/44626#comment:9> MacPorts <http://www.macports.org/> Ports system for OS X
#44626: libgcrypt @1.6.1_0: build fails with inline assembly errors -------------------------+-------------------------------- Reporter: lovatojs@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Resolution: | Keywords: Port: libgcrypt | -------------------------+-------------------------------- Comment (by jeremyhu@…): I'm not reproducing this with clang-2.9 (Xcode 3.2.6). What version of clang are you seeing this with? What is the output of '/usr/bin/clang --version'? -- Ticket URL: <https://trac.macports.org/ticket/44626#comment:10> MacPorts <http://www.macports.org/> Ports system for OS X
#44626: libgcrypt @1.6.1_0: build fails with inline assembly errors -------------------------+-------------------------------- Reporter: lovatojs@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Resolution: | Keywords: Port: libgcrypt | -------------------------+-------------------------------- Comment (by jeremyhu@…): 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. -- Ticket URL: <https://trac.macports.org/ticket/44626#comment:11> MacPorts <http://www.macports.org/> Ports system for OS X
#44626: libgcrypt @1.6.1_0: build fails with inline assembly errors -------------------------+-------------------------------- Reporter: lovatojs@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Resolution: | Keywords: Port: libgcrypt | -------------------------+-------------------------------- Comment (by ryandesign@…): 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? -- Ticket URL: <https://trac.macports.org/ticket/44626#comment:12> MacPorts <http://www.macports.org/> Ports system for OS X
#44626: libgcrypt @1.6.1_0: build fails with inline assembly errors -------------------------+-------------------------------- Reporter: lovatojs@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Resolution: worksforme | Keywords: Port: libgcrypt | -------------------------+-------------------------------- Changes (by jeremyhu@…): * status: new => closed * resolution: => worksforme -- Ticket URL: <https://trac.macports.org/ticket/44626#comment:13> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts