Jump to content
Read the Funtoo Newsletter: Summer 2023 ×
  • 0

net-misc/openvswitch-2.3.1 [-Werror=date-time] problem


dab.s.bad

Question

its been more than 2days already trying out to compile/install OpenVswtich

 

I have tried adding something like:

method 1:

[in a dumb way] litterally added this "-Wno-error=date-time" to all [CFLAGS, CXXFLAGS, FFLAGS] in "/etc/portage/make.conf"

 

method 2:

added "-Wno-date-time" into CFLAGS in "/etc/portage/make.conf"

 

 

and..., no success :(

 

 

BTW..., I used a 3.14.51 kernel because openVswitch seems to need it something like 2.x <= 3.14

 

hope someone can help me out...

here are some info:

localhost ~ # emerge --info
Portage 2.2.20.1 (python 3.3.5-final-0, funtoo/1.0/linux-gnu/arch/pure64, gcc-4.9.2, glibc-2.20-r2, 3.14.51-hardened x86_64)
=================================================================
System uname: Linux-3.14.51-hardened-x86_64-Intel-R-_Xeon-R-_CPU_E5520_@_2.27GHz-with-gentoo-2.2.0
KiB Mem:     4103212 total,   3783664 free
KiB Swap:    4194300 total,   4194300 free
sh bash 4.3_p39-r1
ld GNU ld (Funtoo 2.25) 2.25.0
app-shells/bash:          4.3_p39-r1::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.10::gentoo, 3.3.5-r1::gentoo
dev-util/cmake:           3.3.1-r1::gentoo
sys-apps/baselayout:      2.2.0-r6::gentoo
sys-apps/openrc:          0.12.4-r4::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25-r2::gentoo
sys-devel/gcc:            4.9.2-r2::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.4::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.0::gentoo (virtual/os-headers)
sys-libs/glibc:           2.20-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: git
    sync-uri: git://github.com/funtoo/ports-2012.git
    priority: -1000

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA Oracle-BCLA-JavaSE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nehalem -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=nehalem -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=nehalem -O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
INSTALL_MASK="/usr/lib/systemd/ /lib/systemd/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed"
LINGUAS="en"
MAKEOPTS="-j8"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_TMPDIR="/var/tmp"
USE="acl amd64 berkdb bzip2 cracklib crypt cxx gdbm gpm hardened iconv icu ipv6 mmx modules mudflap ncurses nls nptl openmp pam pax_kernel pcre pic pppd python readline resolvconf sse sse2 ssl tcpd unicode urandom xattr xml xtpax zlib" ABI_X86="64" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias authn_core authz_core socache_shmcb unixd" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64 pc" INPUT_DEVICES="evdev synaptics keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_ABIS="2.7 3.3" PYTHON_SINGLE_TARGET="python3_3" PYTHON_TARGETS="python2_7 python3_3" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby20 ruby21 ruby22" USERLAND="GNU" VIDEO_CARDS="nouveau" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS

and the compile block:

make[4]: Entering directory '/usr/src/linux-3.14.51-hardened'
  CC [M]  /var/tmp/portage/net-misc/openvswitch-2.3.1/work/openvswitch-2.3.1/datapath/linux/actions.o
  CC [M]  /var/tmp/portage/net-misc/openvswitch-2.3.1/work/openvswitch-2.3.1/datapath/linux/datapath.o
  CC [M]  /var/tmp/portage/net-misc/openvswitch-2.3.1/work/openvswitch-2.3.1/datapath/linux/dp_notify.o
  CC [M]  /var/tmp/portage/net-misc/openvswitch-2.3.1/work/openvswitch-2.3.1/datapath/linux/flow.o
  CC [M]  /var/tmp/portage/net-misc/openvswitch-2.3.1/work/openvswitch-2.3.1/datapath/linux/flow_netlink.o
  CC [M]  /var/tmp/portage/net-misc/openvswitch-2.3.1/work/openvswitch-2.3.1/datapath/linux/flow_table.o
  CC [M]  /var/tmp/portage/net-misc/openvswitch-2.3.1/work/openvswitch-2.3.1/datapath/linux/vport.o
  CC [M]  /var/tmp/portage/net-misc/openvswitch-2.3.1/work/openvswitch-2.3.1/datapath/linux/vport-gre.o
/var/tmp/portage/net-misc/openvswitch-2.3.1/work/openvswitch-2.3.1/datapath/linux/datapath.c: In function ?dp_init?:
/var/tmp/portage/net-misc/openvswitch-2.3.1/work/openvswitch-2.3.1/datapath/linux/datapath.c:2112:10: error: macro "__DATE__" might prevent reproducible builds [-Werror=date-time]
   VERSION);
          ^
/var/tmp/portage/net-misc/openvswitch-2.3.1/work/openvswitch-2.3.1/datapath/linux/datapath.c:2112:1: error: macro "__TIME__" might prevent reproducible builds [-Werror=date-time]
   VERSION);
 ^
/var/tmp/portage/net-misc/openvswitch-2.3.1/work/openvswitch-2.3.1/datapath/linux/flow_table.c: In function ?tbl_mask_array_alloc?:
/var/tmp/portage/net-misc/openvswitch-2.3.1/work/openvswitch-2.3.1/datapath/linux/flow_table.c:222:27: note: Function tbl_mask_array_alloc is missing from the size_overflow hash table +tbl_mask_array_alloc+1+20339+
 static struct mask_array *tbl_mask_array_alloc(int size)
                           ^
/var/tmp/portage/net-misc/openvswitch-2.3.1/work/openvswitch-2.3.1/datapath/linux/flow_table.c: In function ?tbl_mask_array_realloc?:
/var/tmp/portage/net-misc/openvswitch-2.3.1/work/openvswitch-2.3.1/datapath/linux/flow_table.c:238:12: note: Function tbl_mask_array_realloc is missing from the size_overflow hash table +tbl_mask_array_realloc+2+21521+
 static int tbl_mask_array_realloc(struct flow_table *tbl, int size)
            ^
  CC [M]  /var/tmp/portage/net-misc/openvswitch-2.3.1/work/openvswitch-2.3.1/datapath/linux/vport-internal_dev.o
  CC [M]  /var/tmp/portage/net-misc/openvswitch-2.3.1/work/openvswitch-2.3.1/datapath/linux/vport-lisp.o
  CC [M]  /var/tmp/portage/net-misc/openvswitch-2.3.1/work/openvswitch-2.3.1/datapath/linux/vport-netdev.o
  CC [M]  /var/tmp/portage/net-misc/openvswitch-2.3.1/work/openvswitch-2.3.1/datapath/linux/vport-vxlan.o
  CC [M]  /var/tmp/portage/net-misc/openvswitch-2.3.1/work/openvswitch-2.3.1/datapath/linux/dev-openvswitch.o
  CC [M]  /var/tmp/portage/net-misc/openvswitch-2.3.1/work/openvswitch-2.3.1/datapath/linux/exthdrs_core.o
cc1: some warnings being treated as errors
scripts/Makefile.build:308: recipe for target '/var/tmp/portage/net-misc/openvswitch-2.3.1/work/openvswitch-2.3.1/datapath/linux/datapath.o' failed
make[5]: *** [/var/tmp/portage/net-misc/openvswitch-2.3.1/work/openvswitch-2.3.1/datapath/linux/datapath.o] Error 1
make[5]: *** Waiting for unfinished jobs....
Makefile:1358: recipe for target '_module_/var/tmp/portage/net-misc/openvswitch-2.3.1/work/openvswitch-2.3.1/datapath/linux' failed
make[4]: *** [_module_/var/tmp/portage/net-misc/openvswitch-2.3.1/work/openvswitch-2.3.1/datapath/linux] Error 2
make[4]: Leaving directory '/usr/src/linux-3.14.51-hardened'
Makefile.main:70: recipe for target 'default' failed
make[3]: *** [default] Error 2
make[3]: Leaving directory '/var/tmp/portage/net-misc/openvswitch-2.3.1/work/openvswitch-2.3.1/datapath/linux'
Makefile:478: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/var/tmp/portage/net-misc/openvswitch-2.3.1/work/openvswitch-2.3.1/datapath'
Makefile:3533: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/net-misc/openvswitch-2.3.1/work/openvswitch-2.3.1'
Makefile:1888: recipe for target 'all' failed
make: *** [all] Error 2
 * ERROR: net-misc/openvswitch-2.3.1::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=net-misc/openvswitch-2.3.1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=net-misc/openvswitch-2.3.1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/net-misc/openvswitch-2.3.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-misc/openvswitch-2.3.1/temp/environment'.
 * Working directory: '/var/tmp/portage/net-misc/openvswitch-2.3.1/work/openvswitch-2.3.1'
 * S: '/var/tmp/portage/net-misc/openvswitch-2.3.1/work/openvswitch-2.3.1'

>>> Failed to emerge net-misc/openvswitch-2.3.1, Log file:

>>>  '/var/tmp/portage/net-misc/openvswitch-2.3.1/temp/build.log'

 * Messages for package net-misc/openvswitch-2.3.1:

 * ERROR: net-misc/openvswitch-2.3.1::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=net-misc/openvswitch-2.3.1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=net-misc/openvswitch-2.3.1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/net-misc/openvswitch-2.3.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-misc/openvswitch-2.3.1/temp/environment'.
 * Working directory: '/var/tmp/portage/net-misc/openvswitch-2.3.1/work/openvswitch-2.3.1'
 * S: '/var/tmp/portage/net-misc/openvswitch-2.3.1/work/openvswitch-2.3.1'
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

I'm trying to compilig it.

I'm on stable branch and I've unmasked the last version.

I'obtain the follow:

 

 *   CONFIG_OPENVSWITCH:         should not be set. But it is.

 

I've the 4.05 gentoo-sources.

 

 

The result seems ok:

 
>>> Installing (1 of 1) net-misc/openvswitch-2.4.0::gentoo
 * Removing /usr/lib/systemd/
 * Updating module dependencies for 4.0.5-gentoo ...
 * 
 * /lib/modules/4.0.5-gentoo/build/System.map not found.
 * You must manually update the kernel module dependencies using depmod. [ !! ]
 * 
 * Adding module to moduledb.
 * Use the following command to create an initial database for ovsdb-server:
 *    emerge --config =net-misc/openvswitch-2.4.0
 * (will create a database in /var/lib/openvswitch/conf.db)
 * or to convert the database to the current schema after upgrading.
 
>>> Recording net-misc/openvswitch in "world" favorites file...
 
 * Messages for package net-misc/openvswitch-2.4.0:
 
 *   CONFIG_OPENVSWITCH:         should not be set. But it is.
 * Please check to make sure these options are set correctly.
 * Failure to do so may cause unexpected problems.
 * 
 * /lib/modules/4.0.5-gentoo/build/System.map not found.
 * You must manually update the kernel module dependencies using depmod.
 * 
 * Use the following command to create an initial database for ovsdb-server:
 *    emerge --config =net-misc/openvswitch-2.4.0
 * (will create a database in /var/lib/openvswitch/conf.db)
 * or to convert the database to the current schema after upgrading.
>>> Auto-cleaning packages...
 
>>> No outdated packages were found on your system.
 
 * Regenerating GNU info directory index...
 * Processed 185 info files.
ci74771ht ~ # 

May be I've not comprised the question, cause You have added a -W (but -Wbla_bla_bla is relative about the Warnings).

or i'm wrong ?

 

Hi :)

 

________________________________________________________

 

edit: i've also tryied with "current" Funtoo. in this case with kernel 4.2.X also i've errors.

* openvswitch-2.4.0.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ...         [ ok ]
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found kernel object directory:
 *     /lib/modules/4.2.3-gentoo/build
 * Found sources for kernel version:
 *     4.2.3-gentoo
 * ERROR: net-misc/openvswitch-2.4.0::gentoo failed (setup phase):
 *   Linux >= 2.6.32 and <= 4.0 required for userspace modules
 * 
 * Call stack:
 *                  ebuild.sh, line  93:  Called pkg_setup
 *   openvswitch-2.4.0.ebuild, line  41:  Called die
 * The specific snippet of code:
 *              kernel_is le 4 0 || die "Linux >= 2.6.32 and <= 4.0 required for userspace modules"
 * 
 * If you need support, post the output of `emerge --info '=net-misc/openvswitch-2.4.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=net-misc/openvswitch-2.4.0::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/net-misc/openvswitch-2.4.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-misc/openvswitch-2.4.0/temp/die.env'.
 * Working directory: '/usr/lib64/python3.3/site-packages'
 * S: '/var/tmp/portage/net-misc/openvswitch-2.4.0/work/openvswitch-2.4.0'
 
>>> Failed to emerge net-misc/openvswitch-2.4.0, Log file:
 
>>>  '/var/tmp/portage/net-misc/openvswitch-2.4.0/temp/build.log'
 
 * Messages for package net-misc/openvswitch-2.4.0:
 
 * ERROR: net-misc/openvswitch-2.4.0::gentoo failed (setup phase):
 *   Linux >= 2.6.32 and <= 4.0 required for userspace modules
 * 
 * Call stack:
 *                  ebuild.sh, line  93:  Called pkg_setup
 *   openvswitch-2.4.0.ebuild, line  41:  Called die
 * The specific snippet of code:
 *              kernel_is le 4 0 || die "Linux >= 2.6.32 and <= 4.0 required for userspace modules"
 * 
 * If you need support, post the output of `emerge --info '=net-misc/openvswitch-2.4.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=net-misc/openvswitch-2.4.0::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/net-misc/openvswitch-2.4.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-misc/openvswitch-2.4.0/temp/die.env'.
 * Working directory: '/usr/lib64/python3.3/site-packages'
 * S: '/var/tmp/portage/net-misc/openvswitch-2.4.0/work/openvswitch-2.4.0'

Uhm .... it seems a "rebus" :|

 

If You want I can make emperiments with my machine to try to aid You .... (but i'm only a "little penguin :|).

 

Good Evening from Italy for You :)

Link to comment
Share on other sites

  • 0

thank you sir..., let me try then...

 

---edit:

working now by masking openvswitch to use version 2.4.0 :)

anyways, since you are also using a 4x kernel..., let me upgrade mine also since openvswitch version 2.3.1 needs atmost the 3.14 kernel versions...

 

many thanks! :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...