Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#31137 closed defect (fixed)

unbound @1.4.2 doesn't configure +universal

Reported by: neverpanic (Clemens Lang) Owned by: nerdling (Jeremy Lavergne)
Priority: Normal Milestone:
Component: ports Version:
Keywords: universal llvm-gcc-4.2 clang Cc: ryandesign (Ryan Carsten Schmidt)
Port: unbound

Description

Unbound doesn't succeed the configure phase when installing with +universal.

Configure fails at finding ldns.h, although it's installed.

Attachments (2)

config.log (511.7 KB) - added by neverpanic (Clemens Lang) 13 years ago.
config.log showing the error messages causing the problem
main.ryandesign1.log (81.4 KB) - added by ryandesign (Ryan Carsten Schmidt) 13 years ago.
successful build on Snow Leopard with Xcode 3.2.6

Download all attachments as: .zip

Change History (18)

Changed 13 years ago by neverpanic (Clemens Lang)

Attachment: config.log added

config.log showing the error messages causing the problem

comment:1 Changed 13 years ago by neverpanic (Clemens Lang)

Version: 2.0.22.0.99

comment:2 Changed 13 years ago by nerdling (Jeremy Lavergne)

Owner: changed from snc@… to snc@…
Status: newassigned

comment:3 Changed 13 years ago by nerdling (Jeremy Lavergne)

This is the normal test: configure:16789: /Developer/usr/bin/llvm-gcc-4.2 -c -pipe -O2 -arch x86_64 -g -O2 -flto -D_THREAD_SAFE -I/opt/local/include -I/opt/local/include conftest.c >&5

This is the universal test: configure:16789: /Developer/usr/bin/llvm-gcc-4.2 -c -pipe -O2 -arch x86_64 -arch i386 -g -O2 -flto -I/opt/local/include -I/opt/local/include -I/opt/local/include conftest.c >&5

Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: main.ryandesign1.log added

successful build on Snow Leopard with Xcode 3.2.6

comment:4 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added
Keywords: universal added

Interesting: it builds fine universal for me, on Snow Leopard with Xcode 3.2.6.

comment:5 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

But I am able to reproduce the failure on the same system with configure.compiler=llvm-gcc-4.2.

The relevant lines in config.log seem to be these:

configure:16789: checking for ldns/ldns.h
configure:16789: /Developer/usr/bin/llvm-gcc-4.2 -c -pipe -O2 -arch x86_64 -arch i386 -g -O2 -flto -I/opt/local/include -I/opt/local/include -I/opt/local/include conftest.c >&5
conftest.c:82:1: warning: "malloc" redefined
conftest.c:81:1: warning: this is the location of the previous definition
In file included from conftest.c:122:
/usr/include/stdio.h:78: error: two or more data types in declaration specifiers
/usr/include/stdio.h:78: error: two or more data types in declaration specifiers
/usr/include/stdio.h:414: error: two or more data types in declaration specifiers
/usr/include/stdio.h:414: error: two or more data types in declaration specifiers
/usr/include/stdio.h:442: error: two or more data types in declaration specifiers
In file included from /usr/include/machine/types.h:35,
                 from /usr/include/sys/types.h:78,
                 from conftest.c:124:
/usr/include/i386/types.h:78: error: duplicate 'signed'
/usr/include/i386/types.h:78: error: two or more data types in declaration specifiers
/usr/include/i386/types.h:83: error: duplicate 'short'
/usr/include/i386/types.h:88: error: two or more data types in declaration specifiers
/usr/include/i386/types.h:93: error: 'long long long' is too long for GCC
/usr/include/i386/types.h:93: error: 'long long long' is too long for GCC
In file included from conftest.c:124:
/usr/include/sys/types.h:84: error: duplicate 'unsigned'
/usr/include/sys/types.h:84: error: two or more data types in declaration specifiers
/usr/include/sys/types.h:126: error: two or more data types in declaration specifiers
/usr/include/sys/types.h:126: error: two or more data types in declaration specifiers
/usr/include/sys/types.h:131: error: two or more data types in declaration specifiers
/usr/include/sys/types.h:131: error: two or more data types in declaration specifiers
/usr/include/sys/types.h:167: error: two or more data types in declaration specifiers

Try using clang; if also fails, use gcc-4.2 / apple-gcc-4.2. If you're sure it works fine with llvm-gcc-4.2 and clang when built non-universal, you could enclose that compiler block in a if {[variant_isset universal]} block, to avoid making people install the apple-gcc42 port unnecessarily if they're not building universal.

comment:6 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: llvm-gcc-4.2 added

comment:7 Changed 13 years ago by nerdling (Jeremy Lavergne)

Keywords: clang added
Version: 2.0.99

Clang does not appear to work either. Ryan, can you file a radar for this please?

comment:8 Changed 13 years ago by nerdling (Jeremy Lavergne)

Apple clang version 2.0 (tags/Apple/clang-139) (based on LLVM 2.9svn)
i686-apple-darwin10-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.9)
ProductName:    Mac OS X Server
ProductVersion: 10.6.8
BuildVersion:   10K549

comment:9 Changed 13 years ago by nerdling (Jeremy Lavergne)

Resolution: fixed
Status: assignedclosed

+unviersal requires gcc, r87102.

comment:10 in reply to:  7 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to snc@…:

Ryan, can you file a radar for this please?

I could enter a report at http://bugreport.apple.com, but you could too...

comment:11 Changed 13 years ago by nerdling (Jeremy Lavergne)

As of r89571 (unbound @1.4.16) llvm and clang work for normal compiling, but only llvm can now handle +universal.

comment:12 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

unbound 1.4.16 seemed to build fine universal for me on Snow Leopard with Xcode 3.2.6 and therefore gcc-4.2.

comment:13 Changed 13 years ago by nerdling (Jeremy Lavergne)

Thanks for the SL input, which indicates no changes needed (clang only being on Lion). I tried all my combinations in a Lion VM.

comment:14 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

clang would also be used on Snow Leopard if the user had installed Xcode 4.2.

comment:15 Changed 13 years ago by nerdling (Jeremy Lavergne)

So Snow Leopard has all three compilers with Xcode 4.2 (clang, llvm, gcc)?

comment:16 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Snow Leopard is no different from Lion in that regard. Xcode 4.2 does not include gcc. The different is that on Snow Leopard Xcode 4 is not free; the latest free version is 3.2.6.

Note: See TracTickets for help on using tickets.