From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/11366 Path: news.gmane.org!.POSTED!not-for-mail From: Jorge Almeida Newsgroups: gmane.linux.lib.musl.general Subject: -m32 Date: Mon, 29 May 2017 19:22:54 +0100 Message-ID: Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1496082209 10084 195.159.176.226 (29 May 2017 18:23:29 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 29 May 2017 18:23:29 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-11380-gllmg-musl=m.gmane.org@lists.openwall.com Mon May 29 20:23:26 2017 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.84_2) (envelope-from ) id 1dFPKA-0002Yp-1Z for gllmg-musl@m.gmane.org; Mon, 29 May 2017 20:23:26 +0200 Original-Received: (qmail 29961 invoked by uid 550); 29 May 2017 18:23:28 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 29926 invoked from network); 29 May 2017 18:23:26 -0000 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=Ym1aKscCfOoGS7dArSFytpmbozOI/3i+qTufiEEbeu0=; b=D+5cuQRQPQW64PgjEfZbvhtoChUNlWhhg8w+XsLhdGx5Q77qgDvuXETG7G+dqFtSGj 4YhNu1nz4B5Y19yPPAYd5m7zhwT2KwX/yZb9twVJr50/3RZqgFMFn7ThmBHvF+W8K6El Ai2RQvEIEfsBib+lrOSDmAGvo7iuXfVBWDEJnVuH0gqjDVaUyocLd+uWFAevAig7Yh3z dM6M9n1VVAfMTenH3EbWszkMKVfHYQHy4XakbddbhvvFGqBig79ugThtYggQ75VkEfRX 0DP4I6s4GnIAjf8wilvVLWV7o0GdOXKjQy8gBAaOq17o/JuYy4cWH3fK22JhE/bSpUky 81nQ== 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=Ym1aKscCfOoGS7dArSFytpmbozOI/3i+qTufiEEbeu0=; b=MM6vIas+l9rVTx44y0SWDAbPCBX2gZyBrUKCmJyxoAs1zq4axtEpOhm0Phywg64Jqo H7kqGW4Z5xRjgY8SZXv5oa0yNsnOnjLf3+1eqruR4aLVJZ/pSoGbcm4Cq5kcVmypnzN6 1f4e7/jn52YtUaGPM460u79KFwvkTFG9Ff7qj1uXuJDVBgDBa8ULYHT35gNBn8+HcFnc YuIksSbfiWU/Yjs+8rj5NtFFtTwb+E9o4y+U/VhKMAabls3lbW8jI7xFLLx39uBvjDiA bLQrcUPiLwK1TvicM6I8oocPdUjPW//Z5VcWG/rDa6n7YWxyxZU8SWB7MtdcrH7JOrUR J4Wg== X-Gm-Message-State: AODbwcBlJWAe+lNn23SMQT/KF61XPb7mCEuhCat+0WWbLa7k8joiA/u+ n79+q1zQFVBW2pOkwdL6uEIpCJ30DdDy X-Received: by 10.107.204.6 with SMTP id c6mr16652666iog.166.1496082194667; Mon, 29 May 2017 11:23:14 -0700 (PDT) Xref: news.gmane.org gmane.linux.lib.musl.general:11366 Archived-At: I tried to compile a "hello world" program (on a x86_64 system) with the -m32 flag of gcc: /opt/bin/musl-gcc -static -march=native -Os -m32 -fomit-frame-pointer -pipe -Wall -Werror=pedantic -Werror=implicit-function-declaration -Wno-unused-function -pedantic -pedantic-errors -mpreferred-stack-boundary=4 -falign-functions=1 -falign-jumps=1 -falign-loops=1 -fno-unwind-tables -fdata-sections -ffunction-sections -Wl,--gc-sections -fno-asynchronous-unwind-tables -std=c99 -o foo .foo.c /usr/lib/gcc/x86_64-pc-linux-gnu/5.4.0/../../../../x86_64-pc-linux-gnu/bin/ld: i386 architecture of input file `/usr/lib/gcc/x86_64-pc-linux-gnu/5.4.0/32/crtbegin.o' is incompatible with i386:x86-64 output /usr/lib/gcc/x86_64-pc-linux-gnu/5.4.0/../../../../x86_64-pc-linux-gnu/bin/ld: i386 architecture of input file `/tmp/cc9x8D3p.o' is incompatible with i386:x86-64 output /usr/lib/gcc/x86_64-pc-linux-gnu/5.4.0/../../../../x86_64-pc-linux-gnu/bin/ld: i386 architecture of input file `/usr/lib/gcc/x86_64-pc-linux-gnu/5.4.0/32/crtend.o' is incompatible with i386:x86-64 output collect2: error: ld returned 1 exit status make: *** [.makefile_foo:15: foo] Error 1 Is there anything missing with my gcc, or is -m32 just not supported? (I checked that the same program compiles and works correctly with glibc) thanks Jorge Almeida