Date: Thu, 5 May 2011 18:51:37 +0200 From: Olivier Smedts <olivier@gid0.org> To: Roman Divacky <rdivacky@freebsd.org> Cc: "O. Hartmann" <ohartman@zedat.fu-berlin.de>, current@freebsd.org Subject: Re: Clang error make buildworld Message-ID: <BANLkTim%2B9sFR9jjgT8XAK0kGw3h9wd08HQ@mail.gmail.com> In-Reply-To: <20110505155551.GA99006@freebsd.org> References: <201105040107.p4417NTR048534@pozo.com> <4DC0F46C.3020806@FreeBSD.org> <201105041344.p44DiOId032272@pozo.com> <4DC160B9.5060004@FreeBSD.org> <4DC2A0E5.5040602@zedat.fu-berlin.de> <BANLkTimiU42U0m5nCo=hSdaUF50rwnOk4w@mail.gmail.com> <20110505135458.GA79622@freebsd.org> <BANLkTimkOU9NDUONH1r=qX68iwj4W5LVpg@mail.gmail.com> <20110505155551.GA99006@freebsd.org>
index | next in thread | previous in thread | raw e-mail
2011/5/5 Roman Divacky <rdivacky@freebsd.org>: >> clang -O2 -pipe -march=native -fomit-frame-pointer >> -DATJOB_DIR=\"/var/at/jobs/\" -DLFILE=\"/var/at/jobs/.lockfile\" >> -DLOADAVG_MX=1.5 -DATSPOOL_DIR=\"/var/at/spool\" -DVERSION=\"2.9\" >> -DDAEMON_UID=1 -DDAEMON_GID=1 -DDEFAULT_BATCH_QUEUE=\'E\' >> -DDEFAULT_AT_QUEUE=\'c\' -DPERM_PATH=\"/var/at/\" >> -I/usr/src/libexec/atrun/../../usr.bin/at -I/usr/src/libexec/atrun >> -DLOGIN_CAP -DPAM -std=gnu99 -fstack-protector -Wsystem-headers -Wall >> -Wno-format-y2k -Wno-uninitialized -Wno-pointer-sign -c >> /usr/src/libexec/atrun/gloadavg.c >> clang -O2 -pipe -march=native -fomit-frame-pointer >> -DATJOB_DIR=\"/var/at/jobs/\" -DLFILE=\"/var/at/jobs/.lockfile\" >> -DLOADAVG_MX=1.5 -DATSPOOL_DIR=\"/var/at/spool\" -DVERSION=\"2.9\" >> -DDAEMON_UID=1 -DDAEMON_GID=1 -DDEFAULT_BATCH_QUEUE=\'E\' >> -DDEFAULT_AT_QUEUE=\'c\' -DPERM_PATH=\"/var/at/\" >> -I/usr/src/libexec/atrun/../../usr.bin/at -I/usr/src/libexec/atrun >> -DLOGIN_CAP -DPAM -std=gnu99 -fstack-protector -Wsystem-headers -Wall >> -Wno-format-y2k -Wno-uninitialized -Wno-pointer-sign -o atrun atrun.o >> gloadavg.o -lpam -lutil >> clang: warning: argument unused during compilation: '-std=gnu99' >> /usr/obj/usr/src/tmp/usr/lib/crt1.o: In function `_start': >> /usr/src/lib/csu/amd64/crt1.c:(.text+0x5d): undefined reference to `atexit' > > > Can you invoke this very same command (ie. linking) with -### and show me? > Does it work when you try to link the same .o files without specifying > -march=native ? I'm going to try. In the meantime, I did other tests on this machine, which is detected by clang as -march=corei7. Compiling this with the system's clang (which has been compiled with -march=core2) and -march=core2 is OK. Compiling this with the system's clang (which has been compiled with -march=core2) and -march=native is OK. Compiling this with the bootstrap clang (which has been compiled with -march=native) and -march=native FAILS. The problem seems to be inside the clang compiled with -march=native. Next, I'm going to try with a bootstrap clang compiled with -march=corei7. -- Olivier Smedts _ ASCII ribbon campaign ( ) e-mail: olivier@gid0.org - against HTML email & vCards X www: http://www.gid0.org - against proprietary attachments / \ "Il y a seulement 10 sortes de gens dans le monde : ceux qui comprennent le binaire, et ceux qui ne le comprennent pas."help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BANLkTim%2B9sFR9jjgT8XAK0kGw3h9wd08HQ>
