The ChipList, by Adrian Offerman; The Processor Portal

Processor Selector

View: show / edit

bookmark bookmark site
bookmark permalink
Fri 30 Mar 2012, 9:00

error: unable to do dynamic initialization

error: unable to do dynamic initialization

Reference Number : DPD200208863

Version : 12.1

Operating System : Linux

Problem Description : Compiling code that uses the GNU* vector_size attribute results in the following error:

error: unable to do dynamic initialization

The Intel(R) C++ Compiler 12.1 currently does not support GNU* vector_size attribute.


typedef unsigned int __uint32_t;
typedef __uint32_t vector4 __attribute__((vector_size (16)));

static __attribute__((always_inline)) inline void foo( __uint32_t v )
  vector4 v16 = {v,v,v,v};

$ icc -V -c t.c
Intel(R) C Compiler XE for applications running on IA-32, Version Build 20120212
Copyright (C) 1985-2012 Intel Corporation.  All rights reserved.

Edison Design Group C/C++ Front End, version 4.3.1 (Feb 12 2012 18:30:50)
Copyright 1988-2011 Edison Design Group, Inc.

t.c(7): error: unable to do dynamic initialization
    vector4 v16 = {v,v,v,v};

compilation aborted for t.c (code 2)

Resolution Status : This issue has been resolved in the next major release of the Intel(R) C++ Compiler.  This report will be updated when the compiler containing the fix becomes available.

[DISCLAIMER: The information on this web site is intended for hardware system manufacturers and software developers. Intel does not warrant the accuracy, ...
Filed under: Intel® C++ Compiler for Linux* Knowledge BaseIntel® C++ Compiler for Mac OS X* Knowledge Base
Also published by:

ChipList news channel Last Months News

ChipList developers news channel Last Months Developers News

Page viewed 1905 times since Sat 31 Mar 2012, 2:42.