﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
3061	Mac port install openmodelica-devel fails: syntax error near unexpected token `ATOMIC_OPS,'	cxh@…	Adeel Asghar	"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?"	defect	closed	high		Installation program	trunk	worksforme		dersh@…
