X-Original-To: alpine-user@lists.alpinelinux.org Received: from mail-qk1-f180.google.com (mail-qk1-f180.google.com [209.85.222.180]) by lists.alpinelinux.org (Postfix) with ESMTP id 97767F855C7 for ; Thu, 4 Jul 2019 10:17:03 +0000 (UTC) Received: by mail-qk1-f180.google.com with SMTP id r6so5181342qkc.0 for ; Thu, 04 Jul 2019 03:17:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=8sd8GGRY4zt0bQ62tUl6p+X8zNAV66PrG6kbqZn/tig=; b=D8on+dmdzLUpcQkMZcD4ZBcn19fHrnM91JNiKPOgjkUKrVgAUGhiONXl5EQIf74wKn BgPFp1ARex6Ojn1o9FraihnjPWy5lb7THRHx3+43kMwIQ5/ssCm67oJ8n3ru/kziLOFt toOhGcbrqdQ/MiCvWSVsgFQBl2WKumbAhdnAswfe3o5crufdvfwdnCTusx3q2f+rgBFM GvMz9l7Wjj9irx838/GJX/z7XwCHSWapyNvkRvWMQbuMCSnSOJvt79ij0LARi2+rrXT6 wE6eKLQnn8pCfGpboPdDjEVujPsSy3VF+XYcc5wYQdT9q2ZXR24QUnZZpWEnVgs0rzID ptOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=8sd8GGRY4zt0bQ62tUl6p+X8zNAV66PrG6kbqZn/tig=; b=EcxTreUgBUEHE3Hr7o0n8RVb+RFxXLFViI0pJZbruIqstP15rh2HGtYiEC5nhPwelX mIIzRUC4nNus8qjfRaFOPqggQi8ajFxFhrYrpkbWau4/JkY+yRg2bWE7Smh8dCOqX6gl Z2NrP26daw+xwF17SRSx3HXrdmzljSD0+CFoY0armO6F1mIeC/XEnHfO2jwdxoEkgfFP kN/O1/hgjA772PFIzhToZENje4xG3A3XUaV76yXiYbeQ3m3S77RgJQN9iz59GK9r6jx9 GPH2TrAqmCEezt3p+gmIkb73YVHnr31P+uuwTFRCW9IZa6AiH9C4EBf3mV84yxKTd4P/ aKEA== X-Gm-Message-State: APjAAAWF0tP+yA4Tc+yhUTsdsTDEPZtsNr3cw1KMRNlYb/4br2HMAdiY OAm0j1NPfH/A1r4wdBq/asQJPjuaeoiMuU0VCMIvAhJXxBQ= X-Google-Smtp-Source: APXvYqwEl6rH26i0ulpPprHg7yuXPr3QQ3BHXlVhSSbkMQSnnwjN4aJeT2GfNeNuON5ox51Bnf/0eUL42wLvFWHlSBI= X-Received: by 2002:ae9:e64d:: with SMTP id x13mr1844730qkl.445.1562235422844; Thu, 04 Jul 2019 03:17:02 -0700 (PDT) X-Mailinglist: alpine-user Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 From: Kouam Josiane Date: Thu, 4 Jul 2019 12:16:52 +0200 Message-ID: Subject: [alpine-user] error: '__va_copy' was not declared in this scope To: alpine-user@lists.alpinelinux.org Content-Type: multipart/alternative; boundary="0000000000006f2afb058cd847d2" --0000000000006f2afb058cd847d2 Content-Type: text/plain; charset="UTF-8" Hello everyone, I'm new in alpine linux and i want to compile an c++ project i've well compiled in ubuntu linux using gcc v5.4.0. I'm using alpine 6.4.0 version of gcc and g++ compiler. I got this error and many other syntax error. I don't know if there is a corresponding version of gcc i should use in this case. Here are the output of make command : g++ -g -O3 -fno-strict-aliasing -MD -msse4.2 -DNDEBUG -march=native -DENABLE_ZOOKEEPER -std=c++11 -I/root/RAMCloud/src -I/root/RAMCloud/obj.master -I/root/RAMCloud/gtest/include -I/usr/local/openonload-201405/src/include -Werror -Wall -Wformat=2 -Wextra -Wwrite-strings -Wno-unused-parameter -Wmissing-format-attribute -Wno-non-template-friend -Woverloaded-virtual -Wcast-qual -Wcast-align -Wconversion -Weffc++ -fPIC -c -o obj.master/Common.o /root/RAMCloud/src/Common.cc /root/RAMCloud/src/Common.cc: In function 'std::__cxx11::string RAMCloud::vformat(const char*, __va_list_tag*)': /root/RAMCloud/src/Common.cc:65:25: error: '__va_copy' was not declared in this scope __va_copy(aq, ap); ^ /root/RAMCloud/src/Common.cc: In function 'uint64_t RAMCloud::_generateRandom()': /root/RAMCloud/src/Common.cc:90:21: error: 'random_data' does not name a type static __thread random_data buf; ^~~~~~~~~~~ /root/RAMCloud/src/Common.cc:103:51: error: 'buf' was not declared in this scope initstate_r(seed, statebuf, STATE_BYTES, &buf); ^~~ /root/RAMCloud/src/Common.cc:103:54: error: 'initstate_r' was not declared in this scope initstate_r(seed, statebuf, STATE_BYTES, &buf); ^ /root/RAMCloud/src/Common.cc:110:15: error: 'buf' was not declared in this scope random_r(&buf, &lo); ^~~ /root/RAMCloud/src/Common.cc:110:23: error: 'random_r' was not declared in this scope random_r(&buf, &lo); ^ make: *** [src/Makefrag:204: obj.master/Common.o] Error 1 Thans a lot. --0000000000006f2afb058cd847d2 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Hello everyone,

I'm new in alpine linux and i want to compile an c++ project i'v= e well compiled in ubuntu linux using gcc v5.4.0.

I'm using alpine 6.4.0 version of gcc and g++ compiler.

I got this error and many other syntax error. I don't know if there = is a corresponding version of gcc i should use in this case.


Here are the output of make command :

g++ -g -O3 -fno-strict-aliasing -MD -msse4.2 -DNDEBUG -march=3Dnative=20 -DENABLE_ZOOKEEPER -std=3Dc++11 -I/root/RAMCloud/src=20 -I/root/RAMCloud/obj.master -I/root/RAMCloud/gtest/include=20 -I/usr/local/openonload-201405/src/include -Werror -Wall -Wformat=3D2=20 -Wextra -Wwrite-strings -Wno-unused-parameter -Wmissing-format-attribute -Wno-non-template-friend -Woverloaded-virtual -Wcast-qual -Wcast-align=20 -Wconversion -Weffc++ -fPIC -c -o obj.master/Common.o=20 /root/RAMCloud/src/Common.cc
/root/RAMCloud/src/Common.cc: In function 'std::__cxx11::string RAMClou= d::vformat(const char*, __va_list_tag*)':
/root/RAMCloud/src/Common.cc:65:25: error: '__va_copy' was not decl= ared in this scope
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 __va_copy(aq, ap);
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ^
/root/RAMCloud/src/Common.cc: In function 'uint64_t RAMCloud::_generate= Random()':
/root/RAMCloud/src/Common.cc:90:21: error: 'random_data' does not n= ame a type
=C2=A0=C2=A0=C2=A0=C2=A0 static __thread random_data buf;
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ^~~~~~~~~~~
/root/RAMCloud/src/Common.cc:103:51: error: 'buf' was not declared = in this scope
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 initstate_r(seed, statebuf= , STATE_BYTES, &buf);
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= ^~~
/root/RAMCloud/src/Common.cc:103:54: error: 'initstate_r' was not d= eclared in this scope
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 initstate_r(seed, statebuf= , STATE_BYTES, &buf);
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 ^
/root/RAMCloud/src/Common.cc:110:15: error: 'buf' was not declared = in this scope
=C2=A0=C2=A0=C2=A0=C2=A0 random_r(&buf, &lo);
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 ^~~
/root/RAMCloud/src/Common.cc:110:23: error: 'random_r' was not decl= ared in this scope
=C2=A0=C2=A0=C2=A0=C2=A0 random_r(&buf, &lo);
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ^
make: *** [src/Makefrag:204: obj.master/Common.o] Error 1


Thans a lot.

--0000000000006f2afb058cd847d2-- --- Unsubscribe: alpine-user+unsubscribe@lists.alpinelinux.org Help: alpine-user+help@lists.alpinelinux.org ---