Opened 3 years ago

Closed 3 years ago

#64251 closed defect (duplicate)

gr-fcdproplus 20190817-f1154db3 +python37 configure failure: command execution failed

Reported by: poison (Nicolas) Owned by: michaelld (Michael Dickens)
Priority: Normal Milestone:
Component: ports Version: 2.7.1
Keywords: monterey x86_64 Cc:
Port: gr-fcdproplus

Description

$ sudo port install gr-fcdproplus

--->  Computing dependencies for gr-fcdproplus
--->  Fetching archive for gr-fcdproplus
--->  Attempting to fetch gr-fcdproplus-20190817-f1154db3_2+python37.darwin_21.x86_64.tbz2 from https://packages.macports.org/gr-fcdproplus
--->  Attempting to fetch gr-fcdproplus-20190817-f1154db3_2+python37.darwin_21.x86_64.tbz2 from https://ema.uk.packages.macports.org/gr-fcdproplus
--->  Attempting to fetch gr-fcdproplus-20190817-f1154db3_2+python37.darwin_21.x86_64.tbz2 from https://fra.de.packages.macports.org/gr-fcdproplus
--->  Configuring gr-fcdproplus
Error: Failed to configure gr-fcdproplus: consult /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_gr-fcdproplus/gr-fcdproplus/work/build/CMakeFiles/CMakeError.log
Error: Failed to configure gr-fcdproplus: configure failure: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_gr-fcdproplus/gr-fcdproplus/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.
Error: Processing of port gr-fcdproplus failed

Attachments (2)

CMakeError.log (4.9 KB) - added by poison (Nicolas) 3 years ago.
main.log (574.9 KB) - added by poison (Nicolas) 3 years ago.

Download all attachments as: .zip

Change History (7)

Changed 3 years ago by poison (Nicolas)

Attachment: CMakeError.log added

Changed 3 years ago by poison (Nicolas)

Attachment: main.log added

comment:1 Changed 3 years ago by jmroot (Joshua Root)

Owner: set to michaelld
Status: newassigned

comment:2 Changed 3 years ago by poison (Nicolas)

So, I was able in the end to build it, by patching the portfile (found here: wiki:howto/PatchLocal)

It would be good to have a fix upstream, but I don't have the time/knowledge right now to submit a good patch.

This is how I got it working:

Portfile

Appended the last 2 lines, which were the output of xcrun -find cc and xcrun -find c++

# disable because it fails to find Doxyfile.swig_doc.in
configure.args-append \
    -DENABLE_DOXYGEN=OFF \
    -DCMAKE_CXX_STANDARD=11 \
    -DCMAKE_C_COMPILER="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc" \
    -DCMAKE_CXX_COMPILER="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++"

files/cmakelists.txt.patch

Modified the line for FIND_PATH to also look into the explicit directories

-FIND_LIBRARY(HIDAPI_LIBRARY hidapi-libusb)
+FIND_PATH(HIDAPI_INCLUDES hidapi.h PATHS $ENV{CPATH}/hidapi /opt/local/include /opt/local/include/hidapi)
+FIND_LIBRARY(HIDAPI_LIBRARY hidapi)

After this, I was able to install the port

Best, Nicolas

Last edited 3 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:3 Changed 3 years ago by michaelld (Michael Dickens)

@poison : thank you for this background work & I'm glad you worked out a way to get this port installed. I have other GR MP work that must be done first, but then I'll add this to my queue since it looks relatively straight forward & all of the GR/OOT MP ports need updating.

comment:4 in reply to:  2 Changed 3 years ago by DanielO (Daniel O'Connor)

Replying to poison:

I didn't need the compiler path patch but I did need the hidapi one. (On a newly updated amd64 Monterey system).

Thanks for the hint.

comment:5 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: monterey added; Monterey removed
Resolution: duplicate
Status: assignedclosed

Duplicate of #64098.

Note: See TracTickets for help on using tickets.