Skip to content

Commit 74ac93e

Browse files
mergerobotqing.zhu
mergerobot
authored and
qing.zhu
committed
Fix open64 build issue - remove libacml_mv from build
Change-Id: I07249b9bd2175028b81347b4c349423d8c4519f6
1 parent 19734f1 commit 74ac93e

File tree

4 files changed

+26
-5
lines changed

4 files changed

+26
-5
lines changed

configure

+3-3
Original file line numberDiff line numberDiff line change
@@ -2434,8 +2434,9 @@ fi
24342434

24352435
if test "${BUILD_TARGET}" = "X8664" || test "${BUILD_TARGET}" = "IA32"; then
24362436
#LIBLIST="libopen64rt libacml_mv $LIBLIST libinstr2"
2437-
LIBLIST="libopen64rt libacml_mv $LIBLIST"
2438-
ac_config_files="$ac_config_files osprey/targdir_lib/libopen64rt/Makefile osprey/targdir_lib/libinstr2/Makefile osprey/targdir_lib/libacml_mv/Makefile"
2437+
# remove libacml_mv as not compilable any more
2438+
LIBLIST="libopen64rt $LIBLIST"
2439+
ac_config_files="$ac_config_files osprey/targdir_lib/libopen64rt/Makefile osprey/targdir_lib/libinstr2/Makefile"
24392440

24402441
fi
24412442
if test "${BUILD_TARGET}" = "IA64" ; then
@@ -3236,7 +3237,6 @@ do
32363237
"osprey/targdir_lib/libu/Makefile") CONFIG_FILES="$CONFIG_FILES osprey/targdir_lib/libu/Makefile" ;;
32373238
"osprey/targdir_lib/libopen64rt/Makefile") CONFIG_FILES="$CONFIG_FILES osprey/targdir_lib/libopen64rt/Makefile" ;;
32383239
"osprey/targdir_lib/libinstr2/Makefile") CONFIG_FILES="$CONFIG_FILES osprey/targdir_lib/libinstr2/Makefile" ;;
3239-
"osprey/targdir_lib/libacml_mv/Makefile") CONFIG_FILES="$CONFIG_FILES osprey/targdir_lib/libacml_mv/Makefile" ;;
32403240
"osprey/targdir_lib/init/Makefile") CONFIG_FILES="$CONFIG_FILES osprey/targdir_lib/init/Makefile:osprey/targdir_lib/init/Makefile.in" ;;
32413241
"osprey/targdir_lib2/Makefile") CONFIG_FILES="$CONFIG_FILES osprey/targdir_lib2/Makefile:osprey/targdir_lib/Makefile.in" ;;
32423242
"osprey/targdir_lib2/include/Makefile") CONFIG_FILES="$CONFIG_FILES osprey/targdir_lib2/include/Makefile:osprey/targdir_lib/include/Makefile.in" ;;

configure.ac

+2-2
Original file line numberDiff line numberDiff line change
@@ -574,11 +574,11 @@ fi
574574

575575
if test "${BUILD_TARGET}" = "X8664" || test "${BUILD_TARGET}" = "IA32"; then
576576
#LIBLIST="libopen64rt libacml_mv $LIBLIST libinstr2"
577-
LIBLIST="libopen64rt libacml_mv $LIBLIST"
577+
# remove libacml_mv as not compilable any more
578+
LIBLIST="libopen64rt $LIBLIST"
578579
AC_CONFIG_FILES([
579580
osprey/targdir_lib/libopen64rt/Makefile
580581
osprey/targdir_lib/libinstr2/Makefile
581-
osprey/targdir_lib/libacml_mv/Makefile
582582
])
583583
fi
584584
if test "${BUILD_TARGET}" = "IA64" ; then

osprey/driver/objects.c

+13
Original file line numberDiff line numberDiff line change
@@ -402,27 +402,40 @@ add_object (int flag, char *arg)
402402
#ifndef BUILD_MASTIFF // do not add -lmv for MASTIFF
403403
/* add -lmv -lmblah */
404404
if (xpg_flag && invoked_lang == L_f77) {
405+
#if 0
406+
// libacml_mv is not compilable as matherr is no longer
407+
// supported after glibc 2.27
405408
#ifdef TARG_X8664
406409
if (abi != ABI_N32)
407410
add_library(objects, "acml_mv");
411+
#endif
408412
#endif
409413
add_library(lib_objects, "mv");
410414
add_library(lib_objects, "m");
411415
} else {
416+
#if 0
417+
// libacml_mv is not compilable as matherr is no longer
418+
// supported after glibc 2.27
412419
#ifdef TARG_X8664
413420
if (abi != ABI_N32)
414421
add_library(objects, "acml_mv");
415422
#endif
423+
#endif
424+
416425
#if !defined(TARG_SL) && !defined(TARG_PPC32)
417426
add_library(objects, "mv");
418427
#endif
419428
add_library(objects, "m");
420429
}
421430
#if !defined(TARG_SL) && !defined(TARG_PPC32)
422431
if (invoked_lang == L_CC) {
432+
#if 0
433+
// libacml_mv is not compilable as matherr is no longer
434+
// supported after glibc 2.27
423435
#ifdef TARG_X8664
424436
if (abi != ABI_N32)
425437
add_library(objects, "acml_mv");
438+
#endif
426439
#endif
427440
add_library(cxx_prelinker_objects, "mv");
428441
add_library(cxx_prelinker_objects, "m");

osprey/driver/phases.c

+8
Original file line numberDiff line numberDiff line change
@@ -2329,9 +2329,13 @@ add_final_ld_args (string_list_t *args, phases_t ld_phase)
23292329
add_string(args, "-lmv");
23302330
// add_string(args, "-lm" PSC_NAME_PREFIX);
23312331
add_string(args, "-lm");
2332+
#if 0
2333+
// libacml_mv is not compilable as matherr is no longer
2334+
// supported after glibc 2.27
23322335
#ifdef TARG_X8664
23332336
if (abi != ABI_N32)
23342337
add_library(args, "acml_mv");
2338+
#endif
23352339
#endif
23362340
add_library(args, "mv");
23372341
// add_library(args, "m" PSC_NAME_PREFIX);
@@ -2411,7 +2415,11 @@ add_final_ld_args (string_list_t *args, phases_t ld_phase)
24112415
* however adding two instances of -lm only removes one.
24122416
*/
24132417
if (invoked_lang == L_CC)
2418+
#if 0
2419+
// libacml_mv is not compilable as matherr is no longer
2420+
// supported after glibc 2.27
24142421
add_library(args, "acml_mv");
2422+
#endif
24152423
add_library(args, "m");
24162424
}
24172425
#endif

0 commit comments

Comments
 (0)