Opened 9 years ago

Last modified 9 years ago

#47872 new submission

Add new port: mdsplus

Reported by: smithsp (Sterling Smith) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: mdsplus

Description

Attached is a portfile for a new mdsplus port. Unfortunately, I am not able to build with the attached portfile, and I could use some help getting past the hang up. Below is the final part of the main.log. If this is not the appropriate way to ask for help, then please let me know the more appropriate method.

:info:build /usr/bin/clang -pipe -Os -arch x86_64  -arch x86_64 -arch i386 -dynamic -pthread  -I/usr/include/libxml2 -I/opt/local/var/macports/build/_usr_local_ports_databases_mdsplus/mdsplus/work/mdsplus-stable_release-7-0-9/include -I/opt/local/include  -c -o MdsCompareXd.o MdsCompareXd.c
:info:build clang: error: couldn't create cache file '/var/folders/s9/0c4nx1z17dn9yfvjzjxp41w00000gq/T/xcrun_db-AXHqySXY' (errno=Permission denied)
:info:build /usr/bin/clang -pipe -Os -arch x86_64  -arch x86_64 -arch i386 -dynamic -pthread  -I/usr/include/libxml2 -I/opt/local/var/macports/build/_usr_local_ports_databases_mdsplus/mdsplus/work/mdsplus-stable_release-7-0-9/include -I/opt/local/include  -c -o MdsCompress.o MdsCompress.c
:info:build clang: error: couldn't create cache file '/var/folders/s9/0c4nx1z17dn9yfvjzjxp41w00000gq/T/xcrun_db-fbexcc1N' (errno=Permission denied)
:info:build clang: error: couldn't create cache file '/var/folders/s9/0c4nx1z17dn9yfvjzjxp41w00000gq/T/xcrun_db-Bok89EXu' (errno=Permission denied)
:info:build /usr/bin/clang -pipe -Os -arch x86_64  -arch x86_64 -arch i386 -dynamic -pthread  -I/usr/include/libxml2 -I/opt/local/var/macports/build/_usr_local_ports_databases_mdsplus/mdsplus/work/mdsplus-stable_release-7-0-9/include -I/opt/local/include  -c -o MdsEvents.o MdsEvents.c
:info:build /usr/bin/clang -pipe -Os -arch x86_64  -arch x86_64 -arch i386 -dynamic -pthread  -I/usr/include/libxml2 -I/opt/local/var/macports/build/_usr_local_ports_databases_mdsplus/mdsplus/work/mdsplus-stable_release-7-0-9/include -I/opt/local/include  -c -o MdsGet1DxA.o MdsGet1DxA.c
:info:build clang: error: couldn't create cache file '/var/folders/s9/0c4nx1z17dn9yfvjzjxp41w00000gq/T/xcrun_db-qwV0f2FW' (errno=Permission denied)
:info:build clang: error: couldn't create cache file '/var/folders/s9/0c4nx1z17dn9yfvjzjxp41w00000gq/T/xcrun_db-1tdYCrZi' (errno=Permission denied)
:info:build clang: error: couldn't create cache file '/var/folders/s9/0c4nx1z17dn9yfvjzjxp41w00000gq/T/xcrun_db-bmF9aNox' (errno=Permission denied)
:info:build clang: error: couldn't create cache file '/var/folders/s9/0c4nx1z17dn9yfvjzjxp41w00000gq/T/xcrun_db-YzU0eZ0l' (errno=Permission denied)
:info:build clang: error: couldn't create cache file '/var/folders/s9/0c4nx1z17dn9yfvjzjxp41w00000gq/T/xcrun_db-yJDqHlSo' (errno=Permission denied)
:info:build MdsEvents.c:919:32: warning: expression result unused [-Wunused-value]
:info:build   write(fds[1], "x", 1) == 1 ? 0 : -1;
:info:build                                ^
:info:build /usr/bin/clang -pipe -Os -arch x86_64  -arch x86_64 -arch i386 -dynamic -pthread  -I/usr/include/libxml2 -I/opt/local/var/macports/build/_usr_local_ports_databases_mdsplus/mdsplus/work/mdsplus-stable_release-7-0-9/include -I/opt/local/include  -c -o MdsGet1DxS.o MdsGet1DxS.c
:info:build /usr/bin/clang -pipe -Os -arch x86_64  -arch x86_64 -arch i386 -dynamic -pthread  -I/usr/include/libxml2 -I/opt/local/var/macports/build/_usr_local_ports_databases_mdsplus/mdsplus/work/mdsplus-stable_release-7-0-9/include -I/opt/local/include  -c -o MdsGetSetShotId.o MdsGetSetShotId.c
:info:build clang: error: couldn't create cache file '/var/folders/s9/0c4nx1z17dn9yfvjzjxp41w00000gq/T/xcrun_db-cbE1S7bw' (errno=Permission denied)
:info:build /usr/bin/clang -pipe -Os -arch x86_64  -arch x86_64 -arch i386 -dynamic -pthread  -I/usr/include/libxml2 -I/opt/local/var/macports/build/_usr_local_ports_databases_mdsplus/mdsplus/work/mdsplus-stable_release-7-0-9/include -I/opt/local/include  -c -o MdsGetStdMsg.o MdsGetStdMsg.c
:info:build clang: error: couldn't create cache file '/var/folders/s9/0c4nx1z17dn9yfvjzjxp41w00000gq/T/xcrun_db-kx6OgeXe' (errno=Permission denied)
:info:build /usr/bin/clang -pipe -Os -arch x86_64  -arch x86_64 -arch i386 -dynamic -pthread  -I/usr/include/libxml2 -I/opt/local/var/macports/build/_usr_local_ports_databases_mdsplus/mdsplus/work/mdsplus-stable_release-7-0-9/include -I/opt/local/include  -c -o MdsPk.o MdsPk.c
:info:build clang: error: couldn't create cache file '/var/folders/s9/0c4nx1z17dn9yfvjzjxp41w00000gq/T/xcrun_db-h1xDxHJA' (errno=Permission denied)
:info:build clang: error: couldn't create cache file '/var/folders/s9/0c4nx1z17dn9yfvjzjxp41w00000gq/T/xcrun_db-zeAwVmWa' (errno=Permission denied)
:info:build /usr/bin/clang -pipe -Os -arch x86_64  -arch x86_64 -arch i386 -dynamic -pthread  -I/usr/include/libxml2 -I/opt/local/var/macports/build/_usr_local_ports_databases_mdsplus/mdsplus/work/mdsplus-stable_release-7-0-9/include -I/opt/local/include  -c -o MdsSerialize.o MdsSerialize.c
:info:build clang: error: couldn't create cache file '/var/folders/s9/0c4nx1z17dn9yfvjzjxp41w00000gq/T/xcrun_db-crUmLCJY' (errno=Permission denied)
:info:build 1 warning generated.
:info:build /usr/bin/clang -pipe -Os -arch x86_64  -arch x86_64 -arch i386 -dynamic -pthread  -I/usr/include/libxml2 -I/opt/local/var/macports/build/_usr_local_ports_databases_mdsplus/mdsplus/work/mdsplus-stable_release-7-0-9/include -I/opt/local/include  -c -o MdsShrThreadSafe.o MdsShrThreadSafe.c
:info:build clang: error: couldn't create cache file '/var/folders/s9/0c4nx1z17dn9yfvjzjxp41w00000gq/T/xcrun_db-A3jdezR8' (errno=Permission denied)
:info:build MdsEvents.c:919:32: warning: expression result unused [-Wunused-value]
:info:build   write(fds[1], "x", 1) == 1 ? 0 : -1;
:info:build                                ^
:info:build 1 warning generated.
:info:build /usr/bin/clang -pipe -Os -arch x86_64  -arch x86_64 -arch i386 -dynamic -pthread  -I/usr/include/libxml2 -I/opt/local/var/macports/build/_usr_local_ports_databases_mdsplus/mdsplus/work/mdsplus-stable_release-7-0-9/include -I/opt/local/include  -c -o MdsXdRoutines.o MdsXdRoutines.c
:info:build clang: error: couldn't create cache file '/var/folders/s9/0c4nx1z17dn9yfvjzjxp41w00000gq/T/xcrun_db-wCXS81JH' (errno=Permission denied)
:info:build /usr/bin/clang -pipe -Os -arch x86_64  -arch x86_64 -arch i386 -dynamic -pthread  -I/usr/include/libxml2 -I/opt/local/var/macports/build/_usr_local_ports_databases_mdsplus/mdsplus/work/mdsplus-stable_release-7-0-9/include -I/opt/local/include  -c -o mds_dsc_string.o mds_dsc_string.c
:info:build clang: error: couldn't create cache file '/var/folders/s9/0c4nx1z17dn9yfvjzjxp41w00000gq/T/xcrun_db-fmbAeNDc' (errno=Permission denied)
:info:build /usr/bin/clang -pipe -Os -arch x86_64  -arch x86_64 -arch i386 -dynamic -pthread  -I/usr/include/libxml2 -I/opt/local/var/macports/build/_usr_local_ports_databases_mdsplus/mdsplus/work/mdsplus-stable_release-7-0-9/include -I/opt/local/include  -c -o MdsFloatToTime.o MdsFloatToTime.c
:info:build clang: error: couldn't create cache file '/var/folders/s9/0c4nx1z17dn9yfvjzjxp41w00000gq/T/xcrun_db-wkqriE8g' (errno=Permission denied)
:info:build /usr/bin/clang -pipe -Os -arch x86_64  -arch x86_64 -arch i386 -dynamic -pthread  -I/usr/include/libxml2 -I/opt/local/var/macports/build/_usr_local_ports_databases_mdsplus/mdsplus/work/mdsplus-stable_release-7-0-9/include -I/opt/local/include  -c -o UdpEvents.o UdpEvents.c
:info:build /usr/bin/clang -pipe -Os -arch x86_64  -arch x86_64 -arch i386 -dynamic -pthread  -I/usr/include/libxml2 -I/opt/local/var/macports/build/_usr_local_ports_databases_mdsplus/mdsplus/work/mdsplus-stable_release-7-0-9/include -I/opt/local/include  -c -o UdpEventSettings.o UdpEventSettings.c
:info:build clang: error: couldn't create cache file '/var/folders/s9/0c4nx1z17dn9yfvjzjxp41w00000gq/T/xcrun_db-KMFceZK9' (errno=Permission denied)
:info:build clang: error: couldn't create cache file '/var/folders/s9/0c4nx1z17dn9yfvjzjxp41w00000gq/T/xcrun_db-gjzJGMrt' (errno=Permission denied)
:info:build ar -cr /opt/local/var/macports/build/_usr_local_ports_databases_mdsplus/mdsplus/work/mdsplus-stable_release-7-0-9/lib/libMdsShr.a librtl.o mdsmsg.o MDSprintf.o MdsCmprs.o MdsCompareXd.o MdsCompress.o MdsEvents.o MdsGet1DxA.o MdsGet1DxS.o MdsGetSetShotId.o MdsGetStdMsg.o MdsPk.o MdsSerialize.o MdsShrThreadSafe.o MdsXdRoutines.o mds_dsc_string.o MdsFloatToTime.o UdpEvents.o UdpEventSettings.o
:info:build /usr/bin/clang -pipe -Os -arch x86_64  -arch x86_64 -arch i386 -dynamic -pthread  -I/usr/include/libxml2 -I/opt/local/var/macports/build/_usr_local_ports_databases_mdsplus/mdsplus/work/mdsplus-stable_release-7-0-9/include -I/opt/local/include -L/opt/local/lib -Wl,-headerpad_max_install_names -arch x86_64 -pthread  -o /opt/local/var/macports/build/_usr_local_ports_databases_mdsplus/mdsplus/work/mdsplus-stable_release-7-0-9/lib/libMdsShr.dylib -L/opt/local/lib -Wl,-headerpad_max_install_names -arch x86_64 -shared -arch i386 -arch x86_64 librtl.o mdsmsg.o MDSprintf.o MdsCmprs.o MdsCompareXd.o MdsCompress.o MdsEvents.o MdsGet1DxA.o MdsGet1DxS.o MdsGetSetShotId.o MdsGetStdMsg.o MdsPk.o MdsSerialize.o MdsShrThreadSafe.o MdsXdRoutines.o mds_dsc_string.o MdsFloatToTime.o UdpEvents.o UdpEventSettings.o -ldl    -lxml2
:info:build clang: error: couldn't create cache file '/var/folders/s9/0c4nx1z17dn9yfvjzjxp41w00000gq/T/xcrun_db-EmtkiXYm' (errno=Permission denied)
:info:build ranlib /opt/local/var/macports/build/_usr_local_ports_databases_mdsplus/mdsplus/work/mdsplus-stable_release-7-0-9/lib/libMdsShr.a
:info:build clang: warning: argument unused during compilation: '-pthread'
:info:build clang: warning: argument unused during compilation: '-pthread'
:info:build ld: warning: ignoring file /opt/local/lib/libxml2.dylib, file was built for x86_64 which is not the architecture being linked (i386): /opt/local/lib/libxml2.dylib
:info:build Undefined symbols for architecture i386:
:info:build   "_xmlFreeDoc", referenced from:
:info:build       _InitializeEventSettings in UdpEventSettings.o
:info:build   "_xmlInitParser", referenced from:
:info:build       _InitializeEventSettings in UdpEventSettings.o
:info:build   "_xmlParseFile", referenced from:
:info:build       _InitializeEventSettings in UdpEventSettings.o
:info:build ld: symbol(s) not found for architecture i386
:info:build clang: error: linker command failed with exit code 1 (use -v to see invocation)
:info:build make[1]: *** [/opt/local/var/macports/build/_usr_local_ports_databases_mdsplus/mdsplus/work/mdsplus-stable_release-7-0-9/lib/libMdsShr.dylib] Error 1
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_usr_local_ports_databases_mdsplus/mdsplus/work/mdsplus-stable_release-7-0-9/mdsshr'
:info:build make: *** [mdsshr] Error 2
:info:build make: Leaving directory `/opt/local/var/macports/build/_usr_local_ports_databases_mdsplus/mdsplus/work/mdsplus-stable_release-7-0-9'
:info:build Command failed:  cd "/opt/local/var/macports/build/_usr_local_ports_databases_mdsplus/mdsplus/work/mdsplus-stable_release-7-0-9" && /usr/bin/make -j8 -w all 
:info:build Exit code: 2
:error:build org.macports.build for port mdsplus returned: command execution failed
:debug:build Error code: CHILDSTATUS 94377 2
:debug:build Backtrace: command execution failed
    while executing
"system -nice 0 $fullcmdstring"
    ("eval" body line 1)
    invoked from within
"eval system $notty $nice \$fullcmdstring"
    invoked from within
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"portbuild::build_main org.macports.build"
    ("eval" body line 1)
    invoked from within
"eval $procedure $targetname"
:info:build Warning: targets not executed for mdsplus: org.macports.activate org.macports.build org.macports.destroot org.macports.install
:notice:build Please see the log file for port mdsplus for details:
    /opt/local/var/macports/logs/_usr_local_ports_databases_mdsplus/mdsplus/main.log

Attachments (3)

patch-Makefile.in.diff (1.4 KB) - added by smithsp (Sterling Smith) 9 years ago.
Patch for Makefile.in to avoid making unsupported features; install to correct places
patch-configure.diff (1.7 KB) - added by smithsp (Sterling Smith) 9 years ago.
Patch for configure script to get proper paths, arch, and install_name
Portfile (2.0 KB) - added by smithsp (Sterling Smith) 9 years ago.
Revised Portfile (but still in upstream limbo) to make port lint happy

Download all attachments as: .zip

Change History (6)

comment:1 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

You are building mdsplus universal (for x86_64 and i386) but dependency libxml2 is only installed for x86_64.

The use of both x86_64 and i386 is hardcoded in mdsplus's configure script. That'll have to be removed using a patch, so that the architectures MacPorts dictates will be used instead.

Also, please use the github portgroup.

comment:2 Changed 9 years ago by mf2k (Frank Schima)

Type: requestsubmission

Changed 9 years ago by smithsp (Sterling Smith)

Attachment: patch-Makefile.in.diff added

Patch for Makefile.in to avoid making unsupported features; install to correct places

Changed 9 years ago by smithsp (Sterling Smith)

Attachment: patch-configure.diff added

Patch for configure script to get proper paths, arch, and install_name

comment:3 Changed 9 years ago by smithsp (Sterling Smith)

If MDS+ upstream hasn't accepted my DESTDIR changes (https://github.com/MDSplus/mdsplus/pull/7) within a week, then I will ask for formal review of the attached Portfile (or a cleaned up version) at that time.

Changed 9 years ago by smithsp (Sterling Smith)

Attachment: Portfile added

Revised Portfile (but still in upstream limbo) to make port lint happy

Note: See TracTickets for help on using tickets.