From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf1-x436.google.com (mail-pf1-x436.google.com [IPv6:2607:f8b0:4864:20::436]) by sourceware.org (Postfix) with ESMTPS id 6C2A93858C48 for ; Tue, 11 Jun 2024 13:07:51 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6C2A93858C48 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 6C2A93858C48 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::436 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1718111273; cv=none; b=LNsITSD+fWR2e252fvBy4U9ROJxzTn4HXLUWHkOKdNBUNhYNqqFAgv01vt5RgR/HJDrrDVvOl7CNVPA964Ll1DQcVR4TOYBe8Vvcz3e7zsafqwb0o7VLUlKzx6M1MVFYX2Qr8p+3jg1NJmvXAFZvUvRtVMnNypt0nLnkbcY3Zhw= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1718111273; c=relaxed/simple; bh=3KMmGucJfE+eFZroOnDgw4MPHgvsg1wTpkAIUv98aSM=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From; b=Db10EVPz4TVCEhr23k4ycXzKIu4UvtBYWcEPOzQ1YQugyoRiJ7qNZ6LSV9e3Uq2paQ/Mrv/Awg8CWSP7Vd7RXZ3XuPcWt1ejrdvAFOBjroxROJJkGuf+/8M7mfVHrQ3w+EF3wO2/mxNsUF78sWHiyp8ES6wAIDlF2jq3VE/Tc9w= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pf1-x436.google.com with SMTP id d2e1a72fcca58-70417a6c328so3262621b3a.1 for ; Tue, 11 Jun 2024 06:07:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1718111270; x=1718716070; darn=sourceware.org; h=content-transfer-encoding:in-reply-to:organization:from :content-language:references:to:subject:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to; bh=Hasog1g1QAavHDE58l+xQyhNlTB9gNsA381ll2FxRHc=; b=nkGyl89/QLChneibmkHVMASN+mjqbGYIhxo37e3Z0ga/mCVX/vQ5KznXNfK5iH+gwI 3xfxGb+wWAztkqutlASO6yiRn+UIo/mxruUs5z11HcNBXdlwHoo9U0BLI5Kc08O6op+K U+fbcIvIDBzyqOtOzgyWLHZGm37qvKS9EFC5bdvOrB4YS53F1NE2WYyrKiJiY77efjCw fU9S/XzG0buNVRW9bYhVLWi+8BR0nV/FMFtLit3c4X4uiz5xpR3igTJf/YIgD5RHfCc9 +i7RCoJo7KMF3DhRu3iJZ87wPeMwVaRIXQY6NTX7V4NbyGbzjZx1SlyFFNEuRSdEnWxE aULA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718111270; x=1718716070; h=content-transfer-encoding:in-reply-to:organization:from :content-language:references:to:subject:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Hasog1g1QAavHDE58l+xQyhNlTB9gNsA381ll2FxRHc=; b=Z9z+WANZ5UJuF9vGN8LbsXgIws48guCNdyI80+6MxSf6UwbRvIVzp+B3nTNGDnm1w2 K7e8LrQ4Ld4sO0kuCdTEgsRuyuMiPxbK0ZVPOtFIa+RDY/XpbWrs2T6KvfdF14Hb+Brx +j7csoqO3vlICJHgwgAezcfQmfy2hIJ3zCY/0AEMUwh9542yO9voFGUNm8Jq5yaUmtrX WEJ5CQyLUSGySBqDMJNdRwKKppEY3u8k7cr6xk1r3h+waekvlKnn66qkkyo0foPMs6H2 KJdb+Gs+Hrw9gIUzkt7I3BR/6FJHJwpNFDYXgDgJL2GdNXoyffi2uZUphRJq93JooAR8 rEfw== X-Forwarded-Encrypted: i=1; AJvYcCWFvUoWZq4NcGq2oCCMnMxBeusx98lPjDNIaCRhKhVHxN6IcWF0+1jnupTFOMjrBpSoSySGSud6VZ9d9LdUu0Uld0kBs9+jWRM= X-Gm-Message-State: AOJu0Yz7Bdr+IY+SRgJNyBr2NTQkUVfMt0j0K7+IgrU9q1gZZFzg4rlZ Y0HUUdLfB3fgdQqWALlndxkkzOYuY/3F/Xr9FogAZWOGuPdqriFGsvHqsmzHNRpwPET2TRNYHsy 2 X-Google-Smtp-Source: AGHT+IHDJtUKXkPyoxlcSBPI8CVYe4KF12NKyCpSMgmaJcn5iuB7x8VY6kfBncjkfCGpbvCB4Hb3qw== X-Received: by 2002:a05:6a20:7483:b0:1b7:bdb3:7bc7 with SMTP id adf61e73a8af0-1b7bdb384d6mr5410983637.20.1718111270086; Tue, 11 Jun 2024 06:07:50 -0700 (PDT) Received: from ?IPV6:2804:1b3:a7c0:c5fb:e1da:f9b7:66da:199? ([2804:1b3:a7c0:c5fb:e1da:f9b7:66da:199]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-7042c428400sm5520193b3a.146.2024.06.11.06.07.47 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 11 Jun 2024 06:07:49 -0700 (PDT) Message-ID: <2e6fcd2e-3251-47cd-9c5e-e44c6b7c6f18@linaro.org> Date: Tue, 11 Jun 2024 10:07:45 -0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: mips32 still supported? To: Waldemar Brodkorb , libc-help@sourceware.org References: Content-Language: en-US From: Adhemerval Zanella Netto Organization: Linaro In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-5.2 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On 11/06/24 02:44, Waldemar Brodkorb wrote: > Hi, >=20 > is mips32 (big endian or little endian) still supported by glibc? >=20 > I am seeing following build error with glibc 2.39 (gcc 13.3.0, binutils= 2.42): >=20 > /home/wbx/openadk/toolchain_qemu-mips_glibc_mips32r6_hard/usr/bin/mips-= openadk-linux-gnu-gcc -mabi=3D32 -shared -static-libgcc -Wl,-dynamic-l= inker=3D/lib/ld-linux-mipsn8.so.1 -Wl,-z,defs -B/home/wbx/openadk/toolch= ain_build_qemu-mips_glibc_mips32r6_hard/w-glibc-2.39-1/glibc-2.39-final/c= su/ -Wl,-z,relro -L/home/wbx/openadk/toolchain_build_qemu-mips_glibc_m= ips32r6_hard/w-glibc-2.39-1/glibc-2.39-final -L/home/wbx/openadk/toolchai= n_build_qemu-mips_glibc_mips32r6_hard/w-glibc-2.39-1/glibc-2.39-final/mat= h -L/home/wbx/openadk/toolchain_build_qemu-mips_glibc_mips32r6_hard/w-gli= bc-2.39-1/glibc-2.39-final/elf -L/home/wbx/openadk/toolchain_build_qemu-m= ips_glibc_mips32r6_hard/w-glibc-2.39-1/glibc-2.39-final/dlfcn -L/home/wbx= /openadk/toolchain_build_qemu-mips_glibc_mips32r6_hard/w-glibc-2.39-1/gli= bc-2.39-final/nss -L/home/wbx/openadk/toolchain_build_qemu-mips_glibc_mip= s32r6_hard/w-glibc-2.39-1/glibc-2.39-final/nis -L/home/wbx/openadk/toolch= ain_build_qemu-mips_glibc_mips32r6_hard/w-glibc-2.39-1/glibc-2.39-final/r= t -L/home/wbx/openadk/toolchain_build_qemu-mips_glibc_mips32r6_hard/w-gli= bc-2.39-1/glibc-2.39-final/resolv -L/home/wbx/openadk/toolchain_build_qem= u-mips_glibc_mips32r6_hard/w-glibc-2.39-1/glibc-2.39-final/mathvec -L/hom= e/wbx/openadk/toolchain_build_qemu-mips_glibc_mips32r6_hard/w-glibc-2.39-= 1/glibc-2.39-final/support -L/home/wbx/openadk/toolchain_build_qemu-mips_= glibc_mips32r6_hard/w-glibc-2.39-1/glibc-2.39-final/nptl -Wl,-rpath-link=3D= /home/wbx/openadk/toolchain_build_qemu-mips_glibc_mips32r6_hard/w-glibc-2= =2E39-1/glibc-2.39-final:/home/wbx/openadk/toolchain_build_qemu-mips_glib= c_mips32r6_hard/w-glibc-2.39-1/glibc-2.39-final/math:/home/wbx/openadk/to= olchain_build_qemu-mips_glibc_mips32r6_hard/w-glibc-2.39-1/glibc-2.39-fin= al/elf:/home/wbx/openadk/toolchain_build_qemu-mips_glibc_mips32r6_hard/w-= glibc-2.39-1/glibc-2.39-final/dlfcn:/home/wbx/openadk/toolchain_build_qem= u-mips_glibc_mips32r6_hard/w-glibc-2.39-1/glibc-2.39-final/nss:/home/wbx/= openadk/toolchain_build_qemu-mips_glibc_mips32r6_hard/w-glibc-2.39-1/glib= c-2.39-final/nis:/home/wbx/openadk/toolchain_build_qemu-mips_glibc_mips32= r6_hard/w-glibc-2.39-1/glibc-2.39-final/rt:/home/wbx/openadk/toolchain_bu= ild_qemu-mips_glibc_mips32r6_hard/w-glibc-2.39-1/glibc-2.39-final/resolv:= /home/wbx/openadk/toolchain_build_qemu-mips_glibc_mips32r6_hard/w-glibc-2= =2E39-1/glibc-2.39-final/mathvec:/home/wbx/openadk/toolchain_build_qemu-m= ips_glibc_mips32r6_hard/w-glibc-2.39-1/glibc-2.39-final/support:/home/wbx= /openadk/toolchain_build_qemu-mips_glibc_mips32r6_hard/w-glibc-2.39-1/gli= bc-2.39-final/nptl -o /home/wbx/openadk/toolchain_build_qemu-mips_glibc_m= ips32r6_hard/w-glibc-2.39-1/glibc-2.39-final/elf/sotruss-lib.so /home/wbx= /openadk/toolchain_build_qemu-mips_glibc_mips32r6_hard/w-glibc-2.39-1/gli= bc-2.39-final/csu/abi-note.o -Wl,--as-needed /home/wbx/openadk/toolchain_= build_qemu-mips_glibc_mips32r6_hard/w-glibc-2.39-1/glibc-2.39-final/elf/s= otruss-lib.os -Wl,--no-as-needed -Wl,--start-group /home/wbx/openadk/too= lchain_build_qemu-mips_glibc_mips32r6_hard/w-glibc-2.39-1/glibc-2.39-fina= l/libc.so /home/wbx/openadk/toolchain_build_qemu-mips_glibc_mips32r6_hard= /w-glibc-2.39-1/glibc-2.39-final/libc_nonshared.a -Wl,--as-needed /home/w= bx/openadk/toolchain_build_qemu-mips_glibc_mips32r6_hard/w-glibc-2.39-1/g= libc-2.39-final/elf/ld.so -Wl,--no-as-needed -Wl,--end-group > /home/wbx/openadk/toolchain_build_qemu-mips_glibc_mips32r6_hard/w-glibc= -2.39-1/glibc-2.39-final/csu/crti.o: in function `_init': > (.init+0x0): relocation R_MIPS_HI16 against `__gnu_local_gp' cannot be = used when making a shared object; recompile with -fPIC > /home/wbx/openadk/toolchain_build_qemu-mips_glibc_mips32r6_hard/w-glibc= -2.39-1/glibc-2.39-final/csu/crti.o: in function `_fini': > (.fini+0x0): relocation R_MIPS_HI16 against `__gnu_local_gp' cannot be = used when making a shared object; recompile with -fPIC > collect2: error: ld returned 1 exit status > gmake[8]: *** [Makefile:247: /home/wbx/openadk/toolchain_build_qemu-mip= s_glibc_mips32r6_hard/w-glibc-2.39-1/glibc-2.39-final/elf/sotruss-lib.so]= Error 1 > gmake[7]: *** [Makefile:484: elf/subdir_lib] Error 2 > gmake[6]: *** [Makefile:9: all] Error 2 > gmake[5]: *** [Makefile:71: /home/wbx/openadk/toolchain_build_qemu-mips= _glibc_mips32r6_hard/w-glibc-2.39-1/glibc-2.39/.compiled] Error 2 > gmake[4]: *** [Makefile:106: glibc-compile] Error 2 > gmake[3]: *** [mk/build.mk:227: toolchain/final] Error 2 > gmake[2]: *** [/home/wbx/openadk/mk/build.mk:176: world] Error 2 >=20 > No matter if I targeting mips32r1, mips32r2 or mips32r6. >=20 > For a full build log targeting mips32r1 download this file here: > https://debug.openadk.org/glibc-mips32-make.log >=20 I have not see any issues building with gcc 14.1.1 / binutils 2.42 for mips with -mips1/-mips2/-mips32r6: mips-linux-gnu-mips1$ ./elf/ld.so ./libc.so GNU C Library (GNU libc) development release version 2.39.9000. [...] Compiled by GNU CC version 14.1.1 20240507 [releases/gcc-11 revision 624c= 3bb9ff7:d12f6ad7ecf:09910b6753427eeb3f6dded4fae3578851da7422]. libc ABIs: MIPS_PLT UNIQUE MIPS_O32_FP64 ABSOLUTE MIPS_XHASH [...] Nor Joseph's automated bots that constantly checks all supported ABIs [1]= has reported any issue for mips. As a side note, you are using some outdated configure options like --enable-stackguard-randomization (removed on 2.34 [2]) and --disable-nls= (not really a glibc option),=20 [1] https://sourceware.org/pipermail/libc-testresults/2024q2/thread.html [2] https://sourceware.org/bugzilla/show_bug.cgi?id=3D27872