Opened 10 years ago

Closed 9 years ago

#3061 closed defect (worksforme)

Mac port install openmodelica-devel fails: syntax error near unexpected token `ATOMIC_OPS,'

Reported by: cxh@… Owned by: adeas31
Priority: high Milestone:
Component: Installation program Version: trunk
Keywords: Cc: dersh@…

Description

Under Mac OS X 10.9.5, port install openmodelica-devel +libraries +clang -qt fails:

sh-3.2# port install openmodelica-devel +libraries +clang -qt
--->  Computing dependencies for openmodelica-devel
--->  Fetching archive for openmodelica-devel
--->  Attempting to fetch openmodelica-devel-23929_0+clang+gfortran48+libraries+sundials.darwin_13.x86_64.tbz2 from http://packages.macports.org/openmodelica-devel
--->  Attempting to fetch openmodelica-devel-23929_0+clang+gfortran48+libraries+sundials.darwin_13.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/open\
modelica-devel
--->  Attempting to fetch openmodelica-devel-23929_0+clang+gfortran48+libraries+sundials.darwin_13.x86_64.tbz2 from http://jog.id.packages.macports.org/macports/packages/openmodelica-d\
evel
--->  Fetching distfiles for openmodelica-devel
--->  Verifying checksums for openmodelica-devel
--->  Extracting openmodelica-devel
--->  Configuring openmodelica-devel
--->  Building openmodelica-devel
Error: org.macports.build for port openmodelica-devel returned: command execution failed
Please see the log file for port openmodelica-devel for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port openmodelica-devel failed
sh-3.2#


The main.log (attached) shows:

:info:build checking sys/dg_sys_info.h usability... no
:info:build checking sys/dg_sys_info.h presence... no
:info:build checking for sys/dg_sys_info.h... no
:info:build ./configure: line 17477: syntax error near unexpected token `ATOMIC_OPS,'
:info:build ./configure: line 17477: `   PKG_CHECK_MODULES(ATOMIC_OPS, atomic_ops, ,'
:info:build make[1]: *** [3rdParty/gc/Makefile] Error 2
:info:build make[1]: *** Waiting for unfinished jobs....
:info:build configure: In case of trouble, first consult the troubleshooting page at https://projects.coin-or.org/BuildTools/wiki/user-troubleshooting
:info:build configure: Configuration of Ipopt successful
:info:build configure: In case of trouble, first consult the troubleshooting page at https://projects.coin-or.org/BuildTools/wiki/user-troubleshooting
:info:build configure: Main configuration of Ipopt successful
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/work/openmodelica_23929'
:info:build make: *** [omc-bootstrapped] Error 2
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/work/openmodelica_23929'
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/work/openmodelica_23929" && /usr/bin/make -j8 -w omc mosh NOLIBRARIES=Yes
:info:build Exit code: 2
:error:build org.macports.build for port openmodelica-devel returned: command execution failed
:debug:build Error code: CHILDSTATUS 23127 2
:debug:build Backtrace: command execution failed

From the above, it is not clear if the error message about ATOMIC_OPS caused the problem.

Running

cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/work/openmodelica_23929" && /usr/bin/make -j8 -w omc mosh NOLIBRARIES=Yes

replicates the error

/opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/work/openmodelica_23929/3rdParty/gc/configure

contains this text:

# Check for an external libatomic_ops if the answer was yes or check.  If not  
# found, fail on yes, and convert check to no.      
# Note: "syntax error near unexpected token ATOMIC_OPS" reported by configure     
# means Autotools pkg.m4 file was not found during aclocal.m4 generation.      
missing_libatomic_ops=false
if test x"$with_libatomic_ops" != xno; then :
   PKG_CHECK_MODULES(ATOMIC_OPS, atomic_ops, ,
		       missing_libatomic_ops=true )
fi
if test x$missing_libatomic_ops = xtrue ; then :
   if test x"$with_libatomic_ops" != xcheck; then :
   as_fn_error $? "An external libatomic_ops was not found" "$LINENO" 5
fi
        with_libatomic_ops=no
fi

This is on a fairly new mac without much installed:

sh-3.2# port installed requested
The following ports are currently installed:
  autoconf @2.69_2 (active)
  dos2unix @6.0.3_0 (active)
  emacs @24.4_1 (active)
  gcc44 @4.4.7_9 (active)
  gcc49 @4.9.2_1 (active)
  p7zip @9.20.1_1 (active)
sh-3.2#


I've tried various combinations of compilers, but have not gotten past this point.

I first noticed the problem on December 24, 2014.

Any ideas?

Attachments (1)

main.log (484.7 KB) - added by cxh@… 10 years ago.
output of port install openmodelica-devel +libraries +clang -qt

Download all attachments as: .zip

Change History (4)

Changed 10 years ago by cxh@…

output of port install openmodelica-devel +libraries +clang -qt

comment:1 Changed 10 years ago by Adam Dershowitz <dersh@…>

  • Cc dersh@… added

comment:2 Changed 10 years ago by Christopher Brooks <cxh@…>

I was able to install using macports after completely removing macports and starting over.

To remove macports, see https://guide.macports.org/chunked/installing.macports.uninstalling.html, which says:

$ sudo port -fp uninstall installed

and

 sudo rm -rf \
        /opt/local \
        /Applications/DarwinPorts \
        /Applications/MacPorts \
        /Library/LaunchDaemons/org.macports.* \
        /Library/Receipts/DarwinPorts*.pkg \
        /Library/Receipts/MacPorts*.pkg \
        /Library/StartupItems/DarwinPortsStartup \
        /Library/Tcl/darwinports1.0 \
        /Library/Tcl/macports1.0 \
        ~/.macports

I think reinstalled macports and followed the instructions at https://openmodelica.org/download/download-mac

I did:

sudo -i
echo rsync://build.openmodelica.org/macports/ >> /opt/local/etc/macports/sources.conf
port update
port upgrade outdated
port install openmodelica-devel +libraries -qt 

When I was having this problem, it was with a fairly recent and clean macports installation, so there was a bug somewhere. My guess is that the bug is either solved or worked around by working from a clean macports install.

This bug could be closed as it is no longer reproducible on the reporter's machine.

comment:3 Changed 9 years ago by sjoelund.se

  • Milestone Future deleted
  • Resolution set to worksforme
  • Status changed from new to closed

I think we have the automake dependency now.

Note: See TracTickets for help on using tickets.