Opened 2 years ago

Closed 16 months ago

#64108 closed defect (fixed)

graphviz @2.49.3_0 +ocaml: build fails due to unresolved memcpy call

Reported by: outis Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Low Milestone:
Component: ports Version:
Keywords: Cc: mascguy (Christopher Nielsen)
Port: graphviz, swig

Description

Building graphviz with the +ocaml variant fails, independent of what other variants are included.

The log file (also attached) has an error about being unable to match memcpy due to an argument type that appears to be the source:

[...]
:info:build ocamlc -c swig.mli
:info:build libtool: compile:  /usr/bin/clang++ -std=c++11 -DHAVE_CONFIG_H -I. -I../.. -I../../lib -I../../lib/gvc -I../../lib/common -I../../lib/cgraph -I../../lib/cdt -I../../lib/pathplan -DDEMAND_LOADING=1 -I/usr/lib/ocaml -Dint64=int64_t -I/opt/local/include -I/opt/local/lib/ocaml -isysroot/Applications/Devel/Mac/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -I/opt/local/include -fpermissive -Wno-unused-function -Wno-unused-variable -Os -stdlib=libc++ -isysroot/Applications/Devel/Mac/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -arch x86_64 -MT libgv_ocaml_la-gv_ocaml.lo -MD -MP -MF .deps/libgv_ocaml_la-gv_ocaml.Tpo -c gv_ocaml.cpp  -fno-common -DPIC -o .libs/libgv_ocaml_la-gv_ocaml.o
:info:build /bin/sh ../../libtool  --tag=CXX   --mode=link /usr/bin/clang++ -std=c++11  -Wno-unused-function -Os -stdlib=libc++ -isysroot/Applications/Devel/Mac/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -arch x86_64 -module -avoid-version -L/opt/local/lib -Wl,-headerpad_max_install_names -Wl,-syslibroot,/Applications/Devel/Mac/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -arch x86_64 -L/opt/local/lib -Wl,-headerpad_max_install_names -o libgv_go.la -rpath /opt/local/lib/graphviz/go libgv_go_la-gv.lo libgv_go_la-gv_builtins.lo libgv_go_la-gv_dummy_init.lo libgv_go_la-gv_go.lo ../../lib/gvc/libgvc.la ../../lib/cgraph/libcgraph.la ../../lib/cdt/libcdt.la  -lc
:info:build gv_ocaml.cpp:1324:2: error: no matching function for call to 'memcpy'
:info:build         memcpy(String_val(SWIG_Field(vv,0)),p,len);
:info:build         ^~~~~~
:info:build /Applications/Devel/Mac/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/string.h:72:7: note: candidate function not viable: no known conversion from 'const char *' to 'void *' for 1st argument
:info:build void    *memcpy(void *__dst, const void *__src, size_t __n);
:info:build          ^

System Info

  • OS X 10.14.6
  • XCode 10.3

Attachments (1)

graphviz+ocaml-main.log.bz2 (99.3 KB) - added by outis 2 years ago.
log for failing build of +ocaml variant

Download all attachments as: .zip

Change History (3)

Changed 2 years ago by outis

Attachment: graphviz+ocaml-main.log.bz2 added

log for failing build of +ocaml variant

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

Cc: mascguy added
Owner: set to ryandesign
Status: newassigned

comment:2 Changed 16 months ago by ryandesign (Ryan Carsten Schmidt)

Port: swig added
Resolution: fixed
Status: assignedclosed

This was a bug in swig that was fixed in swig 4.1.0 which has been available in MacPorts since December 2022.

Note: See TracTickets for help on using tickets.