Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Dec 2013 01:12:16 GMT
From:      Shane Ambler <FreeBSD@Shaneware.biz>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/184770: clang34-3.4.r2 unable to compile
Message-ID:  <201312150112.rBF1CGTW034244@oldred.freebsd.org>
Resent-Message-ID: <201312150120.rBF1K0wv037357@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         184770
>Category:       ports
>Synopsis:       clang34-3.4.r2 unable to compile
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Dec 15 01:20:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Shane Ambler
>Release:        9.2-RELEASE
>Organization:
>Environment:
FreeBSD leader.local 9.2-RELEASE-p2 FreeBSD 9.2-RELEASE-p2 #1 r259039: Sat Dec  7 08:31:58 CST 2013     root@leader.local:/usr/obj/usr/src/sys/GENERIC  amd64

>Description:
clang34-3.4.r2 appears to be incomplete. Compiling a simple c file I get -

/usr/local/llvm34/bin/../lib/clang/3.4/include/module.map:4:12: error: header 'altivec.h' not found
    header "altivec.h"
           ^
/usr/local/llvm34/bin/../lib/clang/3.4/include/module.map:31:14: error: header 'cpuid.h' not found
      header "cpuid.h"

find /usr/local/llvm34 -name altivec.h -or -name cpuid.h
shows no signs of these two files. I see the same entry in module.map for 3.2 and 3.3 versions and they don't have these two files either but don't give an error.

I have CPUTYPE=corei7-avx in /etc/make.conf but removing it has no effect.

>How-To-Repeat:
Create a text file containing --

#include <stdlib.h>
#include <stdio.h>

int main(int argc, char *argv[])
{
    printf("Hello World");
    exit(0);
}

compile with clang34 main.c to get the error

clang clang32 and clang33 compile without error

>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201312150112.rBF1CGTW034244>