---
** [tickets:#2282] base: `make rpm` giving error with gcc version 6.1.0**
**Status:** assigned
**Milestone:** 5.2.FC
**Created:** Tue Jan 31, 2017 09:38 AM UTC by A V Mahesh (AVM)
**Last Updated:** Tue Jan 31, 2017 09:38 AM UTC
**Owner:** A V Mahesh (AVM)
While creating rpm from latest opensaf-staging, I am getting following
errors.
64-bit machine
GCC version : 6.1
src/mds/mds_log.cc: In static member function 'static bool MdsLog::Init()':
src/mds/mds_log.cc:93:50: error: expected ')' before 'PRIu32'
snprintf(pid_path, sizeof(pid_path), "/proc/%" PRIu32 "/cmdline",
process_id);
^~~~~~
src/mds/mds_log.cc:93:79: error: spurious trailing '%' in format
[-Werror=format=]
snprintf(pid_path, sizeof(pid_path), "/proc/%" PRIu32 "/cmdline",
process_id);
^
src/mds/mds_log.cc:93:79: error: too many arguments for format
[-Werror=format-extra-args]
cc1plus: all warnings being treated as errors
make[3]: *** [src/mds/lib_libopensaf_core_la-mds_log.lo] Error 1
make[3]: Leaving directory
`/home/chani/Builds/opensaf_latest/rpms/BUILD/opensaf-5.2.M0'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/home/chani/Builds/opensaf_latest/rpms/BUILD/opensaf-5.2.M0'
make[1]: *** [all] Error 2
make[1]: Leaving directory
`/home/chani/Builds/opensaf_latest/rpms/BUILD/opensaf-5.2.M0'
error: Bad exit status from
/home/chani/Builds/opensaf_latest/rpms/tmp/rpm-tmp.96704 (%build)
RPM build errors:
Bad exit status from
/home/chani/Builds/opensaf_latest/rpms/tmp/rpm-tmp.96704 (%build)
make: *** [rpm] Error 1
---
Sent from sourceforge.net because [email protected] is
subscribed to https://sourceforge.net/p/opensaf/tickets/
To unsubscribe from further messages, a project admin can change settings at
https://sourceforge.net/p/opensaf/admin/tickets/options. Or, if this is a
mailing list, you can unsubscribe from the mailing list.------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Opensaf-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets