X-Original-To: alpine-user@lists.alpinelinux.org Received: from mail-io1-f43.google.com (mail-io1-f43.google.com [209.85.166.43]) by lists.alpinelinux.org (Postfix) with ESMTP id 79206F8524B for ; Thu, 4 Jul 2019 15:04:42 +0000 (UTC) Received: by mail-io1-f43.google.com with SMTP id h6so13448945ioh.3 for ; Thu, 04 Jul 2019 08:04:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=s0Nmg6Xl9AqQ25StikZznOhmOsY4ssyXII98qlU/zcc=; b=NpwIxrgB0eykfgadtnujT+okzj4vR3xCkIN3flUAf4kJfwhCJjVkHFCDvqJ4k+0CoE gzuQuszEtmVj3YaywTBvO1/WWQo+u6//bZMtgCCZwpnG7pkXEut8NJqoPxQckFF070jI Uw5uj0NtSuThZABmUHGmJFXS2rZCx5NTbwN2iaTZ9P5vw909bMFmkS0RGGGRyNk0+K6O f35J79D4U6tU4Skh+ArUyfb/k50Yc1ada48gsUV0+eAsS6lphLvJ805VBr0buCl0GqHR 1buyXDukUaE9JVX+qA/uPYP7q9XNdSRVwrhVMCjE++PZk+AmgomtUkGoU+5GG6MQi8lS YUAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=s0Nmg6Xl9AqQ25StikZznOhmOsY4ssyXII98qlU/zcc=; b=uCFnpASGpo4ayFpbiuha0hE/Wq9GLC21B+s1DSKBBjaf+HyPeTFwT5YjdLUYBguZG7 ECYAkylm0nIfCznBnN2lB+u39GS5aswpJ+Dcrt6FDKISkrBDspYSAr/WbXQKnmT0N7wu JBpRrJXWXcXcoACp1ft0u5M7/QBqjekLxxCbO5v3kXPZ4fBLYhm4a2iW6cRYVmPEgN1V /PQG1wx6QzBwICmfA4j3QkzwhDeWxbul+jUfwRD6oXQrRhAgxZ1Q5Ap7OWa84+p8Yqd/ ZMR7rqeM1aPV6u5QlQ4AR/zRN7eA75PjrqIIFG0/fyxz5bzbkUyHqX43c5yPTfcWJdvv HWYw== X-Gm-Message-State: APjAAAXwk4GRmiqphPSzBHheBxFmq/zrzm82SDuH4KJJlgA9DNO/UV+R tnuYMBBmqSAkWUifrS4Vhhfu78QY1exvCb7EKv4= X-Google-Smtp-Source: APXvYqwvCr3cDXUnc/EAjwhpBze2jRZVfDYUy5Rjh+pIgVtjPXLdGDIBlGOKz1GytsmV9Ri3RDrsdRMi9keb5z7zkgo= X-Received: by 2002:a6b:38c3:: with SMTP id f186mr44673922ioa.187.1562252681979; Thu, 04 Jul 2019 08:04:41 -0700 (PDT) X-Mailinglist: alpine-user Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 References: In-Reply-To: From: PICCORO McKAY Lenz Date: Thu, 4 Jul 2019 11:04:28 -0400 Message-ID: Subject: Re: [alpine-user] error: '__va_copy' was not declared in this scope To: Kouam Josiane Cc: alpine-user Content-Type: multipart/alternative; boundary="00000000000028b74b058cdc4c47" --00000000000028b74b058cdc4c47 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable missing linker=C2=A1? from where are you using that '__va_copy' ? have are you declared at the header file? El jue., 4 de jul. de 2019 a la(s) 06:17, Kouam Josiane (kouamj60@gmail.com= ) escribi=C3=B3: > 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=3Dnative > -DENABLE_ZOOKEEPER -std=3Dc++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=3D2 -We= xtra > -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 i= n > 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 thi= s > scope > initstate_r(seed, statebuf, STATE_BYTES, &buf); > ^~~ > /root/RAMCloud/src/Common.cc:103:54: error: 'initstate_r' was not declare= d > in this scope > initstate_r(seed, statebuf, STATE_BYTES, &buf); > ^ > /root/RAMCloud/src/Common.cc:110:15: error: 'buf' was not declared in thi= s > scope > random_r(&buf, &lo); > ^~~ > /root/RAMCloud/src/Common.cc:110:23: error: 'random_r' was not declared i= n > this scope > random_r(&buf, &lo); > ^ > make: *** [src/Makefrag:204: obj.master/Common.o] Error 1 > > > Thans a lot. > --00000000000028b74b058cdc4c47 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
missing linker=C2=A1?

from where are yo= u using that=C2=A0 '__va_copy' ?

have are = you declared at the header file?

=
El jue., 4 de jul. de 2019 a la(s) 06= :17, Kouam Josiane (kouamj60@gmail.com) escribi=C3=B3:

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.

--00000000000028b74b058cdc4c47-- --- Unsubscribe: alpine-user+unsubscribe@lists.alpinelinux.org Help: alpine-user+help@lists.alpinelinux.org ---