Re: Clang error make buildworld

From: Olivier Smedts <olivier_at_gid0.org>
Date: Thu, 5 May 2011 18:51:37 +0200
2011/5/5 Roman Divacky <rdivacky_at_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_at_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."
Received on Thu May 05 2011 - 14:51:38 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:13 UTC